SlideShare a Scribd company logo
1 of 43
Download to read offline
Be the smartest
Virginie Mathivet
R&D Officer
Ryu(r) Algorithm
https://danbooru.donmai.us/posts/948811
http://vsbattles.wikia.com/wiki/File:RyuRender.png
dotAI’18 - Virginie Mathivet – R&D Officer
The accuracy paradox
dotAI’18 - Virginie Mathivet – R&D Officer
The accuracy paradox
dotAI’18 - Virginie Mathivet – R&D Officer
Fault detection
Infrared HQ images Bubble Scratch
Micro defectBorder defect
dotAI’18 - Virginie Mathivet – R&D Officer
First results
• Accuracy: 99.1%!!! (in 2 epochs)
dotAI’18 - Virginie Mathivet – R&D Officer
First results
• Accuracy: 99.1%!!! (in 2 epochs)
Real  Predicted OK (1665) KO (15) Accuracy
OK 1665 0 100%
KO 15 0 0%
Total 1680 0 99.1%
• Confusion matrix:
dotAI’18 - Virginie Mathivet – R&D Officer
The accuracy paradox and imbalanced classes
0
10
20
30
40
50
60
70
80
90
100
Classes
Real 
Pred.
1 2 3 Accuracy
1 90 0 0 100%
2 5 0 0 0%
3 5 0 0 0%
TOTAL 100 0 0 90%
dotAI’18 - Virginie Mathivet – R&D Officer
What to do?
dotAI’18 - Virginie Mathivet – R&D Officer
Data augmentation
…
New dataset:
• 1665 images “OK” (94.9%)
• 90 images “KO” (5.1%)
dotAI’18 - Virginie Mathivet – R&D Officer
Data augmentation
…
New dataset:
• 1665 images “OK” (94.9%)
• 90 images “KO” (5.1%)
Accuracy: 99.15%
dotAI’18 - Virginie Mathivet – R&D Officer
Data augmentation
Real  Predicted OK (1665) KO (90) Accuracy
OK 1665 0 100%
KO 15 75 83.3%
Total 1680 75 99.15%
…
New dataset:
• 1665 images “OK” (94.9%)
• 90 images “KO” (5.1%)
Accuracy: 99.15%
dotAI’18 - Virginie Mathivet – R&D Officer
Data augmentation
Real  Predicted OK (1665) KO (90) Accuracy
OK 1665 0 100%
KO 15 75 83.3%
Total 1680 75 99.15%
…
New dataset:
• 1665 images “OK” (94.9%)
• 90 images “KO” (5.1%)
Accuracy: 99.15%
dotAI’18 - Virginie Mathivet – R&D Officer
The evaluation function definition
dotAI’18 - Virginie Mathivet – R&D Officer
The evaluation function definition
dotAI’18 - Virginie Mathivet – R&D Officer
The choice of the evaluation function
Classification
Real  Predicted 1 0
1 A (true positive) C (false negative)
0 B (false positive) D (true negative)
Accuracy Precision Recall / Sensitivity F1-score
(A+D)/(A+B+C+D) A/(A+B) A/(A+C) 2*precision*recall/(precision+recall)
Specificity Detection rate Youden’s J Index Balanced accuracy
D/(B+D) A/(A+B+C+D) Sensitivity+specificity - 1 (sensitivity+specificity) / 2
dotAI’18 - Virginie Mathivet – R&D Officer
The choice of the evaluation function
Regression
• R-squared (R2)
• Root Mean Squared Error (RMSE)
• Residual Standard Error (RSE) or
Model Sigma
• Mean Absolute Error (MAE)
• Akaike’s Information Criteria (AIC)
• Bayesian Information Criteria (BIC)
• …
dotAI’18 - Virginie Mathivet – R&D Officer
The choice of the evaluation function
0
5
10
15
20
25
0 1 2 3 4 5 6 7 8 9 10
Behavioral task
dotAI’18 - Virginie Mathivet – R&D Officer
Teach a (virtual) spider how to walk
• 1st try: distance made in 10sec
dotAI’18 - Virginie Mathivet – R&D Officer
Teach a (virtual) spider how to walk
• 1st try: distance made in 10sec
https://gymnasticselectronicportfolio13.weebly.com/gymnastics-skills.html
dotAI’18 - Virginie Mathivet – R&D Officer
Teach a (virtual) spider how to walk
• 1st try: distance made in 10sec
https://gymnasticselectronicportfolio13.weebly.com/gymnastics-skills.html
https://viatcheslav.livejournal.com/231564.html
dotAI’18 - Virginie Mathivet – R&D Officer
Teach a (virtual) spider how to walk
• 2nd try: distance made in 10sec without rolling
dotAI’18 - Virginie Mathivet – R&D Officer
Teach a (virtual) spider how to walk
• 2nd try: distance made in 10sec without rolling
https://blog.myagilepartner.fr/wp-content/uploads/2017/08/scared_bug.jpg
dotAI’18 - Virginie Mathivet – R&D Officer
Teach a (virtual) spider how to walk
• 2nd try: distance made in 10sec without rolling
https://www.memecenter.com/fun/1717889/flying-spiderhttps://blog.myagilepartner.fr/wp-content/uploads/2017/08/scared_bug.jpg
dotAI’18 - Virginie Mathivet – R&D Officer
Teach a (virtual) spider how to walk
• 3rd try: idem but after the bug correction
dotAI’18 - Virginie Mathivet – R&D Officer
Teach a (virtual) spider how to walk
• 3rd try: idem but after the bug correction
https://www.nemusloren.it/2013/11/30/come-se-fosse-possibile/
dotAI’18 - Virginie Mathivet – R&D Officer
Teach a (virtual) spider how to walk
• 3rd try: idem but after the bug correction
https://www.nemusloren.it/2013/11/30/come-se-fosse-possibile/
dotAI’18 - Virginie Mathivet – R&D Officer
Rule of thumb: speak to a child
Eat with a fork:
dotAI’18 - Virginie Mathivet – R&D Officer
Rule of thumb: speak to a child
Eat with a fork:
dotAI’18 - Virginie Mathivet – R&D Officer
Rule of thumb: speak to a child
Eat with a fork:
dotAI’18 - Virginie Mathivet – R&D Officer
Rule of thumb: speak to a child
Eat with a fork:
dotAI’18 - Virginie Mathivet – R&D Officer
The overfitting spotting
dotAI’18 - Virginie Mathivet – R&D Officer
The overfitting spotting
dotAI’18 - Virginie Mathivet – R&D Officer
Overfitting spotting
Error
Time
Training
Validation
Underfitting Overfitting
Optimum
dotAI’18 - Virginie Mathivet – R&D Officer
Teaching a robot how to avoid walls
• Evaluation function :
• 1st try: time until a collision with a wall (max 10sec)
dotAI’18 - Virginie Mathivet – R&D Officer
Teaching a robot how to avoid walls
• Evaluation function :
• 1st try: time until a collision with a wall (max 10sec)
dotAI’18 - Virginie Mathivet – R&D Officer
Teaching a robot how to avoid walls
• Evaluation function :
• 1st try: time until a collision with a wall (max 10sec)
• 2nd try: time moving until a collision with a wall (max 10sec)
dotAI’18 - Virginie Mathivet – R&D Officer
Teaching a robot how to avoid walls
• Evaluation function :
• 1st try: time until a collision with a wall (max 10sec)
• 2nd try: time moving until a collision with a wall (max 10sec)
dotAI’18 - Virginie Mathivet – R&D Officer
Teaching a robot how to avoid walls
• Evaluation function :
• 1st try: time until a collision with a wall (max 10sec)
• 2nd try: time moving until a collision with a wall (max 10sec)
• 3rd try: time moving forward until a collision with a wall (max 10sec)
dotAI’18 - Virginie Mathivet – R&D Officer
Teaching a robot how to avoid walls
• Evaluation function :
• 1st try: time until a collision with a wall (max 10sec)
• 2nd try: time moving until a collision with a wall (max 10sec)
• 3rd try: time moving forward until a collision with a wall (max 10sec)
dotAI’18 - Virginie Mathivet – R&D Officer
Theory vs Reality
• Real robot and real cage => not working at all!!
• Unseen overfitting!! (no dataset = no curves)
dotAI’18 - Virginie Mathivet – R&D Officer
Theory vs Reality
• Real robot and real cage => not working at all!!
• Unseen overfitting!! (no dataset = no curves)
dotAI’18 - Virginie Mathivet – R&D Officer
Theory vs Reality
• Real robot and real cage => not working at all!!
• Unseen overfitting!! (no dataset = no curves)
• Solution :
• Randomness
• Test on real robots as soon as possible
dotAI’18 - Virginie Mathivet – R&D Officer

