SlideShare a Scribd company logo
1 of 18
Download to read offline
© 2021 BMW Group
Is My Model Performing Well?
It Depends…
Vladimir Haltakov
BMW Group
© 2021 BMW Group
How to Develop a Good Machine Learning Model?
• Experience with traffic light recognition in production
• Red Light Warning
• Urban Cruise Control
• Real world challenges
• Optimizing the customer function instead of the model
• Conflicting requirements in the project
2
© 2021 BMW Group
Classic Computer Vision Pipeline
3
Image
Computer
Vision Model
Output
Problem Loss Function Evaluation Metrics
Classification Cross Entropy Loss Recall, Precision, F1 Score
Regression Mean Squared Error Loss Mean Squared Error
Segmentation Pixel-wise Cross Entropy Loss Intersection-over-Union
Well known loss functions and evaluation measures
© 2021 BMW Group
Complex Computer Vision Pipeline
4
Image
Computer
Vision Model
Complex
Function
Logic
Output
• How does the model accuracy correlate with the function accuracy?
• How do false positives and false negatives influence the output?
• Which loss function to choose for training?
• When is my computer vision model good enough?
• Why did I improve the accuracy of the model, but the application got worse?
© 2021 BMW Group
Example Pipeline – Traffic Light Warning
5
Image
Computer
Vision Model
Complex
Function
Logic
Output
camera image detected traffic lights 3D estimation +
fusion with map
red light warning
© 2021 BMW Group
Example Scenario – Redundant Traffic Lights
6
False negatives and false positives don’t hurt the performance a lot
© 2021 BMW Group
Example Scenario – Single Traffic Light
7
False negatives and green false positives reduce the function availability
© 2021 BMW Group
Example Scenario – Different Signal Groups
8
Green false negatives lead to false warnings
© 2021 BMW Group
Example Scenario – No Traffic Light
9
Red false positives lead to false warnings
© 2021 BMW Group
The Problem
Measurable model problems are not directly correlated to problems on the output.
Sometimes improvement of the model’s accuracy lead to regression in the application
Strategies to deal with the problem
1. Formulate a joint optimization
2. Adapt the loss function to the problem
3. Optimize application specific error measures
10
© 2021 BMW Group
Joint Neural Network
1. Formulate a Joint Optimization
• Model the function logic as a neural network
• Optimize the computer vision and the function logic networks jointly
✓ Get the most performance out of the data
✘ May be infeasible for complex functions and too data intensive
11
Image
Computer
Vision Neural
Network
Function
Neural
Network
Output
© 2021 BMW Group
2. Adapt the Loss Function to the Problem
Add application specific terms to the loss function of the model
Examples for the traffic light warning function
• Penalize FN more for big traffic lights (closer to the car)
• Penalize FN less if there are other objects of the same type
• Penalize FP less if there are already objects of the same type present
✓ Constraints can be automatically optimized
✘ Not always possible
✘ Hyper-parameter tuning is difficult (see Resources for help)
12
© 2021 BMW Group
3. Optimize Application Specific Error Metrics
Work on solving only problems of the model that hurt the application
1. Evaluate the final output according to the application specific metrics
2. Review the error cases and categorize the model’s issues
3. Work on solving these categories without reducing overall performance
Example
13
10x False Warning
20x Missed Warning
6x FP red light
2x FN green light
5x Wrong distance estimation
13x FN red light
4x FP green light
© 2021 BMW Group
Conflicting Requirements
• Conflicting requirements depending on the scenario
• Conflicting requirements between functions
Example: Traffic Light Warning vs. Traffic Light Braking
14
Image
Computer
Vision Model
Complex
Function 1
Logic
Output
Function 1
Complex
Function 2
Logic
Output
Function 2
© 2021 BMW Group
Dealing with Conflicting Requirements
• Provide more information from the model
• Existence probabilities
• Classification scores
• Position covariances
• Tracker uncertainties
• The functions need to choose which data to use
• The functions are able to control the trade-offs
15
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
True
Positive
Rate
False Positive Rate
ROC Curve for Red Lights
Traffic Light Warning
Traffic Light Braking
© 2021 BMW Group
Model Calibration
• Interpret the output of the model as a
probability
• The probability usually doesn’t match the
real distribution
• Most models are not calibrated (e.g.
neural networks, SVM, decision trees)
• Various methods for calibration: Platt
Scaling, Isotonic Regression (see
Resources)
16
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Fraction
of
positives
Output probability
Calibration Plot
Perfect Calibration Uncalibrated Model
© 2021 BMW Group
Summary and Important Lessons
• In complex systems, the accuracy of the computer vision model does not directly
correlate to the performance of the final application
• Define problem specific evaluation metrics and loss functions
• Provide more information from the computer vision model to handle conflicting
requirements
• Calibrate the model output
17
© 2021 BMW Group
Resources
18
2021 Embedded Vision Summit
Watch my other talk
“Data Collection in the Wild.”
Model tuning and calibration
How we can make machine learning algorithms
tunable?
https://engraved.ghost.io/how-we-can-make-
machine-learning-algorithms-tunable/
Model Calibration
https://scikit-
learn.org/stable/modules/calibration.html

