Lecture 21: Machine Learning Overview AP Computer Science Principles

Slides:



Advertisements
Similar presentations
Introduction to Machine Learning BITS C464/BITS F464
Advertisements

Godfather to the Singularity
Data Visualization STAT 890, STAT 442, CM 462
ETHEM ALPAYDIN © The MIT Press, Lecture Slides for.
The Unreasonable Effectiveness of Data Alon Halevy, Peter Norvig, and Fernando Pereira Kristine Monteith May 1, 2009 CS 652.
CIS 678 Artificial Intelligence problems deduction, reasoning knowledge representation planning learning natural language processing motion and manipulation.
Machine Learning Bob Durrant School of Computer Science
INTRODUCTION TO Machine Learning ETHEM ALPAYDIN © The MIT Press, Lecture Slides for.
INTRODUCTION TO Machine Learning 3rd Edition
Introduction to machine learning
CS Machine Learning. What is Machine Learning? Adapt to / learn from data  To optimize a performance function Can be used to:  Extract knowledge.
Machine Learning An Introduction. What is Learning?  Herbert Simon: “Learning is any process by which a system improves performance from experience.”
Machine Learning Lecture 1. Course Information Text book “Introduction to Machine Learning” by Ethem Alpaydin, MIT Press. Reference book “Data Mining.
Lecture 10: 8/6/1435 Machine Learning Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
Course Overview  What is AI?  What are the Major Challenges?  What are the Main Techniques?  Where are we failing, and why?  Step back and look at.
Yazd University, Electrical and Computer Engineering Department Course Title: Advanced Software Engineering By: Mohammad Ali Zare Chahooki 1 Introduction.
WEEK INTRODUCTION IT440 ARTIFICIAL INTELLIGENCE.
Course Overview  What is AI?  What are the Major Challenges?  What are the Main Techniques?  Where are we failing, and why?  Step back and look at.
Spring, 2005 CSE391 – Lecture 1 1 Introduction to Artificial Intelligence Martha Palmer CSE391 Spring, 2005.
Object Recognizing. Deep Learning Success in 2012 DeepNet and speech processing.
Introduction to Classification & Clustering Villanova University Machine Learning Lab Module 4.
Network Management Lecture 13. MACHINE LEARNING TECHNIQUES 2 Dr. Atiq Ahmed Université de Balouchistan.
Machine learning & object recognition Cordelia Schmid Jakob Verbeek.
S.Bengio, O.Vinyals, N.Jaitly, N.Shazeer
Brief Intro to Machine Learning CS539
Teck Chia Partner, Exponent.vc
Speech Recognition
Machine Learning, Bio-informatics and Weka
Machine Learning for Computer Security
Introduction to Classification & Clustering
CS 4501: Introduction to Computer Vision Computer Vision + Natural Language Connelly Barnes Some slides from Fei-Fei Li / Andrej Karpathy / Justin Johnson.
Artificial Intelligence, P.II
The Relationship between Deep Learning and Brain Function
Machine Learning overview Chapter 18, 21
Deep Learning Amin Sobhani.
Machine Learning overview Chapter 18, 21
Eick: Introduction Machine Learning
Intro to Machine Learning
Deep Learning Insights and Open-ended Questions
I Know it’s an Idiot But it’s MY artificial idiot!
Done Done Course Overview What is AI? What are the Major Challenges?
CH. 1: Introduction 1.1 What is Machine Learning Example:
Intelligent Information System Lab
Machine Learning Ali Ghodsi Department of Statistics
Deep learning and applications to Natural language processing
Artificial Intelligence in Healthcare
AV Autonomous Vehicles.
ARTIFICIAL INTELLIGENCE.
What is Pattern Recognition?
Basic Intro Tutorial on Machine Learning and Data Mining
Image Captions With Deep Learning Yulia Kogan & Ron Shiff
Lecturer: Geoff Hulten TAs: Kousuke Ariga & Angli Liu
Overview of Machine Learning
Lecture 6: Introduction to Machine Learning
MACHINE LEARNING TECHNIQUES IN IMAGE PROCESSING
MACHINE LEARNING TECHNIQUES IN IMAGE PROCESSING
Presentation By: Eryk Helenowski PURE Mentor: Vincent Bindschaedler
Introduction to Artificial Intelligence
Evaluating Classifiers
Deep Learning Authors: Yann LeCun, Yoshua Bengio, Geoffrey Hinton
Introduction to Artificial Intelligence
Introduction to Artificial Intelligence
Automatic Handwriting Generation
Machine Learning overview Chapter 18, 21
Machine learning CS 229 / stats 229
Sign Language Recognition With Unsupervised Feature Learning
Huawei CBG AI Challenges
AI Application Session 12
Lecture 9: Machine Learning Overview AP Computer Science Principles
COGNITIVE SERVICES MACHINE LEARNING FOR DEVELOPERS
Presentation transcript:

Lecture 21: Machine Learning Overview AP Computer Science Principles

Machine Learning Machine learning(statistical learning, artificial intelligence) is a large set of tools and algorithms that are used to process and understand data. Two types of machine learning: supervised learning: algorithms that learn patterns/structures from labeled data(training examples) and then make predictions on new data. (e.g. neural network, linear/logistic regression) unsupervised learning: algorithms that learn to find patterns/structures from unlabeled data. reinforcement learning Successful machine learning: not about algorithms. Algorithms have been around since the 80’s and 90’s. data, data, data(labeled data) computing power(GPU) infrastructure(software) https://www.smartgrid.gov/the_smart_grid/smart_grid.html

