Downloaded
Downloaded
On
PROJECT TITLE
Crash Alert
BACHELOR OF TECHNOLOGY
(Information Technology)
Submitted by
Subhash S (20134039)
Submitted to
Dr.S. Saranya
Assistant Professor
IT Department,
HITS
V SEMESTER
DESIGN PROJECT(ITB4243)
DEPARTMENT OF INFORMATION TECHNOLOGY
HINDUSTAN INSTITUTE OF TECHNOLOGY AND SCIENCE
CHENNAI – 603 103
MAY 2022
BONAFIDE CERTIFICATE:
Certified that this Design project report “Crash Alert ” is the bonafide work of Anush Gokkul
S (20134021), Vignesh M (20134021), Subash S (20134039), Karan S (20134040) who carried
out the Design project work under my supervision during the academic year 2021-2022.
SIGNATURE
Supervisor
Dr. Saranya S
Assistant Professor
IT Department, HITS
Name: Name:
Designation: Designation:
At first, we would like to thank Almighty God for the idea and opportunity to work on this
project. We thank Dr. S. Saranya Assistant Professor, Department of Information Technology
for their strong support and encouragement for the project “Crash Alert”.
We thank all the faculty members and technical staff of the Department for their support and
suggestions of the design project development.
Vignesh M (20134032)
Anush Gokkul S (20134021)
Karan S (20134041)
Subhash S (20134039)
TABLE OF CONTENTS
I. Abstract 1
II. Introduction 2
V. Proposed System 7
XII. References 28
I. ABSTRACT
This project gives a best definition in form of Safety requirement in our day to day life. In this
era highest number of deaths were happening due to accidents in India and most of the places
in the world. Since most of the urban and rural areas the rescue team can’t able to arrive the
accident zone on time due miss communication at that time. so it’s difficult to save the victims
life.
As now a days the technologies were growing, smartphone plays a major role as it is portable
and it has utmost features which is useful in day today life. So our project is an Android app
that will save the mobile numbers of your emergency contacts to send them text messages with
your location along with nearby hospitals in the case of an accident. The name of the android
App is “CRASH ALERT”. The android app is a medium to read the values collected from the
sensor and make a decision to send out the help message to trusted contact The Text message
contains the location of the user where accident took place in the form of link which opens the
Google Map and also sends the nearby hospitals location. With this information the third-party
person (i.e. emergency rescuers and family persons can get to know). This app uses the mobile's
accelerometer sensors to perform this detection which is in built in every smartphone. It ensures
the immediate remedy to take care of your health and life. Our app gives you exact location
even in Death zone areas.
1
II. INTRODUCTION
In this era, the number of vehicles is increasing day by day and so are accidents rate were
rapidly increasing, resulting in large numbers of deaths due to them. Two-wheeler vehicles are
among the most affected. Most of such accidents cause’s deaths due to lack of immediate
medical help which cannot be observed on less populated urban roads, rural roads and
highways. A system that detects an accident and alerts the known can help in faster medical
aid, thus comes the idea of “crash alert” which is an android app.
The android app is a medium to read the values collected from the sensor and make a decision
to send out the help message to trusted contact The Text message contains the location of the
user where accident took place in the form of link which opens the Google Map and also sends
the nearby hospitals location. With this information the family members person (i.e. emergency
rescuers and family persons can get to know). This app uses the mobile's accelerometer sensors
to perform this detection which is in built in every smartphone. It ensures the immediate remedy
Our app detects potential accidents and sends a message to given saved contacts about it and
sends the exact location and nearby hospitals information. With the known information and
exact location of the victim we can be saved and the information can be passed to their family
members.
As now a day’s smartphones are carried all over the place as it is handy and portable which has
all the features, so we must utilize the advantage and we can make it as our life saving gadget.
2
III. PROBLEM STATEMENT
As in day-to-day life due to work stress and commitments we are in hurry to rush to the
destination by avoiding traffic signals, warning signs, going in short cut etc. which may cause
accidents. According to the European Commission (2022), 39% of autonomous car revenues
are estimated to derive from safety product packages until 2022, which are suspected to be the
largest item of autonomous car revenues. Road traffic accident (RTA) is a nationwide concern
and also one of the vital avoidable public health tie-ups and is increasing which can be linked
to increase in the number of vehicles (especially 2-wheelers) and enlarging lifestyle
development and risky mind-set. A total of 4,64,910 road accidents have been reported by
States and Union Territories (UTs) in the year 2020, which took 1,47,913 lives and caused
injuries to 4,70,975 persons.
Fig1. This pie chart shows the statistics of road accident in the year of 2022.
In such scenarios our app plays a major role that your life is saved in case of any accidents. As
hardware components may become failure. So, we came with android app which is maintained
in the smartphone which we taken care in our daily life.
3
IV. LITERATURE SURVEY
As the entire existing works only highlighting the IoT hardware based which can be linked
with the smartphone. In case of any accident, we may lost the hardware device or it may
malfunction at that time so it’s not much safer to risk your life and we may have chances
of false detection. In all the existing works it can only detect the accident and in some the
location so the information will be delayed to reach the rescuers and if public are helping,
they can’t identify the nearby hospitals in case if they are new to that place or not familiar
with that surrounding. Our project can overcome all the cons in the existing projects and
lifesaving rate can be increased.
4
AUTHOR’S JOURNAL TITLE PUBLI OBJECTIVES LIMITATIONS
NAME NAME CATI
ON
YEAR
Mohd Nazri IEEE Warning 2021 A business
Bin Ismail ACCESS Apps for Technological models of
Road Safety and warning
Economical services need
Perspective for to be flexible
Autonomous and
Driving adaptable to
– The Warning upcoming
Task in the changes
Transition
from Human
Driver to
Automated
Driving
5
chirag yadav Sage Analysis of 2020 The proposed system In addition, further
Journals Road Traffic provides a low cost works on test cases
Accidents & solution to two vehicle for various scenarios
wheeler riders to and improvement on
Review of
avoid delay in accident data
Ridesafe
communications in recording system is
case of a potential required and its
accident. integration with
current motorcycle
crash detection and
alert system is
recommended.
Mohd Nazri IEEE Developing A 2018 Smartphones present a Other than that, the
Bin Ismail Access Framework promising platform on assignment of next of
for Accident which to construct an kin’s phone number
Detecting and accident detection aspect which can be
Sending system upgraded to the
nearest authorities
Alert (a) Detect-ing the
emergency centre
Message Occurrence of the
contact number which
Using Crash.
means when the
Android
(b) Detecting the system detected the
Application
Location. occurrence of an
accident
(c) Sending
Emergency Alert
Message.
6
V. PROPOSED SYSTEM
In our project we concentrated on the people’s life. Since the accident rates are
increasing in day-to-day life. And this becomes more difficult to drive vehicles. It
creates a panic situation around families if couldn’t reach our destination as on time.
However, every one of us carries mobile phones everywhere around the world. So here
the android app to detect the collision (accident) using accelerometer sensors. Since we
use this sensor because, it is most basic and essential sensor present in every mobile
phones.
Here the proposed project is to detect the location of the users and nearby hospitals in
the accident area and send it to the emergency contact number which is saved in the
app. The app starts by getting the admin privileges and some essential permission like
location, storage and contacts. Here location is to detect the accident location and
storage is to save the emergency contacts. Contacts is used to access the emergency
numbers easily from your contacts. Accelerometer sensors are used to detect the falling
motion or movement of the mobile phone. When is detects the movement, the next step
Is to identify the location of the user. We use google play services library which gives
broad set of SDKs in android studio. From this we are using the location service to
detect the location of the user. Just by changing the current location to nearby hospital
the hospital location is also sent to the user’s emergency contact numbers. Here toast
function is used to display the user about the current process like, service activated,
deactivated, latitude and longitude extracted etc. If the mobile fell down from table or
somewhere, even at that time the sensor detects and generate message but the generated
message can be cancelled by the user in case of false detection. So unwanted miss
communications can be avoided.
These libraries use the API to provide services to the application. In this project we use
google play service library which contains all the services which are provided by
google. From that location service is used here.
7
Fig 3. Complete procedure of the application.
8
VI. OBJECTIVES
User friendly
Two mobiles’ numbers can be saved. So in case we couldn’t reach out one the other
will be useful.
Response time is fast
Nearby hospital location is sent so it is easier to navigate the patients as soon as
possible.
Text message is sent so internet is not needed.
In case of miss deduction (ex: the mobile may fall unfortunately), the further
procedure can be cancelled using cancel button.
The main objective of this project is to prevent casualties which happen due to lack
of medical assistance in time.
Certainly, if the accident happens due to other cases, the used electronic devices
will be able to provide the spontaneous message and exact location to police and
ambulance in order to recover victims.
Avoiding casualties caused by road accidents is the main goal of this paper, with
the help of Accelerometer and GPS present in the mobile phones.
9
VII. REQUIREMENT SPECIFICATION
SOFTWARE REQUIREMENTS:
HARDWARE REQUIREMENTS:
10
VIII. SYSTEM DESIGN AND METHODOLOGY
11
Fig 5. This figure shows the complete procedure of the application.
12
METHODOLOGY
This project consists of Five Modules.
Th e first step of the project is to get the required permissions form the user
Since we need to access the location, contacts and storage.
Fig.6 it is the page the app gets the access to the admin privilege.
13
Module 2: Storing
After getting permission next step is user input. The user gives the emergency contacts
numbers.
The entered contact numbers will be stored in the memory card or internal storage
14
Module 3: Detecting location
In this module after the collision detection the app which runs in the background
detection current location of the user.
It also gathers information by extracting the latitude and longitude.
Fig.8 This is the place where the latitude and longitude are extracted.
15
Module 4: Generate message
After the extraction of location, the next step is to generate the message.
Here the message is generated and asks for a confirmation to send the message.
If there is a false detection the user can cancel the generated message.
16
Module 5: Sending message
When all the information is collected and detected the message will be sent to the
contacts.
Here since we using normal text message internet is not needed.
17
IX. SYSTEM IMPLEMENTATION
Procedure:
Step 1. To give the required permissions for the app.
Step 2. Entering user’s input.
Step 3. To store the contacts in the internal storage.
SAMPLE CODE
Permissions:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.geek.myapplication" >
<uses-permission
android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission
android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission
android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.SEND_SMS"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-feature android:name="android.hardware.sensor.accelerometer"
android:required="true" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="Crash Alert!"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:ignore="GoogleAppIndexingWarning">
18
Storing contacts:
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.check_certainty);
try {
File myFile = new File("/sdcard/.emergencyNumbers.txt");
FileInputStream fIn = new FileInputStream(myFile);
BufferedReader myReader = new BufferedReader(
new InputStreamReader(fIn));
No1 = myReader.readLine();
No2 = myReader.readLine();
myReader.close();
} catch (Exception e) {
Toast.makeText(getBaseContext(), e.getMessage(),
Toast.LENGTH_SHORT).show();
}
final PackageManager pm=getPackageManager();
Detecting collision:
import android.hardware.SensorListener;
import android.hardware.SensorManager;
import android.content.Context;
import java.lang.UnsupportedOperationException;
19
Main Activity:
public class MainActivity extends AppCompatActivity {
public static String firstN,secondN;
public int flag;
public EditText edT1;
public EditText edT2;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
20
X. RESULT AND PERFORMANCE ANALYSIS
21
Fig 12. Second step is to get user input (emergency contact numbers)
22
Fig 13. Storing the users contact numbers in internal storage
23
Fig 14. Activating the application and running it In the background
24
Fig 15. After the detecting the movement confirm with the user for false detection.
25
Fig 15. Displays the generated message to the user and confirm to send to the contacts with
timings.
26
PERFORMANCE ANALYSIS:
● Our project consists several advanced methodologies like sending alert message to the
user’s emergency contact with the attached location and info of nearby hospitals.
● To get a success result the user must always run the app in the background.
● No need of internet as the location and information will be delivered as text message.
27
XI. CONCLUSION AND FUTURE ENHANCEMENT
Future Enhancement
In future we would like to extend the framework with more functionalities. For better
implementation, the system needs to integrate with the current built-in device in the car.
With this integration, user do not need some extra devices to work as an accident
detector.
We can add the details of the user so that the rescue authorities who receives the
accident message can get to know if he/she is taking any medication regarding their
health issues so that the rescue team will be prepared according to that.
We may even try to connect with our smart-watches.
28
XII. REFERENCE
[2] Indian Journal of Community Health 27(2):191-6 · June 2015 Road safety in India: A
Public Health Concern
[5] Vol 5, No 1 (2018) Bike Accident Detection and Alert System Minnu Maria Joseph,
Thushara G., Pujari Sowmya, Xavier Arockiaraj S
[7] World Health Organization. Global Status Report on Road Safety 2013: Supporting a
decade of action, 2013.
[8] Ruikar M. National statistics of road traffic accidents in India. J Orthop Traumatol Rehabil.
2013.
[10] Kengen Y, Renard A. Road safety in India: Insights and Analysis. India transport portal
2012.
[11] Das A, Botticello AL, Wylie GR, Radhakrishnan K. Neurologic disability: a hidden
epidemic for India. Neurology. 2012 Nov 20;79(21):2146-7. doi:
[11].1212/WNL.0b013e3182752cdb. Review. PubMed PMID: 23170012; PubMed Central
PMCID: PMC3511929.[PubMed].
29
[12] Farooqui JM, Chavan KD, Bangal RS, Syed MM, Thacker PJ, Alam S, Sahu S, Farooqui
AA, Kalakoti P. Pattern of injury in fatal road traffic accidents in a rural area of western
Maharashtra, India. Australas Med J. 2013 Sep 30;6(9):476-82. doi: 10.4066/AMJ.2013.1839.
eCollection 2013. PubMed PMID: 24133540; PubMed Central PMCID:
PMC3794418.[PubMed]
[13] Barffour M, Gupta S, Gururaj G, Hyder AA. Evidence-based road safety practice in India:
assessment of the adequacy of publicly available data in meeting requirements for
comprehensive road safety data systems. Traffic Inj Prev. 2012;13 Suppl 1:17-23. doi:
10.1080/15389588.2011.636780. PubMed PMID: 22414124.[PubMed]
[14] Pathak SM, Jindal AK, Verma AK, Mahen A. An epidemiological study of road traffic
accident cases admitted in a tertiary care hospital. Med J Armed Forces India. 2014
Jan;70(1):32-5. doi: 10.1016/j.mjafi.2013.04.012. Epub 2013 Aug 30. PubMed PMID:
24623944; PubMed Central PMCID: PMC3946410.[PubMed]
[15] Rajasekaran S. The Alarming Facts of Road Accidents in India. Indian Orthopaedic
Association
30