More Related Content

What's hot

Droidcon2013 triangles gangolells_imagination
Droidcon2013 triangles gangolells_imaginationDroidcon2013 triangles gangolells_imagination
Droidcon2013 triangles gangolells_imagination
Droidcon Berlin
 
"Lessons Learned from Bringing Mobile and Embedded Vision Products to Market,...
"Lessons Learned from Bringing Mobile and Embedded Vision Products to Market,..."Lessons Learned from Bringing Mobile and Embedded Vision Products to Market,...
"Lessons Learned from Bringing Mobile and Embedded Vision Products to Market,...
Edge AI and Vision Alliance
 

What's hot (6)

Comtech sspi vsat_day_2009
Comtech sspi vsat_day_2009Comtech sspi vsat_day_2009
Comtech sspi vsat_day_2009
 
OPENMP ANALYSIS IN VTUNE AMPLIFIER XE
OPENMP ANALYSIS IN VTUNE AMPLIFIER XEOPENMP ANALYSIS IN VTUNE AMPLIFIER XE
OPENMP ANALYSIS IN VTUNE AMPLIFIER XE
 
Common High-Speed PCB Design Issues and How to Solve Them
Common High-Speed PCB Design Issues and How to Solve ThemCommon High-Speed PCB Design Issues and How to Solve Them
Common High-Speed PCB Design Issues and How to Solve Them
 
Droidcon2013 triangles gangolells_imagination
Droidcon2013 triangles gangolells_imaginationDroidcon2013 triangles gangolells_imagination
Droidcon2013 triangles gangolells_imagination
 
"Lessons Learned from Bringing Mobile and Embedded Vision Products to Market,...
"Lessons Learned from Bringing Mobile and Embedded Vision Products to Market,..."Lessons Learned from Bringing Mobile and Embedded Vision Products to Market,...
"Lessons Learned from Bringing Mobile and Embedded Vision Products to Market,...
 
Applying Deep Learning Vision Technology to low-cost/power Embedded Systems
Applying Deep Learning Vision Technology to low-cost/power Embedded SystemsApplying Deep Learning Vision Technology to low-cost/power Embedded Systems
Applying Deep Learning Vision Technology to low-cost/power Embedded Systems
 

Similar to “Is My Model Performing Well? It Depends…,” a Presentation from BMW Group

“Combining CNNs and Conventional Algorithms for Low-Compute Vision: A Case St...
“Combining CNNs and Conventional Algorithms for Low-Compute Vision: A Case St...“Combining CNNs and Conventional Algorithms for Low-Compute Vision: A Case St...
“Combining CNNs and Conventional Algorithms for Low-Compute Vision: A Case St...
Edge AI and Vision Alliance
 
"Computer-vision-based 360-degree Video Systems: Architectures, Algorithms an...
"Computer-vision-based 360-degree Video Systems: Architectures, Algorithms an..."Computer-vision-based 360-degree Video Systems: Architectures, Algorithms an...
"Computer-vision-based 360-degree Video Systems: Architectures, Algorithms an...
Edge AI and Vision Alliance
 
