caraccidentdetection_Divya
caraccidentdetection_Divya
OF
SUBMITTED BY
Prof. A. R. Patil
Submitted By
We would like to thank all those, who have directly or indirectly helped us for
the completion of the work during this project.
List of Figures IV
List of Tables V
Sr Title Page
No. No.
1 INTRODUCTION 1
1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Motivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3 Problem Definition . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2 LITERATURE SURVEY 5
4 SYSTEM DESIGN 16
4.1 System Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.2 System Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.3 Data Flow Diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.3.1 DFD Level 0 . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.3.2 DFD Level 1 . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.3.3 DFD Level 2 . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.4 UML Diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
4.4.1 Use Case Diagram . . . . . . . . . . . . . . . . . . . . . . . 19
4.4.2 Activity Diagram . . . . . . . . . . . . . . . . . . . . . . . . 19
4.4.3 Sequence Diagram . . . . . . . . . . . . . . . . . . . . . . . 20
4.4.4 Component Diagram . . . . . . . . . . . . . . . . . . . . . . 20
4.4.5 Deployment Diagram . . . . . . . . . . . . . . . . . . . . . . 21
4.4.6 State Transition Diagram . . . . . . . . . . . . . . . . . . . 21
4.4.7 Package Diagram . . . . . . . . . . . . . . . . . . . . . . . . 22
5 OTHER SPECIFICATION 23
5.1 Advantages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
5.2 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
5.3 Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
6 PROJECT IMPLEMENTATION 24
6.1 Implementation Detail . . . . . . . . . . . . . . . . . . . . . . . . . 24
6.2 Tools and Technologies Used . . . . . . . . . . . . . . . . . . . . . . 27
7 TESTING 28
7.1 Type of Testing Used . . . . . . . . . . . . . . . . . . . . . . . . . . 28
8 RESULT 31
8.1 Outcomes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
8.2 Screen Shots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Appendix A REFERENCES 39
Appendix C CERTIFICATES 42
CHAPTER 1
INTRODUCTION
1.1 Introduction
The incidence of traffic accidents and deaths has increased along with increasing
consumer demand for and broad usage of automobiles. Nowadays, there are more
fatalities on the roads than ever. Injuries experienced while driving can end up
in enormous financial consequences for people. their homes, and whole nations.
Tragically, a lot of individuals have perished as a result of delayed assistance. Even
a seemingly small accident might be catastrophic if first aid is not administered
right after. In a critical situation, it’s probable that the car’s driver or passengers
won’t be capable to reach out for help.
At any expense, accidental deaths must be avoided. While accidents cannot
be prevented, researchers can ensure that those who are hurt swiftly get medical
attention. In a case like this, each moment matters for rescue staff. There are
several deaths as a result of the ambulance’s delayed arrival. The lapse in time is
mostly caused by the possibility that no one saw what occurred.
Regarding causal factors, automobile collisions are responsible for an overabun-
dance of fatalities and serious injuries. Insufficient emergency care is responsible
for a higher percentage of fatalities compared to those resulting from vehicular
accidents. Although car accidents are typically unforeseen events, they can be
averted through timely and dependable emergency medical attention. Possible
factors that may lead to accidents include mechanical malfunction, unfavourable
highway conditions, and delayed driver response. In the absence of immediate
medical intervention following an injury-inducing event, there is a high probabil-
ity of fatality for the victim. The lengthening of ambulance turnaround times
can be attributed primarily to delays in the notification of emergency services. In
situations where the unfortunate individual is unable to function, their ability to
among life and death for those who are injured. With this strategy, the time it
takes to get medical assistance after an accident is cut down significantly. The
most significant shortcoming of the system is that it is unable to function in areas
that have dense extensions or even inadequate network connectivity at all.
Liang-Bi Chen [2] suggested employing an in-vehicle amusement informatics
framework as a heterogeneous bridging interface for linking multiple communica-
tion modalities in his concept for an IoV system. This idea was presented in the
context of an IoV system. For the purpose of predicting the occurrence of traf-
fic collision incidents, the TensorFlow framework has implemented deep learning
algorithms on a cloud-based autonomous neural training infrastructure. It has
become abundantly evident, on the basis of actual findings, that deep learning
has the potential to make major advancements in the effectiveness of identifying
road accident incidents. If it is determined that a traffic collision has occurred,
the pertinent information will be uploaded to a cloud-based technology platform
in order to be used in an instant warning as well as additional operations.
It is possible for the safety of both the driver and passengers in a vehicle to
be improved by using the technology proposed by Navin Kumar M [3]. Because
the technology provides everything on its own, there is no requirement for any
kind of involvement from a person. It is possible that putting this method into
action can assist guarantee that the individual gets prompt medical treatment,
which will increase their probability of survivability. The equipment used has the
capacity to determine the precise location of an accident and the circumstances
of the incident, which enables it to compute the number of automobiles that were
involved and, as a result, the number of paramedics that will be necessary to
promptly transfer all of the injured people.
1.2 Motivation
CHAPTER 2
LITERATURE SURVEY
In the words of Sonjoy Rana [4,] the information that is being provided here is
intended to make the emergency response unit (ERU) more efficient and speedy
so that it can better assist patients in need. This prototype is able to conduct
an investigation into the events leading up to an accident and promptly alert the
relevant parties through mobile app or text message. A GPS module also relays
the current location of the incident to the responding personnel. The system’s
two smartphone applications include a Driver characteristic for synchronising the
individual’s telephone with the QARS record keeping system, a Pedestrian variant
for providing photos and videos from the location of a collision, in addition to a
Disaster Services connected that gets all notifications, declarations, and data anal-
ysis on incidents. The platform also includes a The sidewalk variant for providing
images and footage from the context of a car crash. Due to the fact that this
is the case of emergency, the Quick Accident Response System (QARS) could be
able to assist in reducing the number of fatalities that are related with vehicular
accidents.
Using a ResNet with a customised this was before the-activation, a spatio-
temporal 3D kernel programme, and an architecture known as a fully-hypothesized
postoperative network (FPN), Hyunwoo Kim [5] proposed a method for identifying
automobile wrecks in CCTV video. This method makes use of a fully-hypothesized
postoperative network (FPN). It is possible that enabling parallel processing would
improve the performance of processing since the proposed architecture is based on
convolutional neural networks. The periodic input helps to lower the overall com-
puting overhead, while the most recent pre-activation and the FPN both contribute
to an increase in accuracy. This tactic might be used in a CCTV administration
system to improve the effectiveness of the system by enabling every leadership
agent to monitor a greater number of cameras at the same time.
According to Rajvardhan Rishi’s [6] research, the AMS system will make sig-
nificant advances to the field of automobile accidents. The automatic messaging
system makes it possible to give assistance to the person who survived a vehicle
accident as quickly as possible. Because of this, the victim has a better chance of
surviving the attack. Incorporating AMS into the production process of vehicle
gearboxes might potentially improve their overall utility. In the vast majority of
contemporary autos, there is no provision for installing an AMS system. Through
the application of mobile phone technology, an automobile manufacturer or en-
forcement service may immediately react to incidents, hence lowering the overall
number of fatalities and the severity of injuries.
As Aparajith Srinivasan [7] explains, reported work serves as part of a mishap
recognition architecture; this encompasses daytime, evening, misty, snowy, and
dusty conditions. It has been shown via empirical research that the brand-new,
state-of-the-art Recognition Transformer significantly improves the precision with
which incidents may be spotted in surveillance film. The Random Forest method
will be used as a supplementary aid for the classification procedure when it was
decided to do so. We were able to achieve a low latency while maintaining an
excellent rate of detection, which was an improvement over our earlier attempts
by a substantial margin. One of the challenges that the DETR has at the moment
is the reality that it has difficulty locating very minute details.
The technique that was presented by Gokul Rajesh [8] is employed to determine
the causes of vehicle accidents. The Global Positioning System (GSM) module will
transmit an alarm to the several command centres in the area if an event is found
to have occurred. But in contrast to the systems that are in place right now,
this particular one is more trustworthy and economical. Even while the system
design is being trained to utilise the created information, it is already capable of
identifying accidents with anything like an exceptional level of accuracy. An early
examination substantiates the hypothesis that the system operates faultlessly and
can be scaled. If this system is implemented, the appropriate authorities will
be alerted instantly, and the time it takes for first responders to get at the site
of an accident will be cut down significantly. Because of this, the solution that
was presented will be valuable in a future where accidents involving vehicles are
becoming an increasingly important issue.
As suggested by Prasanmit Nath [9], this could possibly be deployed as a
component of a well-connected medical evacuation assistance, with ambulances
being sent to the sites of incidents in which they are required the most. When
determining what kinds of supplies a paramedic needs to bring to the site of a
vehicle collision, it is helpful to keep in mind the severity of the crash in order
to make the most informed decision possible. It is necessary for the gadget to
be permanently mounted inside the vehicle if it is to be utilised in a setting that
simulates real-world conditions. It is necessary for it to have a robust power supply
that is self-contained in order for it to be able to survive a significant accident and
continue to provide data to the EMS.
The new approach developed by Dhananjai Chand [10] includes a recommenda-
tion to identify vehicle impacts. The accumulation of data from relocating targets
is an essential component of the model. In addition, the video feed from a dash
cam could be utilised in activities like as calculating velocity, recognising lanes,
and detecting convergence of velocity vectors. Because of the myriad of param-
eters that we have included into the framework in order to assess the likelihood
of accidents, the structure is more reliable than it has ever been. The activities
of these individuals contribute to the formation of the foundation for autonomous
cars throughout Asia. However, we do not yet have access to massive datasets
that have been well annotated so that we may test and improve our system. In
addition to this, the limitation of the outcome is the capacity of prediction that
such a Mask R-CNN architecture has.
Durgesh Kumar Yadav has reviewed a number of different research that investi-
gate different strategies for locating accidents [11]. This initiative aims to enhance
the underlying physical network rather than the ability of Intelligent Transporta-
tion Systems (ITS) to recognise congestion issues, accidents, and other events as
they occur. Several scholars and industry professionals have come up with a va-
riety of ideas for the implementation of autonomous accident surveillance. They
detect precisely where there was a crash of crashes in traffic by using means such
CHAPTER 3
3.1 Introduction
team and audience see the product and its functionality. The Main Purpose of
System is to deploy the Voice based email system for visually impaired users to
provide voice based navigation and improved convenience.
The setup should be precise for the capturing of the car input video for the car
accident detection scenario. The constraints felt thus far by the developer have
only been our weekly story cards, the end-to-end side of the interface, and time to
time brushing on methodology of implementation which schedule the completion
of the project in May 2023.
The major scope of this project is as follows
The training is performed for a limited set of input car accident dataset.
This project is for the average user to enhance the experience while utilizing
a car accident detection system. This is having following characteristics:
End User
Activate System.
System Speed.
IDE Configuration.
Our system interacts with storage for car accident input video.
Our system’s different modules are communicating with one another on the fol-
lowing scenarios:
High Speed: System should process car accident detection in good speed.
Then system must wait for process completion.
Accuracy: System should correctly detect the car accident, and display the
result accurately. System output should be in user required format. That
means all the intermediate steps need to be display properly.
The system need to be properly converted into executable file format so that
the source code of the system will preserved from any kind of intrusions.
The system need to be secured using the proper credentials and always the
backup of the system need to be kept to restore the whole system again in worst
case scenario.
1. Platform: Python
2. Technology : Python SDK
3. IDE: Spyder 5.0
3.6 SDLC
The Project for Car Accident Detection using Deep Learning is developed
under waterfall model architecture as shown in the below figure 3.1.
According to this model the planning about the project is done followed by the
requirement analysis. Once the requirement analysis is fulfilled the design process
was started followed by coding process. After the coding process implementation
Literature Review On Linear Solver Case : This time, our team performs
the literature review.
Abstract & Synopsis Submission : This time, our team wrote the abstract
and synopsis.
Scheme of Implementation : This time, our team developed the basic mod-
ule.
Layout and Design setup : This time, our team designed a user interface.
Detailed problem definition, SRS , platform : This time, our team wrote the
detailed problem definition in SRS.
Modify and optimize the bottlenecks : The bottlenecks are identified and
implementation is modified according to the need.
Detailed design Document and Methodology : This time, our team wrote
the detailed documentation and designed a project methodology.
Experimental Result : The obtained results are tabulated for different trials.
Analysis , Validation of result and conclusion : Here our team analyzed and
validated the result and wrote the conclusion.
Report Document the entire work : Here, our team reports the entire docu-
mentation of the work.
CHAPTER 4
SYSTEM DESIGN
The system overview diagram of figure no 4.2 provides an overview of the sys-
tem with the important modules in the form of blocks. At first the fingerprint
dataset is extracted and preprocessed through Image Normalization. These Im-
age Normalization image is then provided to the CNN processing. The Decision
Making is then implemented to achieve the Car Accident Detection.
The DFD 0 diagram of figure no. 4.3 for the data flow diagrams describes the
flow of the approach. The DFD diagram provides the simplest flow where in the
Test Video is preprocessed and the CNN is implemented and the Car Accident
Detection is performed.
The DFD 1 diagram of figure no. 4.4 provides even more details wherein
the user provides the test video which is effectively preprocessed. The Image
Normalization is performed and provided to the CNN which are used to perform
CNN 1st layer and training dataset to achieve the Car Accident Detection.
The DFD 2 diagram of figure no. 4.5 is the most detailed wherein the user
provides the test video which is preprocessed through image resizing and then
the Image Normalization is evaluated. These Image Normalization image is then
provided to the CNN that utilizes the Activation function. The Dense layer is
then implemented on the trained module to achieve the Car Accident Detection.
The Use case Diagram of figure no. 4.6 depicts the various use cases that are
performed by the user in the proposed model. The use cases feeding the train
dataset, activate system, feeding the test video, and finally view the Car Accident
Detection result.
The activity diagram of figure no. 4.7 lists the various activities that
are performed in the proposed methodology, the start state is initiated and the
dataset is fed, the system is trained and the test video is fed after which the result
is viewed.
The sequence role diagram of figure no. 4.8 provides a sequence of the
approaches as well as the various roles performed in the intermediate.
The component diagram of figure no. 4.9 illustrates the important components
in the proposed system. In our approach the important components consist of the
Test Video which is interlinked with Image Normalization and CNN.
The deployment diagram of figure no. 4.10 illustrates the important resources
that are utilized for the deployment purposes.
The state transition diagram of figure no. 4.11 provides the various states
that the proposed system goes through. Initially the start state wherein the user
provides the test video which is preprocessed through image resizing and then
the Image Normalization is evaluated. These Image Normalization image is then
provided to the CNN that utilizes the Activation function. The Dense layer is
then implemented on the trained module to achieve the Car Accident Detection
and then reaches the stop state.
The package diagram of figure no. 4.12 lists all the important modules and
the various packages that are being utilized to achieve the system.
CHAPTER 5
OTHER SPECIFICATION
5.1 Advantages
4. Can be useful in identifying the road defects where accidents are happening
oftenly.
5.2 Limitations
5.3 Application
2. Emergency Services
3. Car manufacturers
4. Road contractors
CHAPTER 6
PROJECT IMPLEMENTATION
The illustration presented in Figure 6.1 illustrates the proposed approach for
detecting car accidents utilizing Convolutional Neural Networks. The following
steps delineate a systematic approach to executing the methodology are:
1. Step 1: Preprocessing
widely used video sharing platform, namely YouTube, that were relevant to the
aforementioned shots. The proposed methodology aims to detect vehicular colli-
sions by means of video input. The videos that have been gathered are efficiently
preprocessed, and subsequently, the frames that encompass the car accident are
gathered. The resulting dataset comprises images depicting diverse types of colli-
sions, which are evenly partitioned into training and testing folders for use in the
subsequent stage of the process.
Step 2: Image Normalization - Prior to the training, the images of car
accidents are downsized to a 170 X 170 measurement.
During this stage of the suggested strategy, a generator object for image data
is constructed using the ratio of 1/255 and the software collections Keras and
TensorFlow are employed for comprehensive analysis. The present protocol is
employed for the purpose of commencing both training and testing procedures
on images of cricket shots. The initialization of the ImageDataGenerator object
involves the specification of certain attributes, including the destinations of the
training as well as testing folders, the dimensions of the images, a batch size of 32,
and the categorical class setting, with grayscale as the designated colour mode.
Step 3: Convolutional neural network training - This steps is explained
with the below mentioned point:
A third convolutional layer is incorporated into the model, with 128 kernels,
each with a size of 3 x 3. The ReLU activation function is employed for this
specific purpose. The maximum pooling layer is specified to have a dimension
CHAPTER 7
TESTING
The performance of the system Car accident detection is measured by the Root
mean square error for proper accident detection and improper accident detection
mode.
Checked the steadiness of the space provided by the system for the maximum
number of images. This is done by feeding the maximum number of images to
learn and so that set the threshold by the Virtual machine option of the spyder
IDE.
Our system can be recovered in span of 2 hour after crashing. Within two hour
we can install all the Software and deploy our system to work as in the past.
The System is well equipped to stand against the breakdown point of maximum
number of images to the cloud decided by the IDE’s virtual machine settings,
beyond that the memory overflow exception may arise.
All the modules are independently handled developed and ran to get proper
output and finally they are integrated to get the whole output.
When all the individual modules are integrated into our system, that yields
a proper system of Car accident detection System that is cross examined for the
desired output.
CHAPTER 8
RESULT
8.1 Outcomes
The mean squared error (MSE) is computed based on the measured MSE value
obtained from thorough experimentation with the convolutional neural network
(CNN) module of the Car accident detection methodology. The root mean square
error (RMSE) of the magnitude 1.264 is derived by taking the square root of the
mean squared error (MSE) average. The effective implementation of the CNN
model can be inferred from the error rate. Consequently, there is a significant
enhancement in the precision of the execution of car accident detection. Figure 8.3
below depicts the model accuracy attained by the Convolutional Neural Network
(CNN) in the system.
CHAPTER 9
9.1 Conclusion
The present study outlines a methodology for automated analysis of car ac-
cident utilising deep learning techniques, which yields a notably improved out-
come. The technique stated employs Convolutional Neural Networks to leverage
the video input of each car accident. The convolutional neural network (CNN)
model is trained using a dataset comprising diverse videos of car accidents. Prior
to being utilised for training, the dataset undergoes preprocessing, followed by
normalisation of the preprocessed images, before being inputted into the CNN
model. Upon completion of the trained model, it is employed to conduct test-
ing on preprocessed and normalised input video, which has not been previously
subjected to CNN recognition. The categorization of car accident identification
outcomes is achieved through a successful process of decision-making. The re-
sults and discussion portions of the research article provide an overview of the
results that were attained through the utilisation of the recommended approach.
The findings have indicated the effectiveness of the suggested methodology with
a significantly low error rate.
APPENDIX A
REFERENCES
[2] L. -B. Chen et al., ”An Implementation of Deep Learning based IoV System
for Traffic Accident Collisions Detection with an Emergency Alert Mecha-
nism,” 2018 IEEE 8th International Conference on Consumer Electronics -
Berlin (ICCE-Berlin), 2018, pp. 1-2, doi: 10.1109/ICCE-Berlin.2018.8576197.
[5] H. Kim, S. Park and J. Paik, ”Pre-Activated 3D CNN and Feature Pyramid
Network for Traffic Accident Detection,” 2020 IEEE International Confer-
ence on Consumer Electronics (ICCE), 2020, pp. 1-3, doi: 10.1109/ICCE4656
8.2020.9043125.
[9] P. Nath and A. Malepati, ”IMU based Accident Detection and Intima-
tion System,” 2018 2nd International Conference on Electronics, Materi-
als Engineering & Nano-Technology (IEMENTech), 2018, pp. 1-4, doi:
10.1109/IEMENTECH.2018.8465309.
[10] D. Chand, S. Gupta and I. Kavati, ”Computer Vision based Accident Detec-
tion for Autonomous Vehicles,” 2020 IEEE 17th India Council International
Conference (INDICON), 2020, pp. 1-6, doi: 10.1109/INDICON49873.2020.93
42226.
[11] D. K. Yadav, Renu, Ankita and I. Anjum, ”Accident Detection Using Deep
Learning,” 2020 2nd International Conference on Advances in Computing,
Communication Control and Networking (ICACCCN), 2020, pp. 232-235,
doi: 10.1109/ICACCCN51052.2020.9362808.
[12] Y. W. Liyanage, D. -S. Zois and C. Chelmis, ”Near Real-Time Freeway Ac-
cident Detection,” in IEEE Transactions on Intelligent Transportation Sys-
tems, vol. 23, no. 2, pp. 1467-1478, Feb. 2022, doi: 10.1109/TITS.2020.3027
494.
APPENDIX B
PLAG REPORT
APPENDIX C
CERTIFICATES