Handwritten Digit Recognition
Handwritten Digit Recognition
Classification techniques
for
Hand-Written Digit Recognition
16
• Training set ~ 1000 images 10
• Test set 12
16
2 4 6 8 10 12 14 16
Basic idea
– Correctly identify the digit given an image 16
12
16
2 4 6 8 10 12 14 16
10 10 10 AVERAGE
10 DIGIT 10
EIGEN DIGITS
The ith PC of an image X is
yi=ei’X 5 5 5 5 5
10 10 10 10 10
15 15 15 15 15
Image Reconstruction:
• The original image can be reconstructed by projecting
the PCs back to old axes.
• Using the most significant PC will give a
reconstructed image that is close to original image.
• These features can be used for carrying out further
investigations e.g. Classification!!
0 0 0
-1 -1 -1
-4 -2 0 2 4 -4 -2 0 2 4 -4 -2 0 2 4
Standard Normal Quantiles Standard Normal Quantiles Standard Normal Quantiles
QQ Plot of Sample Data versus Standard Normal QQ Plot of Sample Data versus Standard Normal QQ Plot of Sample Data versus Standard Normal
Principle Component No 10 Principle Component No 20 Principle Component No 30
1 1.5 1.5
Quantiles of Input Sample
0 0 0
-0.5 -0.5
-0.5
-1 -1
-1 -1.5 -1.5
-4 -2 0 2 4 -4 -2 0 2 4 -4 -2 0 2 4
Standard Normal Quantiles Standard Normal Quantiles Standard Normal Quantiles
QQ Plot of Sample Data versus Standard Normal QQ Plot of Sample Data versus Standard Normal QQ Plot of Sample Data versus Standard Normal
Principle Component No 40 Principle Component No 50 Principle Component No 60
2 3 5
Quantiles of Input Sample
1
0
0 0
-1
-1
-2 -2
-3 -3 -5
-4 -2 0 2 4 -4 -2 0 2 4 -4 -2 0 2 4
Standard Normal Quantiles Standard Normal Quantiles Standard Normal Quantiles
APER
r=2 discriminants
APER
No of PCs 256 150 64
AER APER % 32 34.5 37.4
No of PCs 256 150 64
AER % 45 42 40
Both AER and APER are very high
r=7 discriminants
r=9(all) discriminants
No assumption about
distribution of data Class 1
Class 2
Euclidean distance to find
nearest neighbour
Class 2 ( 1 vote )
Recognised as
0 1 2 3 4 5 6 7 8 9
0 1376 0 4 2 0 5 12 2 0 0
Actual
1 0 1113 1 0 1 0 2 0 2 0
2 22 9 728 17 4 4 6 16 18 2
3 4 0 4 690 2 26 0 4 6 3
4 3 15 9 0 687 0 7 2 4 32
5 9 3 12 37 5 517 32 0 23 9
6 10 3 5 0 3 2 714 0 3 2
7 0 6 1 0 19 0 0 657 1 20
8 8 11 1 26 7 7 8 5 547 13
9 6 1 2 0 23 0 0 32 0 664
Pixel Space
X + α .Τ
X
Τ
s (X, α) s
Tangent distance
P SP
Euclidean distance
between P and E
Distance between
SP and SE
SE
Rotation
Scaling
Thickness
X Translation
Diag. Deformation
Axis Deformation
Y Translation
E ' E E L E E P ' P P L P P
s ( X , ) s ( X , )
where LX ,......,
1 m 0
E , P
D( E , P )
E
T
2 E ' ( E ) P ' ( P ) L E 0
D( E , P )
P
T
2 P ( P ) E ( E ) L P 0
' '
Solving for αP and αE we can calculate D(E,P) the Tangent Distance between
two patterns E and P.
http://www.robots.ox.ac.uk/~dclaus/