"Tools and Techniques for Optimizing DNNs on Arm-based Processors with Au-Zon...
"Tools and Techniques for Optimizing DNNs on Arm-based Processors with Au-Zon..."Tools and Techniques for Optimizing DNNs on Arm-based Processors with Au-Zon...
"Tools and Techniques for Optimizing DNNs on Arm-based Processors with Au-Zon...
Edge AI and Vision Alliance
 
“Automated Neural Network Model Training: The Impact on Deploying and Scaling...
“Automated Neural Network Model Training: The Impact on Deploying and Scaling...“Automated Neural Network Model Training: The Impact on Deploying and Scaling...
“Automated Neural Network Model Training: The Impact on Deploying and Scaling...
Edge AI and Vision Alliance
 

Similar to “Is My Model Performing Well? It Depends…,” a Presentation from BMW Group (20)

“Data Collection in the Wild,” a Presentation from BMW Group
“Data Collection in the Wild,” a Presentation from BMW Group“Data Collection in the Wild,” a Presentation from BMW Group
“Data Collection in the Wild,” a Presentation from BMW Group
 
“Deep Learning for Manufacturing Inspection: Case Studies,” a Presentation fr...
“Deep Learning for Manufacturing Inspection: Case Studies,” a Presentation fr...“Deep Learning for Manufacturing Inspection: Case Studies,” a Presentation fr...
“Deep Learning for Manufacturing Inspection: Case Studies,” a Presentation fr...
 
“Combining CNNs and Conventional Algorithms for Low-Compute Vision: A Case St...
“Combining CNNs and Conventional Algorithms for Low-Compute Vision: A Case St...“Combining CNNs and Conventional Algorithms for Low-Compute Vision: A Case St...
“Combining CNNs and Conventional Algorithms for Low-Compute Vision: A Case St...
 
“The Automotive Driver Monitoring Market: What’s Happening? Why? What’s the O...
“The Automotive Driver Monitoring Market: What’s Happening? Why? What’s the O...“The Automotive Driver Monitoring Market: What’s Happening? Why? What’s the O...
“The Automotive Driver Monitoring Market: What’s Happening? Why? What’s the O...
 
“An Introduction to Data Augmentation Techniques in ML Frameworks,” a Present...
“An Introduction to Data Augmentation Techniques in ML Frameworks,” a Present...“An Introduction to Data Augmentation Techniques in ML Frameworks,” a Present...
“An Introduction to Data Augmentation Techniques in ML Frameworks,” a Present...
 
CAR DAMAGE DETECTION USING DEEP LEARNING
CAR DAMAGE DETECTION USING DEEP LEARNINGCAR DAMAGE DETECTION USING DEEP LEARNING
CAR DAMAGE DETECTION USING DEEP LEARNING
 
"Computer-vision-based 360-degree Video Systems: Architectures, Algorithms an...
"Computer-vision-based 360-degree Video Systems: Architectures, Algorithms an..."Computer-vision-based 360-degree Video Systems: Architectures, Algorithms an...
"Computer-vision-based 360-degree Video Systems: Architectures, Algorithms an...
 
Self Driving Car
Self Driving CarSelf Driving Car
Self Driving Car
 
Self-Driving Car to Drive Autonomously using Image Processing and Deep Learning
Self-Driving Car to Drive Autonomously using Image Processing and Deep LearningSelf-Driving Car to Drive Autonomously using Image Processing and Deep Learning
Self-Driving Car to Drive Autonomously using Image Processing and Deep Learning
 
"Tools and Techniques for Optimizing DNNs on Arm-based Processors with Au-Zon...
"Tools and Techniques for Optimizing DNNs on Arm-based Processors with Au-Zon..."Tools and Techniques for Optimizing DNNs on Arm-based Processors with Au-Zon...
"Tools and Techniques for Optimizing DNNs on Arm-based Processors with Au-Zon...
 
Conclusion Connect state of IoT 2019 Review io t solutions world congress 2019
Conclusion Connect state of IoT 2019 Review io t solutions world congress 2019Conclusion Connect state of IoT 2019 Review io t solutions world congress 2019
Conclusion Connect state of IoT 2019 Review io t solutions world congress 2019
 
Customer choice probabilities
Customer choice probabilitiesCustomer choice probabilities
Customer choice probabilities
 