IMAGENET IMAGENET: database that provides “clean”, labeled images for machine learning algorithms. https://www.smartgrid.gov/the_smart_grid/smart_grid.html

Image Classification Challenge competition that encourages researchers to compare progress on image recognition algorithms. https://www.smartgrid.gov/the_smart_grid/smart_grid.html

Error Rates A major breakthrough occurred in 2012. A group of research scientist submitted a convolutional neural network(CNN) that demolishes the competition. https://www.smartgrid.gov/the_smart_grid/smart_grid.html

Identify these objects Can you beat a computer by correctly identifying these objects? https://www.smartgrid.gov/the_smart_grid/smart_grid.html

Machine Learning Important machine learning problems: autonomous driving natural language processing: language translation sentiment analysis(rate reviews on Amazon) document similarity(search engines) word2vec(Google) GloVe(Stanford) speech recognition(Siri, Alexa, Watson) semantic analysis question/answering(Siri, Alexa) spam detection name-entity extraction Teddy Roosevelt was a US President. Teddy bears are on sale! https://www.smartgrid.gov/the_smart_grid/smart_grid.html

Machine Learning Important machine learning problems: image recognition face detection/recognition(Facebook) image captioning segmentation object detection medical prognosis product recommendation(Amazon, Netflix) credit card fraud detection https://www.smartgrid.gov/the_smart_grid/smart_grid.html

Identify the task Identify the following computer task Answer: handwriting generation https://www.smartgrid.gov/the_smart_grid/smart_grid.html

Identify the task Identify the following computer task Answer: (natural language processing: sentence completion) https://www.smartgrid.gov/the_smart_grid/smart_grid.html

Identify the task(Generating Shakespeare) Notice the model learns the character/dialogue format of Shakespeare. Andrej Karpathy of Stanford trained the neural network for several hours. (Recurrent Neural Network) https://www.smartgrid.gov/the_smart_grid/smart_grid.html

RNN Generating Shakespeare This can be done using: 1) N-grams:(easy) 2) RNN(recurrent neural network): much harder math This text is generated one letter at a time by an RNN. https://www.smartgrid.gov/the_smart_grid/smart_grid.html

RNN Generating Wikipedia A recurrent neural network was fed the entire Wikipedia corpus. It generates sample text mimicking its language. Amazingly, similar to the previous example with Shakespeare, it does this one letter at a time!! https://www.smartgrid.gov/the_smart_grid/smart_grid.html

Identify the Task Objects detection. https://www.smartgrid.gov/the_smart_grid/smart_grid.html

Amazing! https://www.smartgrid.gov/the_smart_grid/smart_grid.html

Another one https://www.smartgrid.gov/the_smart_grid/smart_grid.html

Identify the Task image captioning. https://www.smartgrid.gov/the_smart_grid/smart_grid.html

Image Captioning Image captioning: objects recognition + natural language generation https://www.smartgrid.gov/the_smart_grid/smart_grid.html

Image Captioning https://www.smartgrid.gov/the_smart_grid/smart_grid.html

Image Captioning It doesn’t always get it right! Uses some probability. https://www.smartgrid.gov/the_smart_grid/smart_grid.html

Image Captioning It doesn’t always get it right! Uses some probability. https://www.smartgrid.gov/the_smart_grid/smart_grid.html

How does image captioning work? 1) Detect objects. 2) Recognize and generate corresponding words. 3) Generate sentences and assign probabilities based on how likely that this is an English sentence based on: grammar syntax semantic meaning 4) Highest probability wins. https://www.smartgrid.gov/the_smart_grid/smart_grid.html

Image Question Answering https://www.smartgrid.gov/the_smart_grid/smart_grid.html

Have we solved the image recognition problem? We have a long way to go. Computers currently only “understand” images superficially. true understanding: prior knowledge social contexts, cues natural language comprehension depth perception, object permanence, periphery vision(challenges of autonomous driving) Consider the image on the next slide. Humans will immediately appreciate the humor. Computers won’t for a while. https://www.smartgrid.gov/the_smart_grid/smart_grid.html

Can computers “understand” this picture? https://www.smartgrid.gov/the_smart_grid/smart_grid.html

More Challenges Moravec’s Paradox: easy problems are “hard”. walking, motion planning, opening a door knob, getting out of a car. https://youtu.be/1L0TKZQcUtA?t=4289 computers can learn to play a video game by only looking at pixels on the screen. very hard for robots to do basic tasks playing soccer is really hard! “Hard” problems are easy: playing Chess, Go. Google uses “deep learning”, neural network to create a program that can play at the superhuman level Chess, Go and Shogi. (AlphaZero, 2017) https://www.smartgrid.gov/the_smart_grid/smart_grid.html

Homework 1)Read and reread these lecture notes. 2)Watch(Required): a) Machine Learning(PBS Studios Crash Course in CS) https://www.youtube.com/watch?v=z-EtmaFJieY b) Natural Language Processing(PBS Studios Crash Course in CS) https://www.youtube.com/watch?v=fOvTtapxa9c

References Justin Johnson, Andrej Karpathy. CS231N. Convolutional Neural Network for Visual Recognition. http://cs231n.stanford.edu/ Lex Fridman, Introduction to Deep Learning and Self-Driving Cars. https://www.youtube.com/watch?v=1L0TKZQcUtA