Introduction To AI and ML
Introduction To AI and ML
Introduction To AI and ML
Artificial Intelligence
What is Intelligence?
Intelligence:
Intelligent
behavior
Computer
Humans
Recognizing
Other tasks that people do without
a Face,
thinking are extremely difficult to
voice,
automate
language
The Origins of AI
• Birth of AI occurred when Marvin Minsky & John McCarthy
organized the Dartmouth Conference in 1956
Minsky (MIT), McCarthy (MIT/Stanford), Newell & Simon (Carnegie),…
6
Origins of AI: Turing Test
Output
Input
Correct Responses
Chinese Writing
is given to the
person
9
What would a computer need to pass Turing Test?
Knowledge
Search Logic Representation
Machine
Learning Planning
Expert
NLP Vision Robotics Systems
AI – State of the Art
12
Computer as Artist
13
AI in different domains
Search engines
Science
Medicine/
Diagnosis
Labor
What else?
Appliances
Autonomous robots
Military robots
Personalization, recommendation
AI Applications
Gaming
AI Applications
• Transportation:
– Autonomous vehicle detection
– Pedetrian detection
Artificial Intelligence in the Movies
Introduction to
Machine Learning
What is machine learning?
Traditional Programming
Data
Computer Output
Program
Machine Learning
Data
Computer Program
Output
Types of Learning
• Supervised learning
– Teacher present
– Training data includes desired outputs
• Unsupervised learning
– No Teacher Present
– Training data does not include desired outputs
• Reinforcement learning
– Teacher present but do not teach ! – only reward or punishment
– Trial and Error. – with - Rewards from sequence of actions
– (e.g. Robot playing TT)
Supervised Learning
Unsupervised Learning
ML in a Nutshell
– Decision trees
– Graphical models (Bayes/Markov nets)
– Neural networks
– Support vector machines
– Model ensembles
– Etc.
Evaluation
• Tuning Parameters
– Combinatorial optimization
• E.g.: Greedy search
– Convex optimization
• E.g.: Gradient descent
– Constrained optimization
• E.g.: Linear programming
– Machine learning !
• E.g.: Genetic algorithms, Particle swarm opimizations
7 Steps of Machine Learning
• Gathering data
• Preparing that data
• Choosing Model
• Training
• Evaluation
• Hyperparameter Tuning
• Prediction
Few Engineering Problems
and Applications
Categories of Engineering Problems
• Character Recognition
• Biometric (Fingerprint/Face/Expression) Recognition
– Person Identification
• Fault detection in electric circuits
• Speech Recognition
• Medical diagnosis
• Image classification
• …
Few Popular Classification Techniques
Decision Tree
Bayesian Classification
Rule-Based Classification
Associative Classification
Artificial Neural Networks
Support Vector Machine
K-Nearest Neighborhood
Case-based Reasoning
Examples of Optimization Problems
• Optimization is a search procedure for finding best solution
• …
Examples of Control Problems
• A popular ML technique:
– Fuzzy logic and its hybridizations
Applications
Handwritten Character Recognition
Important Components
Feature
Preprocessing Classification
Extraction
Binarization - Correlation - ANN
Segmentation - SVM
- Chain Code
Scaling -PCA
Training Training
Labels
Training
Images
Image Classifier Trained
Features Training Classifier
Testing
Input Video
Output
Actions
Methods Available
Blob Extraction:
Frame differencing
Mixture of Gaussians [1]
Statistical Method [2]
Optical Flow
Fuzzy Approach for Background Subtraction
…
Feature Extraction :
Shape Context
Watershed transformation
Histogram of gradients
Action Bank
…
Frames 50, 84: Original Frame, Result of MOG[1], Result of
Statistical Method[2]
Feature Extraction (Shape Context)
– A shape is represented as
a sequence of boundary
points:
Feature Extraction (Shape Context)
Walking 0 18 82 0 0
Pushing-
5 0 1 93 1
up
Stretching
5 11 0 0 84
out
Implementation Results (Continued)
Walking 0 0 4 0 0
Pushing-
0 0 0 4 0
up
Stretching
0 0 0 0 4
out
Implementation Results (Continued)
Walking 0 6 86 0 8
Pushing-
0 24 2 57 17
up
Stretching
2 13 3 0 82
out
Implementation Results (Continued)
Walking 0 0 2 0 2
Pushing-
0 0 0 3 1
up
Stretching
0 0 1 0 3
out
Comparison of Results
Case Accuracy
• Using SVM
Case Accuracy
4) SVM 16 14 15 58 71.84%
Application: Approximate Modeling of One port Microstrip Via
0.0 0.0
-0.5 -0.5
S-Parameter Magnitude
Accuracy of modeling
-1.0 -1.0
Models MSE ARE
-1.5 -1.5
Feed Forward
Neural 0.0345 0.290
Network
-2.0 -2.0
SVR 5.836e-3 0.05164
IE3D Experiment
-2.5 SVR Prediction -2.5
ANN Prediction
-3.0 -3.0
0 20 40 60 80
Experiments
Plot of Actual values vs. predicted values
ML in Different Fields of Engineering
• Mechanical:
– Artificial Neural Networks (ANNs): A New Paradigm for Thermal Science and Engineering, J. Heat Transfer 130(9),
093001 (Jul 09, 2008) – ASME
• Food Processing:
– Classification of Fruits Using Computer Vision and a Multiclass Support Vector Machine, Sensors 2012, 12, 12489-12505
– Food quality identifications, fruit classification
• Electrical:
– Neural networks in electrical power industries (Fault Diagnosis, Load forecasting)
• Civil:
– ANN: Tidal level forecasting
– GA/PSO: Design of structural elements (towers, bridges, etc)
• Textile engineering:
– Fabric Defect identification
• Automobile:
– Fuzzy cruise controller
Questions and Answers …
Thank You …