SlideShare a Scribd company logo
Traffic Accident
Detection
Traffic Accident: Detection
Under supervision of
Dr. Amani Hassan
Eng. Dina Amr
Presented by
Mohanad Talat 20190561
Eslam Mohamed 20190098
Maher Esmat 20190410
Sayed Shaaban 20190254
Ahmed Mohamed 20190071
Khalid Hassan 20190187
INTRODUCTION RELATED WORK
MODEL CONCLUSION
DATASET
PLAN FRAMEWORK
RESULTS
TABLE OF CONTENT
INTRODUCTION
INTRODUCTION
● According to the World Health Organization, Egypt has one of the highest rates of road accidents
worldwide. In 2016, WHO estimated road fatalities in Egypt at 9,287. The latest WHO data published in
2020 shows that road traffic accidents deaths in Egypt reached 10,141.
● Fast response to an accident is so crucial that a 7 to 12 minutes delay, can result in the odds of death
increasing by 46 percent
● Traffic accidents pose a significant threat to public safety and cause numerous injuries and fatalities
worldwide. Prompt detection of accidents can enable swift emergency responses, minimizing the potential
impact and saving lives. This problem definition focuses on developing a model to detect traffic accidents
using popular object detection models such as YOLO, SSD, and Faster R-CNN. The goal is to compare
these models and select the most effective one for deployment in CCTV cameras.
Problem Definition
The Problem is to build a reliable and accurate traffic accident detection
system using state-of-the-art object detection models. The system should be
able to analyze live video feeds from CCTV cameras and determine whether
an accident has occurred or not, based on the presence of specific visual cues
such as collision, and vehicle damage. The system's performance will be
evaluated based on accuracy, precision, recall, and computational efficiency.
Objective
● The aim of this project is to help
reduce traffic accidents.
● By trying to predict and
categorize the accident.
● We don’t need to depend on
human.
● But how could this possibly be
useful ??
Applications
● Notify authorities as soon as an
accident occurs.
● By using CCTV cameras installed in
the accident location .
● So we avoid to depend on the human.
RELATED WORK
Object Detection
Object detection is the field
of computer vision that deals
with the localization and
classification of objects
contained in an image or
video.
Drawing bounding boxes
around detected objects which
allow us to locate them in a
given scene. Object Detection
Semantic Segmentation
The process of dividing a digital
image into multiple image
segments, also known as image
regions or image objects, is
known as image segmentation
(sets of pixels).
Image segmentation is commonly
used to find objects and boundaries
(lines, curves, and so on) in images.
Semantic Segmentation
Pedestrian Detection
predicts information about the
pedestrian's position, provides a
comprehensive overview and
arguments for replacing based
on the detection in the current
frame.
It has an obvious extension
to automotive applications
due to the potential for
improving safety systems.
Pedestrian Detection
An Attention-guided
Multi-stream Feature
Fusion Network for
Localization of Risky
Objects in Driving
Videos Link
PLAN
PLAN
FRAMEWORK
• Python in implementation
FRAMEWORK
- CADP dataset
Annotation For Traffic CCTV Videos
Programming Language DataSet
DATASET
DATASET
- The dataset consists
of 1,416 video
segments collected
from YouTube
- The dataset contains
frames of different videos
of CCTV traffic cameras.
- Average length of
videos in our dataset is
366 frames per video
with longest video
consisting of 554
frames.
- The dataset has
both low and
high resolution.
- Total duration of videos is 5.2 hours.
Data Visualization
Normalize image size :
- We are doing this step because the CNN
models should take the same input size.
- The size of image is (500,500,3) -
(Width,height, RGB)
Preprocessing
Original
Normalized(500,500,3)
Segmentation and morphology :
- As we can see we are going to use this step
in our preprocessing because it remove the
most important feature (cars) from
images.
Preprocessing
Duplicate data has been deleted
Bad quality data has been deleted
All frames that do not guarantee a traffic
accident have been deleted
Data filtering
Not interested
.
Annotating tools
MODEL
Object Detection
One-
Stage/Proposal-
Free
YOLO SSD
Two-
Stage/Proposal
Faster-RCNN
● The image is fed to CNN which generates a
convolutional feature map
● First, Feed feature map into an independent
fully convolutional network Region Proposal
Network(RPN)
● Second feed generated proposals to a Fast R-
CNN network.
● Faster R-CNN is better because ROI generation
is now integrated within network
● One drawback of Faster R-CNN is that the RPN
can be slow, it is also unable to detect small
objects
Faster R-CNN (ResNet-50)
YOLO_V5_ Overview
Evolution from previous versions
Key features and improvements
Comparison to other object detection
algorithms (Faster R-CNN, SSD, etc.) D.
Supported frameworks and languages
YOLO_v5 Architecture
A. High-level architecture
B. Backbone network (e.g.,
CSPDarknet53, EfficientNet)
C. Neck and head components D.
Loss functions and training process
YOLO_V5
• You Only Look Once
• Proposes using an end-to-end neural network
that makes predictions of bounding boxes and
class probabilities all at once. It differs from
the approach taken by previous object
detection algorithms, which repurposed
classifiers to perform detection
• YOLO is a single-stage model so it can process
images much faster than RCNN family and
require much less training data, However it is
not as accurate as RCNN family and cannot
identify overlapping objects
SSD
SSD_mobilenet
_v2_320*320
SSD_mobilen
et_v2_fbnlite_
640*640
SSD_mobilenet_
v2_fbnlite_320*3
20
SSD_mobilenet (v2_320*320)
- Balanced Accuracy and Efficiency: The model offers
a good balance between detection accuracy and
computational efficiency. It is suitable for real-time
applications on resource-constrained devices,
where both accuracy and efficiency are important.
- Multi-Scale Feature Extraction: The MobileNetV2
backbone enables the extraction of multi-scale
features, allowing the model to detect objects at
different scales and adapt to varying object sizes
present in the input images.
MobileNetV2 Architecture
Introduction to MobileNetV2
Key features and design principles
Lightweight and efficient architecture
Depthwise separable convolutions
Inverted residual blocks
SSD_mobilenet (v2_fbnlite_640*640)
- Improved Efficiency: The Fused Batch
Normalization Lite (FBNLite) variant of MobileNetV2
reduces memory consumption and improves
inference speed. It is optimized for efficient object
detection on mobile and embedded devices, making
it ideal for applications where computational
resources are limited.
- Aspect Ratio Flexibility: The elongated aspect ratio
(640x640) allows the model to handle objects with
non-standard aspect ratios more effectively. This
can be beneficial when dealing with objects that are
elongated or have specific aspect ratio
characteristics.
SSD_mobilenet (v2_fbnlite_320x320)
- Enhanced Efficiency: The FBNLite variant of
MobileNetV2 further improves computational
efficiency compared to the standard MobileNetV2
backbone. It reduces memory usage and speeds up
inference, making it well-suited for real-time
applications.
- Accurate Object Detection: While sacrificing some
accuracy compared to higher-resolution models,
SSD MobileNetV2 FBNLite 320x320 still maintains
good object detection performance. It strikes a
balance between accuracy and efficiency, making it
suitable for applications where real-time
performance is critical
RESULTS
Single frame normal
Single frame collision
CONCLUSION
Conclusion
. Finding data
. Applying all the required preprocessing
. Find models to work on the data
. Apply different models on the data
. Compare between the models
. Use the best model on real time camera
. Deployment the model on a Website Interface

