SlideShare a Scribd company logo
1 of 10
Motion Detection
Zezheng(Andy) Long
Machine Learning/AI Engineer
Chih Lai, Ph.D.
Supervisor, AI Professor at University of St. Thomas
© Copyright 2019 by Zezheng Long
• Collect RGB Image Data
• Create Motion Proposal from Gray-Scale Frames
• Convert Motion Proposal to Binary Motion Map (BMM)
• Create Color Motion Map (CMM) by Stacking 8 BMMs
• Retrain CNN Transfer Learning Model to Classify
Motions
• Real-Time Motion Detection Demo
© Copyright 2019 by Zezheng Long
Contents
Collect RGB Image Data
Resolution Rate: 640 x 480
Camera FPS: 30fps
© Copyright 2019 by Zezheng Long
Motion Proposal
Difference Between 2 Frames
© Copyright 2019 by Zezheng Long
Why Do I Transfer RGB to Gray-Scale?
• Get Rid of Color Effect
• Less Noise
Original Motion Proposal Original Motion Proposal x 50 (easy to visualize the noise)
Binary Motion Map (BMM)
Original Motion Proposal Original Motion Proposal x 50 (easy to visualize the noise)
BMM
Motion Proposal > 40 = 1
Motion Proposal <=40 = 0
© Copyright 2019 by Zezheng Long
What Does BMM Do?
• Capture Spatial Motion Information
Color Motion Map (CMM)
BMM 1 BMM 2 BMM 3 BMM 4 BMM 5 BMM 6 BMM 7 BMM 8
CMM 1
© Copyright 2019 by Zezheng Long
• Stack 8 BMMs, and Assign Colors
to Motions Based on Time
• See the Color-Map Bar
Less
Recent
BMM
More
Recent
BMM
What Does CMM do?
• Capture Spatial + Temporal
Motion Information
CNN Transfer Learning
• Transfer Learning Model: AlexNet
• Dataset: 2966 CMMs
• Good Motion: 1483 CMMs
• Bad Motion: 1483 CMMs
• Testing Result:
• Recall: 98.7%
• precision: 99.7%
• Accuracy: 99.2%
© Copyright 2019 by Zezheng Long
Real-Time Motion Detection Demo
•Exciting Part!!!
© Copyright 2019 by Zezheng Long
Further Study
• Use Case:
• Observe Patients / AI Family Doctor
• Public Security / Surveillance
• … …
• Multiple People
• 3-D camera
• Instance Segmentation
© Copyright 2019 by Zezheng Long
Questions
• Why NOT Use CNN AutoEncoder + LSTM?
• … …?
© Copyright 2019 by Zezheng Long

More Related Content

Similar to Real-Time Motion Detection

A Three-Dimensional Representation method for Noisy Point Clouds based on Gro...
A Three-Dimensional Representation method for Noisy Point Clouds based on Gro...A Three-Dimensional Representation method for Noisy Point Clouds based on Gro...
A Three-Dimensional Representation method for Noisy Point Clouds based on Gro...Sergio Orts-Escolano
 
BigML Release: Image Processing
BigML Release: Image ProcessingBigML Release: Image Processing
BigML Release: Image ProcessingBigML, Inc
 
APPLICATION OF IP TECHNIQUES IN TRAFFIC CONTROL SYSTEM
APPLICATION OF IP TECHNIQUES IN TRAFFIC CONTROL SYSTEMAPPLICATION OF IP TECHNIQUES IN TRAFFIC CONTROL SYSTEM
APPLICATION OF IP TECHNIQUES IN TRAFFIC CONTROL SYSTEMAshik Ask
 
Computer Vision with Deep Learning
Computer Vision with Deep LearningComputer Vision with Deep Learning
Computer Vision with Deep LearningCapgemini
 
Real time video analytics with InfoSphere Streams, OpenCV and R
Real time video analytics with InfoSphere Streams, OpenCV and RReal time video analytics with InfoSphere Streams, OpenCV and R
Real time video analytics with InfoSphere Streams, OpenCV and RStephan Reimann
 
