SlideShare a Scribd company logo
1 of 36
Download to read offline
Machine Learning
Deep Learning
Inas A. Yassine
Systems and Biomedical Engineering Department,
Faculty of Engineering - Cairo University
iyassine@eng.cu.edu.eg
Self-taught learning
Testing:
What is this?
Car Motorcycle
Unlabeled images (random internet images)
Deep Learning
ยง Biology Aspect
ยง Each neuron is fired due to a certain edge
direction
ยง New Wiring Experiment
ยง Brain port
ยง Automate what we see as a faceโ€ฆ.
Self-taught learning
Sparse
coding,
LCC, etc.
f1, f2, โ€ฆ, fk
Car Motorcycle
Use	learned	f1, f2, โ€ฆ, fk to	represent	training/test	sets.	
Using f1, f2, โ€ฆ, fk
a1, a2, โ€ฆ, ak
If have labeled training
set is small, can give
huge performance
boost.
Learning feature
hierarchies/Deep learning
Why feature hierarchies
pixels edges object parts
(combination
of edges)
Convolution batches !
Deep learning algorithms
ยง Stack sparse coding algorithm
ยง Deep Belief Network (DBN) (Hinton)
ยง Deep sparse autoencoders (Bengio)
ยง Deep Convolution Neural Networks
ยง Residual Networks
ยง Seams Networks
ยง Self Learning Netowrks
[Other related work: LeCun, Lee,Yuille, Ng โ€ฆ]
Deep Learning:Autoencoder
Deep learning with autoencoders
ยง Logistic regression
ยง Neural network
ยง Sparse autoencoder
ยง Deep autoencoder
Logistic regression has a learned parameter vector q.
On input x, it outputs:
where
Logistic regression
x1
x2
x3
+1
Draw a logistic
regression unit as:
Neural Network
String a lot of logistic units together. Example 3 layer network:
x1
x2
x3
+1 +1
a3
a2
a1
Layer	1 Layer	2
Layer 3
Neural Network
x1
x2
x3
+1 +1
Layer	1 Layer	2
Layer	4+1
Layer	3
Exampleโ€ 4 layer network with 2 output units:
Training a neural network
Given training set (x1, y1), (x2, y2), (x3, y3 ), โ€ฆ.
Adjust parameters q (for every node) to make:
(Use gradient descent.โ€œBackpropagationโ€ algorithm. Susceptible to local optima.)
Unsupervised feature learning
x4
x5
x6
+1
Layer 1
Layer 2
x1
x2
x3
x4
x5
x6
x1
x2
x3
+1
Layer 3
Network is trained to
output the input (learn
identify function).
Minimizing both information
of data and output
Trivial solution unless:
- Constrain number of units
in Layer 2 (learn compressed
representation), or
- Constrain Layer 2 to be
sparse.
a1
a2
a3
Training a sparse autoencoder.
Given unlabeled training set x1, x2,
Unsupervised feature learning with ANN
Reconstruction error
term
๐‘Š" ๐‘ŠX
a1
a2
a3
Unsupervised feature learning with ANN
x4
x5
x6
+1
Layer	1
Layer	2
x1
x2
x3
x4
x5
x6
x1
x2
x3
+1
Layer	3
Unsupervised feature learning with ANN
New representation for input.
x4
x5
x6
+1
Layer	1
Layer	2
x1
x2
x3
+1
Unsupervised feature learning with ANN
x4
x5
x6
+1
Layer	1
Layer	2
x1
x2
x3
+1
+1
b1
b2
b3
Train parameters so that ,
subject to biโ€™s being sparse.
Greedy Learning
Regularization
using back
propagation of
the complete
system after
greedy + 5%
increase in
performance
x4
x5
x6
+1
Layer 1
Layer 2
x1
x2
x3
+1+1
b1
b2
b3
x4
x5
x6
+1
Layer 1
Layer 2
x1
x2
x3
+1
Sparse Autoencoder
First stage of visual processing in
brain:V1
Schematic of simple cell Actual simple cell
โ€œGabor functions.โ€
The first stage of
visual processing in
the brain (V1) does
โ€œedge detection.โ€
Learning an image representation
Sparse coding (Olshausen & Field,1996)
Input: Images x(1), x(2), โ€ฆ, x(m) (each in Rn x n)
Learn: Dictionary of bases f1, f2, โ€ฆ, fk (also Rn x n), so that each
input x can be approximately decomposed as:
s.t. ajโ€™s are mostly zero (โ€œsparseโ€)
Use to represent 14x14 image patch succinctly, as [a7=0.8, a36=0.3,
a41 = 0.5]. I.e., this indicates which โ€œbasic edgesโ€ make up the
image.
Sparse coding illustration
Natural	Images
Learned	bases	(f1	,	โ€ฆ,	f64):		โ€œEdgesโ€
50 100 150 200 250 300 350 400 450 500
50
100
150
200
250
300
350
400
450
500
50 100 150 200 250 300 350 400 450 500
50
100
150
200
250
300
350
400
450
500
50 100 150 200 250 300 350 400 450 500
50
100
150
200
250
300
350
400
450
500
ยป 0.8 * + 0.3 * + 0.5 *
x ยป 0.8 * f36
+ 0.3 * f42 + 0.5 * f63
[0,	0,	โ€ฆ,	0, 0.8,	0,	โ€ฆ,	0,	0.3,	0,	โ€ฆ,	0,	0.5,	โ€ฆ]	
Test	example
Represent as: [0,	0,	โ€ฆ,	0, 0.6,	0,	โ€ฆ,	0,	0.8,	0,	โ€ฆ,	0,	0.4,	โ€ฆ]	
Represent as: [0,	0,	โ€ฆ,	0, 1.3,	0,	โ€ฆ,	0,	0.9,	0,	โ€ฆ,	0,	0.3,	โ€ฆ]	
More examples
ยป 0.6 * + 0.8 * + 0.4 *
f15 f28
f37
ยป 1.3 * + 0.9 * + 0.3 *
f5 f18
f29
โ€ข Method hypothesizes that edge-like patches are the most
โ€œbasicโ€ elements of a scene, and represents an image in terms of
the edges that appear in it.
โ€ข Use to obtain a more compact, higher-level representation of
the scene than pixels.
Sparse Learning
ยง Input: Images x(1), x(2), โ€ฆ, x(m) (each in Rn x
n)
Reconstruction error
term
๐‘Š" ๐‘ŠX
Regularization objective :
โ€ข Small?
โ€ข Too much energy to be fired
โ€ข Different neurons
โ€ข L1 norm
โ€ข ฮžฮž |W X|
DEEP LEARNING:
CONVOLUTION NEURAL
NETWORK
ConvNets (Fukushima, LeCun,
Hinton)
ConvNets
Convolution
ยง Correlation
ยง Convolution
Image Convolution
Image Convolution
Image Convolution
Image Convolution
ConvNets in Torch