More Related Content

PDF
Object Detection An Overview
PDF
A REVIEW ON IMPROVING TRAFFIC-SIGN DETECTION USING YOLO ALGORITHM FOR OBJECT ...
PPTX
ObjectDetection.pptx
PDF
Accident Precaution System For Vehicle In Motion Using Machine Learning
PDF
ACCIDENT DETECTION USING BiLSTM
PPTX
Project Purposel for reference to do project
PDF
Intelligent Traffic Light Control System
PDF
Vision-Based Motorcycle Crash Detection and Reporting Using Deep Learning
Object Detection An Overview
A REVIEW ON IMPROVING TRAFFIC-SIGN DETECTION USING YOLO ALGORITHM FOR OBJECT ...
ObjectDetection.pptx
Accident Precaution System For Vehicle In Motion Using Machine Learning
ACCIDENT DETECTION USING BiLSTM
Project Purposel for reference to do project
Intelligent Traffic Light Control System
Vision-Based Motorcycle Crash Detection and Reporting Using Deep Learning

Similar to GP_Slides_V3 .pptx (20)

PDF
Automatic Detection of Unexpected Accidents Monitoring Conditions in Tunnels
PDF
Object Detetcion using SSD-MobileNet
PPTX
Deep learning based object detection
PDF
Performance Evaluation of CNN Based Pedestrian and Cyclist Detectors On Degra...
PDF
Virtual Environments as Driving Schools for Deep Learning Vision-Based Sensor...
PPTX
Accident prevention and traffic control at hill stations ppt.pptx
PPTX
Object detection presentation
PDF
ASSISTANCE SYSTEM FOR DRIVERS USING IOT
PPTX
Traffic Violation Detector using Object Detection
PDF
Vigilance: Vehicle Detector and Tracker
PDF
REAL-TIME OBJECT DETECTION USING OPEN COMPUTER VISION
PDF
Traffic Management system using Deep Learning
PDF
Modern convolutional object detectors
PPTX
A Deep Learning algorithm for automatic detection of unexpected accidents und...
PPTX
FINAL PPT ALL.pptx
PDF
Real Time Moving Object Detection for Day-Night Surveillance using AI
PDF
Traffic Sign Detection and Recognition for Automated Driverless Cars Based on...
PDF
IRJET- A Survey of Approaches for Vehicle Traffic Analysis
PDF
IRJET- A Survey of Approaches for Vehicle Traffic Analysis
PDF
Convolutional Neural Network Based Real Time Object Detection Using YOLO V4
Automatic Detection of Unexpected Accidents Monitoring Conditions in Tunnels
Object Detetcion using SSD-MobileNet
Deep learning based object detection
Performance Evaluation of CNN Based Pedestrian and Cyclist Detectors On Degra...
Virtual Environments as Driving Schools for Deep Learning Vision-Based Sensor...
Accident prevention and traffic control at hill stations ppt.pptx
Object detection presentation
ASSISTANCE SYSTEM FOR DRIVERS USING IOT
Traffic Violation Detector using Object Detection
Vigilance: Vehicle Detector and Tracker
REAL-TIME OBJECT DETECTION USING OPEN COMPUTER VISION
Traffic Management system using Deep Learning
Modern convolutional object detectors
A Deep Learning algorithm for automatic detection of unexpected accidents und...
FINAL PPT ALL.pptx
Real Time Moving Object Detection for Day-Night Surveillance using AI
Traffic Sign Detection and Recognition for Automated Driverless Cars Based on...
IRJET- A Survey of Approaches for Vehicle Traffic Analysis
IRJET- A Survey of Approaches for Vehicle Traffic Analysis
Convolutional Neural Network Based Real Time Object Detection Using YOLO V4
Ad

