Lecture 1
Lecture 1
Lecture 1
Engr. Hira Khalid
Artificial Intelligence
Image Classification
Document Categorization
2
Artificial Intelligence is Changing the
World
“Machine learning is the hot new thing”
(John Hennessy, President, Stanford)
• Applications.
What is Artificial Intelligence?
Examples of important artificial intelligence
paradigms.
Supervised Classification
Goal: use emails seen so far to produce good prediction rule for
future data.
Supervised Classification. Example: Spam Detection
Represent each message by features. (e.g., keywords, spelling,
etc.)
exampl labe
e l
Reasonable RULES:
+ + -
Predict SPAM if unknown AND (money OR pills) + -
+
Predict SPAM if 2money + 3pills –5 known > 0
-
-- -
Linearly separable
Supervised Classification. Example: Image classification
•Handwritten digit
recognition (convert hand-
written digits to characters 0..9)
• Medicine:
– diagnose a disease
• input: from symptoms, lab measurements, test results, DNA tests,
…
• output: one of set of possible diseases, or “none of the above”
• examples: audiology, thyroid cancer, diabetes, …
– or: response to chemo drug X
– or: will patient be re-admitted soon?
• Computational Economics:
– predict if a stock will rise or fall
– predict if a user will click on an ad or not
• in order to decide which ad to show
Regression. Predicting a numeric value
Stock market
Weather prediction
Temperature
72° F
Dimensionality Reduction