2. WHAT IS A PATTERN?
2
A pattern is a regularity in the world,
man-made design, or abstract ideas.
Muhammad Haroon (Lecturer, UOG LHR)
3. WHAT IS PATTERN RECOGNITION?
Pattern Recognition is the process of
distinguishing and segmenting data according to
set criteria or by common elements, which is
performed by special algorithms.
3
Muhammad Haroon (Lecturer, UOG LHR)
4. TYPE OF PATTERNS
1. Crystal Pattern (Atomic/Molecular)
4
Muhammad Haroon (Lecturer, UOG LHR)
5. 2. Pattern of Constellation (2D)
5
Muhammad Haroon (Lecturer, UOG LHR)
8. Factors Plays role in Face
Recognition
i. Distance between both eyes
ii. Distance between forehead to chin
iii. Moustache / Beard
iv. Eye Retina Color and Size
v. Facial Expressions
vi. Width of Lips
… many other
factors
8
Muhammad Haroon (Lecturer, UOG LHR)
13. How does Pattern Recognition work?
1. Data is gathered from its sources.
2. Data is cleaned up from noise.
3. Information is examined for relevant features or
common elements
4. These elements are subsequently grouped in specific
segments;
5. The segments are analyzed for insights into data sets;
6. The extracted insights are implemented into the
business operation.
13
Muhammad Haroon (Lecturer, UOG LHR)
15. GRID BY GRID COMPARISON
B
A
AGrid by Grid
Comparison
15
Muhammad Haroon (Lecturer, UOG LHR)
16. GRID BY GRID COMPARISON
B
A
A No of
Mismatch= 3
0 1 1 0
0 0 1
0
0
1
1
1
1
0
0
0
0
0
1
1
1
1 1 1 1
1 1 0 16
1 0 0 1
1 0 0
0
0
1
1
1
Muhammad Haroon (Lecturer, UOG LHR)
17. GRID BY GRID COMPARISON
B
A
A Grid by Grid
Comparison
17
Muhammad Haroon (Lecturer, UOG LHR)
18. GRID BY GRID COMPARISON
B
A
A No of
Mismatch= 9
0 0 1 1 1 1
0
0
0
1
1
1
1 0 1
1 1 1
1 0 0 1 0 1
18
1 0 0 1 1 1
0
0
0
1
0
0
0
1
1
1
Muhammad Haroon (Lecturer, UOG LHR)
19. CLASSIFICATION VS. CLUSTERING
Classification (known categories)
Clustering (creation of new categories)
Classification
(Supervised Classification)
Clustering
(Unsupervised Classification) 19
Category “A”
Category “B”
Muhammad Haroon (Lecturer, UOG LHR)
20. CASE STUDY
Fish Classification:
Salmon
Sea Bass / Salmon.
Problem: Sorting incoming fish
on a conveyor belt according to
species.
Assume that we have only two kinds of fish:
Sea bass.
Salmon.
20
Sea-bass
Muhammad Haroon (Lecturer, UOG LHR)
21. CASE STUDY (CONT.)
What can cause problems during sensing?
Lighting conditions.
Position of fish on the conveyor belt.
Camera noise.
etc…
What are the steps in the process?
1. Capture image.
2. Isolate fish
3. Take measurements
4. Make decision
21
Muhammad Haroon (Lecturer, UOG LHR)
23. CASE STUDY (CONT.)
Pre-Processing:
Image enhancement
Separating touching or occluding fish.
Finding the boundary of the fish.
23
Muhammad Haroon (Lecturer, UOG LHR)
24. HOW TO SEPARATE
SEA BASS FROM SALMON?
Possible features to be used:
Length
Lightness
Width
Number and shape of fins
Position of the mouth
Etc …
24
Muhammad Haroon (Lecturer, UOG LHR)
25. HOW TO SEPARATE
SEA BASS FROM SALMON?
To improve recognition, we might have to use
more than one feature at a time.
Single features might not yield the best performance.
Combinations of features might yield better performance.
x1 : lightness
x2 : width
25
Muhammad Haroon (Lecturer, UOG LHR)