0% found this document useful (0 votes)
56 views34 pages

Downloaded

The document is a project report for an android application called "Crash Alert" developed by a team of 4 students. It includes sections like introduction, problem statement, literature survey, proposed system, objectives and scope, system design and methodology, system implementation, results and analysis, and conclusion. The app detects potential accidents using the phone's accelerometer and sends alerts with the victim's location and nearby hospital details to saved emergency contacts for faster medical assistance.

Uploaded by

Sant Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views34 pages

Downloaded

The document is a project report for an android application called "Crash Alert" developed by a team of 4 students. It includes sections like introduction, problem statement, literature survey, proposed system, objectives and scope, system design and methodology, system implementation, results and analysis, and conclusion. The app detects potential accidents using the phone's accelerometer and sends alerts with the victim's location and nearby hospital details to saved emergency contacts for faster medical assistance.

Uploaded by

Sant Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 34

PROJECT REPORT

On

PROJECT TITLE
Crash Alert
BACHELOR OF TECHNOLOGY
(Information Technology)

Submitted by
Subhash S (20134039)

Name of the Team Members


Vignesh M (20134032)
Anush Gokkul S (20134021)
Karan S (20134041)

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

INTERNAL EXAMINER EXTERNAL EXAMINER

Name: Name:

Designation: Designation:

Project Viva-Voce conducted on __________________________


ACKNOWLEDGEMENT:

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.

Our Team Members:

Vignesh M (20134032)
Anush Gokkul S (20134021)
Karan S (20134041)
Subhash S (20134039)
TABLE OF CONTENTS

SL.NO. TITLE PAGENO:

I. Abstract 1

II. Introduction 2

III. Problem Statement 3

IV. Literature Survey 4

V. Proposed System 7

VI. Objectives & Scope 9

VII. Requirement Specification 10

VIII. System Design and Methodology 11

IX. System Implementation 17

X. Results and Performance Analysis 20

XI. Conclusion and Future work 27

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.

AUTHOR’S JOURNAL TITLE PUBLI OBJECTIVES LIMITATIONS


NAME NAME CATI
ON
YEAR
Patil Ashish IEEE Accident 2017 1.The application is 1.High of cost due to
N, Yadav ACCESS Detection designed using IoT devices.
Abhilash System using location tracking 2.maintenance will be
Android using GPS difficult as it is
Application technology. integrated system.
2.provide information
about the
accidents even in
unpopulated area.

Ying Sage Crash 2022 1.The discrimination 1.an overlarge DT


Lu,Yufa Journals recognition threshold (DT) is value is unnecessary
liu,Yu shu algorithm of used to assess whether in most driving scenes
automatic a collision and
crash accident occurs. simultaneously
notification 2. road–vehicle adversely affects
system with simulation model is notification accuracy
adaptive constructed using the 2. Difficult to repair if
discriminatio Carim software. any fault or
n threshold problem occurs

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

Peng-Wei IEEE Innovative 2022 By combining if the


Lin , Chih- ACCESS Framework driver perception is
Ming Hsu for perception and not used
Distracted- behavior wisely ,
Driving Alert recognition, accident can
System our proposed happen and
framework can can't restrict .
reduce false
alerts.
Bilal Khalid IEEE Delay-Aware 2019 Bilal Khalid The delay in
Dar , Munam ACCESS Accident Dar , Munam communicatin
Ali Shah , Detection and Ali Shah , Saif g emergency
Saif Ul Islam Response Ul Islam , information to
, Castren System Using Castren Maple the emergency
Maple , Fog , Suleman services can
Suleman Computing. Khan increase the
Khan possibility of
fatalities
following a
road traffic
accident.

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.

Md IEEE Real-time 2022 The RTCA algorithm The delay in


Faysal Kabir, ACCESS vehicular is developed on communicating
accident MtobileNet Deep emergency
Sahadev Roy
prevention Learning Architecture. information to the
system using emergency services
•Single Shot
deep learning can increase the
Multibook Detection
architecture possibility of fatalities
techniques are
following a road
proposed using the
traffic accident.
RTCA algorithm.

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.

Fig 2. Google play service libraries

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:

 Operating system - windows


 Language Used - JAVA
 Development Environment - Android Studio

HARDWARE REQUIREMENTS:

 Ram - 8 GB RAM recommended (to run simulator)


 Hard Drive - Minimum 32 GB; Recommended 64 GB or more
 Processor - Dual core or above.

10
VIII. SYSTEM DESIGN AND METHODOLOGY

Use case diagram:

Fig.4 This is a simple use case diagram for crash detection.

11
Fig 5. This figure shows the complete procedure of the application.