Recently uploaded (20)

PDF
Mastering Query Optimization Techniques for Modern Data Engineers
PPTX
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
PPTX
Trading Procedures (1).pptxcffcdddxxddsss
PPTX
Data-Driven-Credit-Card-Launch-A-Wells-Fargo-Case-Study.pptx
PPTX
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
PPTX
LESSON-1-NATURE-OF-MATHEMATICS.pptx patterns
PDF
Report The-State-of-AIOps 20232032 3.pdf
PPTX
lec_5(probability).pptxzzjsjsjsjsjsjjsjjssj
PPTX
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
PDF
Data Science Trends & Career Guide---ppt
PPTX
Moving the Public Sector (Government) to a Digital Adoption
PPT
Chapter 3 METAL JOINING.pptnnnnnnnnnnnnn
PDF
Taxes Foundatisdcsdcsdon Certificate.pdf
PPTX
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
PDF
Foundation of Data Science unit number two notes
PPTX
Bharatiya Antariksh Hackathon 2025 Idea Submission PPT.pptx
PPTX
咨询新西兰毕业证(UCOL毕业证书)联合理工学院毕业证国外毕业证
PDF
Company Presentation pada Perusahaan ADB.pdf
PDF
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
PPT
Miokarditis (Inflamasi pada Otot Jantung)
Mastering Query Optimization Techniques for Modern Data Engineers
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
Trading Procedures (1).pptxcffcdddxxddsss
Data-Driven-Credit-Card-Launch-A-Wells-Fargo-Case-Study.pptx
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
LESSON-1-NATURE-OF-MATHEMATICS.pptx patterns
Report The-State-of-AIOps 20232032 3.pdf
lec_5(probability).pptxzzjsjsjsjsjsjjsjjssj
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
Data Science Trends & Career Guide---ppt
Moving the Public Sector (Government) to a Digital Adoption
Chapter 3 METAL JOINING.pptnnnnnnnnnnnnn
Taxes Foundatisdcsdcsdon Certificate.pdf
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
Foundation of Data Science unit number two notes
Bharatiya Antariksh Hackathon 2025 Idea Submission PPT.pptx
咨询新西兰毕业证(UCOL毕业证书)联合理工学院毕业证国外毕业证
Company Presentation pada Perusahaan ADB.pdf
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
Miokarditis (Inflamasi pada Otot Jantung)
Ad