More Related Content

What's hot

Artificial neural networks
Artificial neural networksArtificial neural networks
Artificial neural networks
stellajoseph
ย 
Icml2012 learning hierarchies of invariant features
Icml2012 learning hierarchies of invariant featuresIcml2012 learning hierarchies of invariant features
Icml2012 learning hierarchies of invariant features
zukun
ย 

What's hot (16)

Artificial neural networks
Artificial neural networksArtificial neural networks
Artificial neural networks
ย 
Scene classification using Convolutional Neural Networks - Jayani Withanawasam
Scene classification using Convolutional Neural Networks - Jayani WithanawasamScene classification using Convolutional Neural Networks - Jayani Withanawasam
Scene classification using Convolutional Neural Networks - Jayani Withanawasam
ย 
Tutorial on convolutional neural networks
Tutorial on convolutional neural networksTutorial on convolutional neural networks
Tutorial on convolutional neural networks
ย 
MLIP - Chapter 5 - Detection, Segmentation, Captioning
MLIP - Chapter 5 - Detection, Segmentation, CaptioningMLIP - Chapter 5 - Detection, Segmentation, Captioning
MLIP - Chapter 5 - Detection, Segmentation, Captioning
ย 
Semi-Supervised Autoencoders for Predicting Sentiment Distributions๏ผˆ็ฌฌ 5 ๅ›ž De...
 Semi-Supervised Autoencoders for Predicting Sentiment Distributions๏ผˆ็ฌฌ 5 ๅ›ž De... Semi-Supervised Autoencoders for Predicting Sentiment Distributions๏ผˆ็ฌฌ 5 ๅ›ž De...
