Professional Documents
Culture Documents
https://doi.org/10.22214/ijraset.2023.48904
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue III Mar 2023- Available at www.ijraset.com
Abstract: Road accidents are increasing daily as the number of automobiles rises. An annual global death toll of 1.4 million and
an injury toll of 50 million are reported by the World Health Organization (WHO). The absence of medical assistance at the
scene of the accident or the lengthy response time during the rescue effort are the main causes of mortality. We can reduce
delays in a rescue operation that has the potential to save many lives by using a cognitive agent-based collision detection and
smart accident alarm and rescue system.
To gather and send accident-related data to the cloud or server, the suggested system consists of a force sensor, GPS module,
alarm controller, ESP8266 controller, camera, Raspberry Pi, and GSM module. The accident is then verified using cloud- based
techniques for deep learning. accident is then verified using cloud-based techniques for deep learning. When the deep learning
module notices an accident, it immediately alerts all nearby emergency services, including the hospital, police station,
mechanics, etc.
Keywords: Deep Learning, IOT, ADRS, CNN, ResNet-50, InceptionResnetV2, Accident detection, Sensors
I. INTRODUCTION
As the population grows, the need for vehicles is rising tremendously. The percentage of traffic accidents has significantly increased
over the past few years.[6][7] Over the speeding is the primary contributing factor to accidents, according to a recent study. The
location of the accident scene is crucial for any rescue operation. If there is a city or there is a lot of traffic emergency help will soon
be accessible, however in low-traffic zones or on roads, it is not. It's challenging to deliver timely emergency relief. Significant
injuries are observed to transform into mortality brought on by inadequate medical attention. Due to the rise in traffic accidents,
road safety receives a lot of attention from industries. An intelligent system for accident detection and warning is necessary to
reduce the number of deaths from the road accidents. Once the system identifies an accident, it will notify all emergency services,
including hospitals, police stations, and so on [1].
In our project, we suggest a force detection system for accident detection. ESP8266 controller, camera, Raspberry Pi, GSM module,
sensor, GPS module, alarm controller, alarm controller, GSM module, and GSM module to gather and send accident- related data to
the cloud or server.[1],[2],[3] And then By using deep learning method it’s possible to know the accident's severity and notify the
police station and hospitals appropriately.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 319
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue III Mar 2023- Available at www.ijraset.com
B. Proposed Architecture
To address current issues with the ADRS (Accident Detection and Reporting System), this study offers An integrated accident
detection and reporting system (ADRS). We employ an IoT and deep learning mix to obtain more accuracy. There are two phases to
the proposed ADRS. IoT and deep learning are used in the first phase to detect accidents, and reporting of the accident are handled
in the second phase. Below Fig.2 illustrates the architecture of proposed system.[1][2]
A. Accident Detection
IoT and AI capabilities are used in this module to identify accidents and gauge their severity. Different sensors are used to identify
accidents and gather accident-related data like location, force, etc. Deep learning techniques are employed in order to reduce the
false alarm rate[1]. The details of the IoT and AI module are as follows:
1) IoT Module
The primary function of this module, which serves as the core of the proposed ADRS, is accident detection. It makes use of many
sensors and IoT gadgets. A separate power bank and a 5V DC power supply connected to the vehicle's battery are needed to power
the entire hardware system. A detailed description of various sensors and other components is given below:
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 320
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue III Mar 2023- Available at www.ijraset.com
a) Force Sensor: It serves as the foundation of the ADRS. In order to convert applied mechanical forces, such as tensile and
compressive forces, into output signals whose value may be employed to indicate the force's intensity[1]
b) ATMEGA328P: It is a microcontroller unit that has a direct connection to the force sensor and manages a number of other
devices. When the force value exceeds 350 Pa, an accident is detected. Accident detection sets off the alarm, and if the alert is
not reset after 30 seconds, a signal to activate Node MCU is sent.
c) Node MCU- ESP8266: The ATMEGA328 microcontroller, Raspberry Pi, GPS module, and servo motor are all connected to it
via a master microcontroller unit. All accident-related data is transmitted to the cloud by a Wi-Fi equipped controller.[1],[2]
d) Raspberry Pi: The Raspberry is a little computer system with an operating system that can complete all tasks that a desktop or
laptop can. It is a capable controller that links IoT devices. The Raspberry Pi 3B+ in our ADRS is linked to a camera, which
uploads pictures and videos to the cloud to assess the seriousness of the accident.
e) Pi Camera: The Raspberry Pi is connected to the Pi camera, which is mounted to the servo motor. When an accident is
identified, the video and photos are taken and sent to the cloud, where deep learning is applied to evaluate the videos and
photos and determine the accident's severity. Deep learning is mostly used to reduce the rate of false alarms and gauge the
severity of accidents.
f) GSM SIM900A: It supports the rescue effort and communicates with other emergency services like a police station, hospitals,
family members, etc. It has a link with the Raspberry Pi. It connects to the Node MCU and is used to determine the accident
location [1-4].
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 321
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue III Mar 2023- Available at www.ijraset.com
3) Pre-Trained Model
The training and accuracy of the deep learning-based model depend on the quantity and quality of the data because deep learning
models need a lot of data. An IoT kit that gathers real-time data from the accident site and sends it to the cloud for further
processing can be created in order to receive high-quality, real-time data. When we only have a little dataset, one of the most
effective options is the pre-trained model.[1] These models are more accurate because to their well-trained accuracy on a large
dataset. As a result, we only need to train these models for our particular objective. As a result, a pre-trained model can be trained
with greater accuracy on a smaller dataset. There are many models that have already been trained, including VGGNet, ResNet-50,
InceptionNet, InceptionResNetV2, etc.
Two Trained models are used in accident validation are given below:
a) ResNet-50: Kaiming He et al. created ResNet-50 in 2015 [1]. It uses a deep neural network made up of numerous different
building parts rather than a conventional sequential network like VGGNet. To categorise photos into 1000 different groups, this
model was trained. One classification layer with 1000 neurons and the Softmax activation function comprise the model's 175
convolution blocks. Below figure 4 shows the ResNet-50's layered design.[1]
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 322
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue III Mar 2023- Available at www.ijraset.com
b) InceptionResNetV2: InceptionResNetV2 was created by C. Szegedy et al. in 2017 [1]. The ResNet (residual net) and inception
net's most useful features are both incorporated into this model. It is one of the most thorough (1x1) convolutions without
activation) neural networks, having 780 inception blocks. A dense layer of 1000 neurons with a Softmax activation function
makes up the final classification layer. Below Figure 5 shows the layered architecture of InceptionResNetV2.
1) Databases
The proposed ADRS uses four databases to manage the entire system. Detailed information of the different databases is given below.
a) User Personal Details Database: This database contains all user-related information like vehicle owner, address, and relative’s
Contact number.
b) Vehicle Database: This database comprises all details of the vehicle like Vehicle Number, Vehicle _Name, and Vehicle Type.
c) Hospital Database: The hospital database stores all information on the hospitals.
d) Police Station Database: It stores all the information about the police station details.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 323
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue III Mar 2023- Available at www.ijraset.com
V. ALGORITHM
A. For Accident Detection
Input Data: Value of force (F) and speed (S)
Output: Accident status
acc ← 0
if (F > Tforce & S > Tspeed) then acc ← 1
else
end if
else
If (AT >= 30 seconds) then status= Accident_detected
status= no_accident
Get nearby mechanics details from database and send message to the owner
end ifend if
if (status= Accident_detected) then final_status = call Deep_Learning_Module()if (final_status=
Accident_detected) then Get accident location from GPS
Get nearby mechanics details from database and send message to the owner.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 324
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue III Mar 2023- Available at www.ijraset.com
Parameter: Initialize all the parameters like weight W, learning rate σ, batch size, threshold ∅, max_iteration.
Output: Accident, No_Accident
o Perform pre-processing like augmentation, rescaling, etc., to the input data D
o Customize the pre-trained model by removing top layers
o First add GAPL to flatten the network and then add convolutional layers
o Configure five dense layers after CL where each layer has 2048 neurons
o To avoid overfitting, dropout 20% neurons from each dense layer
o Perform feature extraction from the dense layer and store all extracted features into thefeature
vector (Df eature).
o Size of Df eature Will be 1x 2048 for one image. So, for n image it will nx2048
o Create data frame of size
o Df eature ={(F^1, Y^1), (F2^2, Y^2), (F3^3, Y^3) − − − − − −(Fn^n, Y^n)}
o Initialize RFT with k number of trees (i.e., k=50)
o Train the RFT model for the extracted features Df eature
o Compile model for binary cross-entropy loss function and SGD optimizer
VI. FLOWCHART
Fig.6 Flowchart of the proposed Accident Detection and Reporting System (ADRS)
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 325
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue III Mar 2023- Available at www.ijraset.com
(a) (b)
(c)
Fig.7 Installation of a developed IoT kit on a car (a) Car with IoT Sensor and LED Display; (b)Car with IoT
Sensor; (c) Car with labelling of each Device in IoT Development kit.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 326
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue III Mar 2023- Available at www.ijraset.com
1) Accident Prediction
Result(a)(Visual Studio Code IDE)
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 327
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue III Mar 2023- Available at www.ijraset.com
2) No-Accident Prediction
Result(a)(Visual Studio Code IDE)
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 328
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue III Mar 2023- Available at www.ijraset.com
VIII. CONCLUSION
Due to the excellent condition of the roads in the smart city, more accidents on the roadways occur as a result of drivers operating
their vehicles at high speeds. Despite the introduction of numerous accident detection and prevention methods, many fatalities
continue to occur. At the very least, a portion of the problem is made worse by poor automatic accident recognition, inefficient
warning, and emergency service responses. An IoT kit is used in the first phase to detect the accident, and a deep learning-based
model is utilized in the second phase to validate the output of the IoT model and carry out the rescue operation.
The IoT module, which measures the impact on the automobile using a force sensor and the vehicle's speed using a GPS module,
detects an accident and sends all relevant data to the cloud. Pre-trained models, specifically VGGNet and InceptionResNetV2, are
employed in the second phase to reduce the false detection rate and activate the rescue module. If the deep learning module detects
an accident, a rescue module is activated, and information is sent to the nearby police station, hospitals, and family members.
The suggested model can assist us in reducing the number of fatalities brought on by the absence of emergency services at the
scene of the accident. The model has zero false positives during training and incredibly low false positives during testing because to
the integration of IoT and AI. The security component is not taken into account in the suggested model, hence we want to solve this
problem in subsequent work. The suggested model can also include some driver alert systems, such as the sleepiness detection
module.
REFERENCES
[1] Nikhilesh Pathak, Rajeev kumar gupta, Yatendra sahu, Ashutosh sharma, Mehedi masudc Mohammad bas, AI Enabled Accident Detection and Alert System
Using IoT and Deep Learning for Smart Cities.(Sustainability MDPI) Year 2022
[2] Artificial Intelligence for Accident Detection and Response. Research Gate Year 2021
[3] Traffic Accident Detection by using Machine Learning Methods. Research Gate Year 2020
[4] Accident Detection using Deep Learning: A Brief Survey. IJECCE Year 2020
[5] Accident Detection and Warning System. IEEE Year 2021
[6] World Health Organization. Global Status Report on Road Safety; World Health Organization: Geneva, Switzerland, 2018.
[7] Statistics. Available online: https://morth.nic.in/road-accident-in-india (accessed on 13 June 2022).
[8] Yan, L.; Cengiz, K.; Sharma, A. An improved image processing algorithm for automatic defect inspection in TFT-LCD TCON. Nonlinear Eng. 2021, 10,
293–303. [CrossRef]
[9] Yan, L.; Cengiz, K.; Sharma, A. An improved image processing algorithm for automatic defect inspection in TFT-LCD TCON Nonlinear Eng. 2021, 10, 293–
303. [CrossRef]
[10] Zhang, X.; Rane, K.P.; Kakaravada, I.; Shabaz, M. Research on vibration monitoring and fault diagnosis of rotating machinery based on internet of things
technology. Nonlinear Eng. 2021, 10, 245–254. [CrossRef]
[11] Guo, Z.; Xiao, Z. Research on online calibration of lidar and camera for intelligent connected vehicles based on depth-edge matching. Nonlinear Eng. 2021, 10,
469–476. [CrossRef]
[12] Xie, H.; Wang, Y.; Gao, Z.; Ganthia, B.P.; Truong, C.V. Research on frequency parameter detection of frequency shifted track circuit based on nonlinear
algorithm. Nonlinear Eng. 2021, 10, 592–599. [CrossRef]
[13] Liu, C.; Lin, M.; Rauf, H.L.; Shareef, S.S. Parameter simulation of multidimensional urban landscape design based on nonlinear theory. Nonlinear Eng. 2021,
10, 583–591. [CrossRef]
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 329