Design and Analysis of Quantization Based Low Bit Rate Encoding System
Design and Analysis of Quantization Based Low Bit Rate Encoding SystemDesign and Analysis of Quantization Based Low Bit Rate Encoding System
Design and Analysis of Quantization Based Low Bit Rate Encoding Systemijtsrd
 
"High-resolution 3D Reconstruction on a Mobile Processor," a Presentation fro...
"High-resolution 3D Reconstruction on a Mobile Processor," a Presentation fro..."High-resolution 3D Reconstruction on a Mobile Processor," a Presentation fro...
"High-resolution 3D Reconstruction on a Mobile Processor," a Presentation fro...Edge AI and Vision Alliance
 
Conference research paper_target_tracking
Conference research paper_target_trackingConference research paper_target_tracking
Conference research paper_target_trackingpatrobadri
 
Building AR/VR apps with AWS - SVC201 - Santa Clara AWS Summit.pdf
Building AR/VR apps with AWS - SVC201 - Santa Clara AWS Summit.pdfBuilding AR/VR apps with AWS - SVC201 - Santa Clara AWS Summit.pdf
Building AR/VR apps with AWS - SVC201 - Santa Clara AWS Summit.pdfAmazon Web Services
 
Recognition and tracking moving objects using moving camera in complex scenes
Recognition and tracking moving objects using moving camera in complex scenesRecognition and tracking moving objects using moving camera in complex scenes
Recognition and tracking moving objects using moving camera in complex scenesIJCSEA Journal
 
"Blending Cloud and Edge Machine Learning to Deliver Real-time Video Monitori...
"Blending Cloud and Edge Machine Learning to Deliver Real-time Video Monitori..."Blending Cloud and Edge Machine Learning to Deliver Real-time Video Monitori...
"Blending Cloud and Edge Machine Learning to Deliver Real-time Video Monitori...Edge AI and Vision Alliance
 
Neural Field aware Factorization Machine
Neural Field aware Factorization MachineNeural Field aware Factorization Machine
Neural Field aware Factorization MachineInMobi
 
Ai final ppt with InMobi template
Ai  final ppt with InMobi templateAi  final ppt with InMobi template
Ai final ppt with InMobi templateGunjan Sharma
 
Data quality is more important than you think
Data quality is more important than you thinkData quality is more important than you think
Data quality is more important than you thinkAmine Bendahmane
 
ML Paper Tutorial - Video Face Manipulation Detection Through Ensemble of CNN...
ML Paper Tutorial - Video Face Manipulation Detection Through Ensemble of CNN...ML Paper Tutorial - Video Face Manipulation Detection Through Ensemble of CNN...
ML Paper Tutorial - Video Face Manipulation Detection Through Ensemble of CNN...Pei-Yuan Chien
 
Jd Photo Tools - Company Presentation
Jd Photo Tools - Company PresentationJd Photo Tools - Company Presentation
Jd Photo Tools - Company Presentationjdingley
 
Video and animation
Video and animationVideo and animation
Video and animationGem WeBlog
 

Similar to Real-Time Motion Detection (20)

A Three-Dimensional Representation method for Noisy Point Clouds based on Gro...
A Three-Dimensional Representation method for Noisy Point Clouds based on Gro...A Three-Dimensional Representation method for Noisy Point Clouds based on Gro...
A Three-Dimensional Representation method for Noisy Point Clouds based on Gro...
 
BigML Release: Image Processing
BigML Release: Image ProcessingBigML Release: Image Processing
BigML Release: Image Processing
 
Essay reseach
Essay reseachEssay reseach
Essay reseach
 
Essay reseach
Essay reseachEssay reseach
Essay reseach
 