Semi-Supervised Autoencoders for Predicting Sentiment Distributions๏ผˆ็ฌฌ 5 ๅ›ž De...
ย 
Intro To Convolutional Neural Networks
Intro To Convolutional Neural NetworksIntro To Convolutional Neural Networks
Intro To Convolutional Neural Networks
ย 
Convolutional neural networks deepa
Convolutional neural networks deepaConvolutional neural networks deepa
Convolutional neural networks deepa
ย 
Icml2012 learning hierarchies of invariant features
Icml2012 learning hierarchies of invariant featuresIcml2012 learning hierarchies of invariant features
Icml2012 learning hierarchies of invariant features
ย 
Deep Learning
Deep LearningDeep Learning
Deep Learning
ย 
Deep Learning - A Literature survey
Deep Learning - A Literature surveyDeep Learning - A Literature survey
Deep Learning - A Literature survey
ย 
Geek Night 17.0 - Artificial Intelligence and Machine Learning
Geek Night 17.0 - Artificial Intelligence and Machine LearningGeek Night 17.0 - Artificial Intelligence and Machine Learning
Geek Night 17.0 - Artificial Intelligence and Machine Learning
ย 
Convolutional Neural Networks: Part 1
Convolutional Neural Networks: Part 1Convolutional Neural Networks: Part 1
Convolutional Neural Networks: Part 1
ย 
Deep learning - Conceptual understanding and applications
Deep learning - Conceptual understanding and applicationsDeep learning - Conceptual understanding and applications
Deep learning - Conceptual understanding and applications
ย 
MLIP - Chapter 6 - Generation, Super-Resolution, Style transfer
MLIP - Chapter 6 - Generation, Super-Resolution, Style transferMLIP - Chapter 6 - Generation, Super-Resolution, Style transfer
MLIP - Chapter 6 - Generation, Super-Resolution, Style transfer
ย 
Anatomy of YOLO - v1
Anatomy of YOLO - v1Anatomy of YOLO - v1
Anatomy of YOLO - v1
ย 
Deep convnets for global recognition (Master in Computer Vision Barcelona 2016)
Deep convnets for global recognition (Master in Computer Vision Barcelona 2016)Deep convnets for global recognition (Master in Computer Vision Barcelona 2016)
Deep convnets for global recognition (Master in Computer Vision Barcelona 2016)
ย 

Similar to Machine Learning 2

ECCV2010: feature learning for image classification, part 4
ECCV2010: feature learning for image classification, part 4ECCV2010: feature learning for image classification, part 4
ECCV2010: feature learning for image classification, part 4
zukun
ย 
[็ณปๅˆ—ๆดปๅ‹•] ไธ€ๆ—ฅๆžๆ‡‚็”ŸๆˆๅผๅฐๆŠ—็ถฒ่ทฏ
[็ณปๅˆ—ๆดปๅ‹•] ไธ€ๆ—ฅๆžๆ‡‚็”ŸๆˆๅผๅฐๆŠ—็ถฒ่ทฏ[็ณปๅˆ—ๆดปๅ‹•] ไธ€ๆ—ฅๆžๆ‡‚็”ŸๆˆๅผๅฐๆŠ—็ถฒ่ทฏ
[็ณปๅˆ—ๆดปๅ‹•] ไธ€ๆ—ฅๆžๆ‡‚็”ŸๆˆๅผๅฐๆŠ—็ถฒ่ทฏ
ๅฐ็ฃ่ณ‡ๆ–™็ง‘ๅญธๅนดๆœƒ
ย 
ECCV2010: feature learning for image classification, part 2
ECCV2010: feature learning for image classification, part 2ECCV2010: feature learning for image classification, part 2
ECCV2010: feature learning for image classification, part 2
zukun
ย 
What's Wrong With Deep Learning?
What's Wrong With Deep Learning?What's Wrong With Deep Learning?
What's Wrong With Deep Learning?
Philip Zheng
ย 

Similar to Machine Learning 2 (20)