GP_Slides_V3 .pptx

  • 2. Traffic Accident: Detection Under supervision of Dr. Amani Hassan Eng. Dina Amr Presented by Mohanad Talat 20190561 Eslam Mohamed 20190098 Maher Esmat 20190410 Sayed Shaaban 20190254 Ahmed Mohamed 20190071 Khalid Hassan 20190187
  • 3. INTRODUCTION RELATED WORK MODEL CONCLUSION DATASET PLAN FRAMEWORK RESULTS TABLE OF CONTENT
  • 5. INTRODUCTION ● According to the World Health Organization, Egypt has one of the highest rates of road accidents worldwide. In 2016, WHO estimated road fatalities in Egypt at 9,287. The latest WHO data published in 2020 shows that road traffic accidents deaths in Egypt reached 10,141. ● Fast response to an accident is so crucial that a 7 to 12 minutes delay, can result in the odds of death increasing by 46 percent ● Traffic accidents pose a significant threat to public safety and cause numerous injuries and fatalities worldwide. Prompt detection of accidents can enable swift emergency responses, minimizing the potential impact and saving lives. This problem definition focuses on developing a model to detect traffic accidents using popular object detection models such as YOLO, SSD, and Faster R-CNN. The goal is to compare these models and select the most effective one for deployment in CCTV cameras.
  • 6. Problem Definition The Problem is to build a reliable and accurate traffic accident detection system using state-of-the-art object detection models. The system should be able to analyze live video feeds from CCTV cameras and determine whether an accident has occurred or not, based on the presence of specific visual cues such as collision, and vehicle damage. The system's performance will be evaluated based on accuracy, precision, recall, and computational efficiency.
  • 7. Objective ● The aim of this project is to help reduce traffic accidents. ● By trying to predict and categorize the accident. ● We don’t need to depend on human. ● But how could this possibly be useful ??
  • 8. Applications ● Notify authorities as soon as an accident occurs. ● By using CCTV cameras installed in the accident location . ● So we avoid to depend on the human.
  • 10. Object Detection Object detection is the field of computer vision that deals with the localization and classification of objects contained in an image or video. Drawing bounding boxes around detected objects which allow us to locate them in a given scene. Object Detection
  • 11. Semantic Segmentation The process of dividing a digital image into multiple image segments, also known as image regions or image objects, is known as image segmentation (sets of pixels). Image segmentation is commonly used to find objects and boundaries (lines, curves, and so on) in images. Semantic Segmentation
  • 12. Pedestrian Detection predicts information about the pedestrian's position, provides a comprehensive overview and arguments for replacing based on the detection in the current frame. It has an obvious extension to automotive applications due to the potential for improving safety systems. Pedestrian Detection
  • 13. An Attention-guided Multi-stream Feature Fusion Network for Localization of Risky Objects in Driving Videos Link
  • 14. PLAN
  • 15. PLAN
  • 17. • Python in implementation FRAMEWORK - CADP dataset Annotation For Traffic CCTV Videos Programming Language DataSet
  • 19. DATASET - The dataset consists of 1,416 video segments collected from YouTube - The dataset contains frames of different videos of CCTV traffic cameras. - Average length of videos in our dataset is 366 frames per video with longest video consisting of 554 frames. - The dataset has both low and high resolution. - Total duration of videos is 5.2 hours.
  • 21. Normalize image size : - We are doing this step because the CNN models should take the same input size. - The size of image is (500,500,3) - (Width,height, RGB) Preprocessing Original Normalized(500,500,3)
  • 22. Segmentation and morphology : - As we can see we are going to use this step in our preprocessing because it remove the most important feature (cars) from images. Preprocessing
  • 23. Duplicate data has been deleted Bad quality data has been deleted All frames that do not guarantee a traffic accident have been deleted Data filtering Not interested
  • 25. MODEL
  • 27. ● The image is fed to CNN which generates a convolutional feature map ● First, Feed feature map into an independent fully convolutional network Region Proposal Network(RPN) ● Second feed generated proposals to a Fast R- CNN network. ● Faster R-CNN is better because ROI generation is now integrated within network ● One drawback of Faster R-CNN is that the RPN can be slow, it is also unable to detect small objects Faster R-CNN (ResNet-50)
  • 28. YOLO_V5_ Overview Evolution from previous versions Key features and improvements Comparison to other object detection algorithms (Faster R-CNN, SSD, etc.) D. Supported frameworks and languages
  • 29. YOLO_v5 Architecture A. High-level architecture B. Backbone network (e.g., CSPDarknet53, EfficientNet) C. Neck and head components D. Loss functions and training process
  • 30. YOLO_V5 • You Only Look Once • Proposes using an end-to-end neural network that makes predictions of bounding boxes and class probabilities all at once. It differs from the approach taken by previous object detection algorithms, which repurposed classifiers to perform detection • YOLO is a single-stage model so it can process images much faster than RCNN family and require much less training data, However it is not as accurate as RCNN family and cannot identify overlapping objects
  • 32. SSD_mobilenet (v2_320*320) - Balanced Accuracy and Efficiency: The model offers a good balance between detection accuracy and computational efficiency. It is suitable for real-time applications on resource-constrained devices, where both accuracy and efficiency are important. - Multi-Scale Feature Extraction: The MobileNetV2 backbone enables the extraction of multi-scale features, allowing the model to detect objects at different scales and adapt to varying object sizes present in the input images.
  • 33. MobileNetV2 Architecture Introduction to MobileNetV2 Key features and design principles Lightweight and efficient architecture Depthwise separable convolutions Inverted residual blocks
  • 34. SSD_mobilenet (v2_fbnlite_640*640) - Improved Efficiency: The Fused Batch Normalization Lite (FBNLite) variant of MobileNetV2 reduces memory consumption and improves inference speed. It is optimized for efficient object detection on mobile and embedded devices, making it ideal for applications where computational resources are limited. - Aspect Ratio Flexibility: The elongated aspect ratio (640x640) allows the model to handle objects with non-standard aspect ratios more effectively. This can be beneficial when dealing with objects that are elongated or have specific aspect ratio characteristics.
  • 35. SSD_mobilenet (v2_fbnlite_320x320) - Enhanced Efficiency: The FBNLite variant of MobileNetV2 further improves computational efficiency compared to the standard MobileNetV2 backbone. It reduces memory usage and speeds up inference, making it well-suited for real-time applications. - Accurate Object Detection: While sacrificing some accuracy compared to higher-resolution models, SSD MobileNetV2 FBNLite 320x320 still maintains good object detection performance. It strikes a balance between accuracy and efficiency, making it suitable for applications where real-time performance is critical
  • 40. Conclusion . Finding data . Applying all the required preprocessing . Find models to work on the data . Apply different models on the data . Compare between the models . Use the best model on real time camera . Deployment the model on a Website Interface