Introduction to Pattern Recognition Part I
Selim Aksoy
Department of Computer Engineering Bilkent University saksoy@cs.bilkent.edu.tr
CS 484, Fall 2019
CS 484, Fall 2019 c 2019, Selim Aksoy (Bilkent University) 1 / 20
Introduction to Pattern Recognition Part I Selim Aksoy Department - - PowerPoint PPT Presentation
Introduction to Pattern Recognition Part I Selim Aksoy Department of Computer Engineering Bilkent University saksoy@cs.bilkent.edu.tr CS 484, Fall 2019 CS 484, Fall 2019 2019, Selim Aksoy (Bilkent University) c 1 / 20 Human Perception
Department of Computer Engineering Bilkent University saksoy@cs.bilkent.edu.tr
CS 484, Fall 2019 c 2019, Selim Aksoy (Bilkent University) 1 / 20
◮ Humans have developed highly sophisticated skills for
◮ We would like to give similar capabilities to machines. ◮ Pattern recognition is the study of how machines can
◮ observe the environment, ◮ learn to distinguish patterns of interest, ◮ make sound and reasonable decisions about the categories
CS 484, Fall 2019 c 2019, Selim Aksoy (Bilkent University) 2 / 20
◮ Problem: Sorting incoming
◮ Assume that we have only
◮ sea bass, ◮ salmon.
CS 484, Fall 2019 c 2019, Selim Aksoy (Bilkent University) 3 / 20
◮ What kind of information can distinguish one species from
◮ length, width, weight, number and shape of fins, tail shape,
◮ What can cause problems during sensing?
◮ lighting conditions, position of fish on the conveyor belt,
◮ What are the steps in the process?
◮ capture image → isolate fish → take measurements → make
CS 484, Fall 2019 c 2019, Selim Aksoy (Bilkent University) 4 / 20
◮ Assume a fisherman told us that a sea bass is generally
◮ We can use length as a feature and decide between sea
◮ How can we choose this threshold?
CS 484, Fall 2019 c 2019, Selim Aksoy (Bilkent University) 5 / 20
CS 484, Fall 2019 c 2019, Selim Aksoy (Bilkent University) 6 / 20
◮ Even though sea bass is longer than salmon on the
◮ Try another feature: average lightness of the fish scales.
CS 484, Fall 2019 c 2019, Selim Aksoy (Bilkent University) 7 / 20
CS 484, Fall 2019 c 2019, Selim Aksoy (Bilkent University) 8 / 20
◮ We should also consider costs of different errors we make
◮ For example, if the fish packing company knows that:
◮ Customers who buy salmon will object vigorously if they see
◮ Customers who buy sea bass will not be unhappy if they
◮ How does this knowledge affect our decision?
CS 484, Fall 2019 c 2019, Selim Aksoy (Bilkent University) 9 / 20
◮ Assume we also observed that sea bass are typically wider
◮ We can use two features in our decision:
◮ lightness: x1 ◮ width: x2
◮ Each fish image is now represented as a point (feature
CS 484, Fall 2019 c 2019, Selim Aksoy (Bilkent University) 10 / 20
CS 484, Fall 2019 c 2019, Selim Aksoy (Bilkent University) 11 / 20
◮ Does adding more features always improve the results?
◮ Avoid unreliable features. ◮ Be careful about correlations with existing features. ◮ Be careful about measurement costs. ◮ Be careful about noise in the measurements.
◮ Is there some curse for working in very high dimensions?
CS 484, Fall 2019 c 2019, Selim Aksoy (Bilkent University) 12 / 20
◮ Can we do better with another decision rule? ◮ More complex models result in more complex boundaries.
CS 484, Fall 2019 c 2019, Selim Aksoy (Bilkent University) 13 / 20
◮ How can we manage the tradeoff between complexity of
CS 484, Fall 2019 c 2019, Selim Aksoy (Bilkent University) 14 / 20
Physical environment Data acquisition/sensing Pre−processing Feature extraction Features Classification Post−processing Decision Model learning/estimation Features Feature extraction/selection Pre−processing Training data Model
CS 484, Fall 2019 c 2019, Selim Aksoy (Bilkent University) 15 / 20
◮ Data collection:
◮ Collecting training and testing data. ◮ How can we know when we have adequately large and
CS 484, Fall 2019 c 2019, Selim Aksoy (Bilkent University) 16 / 20
◮ Feature selection:
◮ Computational cost and feasibility. ◮ Discriminative features. ◮ Similar values for similar patterns. ◮ Different values for different patterns. ◮ Invariant features with respect to translation, rotation and
◮ Robust features with respect to occlusion, distortion,
CS 484, Fall 2019 c 2019, Selim Aksoy (Bilkent University) 17 / 20
◮ Model selection:
◮ Definition of design criteria. ◮ Handling of missing features. ◮ Computational complexity. ◮ How can we know how close we are to the true model
CS 484, Fall 2019 c 2019, Selim Aksoy (Bilkent University) 18 / 20
◮ Training:
◮ How can we learn the rule from data? ◮ Supervised learning: a teacher provides a category label or
◮ Unsupervised learning: the system forms clusters or natural
◮ Reinforcement learning: no desired category is given but the
CS 484, Fall 2019 c 2019, Selim Aksoy (Bilkent University) 19 / 20
◮ Evaluation:
◮ How can we estimate the performance with training
◮ How can we predict the performance with future data? ◮ Problems of overfitting and generalization. CS 484, Fall 2019 c 2019, Selim Aksoy (Bilkent University) 20 / 20