“Automated Neural Network Model Training: The Impact on Deploying and Scaling...
“Automated Neural Network Model Training: The Impact on Deploying and Scaling...“Automated Neural Network Model Training: The Impact on Deploying and Scaling...
“Automated Neural Network Model Training: The Impact on Deploying and Scaling...
 
Decision Optimization - CPLEX Optimization Studio - Product Overview(2).PPTX
Decision Optimization - CPLEX Optimization Studio - Product Overview(2).PPTXDecision Optimization - CPLEX Optimization Studio - Product Overview(2).PPTX
Decision Optimization - CPLEX Optimization Studio - Product Overview(2).PPTX
 
Service Testing & Virtualization in an Enterprise Environments
Service Testing & Virtualization in an Enterprise EnvironmentsService Testing & Virtualization in an Enterprise Environments
Service Testing & Virtualization in an Enterprise Environments
 
Ai in automobile
Ai in automobileAi in automobile
Ai in automobile
 
BMC and Compuware: Integrating to Improve Mainframe Economics
BMC and Compuware: Integrating to Improve Mainframe EconomicsBMC and Compuware: Integrating to Improve Mainframe Economics
BMC and Compuware: Integrating to Improve Mainframe Economics
 
BigML Release: Image Processing
BigML Release: Image ProcessingBigML Release: Image Processing
BigML Release: Image Processing
 
Computing for Datacenter Servers 2021 - Sample
Computing for Datacenter Servers 2021 - SampleComputing for Datacenter Servers 2021 - Sample
Computing for Datacenter Servers 2021 - Sample
 
Andreas Zeitler (Vuframe): Virtual & Augmented Business: How to Discover and ...
Andreas Zeitler (Vuframe): Virtual & Augmented Business: How to Discover and ...Andreas Zeitler (Vuframe): Virtual & Augmented Business: How to Discover and ...
Andreas Zeitler (Vuframe): Virtual & Augmented Business: How to Discover and ...
 

More from Edge AI and Vision Alliance

“Learning Compact DNN Models for Embedded Vision,” a Presentation from the Un...
“Learning Compact DNN Models for Embedded Vision,” a Presentation from the Un...“Learning Compact DNN Models for Embedded Vision,” a Presentation from the Un...
“Learning Compact DNN Models for Embedded Vision,” a Presentation from the Un...
Edge AI and Vision Alliance
 
“Selecting Tools for Developing, Monitoring and Maintaining ML Models,” a Pre...
“Selecting Tools for Developing, Monitoring and Maintaining ML Models,” a Pre...“Selecting Tools for Developing, Monitoring and Maintaining ML Models,” a Pre...
“Selecting Tools for Developing, Monitoring and Maintaining ML Models,” a Pre...
Edge AI and Vision Alliance
 
“Vision-language Representations for Robotics,” a Presentation from the Unive...
“Vision-language Representations for Robotics,” a Presentation from the Unive...“Vision-language Representations for Robotics,” a Presentation from the Unive...
“Vision-language Representations for Robotics,” a Presentation from the Unive...
Edge AI and Vision Alliance
 
“Computer Vision in Sports: Scalable Solutions for Downmarkets,” a Presentati...
“Computer Vision in Sports: Scalable Solutions for Downmarkets,” a Presentati...“Computer Vision in Sports: Scalable Solutions for Downmarkets,” a Presentati...
“Computer Vision in Sports: Scalable Solutions for Downmarkets,” a Presentati...
Edge AI and Vision Alliance
 