APPLICATION OF IP TECHNIQUES IN TRAFFIC CONTROL SYSTEM
APPLICATION OF IP TECHNIQUES IN TRAFFIC CONTROL SYSTEMAPPLICATION OF IP TECHNIQUES IN TRAFFIC CONTROL SYSTEM
APPLICATION OF IP TECHNIQUES IN TRAFFIC CONTROL SYSTEM
 
Computer Vision with Deep Learning
Computer Vision with Deep LearningComputer Vision with Deep Learning
Computer Vision with Deep Learning
 
Real time video analytics with InfoSphere Streams, OpenCV and R
Real time video analytics with InfoSphere Streams, OpenCV and RReal time video analytics with InfoSphere Streams, OpenCV and R
Real time video analytics with InfoSphere Streams, OpenCV and R
 
Design and Analysis of Quantization Based Low Bit Rate Encoding System
Design and Analysis of Quantization Based Low Bit Rate Encoding SystemDesign and Analysis of Quantization Based Low Bit Rate Encoding System
Design and Analysis of Quantization Based Low Bit Rate Encoding System
 
"High-resolution 3D Reconstruction on a Mobile Processor," a Presentation fro...
"High-resolution 3D Reconstruction on a Mobile Processor," a Presentation fro..."High-resolution 3D Reconstruction on a Mobile Processor," a Presentation fro...
"High-resolution 3D Reconstruction on a Mobile Processor," a Presentation fro...
 
Conference research paper_target_tracking
Conference research paper_target_trackingConference research paper_target_tracking
Conference research paper_target_tracking
 
Building AR/VR apps with AWS - SVC201 - Santa Clara AWS Summit.pdf
Building AR/VR apps with AWS - SVC201 - Santa Clara AWS Summit.pdfBuilding AR/VR apps with AWS - SVC201 - Santa Clara AWS Summit.pdf
Building AR/VR apps with AWS - SVC201 - Santa Clara AWS Summit.pdf
 
Recognition and tracking moving objects using moving camera in complex scenes
Recognition and tracking moving objects using moving camera in complex scenesRecognition and tracking moving objects using moving camera in complex scenes
Recognition and tracking moving objects using moving camera in complex scenes
 
"Blending Cloud and Edge Machine Learning to Deliver Real-time Video Monitori...
"Blending Cloud and Edge Machine Learning to Deliver Real-time Video Monitori..."Blending Cloud and Edge Machine Learning to Deliver Real-time Video Monitori...
"Blending Cloud and Edge Machine Learning to Deliver Real-time Video Monitori...
 
Neural Field aware Factorization Machine
Neural Field aware Factorization MachineNeural Field aware Factorization Machine
Neural Field aware Factorization Machine
 
Ai final ppt with InMobi template
Ai  final ppt with InMobi templateAi  final ppt with InMobi template
Ai final ppt with InMobi template
 
Data quality is more important than you think
Data quality is more important than you thinkData quality is more important than you think
Data quality is more important than you think
 
ML Paper Tutorial - Video Face Manipulation Detection Through Ensemble of CNN...
ML Paper Tutorial - Video Face Manipulation Detection Through Ensemble of CNN...ML Paper Tutorial - Video Face Manipulation Detection Through Ensemble of CNN...
ML Paper Tutorial - Video Face Manipulation Detection Through Ensemble of CNN...
 
Jd Photo Tools - Company Presentation
Jd Photo Tools - Company PresentationJd Photo Tools - Company Presentation
Jd Photo Tools - Company Presentation
 
Video and animation
Video and animationVideo and animation
Video and animation
 
Presentation1
Presentation1Presentation1
Presentation1
 

Recently uploaded

FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FIDO Alliance
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024Stephen Perrenod
 
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The Inside
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The InsideCollecting & Temporal Analysis of Behavioral Web Data - Tales From The Inside
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The InsideStefan Dietze
 
Oauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftOauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftshyamraj55
 
2024 May Patch Tuesday
2024 May Patch Tuesday2024 May Patch Tuesday
2024 May Patch TuesdayIvanti
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfSrushith Repakula
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...FIDO Alliance
 
