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

Comtech sspi vsat_day_2009
Comtech sspi vsat_day_2009Comtech sspi vsat_day_2009
Comtech sspi vsat_day_2009SSPI Brasil
 
OPENMP ANALYSIS IN VTUNE AMPLIFIER XE
OPENMP ANALYSIS IN VTUNE AMPLIFIER XEOPENMP ANALYSIS IN VTUNE AMPLIFIER XE
OPENMP ANALYSIS IN VTUNE AMPLIFIER XEDESMOND YUEN
 
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 ThemEMA Design Automation
 
Droidcon2013 triangles gangolells_imagination
Droidcon2013 triangles gangolells_imaginationDroidcon2013 triangles gangolells_imagination
Droidcon2013 triangles gangolells_imaginationDroidcon 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
 
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 SystemsJenny Midwinter
 

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

“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 GroupEdge AI and Vision Alliance
 
“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...Edge AI and Vision Alliance
 
“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
 
“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...Edge AI and Vision Alliance
 
“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...Edge AI and Vision Alliance
 
CAR DAMAGE DETECTION USING DEEP LEARNING
CAR DAMAGE DETECTION USING DEEP LEARNINGCAR DAMAGE DETECTION USING DEEP LEARNING
CAR DAMAGE DETECTION USING DEEP LEARNINGIRJET Journal
 
"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
 
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 LearningIRJET Journal
 
"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
 
Customer choice probabilities
Customer choice probabilitiesCustomer choice probabilities
Customer choice probabilitiesAllan D. Butler
 
“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
 
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).PPTXSanjayKPrasad2
 
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 EnvironmentsDevOps for Enterprise Systems
 
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 EconomicsCompuware
 
BigML Release: Image Processing
BigML Release: Image ProcessingBigML Release: Image Processing
BigML Release: Image ProcessingBigML, Inc
 
Computing for Datacenter Servers 2021 - Sample
Computing for Datacenter Servers 2021 - SampleComputing for Datacenter Servers 2021 - Sample
Computing for Datacenter Servers 2021 - SampleYole Developpement
 
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 ...AugmentedWorldExpo
 

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
 
“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...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
 
“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...Edge AI and Vision Alliance
 
“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...Edge AI and Vision Alliance
 
“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...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
 
“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 TechInsightsEdge 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
 
“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...Edge AI and Vision Alliance
 
“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...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
 
“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...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
 
“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...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 SamsaraEdge AI and Vision Alliance
 
“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...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
 
“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 ...Edge AI and Vision Alliance
 
“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...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

costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsPrecisely
 

Recently uploaded (20)

costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power Systems
 

“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