Upload
data-science-thailand
View
549
Download
2
Embed Size (px)
Citation preview
MACHINE LEARNING I N
IMAGE PROCESSING
PA R I N YA S A N G U A N S AT
Asst. Parinya Sanguansat, Ph.D.Computer Engineering,Panyapiwat Institute of Management
MACHINE LEARNING (WITH MATLAB)
CONTENTS
• Introduction
• Feature Extraction
• Machine Learning approaches
– Image to image
– Image to non-image
• Applications
– Face Recognition
– Face Hallucination
– Object Detection
– Augmented Reality
• Tools
INTRODUCTION
• Classification
• Regression
MachineDataClassLabel
MachineData Data
Discrete
Continues
CLASSIFICATION VS
REGRESSION
Classification Regression
INTRODUCTION
• Supervised Learning
• Unsupervised Learning
MachineTraining Data
learning Training Target
learningTest Data classify Test Target
MachineTraining Data
learningTest Data cluster DataCluster
SUPERVISED VS
UNSUPERVISED
Supervised Unsupervised
FEATURE EXTRACTION• Normal data
• Image data
A1 A2 A3 A4 A5 A6
O1 1 2 1 1 2 3
O2 1 4 2 5 3 1
O3 2 1 5 2 1 3
O4 3 2 4 5 2 4
O1O2
O3
VECTORIZATION
O1O2
O3
O1 O2 O3
PROBLEMS:
• High-Dimensional feature vector
• Very large memory
• Very long processing time
• Singularity problem
• Small Sample Size problem
SCALE INVARIANT FEATURE TRANSFORM (SIFT)
• To detect and describe local features in an images, wildly used in image search,
object recognition, video tracking, gesture recognition, etc.
• Speeded Up Robust Features (SURF)
EIGENVECTOR
https://en.wikipedia.org/wiki/Eigenvalues_and_eigenvectors
𝐴𝑣 = 𝜆𝑣
BAG OF (VISUAL) WORDS
OTHER FEATURE EXTRACTIONS
• Color
• Texture
• Shape
• Statistic
ALIGNMENT
http://www.csc.kth.se/~vahidk/face_ert.html
CLASSIFIERS
• K-NN
• Neural network
• SVM
• CNN
MACHINE LEARNING
APPROACHES
IMAGE TO NON-IMAGE
Machine LearningImage Information
Object detection and tracking
Image recognition and classification
IMAGE TO IMAGE
Machine LearningImage Image
Image retrieval
Image enhancement
Extrapolated art (http://extrapolated-art.com/)
NEURAL ARTIST STYLE
https://medium.com/@genekogan/machine-learning-for-artists-e93d20fdb097#.kf92ef5u8
http://www.kdnuggets.com/2015/09/deep-learning-art-style.html
APPLICATIONS
FACE RECOGNITION
PreprocessingFace imageFeature
ExtractionClassifier Label
PCA
Crop &Resize
m
n
Vectorize
mn
M
M
1
1( )( )
MT
k k
kM
CCovariance matrix
Dimension = mn x mn
( ), 1,2,3, ,T
i i dy = x max( )d MPC
Scalar
2DPCA
Crop &Resize
m
n
VectorizeM
1
1( ) ( )
MT
k k
kM
G A A A AImage covariance matrix
Dimension = n x n
, 1,2,3, ,i i i dY = Ax max( )d nPCV
Vector
IMAGE COVARIANCE MATRIX
• Optimization Problem: Maximize the trace of covariance matrix (Sx)
( ) { [( )( ) ]}T
xtr tr E E E S Y Y Y Y
( ) { [( )( ) ]}
{ [( ) ( ) ]}
{ [ ( ) ( ) ]}
{ [( ) ( )] }
{ }
T
x
T T
T T
T T
T
tr tr E E E
tr E E E
tr E E E
tr E E E
tr
S Y Y Y Y
A A XX A A
X A A A A X
X A A A A X
X GX
Y = AX
( ) ( )tr XY tr YX
1
1( ) ( )
MT
k k
kM
G A A A A
FACE HALLUCINATION
Hallucinating
INPUT
OUTPUT
INPUT
Baseline BaselineProposed Proposed
CCTV SAMPLES
• Asian on Asian database
• European on Asian database
OBJECT DETECTION
• Viola Jones method
Positive samples
Negative samples
Cascade Classifier(Adaboost)
AUGMENTED REALITY
matchFeatures
estimateGeometricTransform + imwarp
detectSURFFeatures
Create Marker
TOOLS
ALTERNATIVE TO MATLAB
• Opensource Mostly compatible
Different Syntax
PythonBrowser-based
OCRhttps://code.google.com/p/tesseract-ocr/downloads/list