12
METHODOLOGY
This project consists of Five Modules.

Module 1: Getting Permissions

 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

Fig.7 Getting user input and storing it in 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.

Fig.9 alert before sending 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.

Fig.10 This is the last step to send message.

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.

Step 4. Detection of collision if so, the location will be detected.

Step 5. If it is false detection the user can cancel the process.

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;

public class ShakeListener implements SensorListener


{
private static final int FORCE_THRESHOLD = 10000;
private static final int TIME_THRESHOLD = 75;
private static final int SHAKE_TIMEOUT = 500;
private static final int SHAKE_DURATION = 150;
private static final int SHAKE_COUNT = 1;

private SensorManager mSensorMgr;


private float mLastX=-1.0f, mLastY=-1.0f, mLastZ=-1.0f;
private long mLastTime;
private OnShakeListener mShakeListener;
private Context mContext;
private int mShakeCount = 0;
private long mLastShake;
private long mLastForce;

public interface OnShakeListener


{
public void onShake();
}

public ShakeListener(Context context)


{
mContext = context;
resume();
}

public void setOnShakeListener(OnShakeListener listener)


{
mShakeListener = listener;
}

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);

FloatingActionButton fab = (FloatingActionButton)


findViewById(R.id.fab);
fab.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
//hjh
Intent i = new Intent();
i.setComponent(new ComponentName("com.android.contacts",
"com.android.contacts.DialtactsContactsEntryActivity"));
i.setAction("android.intent.action.MAIN");
i.addCategory("android.intent.category.LAUNCHER");
i.addCategory("android.intent.category.DEFAULT");
Toast.makeText(getApplicationContext(),"Copy the particular
contact's number",Toast.LENGTH_LONG).show();
startActivity(i);
}
});
final Button serviceB=(Button)findViewById(R.id.serviceB);
flag=1;
serviceB.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (flag == 1) {
Toast.makeText(MainActivity.this, "ACTIVATED!",
Toast.LENGTH_LONG).show();
startService(new Intent(getApplicationContext(),
ShakeService.class));
flag = 0;
} else {
Toast.makeText(MainActivity.this, "DEACTIVATED!",

20
X. RESULT AND PERFORMANCE ANALYSIS

Fig11. First step to access the required permission of the user

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:

Fig.16 Overall performance of the project


This is the performance analysis with the existing system. Here we improved the accuracy,
response time, false detection and safety which is user friendly.

● 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

Smartphones present a promising platform on which to construct an accident detection system


“crash alert”. The app ensures combining of three major components in the framework for
accident detection and notification dissemination which are (a)Detecting the Occurrence of the
Crash, (b) Detecting the Location, and (c) Sending Emergency Alert Message. For detecting
the occurrence of the crash, it will be detected using accelerometer which is built-in in smart
phone. For detecting the location, the system will use GPS technology to track the exact
location. The system needs to enable the GPS connection in smartphone setting in order to get
connected to GPS. For sending emergency alert message, user needs to assign their emergency
phone number for whom they want to send the alert message.

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

[1] 2017 International Conference on Computer Communication and Informatics (ICCCI -


2017), Jan. 05 – 07, 2017, Coimbatore, INDIA Intelligent Accident Detection and Alert System
for Emergency Medical Assistance

[2] Indian Journal of Community Health 27(2):191-6 · June 2015 Road safety in India: A
Public Health Concern

[3] ROAD ACCIDENTS IN INDIA – 2017 MINISTRY OF ROAD TRANSPORT &


HIGHWAYS TRANSPORT RESEARCH WING NEW DELHI [4] Civil Engineering
Dimension, Vol. 12, No. 2, September 2010, 106-112 ISSN 14109530 print / ISSN 1979-570X
online Factors on Motorcycle Fatal Accidents using Logistic Regression (Case Study:
Denpasar-Bali) Factors on Motorcycle Fatal Accidents using Logistic Regression (Case Study:
Denpasar-Bali)

[5] Vol 5, No 1 (2018) Bike Accident Detection and Alert System Minnu Maria Joseph,
Thushara G., Pujari Sowmya, Xavier Arockiaraj S

[6] Kanchan T, Kulkarni V, Bakkannavar SM, Kumar N, Unnikrishnan B. Analysis of fatal


road traffic accidents in a coastal township of South India. J Forensic Leg Med. 2012
Nov;19(8):448-51. doi: 10.1016/j.jflm.2012.02.031. Epub 2012 Mar 10. PubMed PMID:
23084306.[PubMed]

[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.

[9] Chapter 1. Accidental Deaths in India. Available from:

[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

You might also like