AI mind or machine power point presentation
AI mind or machine power point presentationAI mind or machine power point presentation
AI mind or machine power point presentationyogeshlabana357357
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfFIDO Alliance
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?Mark Billinghurst
 
Event-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream ProcessingEvent-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream ProcessingScyllaDB
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe中 央社
 
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPTiSEO AI
 
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...FIDO Alliance
 
Introduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptxIntroduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptxFIDO Alliance
 
ERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage IntacctERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage IntacctBrainSell Technologies
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsLeah Henrickson
 
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfFIDO Alliance
 
Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Patrick Viafore
 
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireExakis Nelite
 

Recently uploaded (20)

FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024
 
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The Inside
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The InsideCollecting & Temporal Analysis of Behavioral Web Data - Tales From The Inside
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The Inside
 
Oauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftOauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoft
 
2024 May Patch Tuesday
2024 May Patch Tuesday2024 May Patch Tuesday
2024 May Patch Tuesday
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
 
AI mind or machine power point presentation
AI mind or machine power point presentationAI mind or machine power point presentation
AI mind or machine power point presentation
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
Event-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream ProcessingEvent-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream Processing
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe
 
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
 
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
 
Introduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptxIntroduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptx
 
ERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage IntacctERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage Intacct
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
 
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
 
Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024
 
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - Questionnaire
 

Real-Time Motion Detection

  • 1. Motion Detection Zezheng(Andy) Long Machine Learning/AI Engineer Chih Lai, Ph.D. Supervisor, AI Professor at University of St. Thomas © Copyright 2019 by Zezheng Long
  • 2. • Collect RGB Image Data • Create Motion Proposal from Gray-Scale Frames • Convert Motion Proposal to Binary Motion Map (BMM) • Create Color Motion Map (CMM) by Stacking 8 BMMs • Retrain CNN Transfer Learning Model to Classify Motions • Real-Time Motion Detection Demo © Copyright 2019 by Zezheng Long Contents
  • 3. Collect RGB Image Data Resolution Rate: 640 x 480 Camera FPS: 30fps © Copyright 2019 by Zezheng Long
  • 4. Motion Proposal Difference Between 2 Frames © Copyright 2019 by Zezheng Long Why Do I Transfer RGB to Gray-Scale? • Get Rid of Color Effect • Less Noise Original Motion Proposal Original Motion Proposal x 50 (easy to visualize the noise)
  • 5. Binary Motion Map (BMM) Original Motion Proposal Original Motion Proposal x 50 (easy to visualize the noise) BMM Motion Proposal > 40 = 1 Motion Proposal <=40 = 0 © Copyright 2019 by Zezheng Long What Does BMM Do? • Capture Spatial Motion Information
  • 6. Color Motion Map (CMM) BMM 1 BMM 2 BMM 3 BMM 4 BMM 5 BMM 6 BMM 7 BMM 8 CMM 1 © Copyright 2019 by Zezheng Long • Stack 8 BMMs, and Assign Colors to Motions Based on Time • See the Color-Map Bar Less Recent BMM More Recent BMM What Does CMM do? • Capture Spatial + Temporal Motion Information
  • 7. CNN Transfer Learning • Transfer Learning Model: AlexNet • Dataset: 2966 CMMs • Good Motion: 1483 CMMs • Bad Motion: 1483 CMMs • Testing Result: • Recall: 98.7% • precision: 99.7% • Accuracy: 99.2% © Copyright 2019 by Zezheng Long
  • 8. Real-Time Motion Detection Demo •Exciting Part!!! © Copyright 2019 by Zezheng Long
  • 9. Further Study • Use Case: • Observe Patients / AI Family Doctor • Public Security / Surveillance • … … • Multiple People • 3-D camera • Instance Segmentation © Copyright 2019 by Zezheng Long
  • 10. Questions • Why NOT Use CNN AutoEncoder + LSTM? • … …? © Copyright 2019 by Zezheng Long