“AI Start-ups: The Perils of Fishing for Whales (War Stories from the Entrepr...
“AI Start-ups: The Perils of Fishing for Whales (War Stories from the Entrepr...“AI Start-ups: The Perils of Fishing for Whales (War Stories from the Entrepr...
“AI Start-ups: The Perils of Fishing for Whales (War Stories from the Entrepr...
Edge AI and Vision Alliance
 
“Bias in Computer Vision—It’s Bigger Than Facial Recognition!,” a Presentatio...
“Bias in Computer Vision—It’s Bigger Than Facial Recognition!,” a Presentatio...“Bias in Computer Vision—It’s Bigger Than Facial Recognition!,” a Presentatio...
“Bias in Computer Vision—It’s Bigger Than Facial Recognition!,” a Presentatio...
Edge AI and Vision Alliance
 
“Updating the Edge ML Development Process,” a Presentation from Samsara
“Updating the Edge ML Development Process,” a Presentation from Samsara“Updating the Edge ML Development Process,” a Presentation from Samsara
“Updating the Edge ML Development Process,” a Presentation from Samsara
Edge AI and Vision Alliance
 
“Developing an Embedded Vision AI-powered Fitness System,” a Presentation fro...
“Developing an Embedded Vision AI-powered Fitness System,” a Presentation fro...“Developing an Embedded Vision AI-powered Fitness System,” a Presentation fro...
“Developing an Embedded Vision AI-powered Fitness System,” a Presentation fro...
Edge AI and Vision Alliance
 

More from Edge AI and Vision Alliance (20)

“Learning Compact DNN Models for Embedded Vision,” a Presentation from the Un...
“Learning Compact DNN Models for Embedded Vision,” a Presentation from the Un...“Learning Compact DNN Models for Embedded Vision,” a Presentation from the Un...
“Learning Compact DNN Models for Embedded Vision,” a Presentation from the Un...
 
“Introduction to Computer Vision with CNNs,” a Presentation from Mohammad Hag...
“Introduction to Computer Vision with CNNs,” a Presentation from Mohammad Hag...“Introduction to Computer Vision with CNNs,” a Presentation from Mohammad Hag...
“Introduction to Computer Vision with CNNs,” a Presentation from Mohammad Hag...
 
“Selecting Tools for Developing, Monitoring and Maintaining ML Models,” a Pre...
“Selecting Tools for Developing, Monitoring and Maintaining ML Models,” a Pre...“Selecting Tools for Developing, Monitoring and Maintaining ML Models,” a Pre...
“Selecting Tools for Developing, Monitoring and Maintaining ML Models,” a Pre...
 
“Building Accelerated GStreamer Applications for Video and Audio AI,” a Prese...
“Building Accelerated GStreamer Applications for Video and Audio AI,” a Prese...“Building Accelerated GStreamer Applications for Video and Audio AI,” a Prese...
“Building Accelerated GStreamer Applications for Video and Audio AI,” a Prese...
 
“Understanding, Selecting and Optimizing Object Detectors for Edge Applicatio...
“Understanding, Selecting and Optimizing Object Detectors for Edge Applicatio...“Understanding, Selecting and Optimizing Object Detectors for Edge Applicatio...
“Understanding, Selecting and Optimizing Object Detectors for Edge Applicatio...
 
“Introduction to Modern LiDAR for Machine Perception,” a Presentation from th...
“Introduction to Modern LiDAR for Machine Perception,” a Presentation from th...“Introduction to Modern LiDAR for Machine Perception,” a Presentation from th...
“Introduction to Modern LiDAR for Machine Perception,” a Presentation from th...
 
“Vision-language Representations for Robotics,” a Presentation from the Unive...
“Vision-language Representations for Robotics,” a Presentation from the Unive...“Vision-language Representations for Robotics,” a Presentation from the Unive...
“Vision-language Representations for Robotics,” a Presentation from the Unive...
 
“ADAS and AV Sensors: What’s Winning and Why?,” a Presentation from TechInsights
“ADAS and AV Sensors: What’s Winning and Why?,” a Presentation from TechInsights“ADAS and AV Sensors: What’s Winning and Why?,” a Presentation from TechInsights
“ADAS and AV Sensors: What’s Winning and Why?,” a Presentation from TechInsights
 
“Computer Vision in Sports: Scalable Solutions for Downmarkets,” a Presentati...
“Computer Vision in Sports: Scalable Solutions for Downmarkets,” a Presentati...“Computer Vision in Sports: Scalable Solutions for Downmarkets,” a Presentati...
“Computer Vision in Sports: Scalable Solutions for Downmarkets,” a Presentati...
 
“Detecting Data Drift in Image Classification Neural Networks,” a Presentatio...
“Detecting Data Drift in Image Classification Neural Networks,” a Presentatio...“Detecting Data Drift in Image Classification Neural Networks,” a Presentatio...
“Detecting Data Drift in Image Classification Neural Networks,” a Presentatio...
 
“Deep Neural Network Training: Diagnosing Problems and Implementing Solutions...
“Deep Neural Network Training: Diagnosing Problems and Implementing Solutions...“Deep Neural Network Training: Diagnosing Problems and Implementing Solutions...
“Deep Neural Network Training: Diagnosing Problems and Implementing Solutions...
 
“AI Start-ups: The Perils of Fishing for Whales (War Stories from the Entrepr...
“AI Start-ups: The Perils of Fishing for Whales (War Stories from the Entrepr...“AI Start-ups: The Perils of Fishing for Whales (War Stories from the Entrepr...
“AI Start-ups: The Perils of Fishing for Whales (War Stories from the Entrepr...
 
“A Computer Vision System for Autonomous Satellite Maneuvering,” a Presentati...
“A Computer Vision System for Autonomous Satellite Maneuvering,” a Presentati...“A Computer Vision System for Autonomous Satellite Maneuvering,” a Presentati...
“A Computer Vision System for Autonomous Satellite Maneuvering,” a Presentati...
 
“Bias in Computer Vision—It’s Bigger Than Facial Recognition!,” a Presentatio...
“Bias in Computer Vision—It’s Bigger Than Facial Recognition!,” a Presentatio...“Bias in Computer Vision—It’s Bigger Than Facial Recognition!,” a Presentatio...
“Bias in Computer Vision—It’s Bigger Than Facial Recognition!,” a Presentatio...
 
“Sensor Fusion Techniques for Accurate Perception of Objects in the Environme...
“Sensor Fusion Techniques for Accurate Perception of Objects in the Environme...“Sensor Fusion Techniques for Accurate Perception of Objects in the Environme...
“Sensor Fusion Techniques for Accurate Perception of Objects in the Environme...
 
“Updating the Edge ML Development Process,” a Presentation from Samsara
“Updating the Edge ML Development Process,” a Presentation from Samsara“Updating the Edge ML Development Process,” a Presentation from Samsara
“Updating the Edge ML Development Process,” a Presentation from Samsara
 
“Combating Bias in Production Computer Vision Systems,” a Presentation from R...
“Combating Bias in Production Computer Vision Systems,” a Presentation from R...“Combating Bias in Production Computer Vision Systems,” a Presentation from R...
“Combating Bias in Production Computer Vision Systems,” a Presentation from R...
 
“Developing an Embedded Vision AI-powered Fitness System,” a Presentation fro...
“Developing an Embedded Vision AI-powered Fitness System,” a Presentation fro...“Developing an Embedded Vision AI-powered Fitness System,” a Presentation fro...
“Developing an Embedded Vision AI-powered Fitness System,” a Presentation fro...
 
“Navigating the Evolving Venture Capital Landscape for Edge AI Start-ups,” a ...
“Navigating the Evolving Venture Capital Landscape for Edge AI Start-ups,” a ...“Navigating the Evolving Venture Capital Landscape for Edge AI Start-ups,” a ...
“Navigating the Evolving Venture Capital Landscape for Edge AI Start-ups,” a ...
 
“Advanced Presence Sensing: What It Means for the Smart Home,” a Presentation...
“Advanced Presence Sensing: What It Means for the Smart Home,” a Presentation...“Advanced Presence Sensing: What It Means for the Smart Home,” a Presentation...
“Advanced Presence Sensing: What It Means for the Smart Home,” a Presentation...
 

Recently uploaded

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 

“Is My Model Performing Well? It Depends…,” a Presentation from BMW Group

  • 1. © 2021 BMW Group Is My Model Performing Well? It Depends… Vladimir Haltakov BMW Group
  • 2. © 2021 BMW Group How to Develop a Good Machine Learning Model? • Experience with traffic light recognition in production • Red Light Warning • Urban Cruise Control • Real world challenges • Optimizing the customer function instead of the model • Conflicting requirements in the project 2
  • 3. © 2021 BMW Group Classic Computer Vision Pipeline 3 Image Computer Vision Model Output Problem Loss Function Evaluation Metrics Classification Cross Entropy Loss Recall, Precision, F1 Score Regression Mean Squared Error Loss Mean Squared Error Segmentation Pixel-wise Cross Entropy Loss Intersection-over-Union Well known loss functions and evaluation measures
  • 4. © 2021 BMW Group Complex Computer Vision Pipeline 4 Image Computer Vision Model Complex Function Logic Output • How does the model accuracy correlate with the function accuracy? • How do false positives and false negatives influence the output? • Which loss function to choose for training? • When is my computer vision model good enough? • Why did I improve the accuracy of the model, but the application got worse?
  • 5. © 2021 BMW Group Example Pipeline – Traffic Light Warning 5 Image Computer Vision Model Complex Function Logic Output camera image detected traffic lights 3D estimation + fusion with map red light warning
  • 6. © 2021 BMW Group Example Scenario – Redundant Traffic Lights 6 False negatives and false positives don’t hurt the performance a lot
  • 7. © 2021 BMW Group Example Scenario – Single Traffic Light 7 False negatives and green false positives reduce the function availability
  • 8. © 2021 BMW Group Example Scenario – Different Signal Groups 8 Green false negatives lead to false warnings
  • 9. © 2021 BMW Group Example Scenario – No Traffic Light 9 Red false positives lead to false warnings
  • 10. © 2021 BMW Group The Problem Measurable model problems are not directly correlated to problems on the output. Sometimes improvement of the model’s accuracy lead to regression in the application Strategies to deal with the problem 1. Formulate a joint optimization 2. Adapt the loss function to the problem 3. Optimize application specific error measures 10
  • 11. © 2021 BMW Group Joint Neural Network 1. Formulate a Joint Optimization • Model the function logic as a neural network • Optimize the computer vision and the function logic networks jointly ✓ Get the most performance out of the data ✘ May be infeasible for complex functions and too data intensive 11 Image Computer Vision Neural Network Function Neural Network Output
  • 12. © 2021 BMW Group 2. Adapt the Loss Function to the Problem Add application specific terms to the loss function of the model Examples for the traffic light warning function • Penalize FN more for big traffic lights (closer to the car) • Penalize FN less if there are other objects of the same type • Penalize FP less if there are already objects of the same type present ✓ Constraints can be automatically optimized ✘ Not always possible ✘ Hyper-parameter tuning is difficult (see Resources for help) 12
  • 13. © 2021 BMW Group 3. Optimize Application Specific Error Metrics Work on solving only problems of the model that hurt the application 1. Evaluate the final output according to the application specific metrics 2. Review the error cases and categorize the model’s issues 3. Work on solving these categories without reducing overall performance Example 13 10x False Warning 20x Missed Warning 6x FP red light 2x FN green light 5x Wrong distance estimation 13x FN red light 4x FP green light
  • 14. © 2021 BMW Group Conflicting Requirements • Conflicting requirements depending on the scenario • Conflicting requirements between functions Example: Traffic Light Warning vs. Traffic Light Braking 14 Image Computer Vision Model Complex Function 1 Logic Output Function 1 Complex Function 2 Logic Output Function 2
  • 15. © 2021 BMW Group Dealing with Conflicting Requirements • Provide more information from the model • Existence probabilities • Classification scores • Position covariances • Tracker uncertainties • The functions need to choose which data to use • The functions are able to control the trade-offs 15 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 True Positive Rate False Positive Rate ROC Curve for Red Lights Traffic Light Warning Traffic Light Braking
  • 16. © 2021 BMW Group Model Calibration • Interpret the output of the model as a probability • The probability usually doesn’t match the real distribution • Most models are not calibrated (e.g. neural networks, SVM, decision trees) • Various methods for calibration: Platt Scaling, Isotonic Regression (see Resources) 16 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 Fraction of positives Output probability Calibration Plot Perfect Calibration Uncalibrated Model
  • 17. © 2021 BMW Group Summary and Important Lessons • In complex systems, the accuracy of the computer vision model does not directly correlate to the performance of the final application • Define problem specific evaluation metrics and loss functions • Provide more information from the computer vision model to handle conflicting requirements • Calibrate the model output 17
  • 18. © 2021 BMW Group Resources 18 2021 Embedded Vision Summit Watch my other talk “Data Collection in the Wild.” Model tuning and calibration How we can make machine learning algorithms tunable? https://engraved.ghost.io/how-we-can-make- machine-learning-algorithms-tunable/ Model Calibration https://scikit- learn.org/stable/modules/calibration.html