Introduction To Pattern Recognition: Instructor: Amany Al Luhaybi
Introduction To Pattern Recognition: Instructor: Amany Al Luhaybi
Lecture 1
Introduction to Pattern Recognition
Most of the material in these slides was taken from the figures in 1
Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John Wiley & Sons, 2001
COURSE DESCRIPTION
The aim of this course is to study pattern recognition and
machine learning techniques. Topics include modern statistical
methodologies (Bayesian Decision Theory, Probability
Theory), clustering (K-Means, Fuzzy Clustering), classifiers
(Support Vector Machines, Decision Trees, Nearest Neighbour
Classification), Parameter Estimation, Graphical Models
(Markov Random Field), and Sequential Pattern Recognition.
2
MARKS DISTRIBUTION
Assessment Task Mark
Lab 25
Midterm Exam 25
Assignment 10
Final Exam 40
Total 100
3
What is pattern recognition?
5
Handwriting Recognition
6
License Plate Recognition
7
Biometric Recognition
8
Autonomous Systems
9
Medical Applications
Skin Cancer Detection Breast Cancer Detection
10
“Trending” Applications
16
Feature Extraction - Length
Histogram of “length”
threshold l*
• Even though sea bass is longer than salmon on
the average, there are many examples of fish
where this observation does not hold.
• وهناك العديد من،على الرغم من أن باس البحر أطول من سمك السلمون في المتوسط
األمثلة على األسماك حيث ال تعقد هذه المالحظة.
17
Feature Extraction - Lightness
• Consider different features, e.g., “lightness”
• "خفة، على سبيل المثال،"النظر في ميزات مختلفة
Histogram of “lightness”
x1 x1 : lightness
x x2 : width
2
19
Threshold decision boundary
and cost relationship
حد قرار العتبة
وـالعالـقة بين التكلفة
!مسألة التعميم
Issue of generalization!
Generalization
• Generalization is defined as the ability of a classifier to produce correct results on
novel patterns.
• يتم تعريف التعميم على أنه قدرة المصنف على إنتاج نتائج صحيحة على األنماط الجديدة.
• How can we improve generalization performance ?
• كيف يمكننا تحسين أداء التعميم؟
– More training examples (i.e., better model estimates).مزيد منا ألمثلة ا لتدريبية (أيت قديراتأفضل
)ل لنموذج.
– Simpler models usually yield better performance.ن ماذج أبسط عادة ما ت سفر عنأداء أفضل.
24
Pattern Recognition Stages
ألنماطAAرفعلىاAلتعAAحلاAمرا
• Sensingا الستشع ار
– Use of a sensor (camera or microphone)
– )استخدام جهاز استشعار (كاميرا أو ميكروفون
– PR system depends on the bandwidth, the resolution, sensitivity,
distortion of the sensor
– تشويه أجهزة، والحساسية، والقرار،نظام العالقات العامة يعتمد على عرض النطاق الترددي
االستشعار
• Preprocessingت جهيزها
Segmentation and grouping - patterns should be well separated and not
overlap, Noise removal, Image enhancement, Extract boundary of each fish
وتعزي ز، وإزال ة الضوضاء، أنماط ينبغ ي أ ن تكون منفص لة بشك ل جي د ولي س تداخ ل- تجزئ ة وتجمي ع
واستخراج الحدود من كل سمكة،الصورة
Pattern Recognition Stages (cont)
Feature extraction
• استخراج ميزة
– Discriminative featuresميزاتت مييزية
– Invariant features with respect to translation, rotation, and scale
– ميزات ثابتة فيما يتعلق بالترجمة والتناوب والحجم
• Classificationت صنيف
– Use the feature vector provided by a feature extractor to assign the object to a
category
– استخدام متجه الميزة التي يوفرها مستخرج ميزة لتعيين الكائن إلى فئة
• Post Processing
– Exploit context-dependent information to improve performance
– معالجة ما بعد
27
Improve Classification Performance
through Post-processing
Training Set ?
Test Set ?
31
Choice of Features
• Depends on the characteristics of the
problem domain
• يعتمد على خصائص المجال المشكلة
• Simple to extract, invariant to irrelevant
transformations
• ثابتة إلى التحوالت غير ذات صلة،بسيطة الستخراج
Model Choice
•
Would it be possible to build a
“general purpose” PR system?
• It would be very difficult to design a system that is
capable of performing a variety of classification tasks.
• وسيكون من الصعب جدا تصميم نظام قادر على أداء مجموعة متنوعة
من مهام التصنيف.
– Different problems require different features.
– تتطلب المشاكل المختلفة ميزات مختلفة.
– Different features might yield different solutions.
– قد تسفر الميزات المختلفة عن حلول مختلفة.
– Different tradeoffs exist for different problems.
– توجد مفاضالت مختلفة لمشاكل مختلفة.
37