More Related Content

Recently uploaded

Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 

Recently uploaded (20)

Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data ScienceChristy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

You vs Ryu(r) algorithm - Be the smartest

  • 1. Be the smartest Virginie Mathivet R&D Officer Ryu(r) Algorithm https://danbooru.donmai.us/posts/948811 http://vsbattles.wikia.com/wiki/File:RyuRender.png
  • 2. dotAI’18 - Virginie Mathivet – R&D Officer The accuracy paradox
  • 3. dotAI’18 - Virginie Mathivet – R&D Officer The accuracy paradox
  • 4. dotAI’18 - Virginie Mathivet – R&D Officer Fault detection Infrared HQ images Bubble Scratch Micro defectBorder defect
  • 5. dotAI’18 - Virginie Mathivet – R&D Officer First results • Accuracy: 99.1%!!! (in 2 epochs)
  • 6. dotAI’18 - Virginie Mathivet – R&D Officer First results • Accuracy: 99.1%!!! (in 2 epochs) Real Predicted OK (1665) KO (15) Accuracy OK 1665 0 100% KO 15 0 0% Total 1680 0 99.1% • Confusion matrix:
  • 7. dotAI’18 - Virginie Mathivet – R&D Officer The accuracy paradox and imbalanced classes 0 10 20 30 40 50 60 70 80 90 100 Classes Real Pred. 1 2 3 Accuracy 1 90 0 0 100% 2 5 0 0 0% 3 5 0 0 0% TOTAL 100 0 0 90%
  • 8. dotAI’18 - Virginie Mathivet – R&D Officer What to do?
  • 9. dotAI’18 - Virginie Mathivet – R&D Officer Data augmentation … New dataset: • 1665 images “OK” (94.9%) • 90 images “KO” (5.1%)
  • 10. dotAI’18 - Virginie Mathivet – R&D Officer Data augmentation … New dataset: • 1665 images “OK” (94.9%) • 90 images “KO” (5.1%) Accuracy: 99.15%
  • 11. dotAI’18 - Virginie Mathivet – R&D Officer Data augmentation Real Predicted OK (1665) KO (90) Accuracy OK 1665 0 100% KO 15 75 83.3% Total 1680 75 99.15% … New dataset: • 1665 images “OK” (94.9%) • 90 images “KO” (5.1%) Accuracy: 99.15%
  • 12. dotAI’18 - Virginie Mathivet – R&D Officer Data augmentation Real Predicted OK (1665) KO (90) Accuracy OK 1665 0 100% KO 15 75 83.3% Total 1680 75 99.15% … New dataset: • 1665 images “OK” (94.9%) • 90 images “KO” (5.1%) Accuracy: 99.15%
  • 13. dotAI’18 - Virginie Mathivet – R&D Officer The evaluation function definition
  • 14. dotAI’18 - Virginie Mathivet – R&D Officer The evaluation function definition
  • 15. dotAI’18 - Virginie Mathivet – R&D Officer The choice of the evaluation function Classification Real Predicted 1 0 1 A (true positive) C (false negative) 0 B (false positive) D (true negative) Accuracy Precision Recall / Sensitivity F1-score (A+D)/(A+B+C+D) A/(A+B) A/(A+C) 2*precision*recall/(precision+recall) Specificity Detection rate Youden’s J Index Balanced accuracy D/(B+D) A/(A+B+C+D) Sensitivity+specificity - 1 (sensitivity+specificity) / 2
  • 16. dotAI’18 - Virginie Mathivet – R&D Officer The choice of the evaluation function Regression • R-squared (R2) • Root Mean Squared Error (RMSE) • Residual Standard Error (RSE) or Model Sigma • Mean Absolute Error (MAE) • Akaike’s Information Criteria (AIC) • Bayesian Information Criteria (BIC) • …
  • 17. dotAI’18 - Virginie Mathivet – R&D Officer The choice of the evaluation function 0 5 10 15 20 25 0 1 2 3 4 5 6 7 8 9 10 Behavioral task
  • 18. dotAI’18 - Virginie Mathivet – R&D Officer Teach a (virtual) spider how to walk • 1st try: distance made in 10sec
  • 19. dotAI’18 - Virginie Mathivet – R&D Officer Teach a (virtual) spider how to walk • 1st try: distance made in 10sec https://gymnasticselectronicportfolio13.weebly.com/gymnastics-skills.html
  • 20. dotAI’18 - Virginie Mathivet – R&D Officer Teach a (virtual) spider how to walk • 1st try: distance made in 10sec https://gymnasticselectronicportfolio13.weebly.com/gymnastics-skills.html https://viatcheslav.livejournal.com/231564.html
  • 21. dotAI’18 - Virginie Mathivet – R&D Officer Teach a (virtual) spider how to walk • 2nd try: distance made in 10sec without rolling
  • 22. dotAI’18 - Virginie Mathivet – R&D Officer Teach a (virtual) spider how to walk • 2nd try: distance made in 10sec without rolling https://blog.myagilepartner.fr/wp-content/uploads/2017/08/scared_bug.jpg
  • 23. dotAI’18 - Virginie Mathivet – R&D Officer Teach a (virtual) spider how to walk • 2nd try: distance made in 10sec without rolling https://www.memecenter.com/fun/1717889/flying-spiderhttps://blog.myagilepartner.fr/wp-content/uploads/2017/08/scared_bug.jpg
  • 24. dotAI’18 - Virginie Mathivet – R&D Officer Teach a (virtual) spider how to walk • 3rd try: idem but after the bug correction
  • 25. dotAI’18 - Virginie Mathivet – R&D Officer Teach a (virtual) spider how to walk • 3rd try: idem but after the bug correction https://www.nemusloren.it/2013/11/30/come-se-fosse-possibile/
  • 26. dotAI’18 - Virginie Mathivet – R&D Officer Teach a (virtual) spider how to walk • 3rd try: idem but after the bug correction https://www.nemusloren.it/2013/11/30/come-se-fosse-possibile/
  • 27. dotAI’18 - Virginie Mathivet – R&D Officer Rule of thumb: speak to a child Eat with a fork:
  • 28. dotAI’18 - Virginie Mathivet – R&D Officer Rule of thumb: speak to a child Eat with a fork:
  • 29. dotAI’18 - Virginie Mathivet – R&D Officer Rule of thumb: speak to a child Eat with a fork:
  • 30. dotAI’18 - Virginie Mathivet – R&D Officer Rule of thumb: speak to a child Eat with a fork:
  • 31. dotAI’18 - Virginie Mathivet – R&D Officer The overfitting spotting
  • 32. dotAI’18 - Virginie Mathivet – R&D Officer The overfitting spotting
  • 33. dotAI’18 - Virginie Mathivet – R&D Officer Overfitting spotting Error Time Training Validation Underfitting Overfitting Optimum
  • 34. dotAI’18 - Virginie Mathivet – R&D Officer Teaching a robot how to avoid walls • Evaluation function : • 1st try: time until a collision with a wall (max 10sec)
  • 35. dotAI’18 - Virginie Mathivet – R&D Officer Teaching a robot how to avoid walls • Evaluation function : • 1st try: time until a collision with a wall (max 10sec)
  • 36. dotAI’18 - Virginie Mathivet – R&D Officer Teaching a robot how to avoid walls • Evaluation function : • 1st try: time until a collision with a wall (max 10sec) • 2nd try: time moving until a collision with a wall (max 10sec)
  • 37. dotAI’18 - Virginie Mathivet – R&D Officer Teaching a robot how to avoid walls • Evaluation function : • 1st try: time until a collision with a wall (max 10sec) • 2nd try: time moving until a collision with a wall (max 10sec)
  • 38. dotAI’18 - Virginie Mathivet – R&D Officer Teaching a robot how to avoid walls • Evaluation function : • 1st try: time until a collision with a wall (max 10sec) • 2nd try: time moving until a collision with a wall (max 10sec) • 3rd try: time moving forward until a collision with a wall (max 10sec)
  • 39. dotAI’18 - Virginie Mathivet – R&D Officer Teaching a robot how to avoid walls • Evaluation function : • 1st try: time until a collision with a wall (max 10sec) • 2nd try: time moving until a collision with a wall (max 10sec) • 3rd try: time moving forward until a collision with a wall (max 10sec)
  • 40. dotAI’18 - Virginie Mathivet – R&D Officer Theory vs Reality • Real robot and real cage => not working at all!! • Unseen overfitting!! (no dataset = no curves)
  • 41. dotAI’18 - Virginie Mathivet – R&D Officer Theory vs Reality • Real robot and real cage => not working at all!! • Unseen overfitting!! (no dataset = no curves)
  • 42. dotAI’18 - Virginie Mathivet – R&D Officer Theory vs Reality • Real robot and real cage => not working at all!! • Unseen overfitting!! (no dataset = no curves) • Solution : • Randomness • Test on real robots as soon as possible
  • 43. dotAI’18 - Virginie Mathivet – R&D Officer