ECCV2010: feature learning for image classification, part 4
ECCV2010: feature learning for image classification, part 4ECCV2010: feature learning for image classification, part 4
ECCV2010: feature learning for image classification, part 4
ย 
[็ณปๅˆ—ๆดปๅ‹•] ไธ€ๆ—ฅๆžๆ‡‚็”ŸๆˆๅผๅฐๆŠ—็ถฒ่ทฏ
[็ณปๅˆ—ๆดปๅ‹•] ไธ€ๆ—ฅๆžๆ‡‚็”ŸๆˆๅผๅฐๆŠ—็ถฒ่ทฏ[็ณปๅˆ—ๆดปๅ‹•] ไธ€ๆ—ฅๆžๆ‡‚็”ŸๆˆๅผๅฐๆŠ—็ถฒ่ทฏ
[็ณปๅˆ—ๆดปๅ‹•] ไธ€ๆ—ฅๆžๆ‡‚็”ŸๆˆๅผๅฐๆŠ—็ถฒ่ทฏ
ย 
Brain-inspired equivalence structure extraction technique for generating fr...
Brain-inspired equivalence structure extraction technique for generating fr...Brain-inspired equivalence structure extraction technique for generating fr...
Brain-inspired equivalence structure extraction technique for generating fr...
ย 
AI ๋กœ๋ด‡ ์•„ํ‹ฐ์ŠคํŠธ์˜ ๋น„๋ฐ€(์ฐฝ์›๋Œ€ํ•™๊ต ์ •๋ณดํ†ต์‹ ๊ณตํ•™๊ณผ ํŠน๊ฐ•)
AI ๋กœ๋ด‡ ์•„ํ‹ฐ์ŠคํŠธ์˜ ๋น„๋ฐ€(์ฐฝ์›๋Œ€ํ•™๊ต ์ •๋ณดํ†ต์‹ ๊ณตํ•™๊ณผ ํŠน๊ฐ•)AI ๋กœ๋ด‡ ์•„ํ‹ฐ์ŠคํŠธ์˜ ๋น„๋ฐ€(์ฐฝ์›๋Œ€ํ•™๊ต ์ •๋ณดํ†ต์‹ ๊ณตํ•™๊ณผ ํŠน๊ฐ•)
AI ๋กœ๋ด‡ ์•„ํ‹ฐ์ŠคํŠธ์˜ ๋น„๋ฐ€(์ฐฝ์›๋Œ€ํ•™๊ต ์ •๋ณดํ†ต์‹ ๊ณตํ•™๊ณผ ํŠน๊ฐ•)
ย 
ECCV2010: feature learning for image classification, part 2
ECCV2010: feature learning for image classification, part 2ECCV2010: feature learning for image classification, part 2
ECCV2010: feature learning for image classification, part 2
ย 
Deep Learning & Tensor flow: An Intro
Deep Learning & Tensor flow: An IntroDeep Learning & Tensor flow: An Intro
Deep Learning & Tensor flow: An Intro
ย 
Review on cs231 part-2
Review on cs231 part-2Review on cs231 part-2
Review on cs231 part-2
ย 
Scaling Deep Learning with MXNet
Scaling Deep Learning with MXNetScaling Deep Learning with MXNet
Scaling Deep Learning with MXNet
ย 
What's Wrong With Deep Learning?
What's Wrong With Deep Learning?What's Wrong With Deep Learning?
What's Wrong With Deep Learning?
ย 
Introduction to Deep Learning
Introduction to Deep LearningIntroduction to Deep Learning
Introduction to Deep Learning
ย 
My invited talk at the 23rd International Symposium of Mathematical Programmi...
My invited talk at the 23rd International Symposium of Mathematical Programmi...My invited talk at the 23rd International Symposium of Mathematical Programmi...
My invited talk at the 23rd International Symposium of Mathematical Programmi...
ย 
Alberto Massidda - Images and words: mechanics of automated captioning with n...
Alberto Massidda - Images and words: mechanics of automated captioning with n...Alberto Massidda - Images and words: mechanics of automated captioning with n...
Alberto Massidda - Images and words: mechanics of automated captioning with n...
ย 
Solr and Machine Vision - Scott Cote, Lucidworks & Trevor Grant, IBM
Solr and Machine Vision - Scott Cote, Lucidworks & Trevor Grant, IBMSolr and Machine Vision - Scott Cote, Lucidworks & Trevor Grant, IBM
Solr and Machine Vision - Scott Cote, Lucidworks & Trevor Grant, IBM
ย 
Deep learning in Computer Vision
Deep learning in Computer VisionDeep learning in Computer Vision
Deep learning in Computer Vision
ย 
Machine Learning: Make Your Ruby Code Smarter
Machine Learning: Make Your Ruby Code SmarterMachine Learning: Make Your Ruby Code Smarter
Machine Learning: Make Your Ruby Code Smarter
ย 
lecun-01.ppt
lecun-01.pptlecun-01.ppt
lecun-01.ppt
ย 
My 2hr+ survey talk at the Vector Institute, on our deep learning theorems.
My 2hr+ survey talk at the Vector Institute, on our deep learning theorems.My 2hr+ survey talk at the Vector Institute, on our deep learning theorems.
My 2hr+ survey talk at the Vector Institute, on our deep learning theorems.
ย 
Understanding Javascript Engines
Understanding Javascript Engines Understanding Javascript Engines
Understanding Javascript Engines
ย 
Neural Networks in the Wild: Handwriting Recognition
Neural Networks in the Wild: Handwriting RecognitionNeural Networks in the Wild: Handwriting Recognition
Neural Networks in the Wild: Handwriting Recognition
ย 
My invited talk at the 2018 Annual Meeting of SIAM (Society of Industrial and...
My invited talk at the 2018 Annual Meeting of SIAM (Society of Industrial and...My invited talk at the 2018 Annual Meeting of SIAM (Society of Industrial and...
My invited talk at the 2018 Annual Meeting of SIAM (Society of Industrial and...
ย 

More from cairo university

More from cairo university (20)

Tocci chapter 13 applications of programmable logic devices extended
Tocci chapter 13 applications of programmable logic devices extendedTocci chapter 13 applications of programmable logic devices extended
Tocci chapter 13 applications of programmable logic devices extended
ย 
Tocci chapter 12 memory devices
Tocci chapter 12 memory devicesTocci chapter 12 memory devices
Tocci chapter 12 memory devices
ย 
Tocci ch 9 msi logic circuits
Tocci ch 9 msi logic circuitsTocci ch 9 msi logic circuits
Tocci ch 9 msi logic circuits
ย 
Tocci ch 7 counters and registers modified x
Tocci ch 7 counters and registers modified xTocci ch 7 counters and registers modified x
Tocci ch 7 counters and registers modified x
ย 
Tocci ch 6 digital arithmetic operations and circuits
Tocci ch 6 digital arithmetic operations and circuitsTocci ch 6 digital arithmetic operations and circuits
Tocci ch 6 digital arithmetic operations and circuits
ย 
Tocci ch 3 5 boolean algebra, logic gates, combinational circuits, f fs, - re...
Tocci ch 3 5 boolean algebra, logic gates, combinational circuits, f fs, - re...Tocci ch 3 5 boolean algebra, logic gates, combinational circuits, f fs, - re...
Tocci ch 3 5 boolean algebra, logic gates, combinational circuits, f fs, - re...
ย 
A15 sedra ch 15 memory circuits
A15  sedra ch 15 memory circuitsA15  sedra ch 15 memory circuits
A15 sedra ch 15 memory circuits
ย 
A14 sedra ch 14 advanced mos and bipolar logic circuits
A14  sedra ch 14 advanced mos and bipolar logic circuitsA14  sedra ch 14 advanced mos and bipolar logic circuits
A14 sedra ch 14 advanced mos and bipolar logic circuits
ย 
A13 sedra ch 13 cmos digital logic circuits
A13  sedra ch 13 cmos digital logic circuitsA13  sedra ch 13 cmos digital logic circuits
A13 sedra ch 13 cmos digital logic circuits
ย 
A09 sedra ch 9 frequency response
A09  sedra ch 9 frequency responseA09  sedra ch 9 frequency response
A09 sedra ch 9 frequency response
ย 
5 sedra ch 05 mosfet.ppsx
5  sedra ch 05  mosfet.ppsx5  sedra ch 05  mosfet.ppsx
5 sedra ch 05 mosfet.ppsx
ย 
5 sedra ch 05 mosfet
5  sedra ch 05  mosfet5  sedra ch 05  mosfet
5 sedra ch 05 mosfet
ย 
5 sedra ch 05 mosfet revision
5  sedra ch 05  mosfet revision5  sedra ch 05  mosfet revision
5 sedra ch 05 mosfet revision
ย 
Fields Lec 2
Fields Lec 2Fields Lec 2
Fields Lec 2
ย 
Fields Lec 1
Fields Lec 1Fields Lec 1
Fields Lec 1
ย 
Fields Lec 5&6
Fields Lec 5&6Fields Lec 5&6
Fields Lec 5&6
ย 
Fields Lec 4
Fields Lec 4Fields Lec 4
Fields Lec 4
ย 
Fields Lec 3
Fields Lec 3Fields Lec 3
Fields Lec 3
ย 
Lecture 2 (system overview of c8051 f020) rv01
Lecture 2 (system overview of c8051 f020) rv01Lecture 2 (system overview of c8051 f020) rv01
Lecture 2 (system overview of c8051 f020) rv01
ย 
Lecture 1 (course overview and 8051 architecture) rv01
Lecture 1 (course overview and 8051 architecture) rv01Lecture 1 (course overview and 8051 architecture) rv01
Lecture 1 (course overview and 8051 architecture) rv01
ย 

Recently uploaded

Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
SUHANI PANDEY
ย 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
ย 

Recently uploaded (20)

Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
ย 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
ย 
Top Rated Pune Call Girls Budhwar Peth โŸŸ 6297143586 โŸŸ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth โŸŸ 6297143586 โŸŸ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth โŸŸ 6297143586 โŸŸ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth โŸŸ 6297143586 โŸŸ Call Me For Genuine Se...
ย 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
ย 
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSUNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
ย 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
ย 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
ย 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
ย 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
ย 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
ย 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
ย 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
ย 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
ย 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ย 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
ย 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
ย 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
ย 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ย 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
ย 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
ย 

Machine Learning 2

  • 1. Machine Learning Deep Learning Inas A. Yassine Systems and Biomedical Engineering Department, Faculty of Engineering - Cairo University iyassine@eng.cu.edu.eg
  • 2. Self-taught learning Testing: What is this? Car Motorcycle Unlabeled images (random internet images)
  • 3. Deep Learning ยง Biology Aspect ยง Each neuron is fired due to a certain edge direction ยง New Wiring Experiment ยง Brain port ยง Automate what we see as a faceโ€ฆ.
  • 4. Self-taught learning Sparse coding, LCC, etc. f1, f2, โ€ฆ, fk Car Motorcycle Use learned f1, f2, โ€ฆ, fk to represent training/test sets. Using f1, f2, โ€ฆ, fk a1, a2, โ€ฆ, ak If have labeled training set is small, can give huge performance boost.
  • 6. Why feature hierarchies pixels edges object parts (combination of edges) Convolution batches !
  • 7. Deep learning algorithms ยง Stack sparse coding algorithm ยง Deep Belief Network (DBN) (Hinton) ยง Deep sparse autoencoders (Bengio) ยง Deep Convolution Neural Networks ยง Residual Networks ยง Seams Networks ยง Self Learning Netowrks [Other related work: LeCun, Lee,Yuille, Ng โ€ฆ]
  • 9. Deep learning with autoencoders ยง Logistic regression ยง Neural network ยง Sparse autoencoder ยง Deep autoencoder
  • 10. Logistic regression has a learned parameter vector q. On input x, it outputs: where Logistic regression x1 x2 x3 +1 Draw a logistic regression unit as:
  • 11. Neural Network String a lot of logistic units together. Example 3 layer network: x1 x2 x3 +1 +1 a3 a2 a1 Layer 1 Layer 2 Layer 3
  • 12. Neural Network x1 x2 x3 +1 +1 Layer 1 Layer 2 Layer 4+1 Layer 3 Exampleโ€ 4 layer network with 2 output units:
  • 13. Training a neural network Given training set (x1, y1), (x2, y2), (x3, y3 ), โ€ฆ. Adjust parameters q (for every node) to make: (Use gradient descent.โ€œBackpropagationโ€ algorithm. Susceptible to local optima.)
  • 14. Unsupervised feature learning x4 x5 x6 +1 Layer 1 Layer 2 x1 x2 x3 x4 x5 x6 x1 x2 x3 +1 Layer 3 Network is trained to output the input (learn identify function). Minimizing both information of data and output Trivial solution unless: - Constrain number of units in Layer 2 (learn compressed representation), or - Constrain Layer 2 to be sparse. a1 a2 a3
  • 15. Training a sparse autoencoder. Given unlabeled training set x1, x2, Unsupervised feature learning with ANN Reconstruction error term ๐‘Š" ๐‘ŠX a1 a2 a3
  • 16. Unsupervised feature learning with ANN x4 x5 x6 +1 Layer 1 Layer 2 x1 x2 x3 x4 x5 x6 x1 x2 x3 +1 Layer 3
  • 17. Unsupervised feature learning with ANN New representation for input. x4 x5 x6 +1 Layer 1 Layer 2 x1 x2 x3 +1
  • 18. Unsupervised feature learning with ANN x4 x5 x6 +1 Layer 1 Layer 2 x1 x2 x3 +1 +1 b1 b2 b3 Train parameters so that , subject to biโ€™s being sparse.
  • 19. Greedy Learning Regularization using back propagation of the complete system after greedy + 5% increase in performance x4 x5 x6 +1 Layer 1 Layer 2 x1 x2 x3 +1+1 b1 b2 b3 x4 x5 x6 +1 Layer 1 Layer 2 x1 x2 x3 +1
  • 21. First stage of visual processing in brain:V1 Schematic of simple cell Actual simple cell โ€œGabor functions.โ€ The first stage of visual processing in the brain (V1) does โ€œedge detection.โ€
  • 22. Learning an image representation Sparse coding (Olshausen & Field,1996) Input: Images x(1), x(2), โ€ฆ, x(m) (each in Rn x n) Learn: Dictionary of bases f1, f2, โ€ฆ, fk (also Rn x n), so that each input x can be approximately decomposed as: s.t. ajโ€™s are mostly zero (โ€œsparseโ€) Use to represent 14x14 image patch succinctly, as [a7=0.8, a36=0.3, a41 = 0.5]. I.e., this indicates which โ€œbasic edgesโ€ make up the image.
  • 23. Sparse coding illustration Natural Images Learned bases (f1 , โ€ฆ, f64): โ€œEdgesโ€ 50 100 150 200 250 300 350 400 450 500 50 100 150 200 250 300 350 400 450 500 50 100 150 200 250 300 350 400 450 500 50 100 150 200 250 300 350 400 450 500 50 100 150 200 250 300 350 400 450 500 50 100 150 200 250 300 350 400 450 500 ยป 0.8 * + 0.3 * + 0.5 * x ยป 0.8 * f36 + 0.3 * f42 + 0.5 * f63 [0, 0, โ€ฆ, 0, 0.8, 0, โ€ฆ, 0, 0.3, 0, โ€ฆ, 0, 0.5, โ€ฆ] Test example
  • 24. Represent as: [0, 0, โ€ฆ, 0, 0.6, 0, โ€ฆ, 0, 0.8, 0, โ€ฆ, 0, 0.4, โ€ฆ] Represent as: [0, 0, โ€ฆ, 0, 1.3, 0, โ€ฆ, 0, 0.9, 0, โ€ฆ, 0, 0.3, โ€ฆ] More examples ยป 0.6 * + 0.8 * + 0.4 * f15 f28 f37 ยป 1.3 * + 0.9 * + 0.3 * f5 f18 f29 โ€ข Method hypothesizes that edge-like patches are the most โ€œbasicโ€ elements of a scene, and represents an image in terms of the edges that appear in it. โ€ข Use to obtain a more compact, higher-level representation of the scene than pixels.
  • 25. Sparse Learning ยง Input: Images x(1), x(2), โ€ฆ, x(m) (each in Rn x n) Reconstruction error term ๐‘Š" ๐‘ŠX Regularization objective : โ€ข Small? โ€ข Too much energy to be fired โ€ข Different neurons โ€ข L1 norm โ€ข ฮžฮž |W X|
  • 29.
  • 32.