2020 Global Conference on Wireless and Optical Technologies (GCWOT) Help Pro


 Information and Communication Technologies are regularly used in medicinal services and associations around the world. The Android working framework-based electronic contraptions, for example, Smartphones, smart TV and tablets are comprehensively utilized for numerous purposes. Within android devices, there are distinctive types of health and medical applications that provide ease to patients and their caretakers to lessen time [1]. This undertaking includes a thought that is proposed, to save lives by a single tap. It is very advantageous for users in case of emergency: through this application, an ambulance could be available within 100 meters of the user’s real-time location. The Dijkstra algorithm is used in this application by Google Maps API (Application Programming Interface) and this way nearest ambulance arrives on time. Consequently, not only time is efficiently saved but also precious lives.


I. INTRODUCTION
An emergency is a great issue in Pakistan. In every 4 minutes, one life is lost to an accident and in every 1 min, one life is lost to cardiac attack and other emergencies. Insights of the last decade show, every day in Pakistan 15 people lost their lives because of car accidents [2]. The foremost likely cause behind a person's demise in a mishap is an absence of the first aid arrangement that is a result of emergency services aren't getting convenient data about accidents. Emergency response time is amazingly crucial when it includes incidents and vehicle mishaps. Examination creates the impression that if we decline only 1 minute in mishap reaction time that can expand chances of sparing a person's life till six percent [3].
The emergency-based adaptable application will assist people in unseen circumstances. The application's real-time responsiveness will dynamically help users. Every feature, service & help is just one click away. It's always difficult to give directions in Pakistan. This becomes incredibly tough when you are on a highway or in a new area.
To reduce time spent on giving directions and make you focus on more important things, we are proposing an application that also involves engagement of the user with other emergency services such as calling for firefighters & police, mechanic options, blood requests, and requests to the nearest ambulance as well. It is partitioned into three modules admin app, driver app, and user app. We are using GPS to track the location of both user and driver so that both entities will be able to track each other's location in their app. The application allows the user to register, edit profile & ICE (In Case of Emergency) numbers, and contains predefined SOS (Save Our Souls) numbers as well. On the other hand, it enables users to send and get Blood Donation requests from registered users which is all just one tap away.

A. Research Objective
This research is done to design and implement such an application system that uses all smartphones to help people and to provide ease to them in a critical situation. The live feed data of the user is sent through the app to the driver, which helps in keeping track of the user's location. Securing the communication between the driver app and user app so that only authorized personnel is allowed to do the same. We are making the process simpler and user-friendly. To enhance the system of ambulances, blood donations, firefighters, police, and mechanics as per this smart touch phone's era.

B. Scope
This mobile application targets users that are using a smartphone. This project is developed to make emergency resources available in the least time possible. It is beneficial for the users in times of emergencies. It consists of three different modules i.e. User, driver, and admin application. Most important of all, it is made to use free of cost.

C. Background
Help Pro is an emergency-based application created with real-time location-based services using firebase, maps and navigation through google APIs (Application Programming Interface), providing an interface to request service as per your need. The vital role of this application is to utilize each millisecond effectively to spare individuals. Nowadays, many lives are being lost due to the patients are not able to reach the hospital on time and each second delay might cost them their lives. In this venture, we have structured a model which would help all the affected people systematically and dynamically as well.

II. TECHNICAL STRUCTURE
In this section, the different technologies employed in the system are listed and explained.

A. Android
Android is an open-source smartphone OS dependent on the Linux kernel that Google produces for tablets, mobile smartwatches, TVs, vehicles, and many other electronic devices. As it is open-source, everybody has complete access to the source code for Android, with one special case it can't be utilized for individual increase or any budgetary advantage [4].

B. Android Studio
Android Integrated Development Environment is a key of Android Studio. It offers all the tools needed by an android developer to create an android application. More importantly, it allows auto-completion software to write a program, debug, check, and execute the code on a real or virtual device [5].

C. Java
Java is an OOP (Object Oriented Programming) language, which is a class-based general-purpose language. Java is used as a backend programming language for android development.

D. Firebase
Firebase is a forum for web applications. It lets developers develop high-standard applications. It stores information in the configuration of JSON (JavaScript Object Notation) that doesn't utilize query to insert, update, and remove data. It is an online database framework to store data [6]. Firebase also contains services like authentication, realtime database, image storage, cloud messaging, and more.

E. Google Map API
Google APIs is a series of application programming interfaces (APIs) developed by Google that allows interaction and adoption of google services into other services. These APIs include services like maps, routes, real-time location, and places.

F. Laravel
Laravel is a framework of PHP software platform, which is free and open-source developed by Taylor Otwell and intended to build web apps based on the architectural template known as model, view, and controller and built upon Symfony which is a Php framework.

III. PROPOSED SYSTEM
Our application Help Pro is developed in Java as a backend programming language by using Android Studio as IDE. It has been developed for an android operating system having a minimum API level 17, and target API level 26. The application is completely working and implemented on the android smartphone. The designed system consists of the following modules:

A. User App
End-user applications consist of four major functions: (i) One-click emergency services, (ii) Nearby hospitals, (iii) Blood request option, and (iv) Mechanic option.
Whenever a user will sign up he will be asked to enter his contact number which will be confirmed through the One Time Process. Then a code will be sent to the contact number by Firebase Phone Authentication (Fig. 1).
Once the contact number is registered, the user is required to enter their personal details such as name, date of birth, blood group, city, gender, and picture (Fig. 2). After it, the user is asked to enter two ICE numbers only then the application is ready to use.
User Interface is designed in a manner that it can be adapted very easily by the user. The main interface has a button through which an ambulance can be called, after tapping the button it will prompt you to ask whether if it's for self-use or someone else. In case of self-use after 5 seconds, confirmation timer's automated generated messages including location will be delivered to ICE numbers.  On selection of stranger use 5 seconds timer will pop up in the meantime you can cancel it if it's being called by an accident (Fig. 3).
Once the request has been sent, the request will be delivered to the ambulances available within 100 meters radius but it's up to the driver whether he accepts or if he denies the ambulance request will be transferred to the other driver available within the same perimeter. Google maps and Google navigation APIs will allow the user to track the realtime location of the driver also user's location and contact details will be sent to the driver app so that the driver can arrive at a pinpoint location (Fig. 4 & 7).
On the other hand, there are two options available for calling the firefighters and police. In case of any mishap, the user doesn't need to remember any phone number: just press buttons on the screen to call (Fig. 3). Help Pro app also helps users in putting up the blood request such an option is available on the main interface called blood friend, it also enables the registered users to donate blood to the requested person. Donors will be notified through push notification or SMS and in a WhatsApp blood group (Fig. 5).
Google Maps APIs are adapted in such an orderly fashion that they can also show the nearby hospitals. In the case of car breakdown mechanics, contacts are fed into the application by the admin (Fig. 6). Most importantly, in a world of such rush usually, human beings do not have the essential contacts saved so pondering such act updated emergency SOS are also updated into the application. Keeping the importance of human lives, Help Pro will prove itself in providing the free and best services to human beings.

B. Driver App
The second module of Help Pro app is the driver app in which the driver will have to sign up using his credentials and ambulance data. Once an ambulance is requested by the user it will be received by data. If he accepts, the app will start giving directions to the user's location. If he does not accept the request it will automatically be transferred to the other driver available within 100 meters radius or nearest one of the users (Fig. 7).

C. Admin App
The last module of the Help Pro app is the admin app. Admin app is a web-based application built on laravel (PHP framework) connected with the same firebase database. Admin app interface is attractive and responsive to all screen sizes so admin can access it from mobile browser as well. Admin is responsible for maintaining and updating both applications' data. Admin will log into his app using his predefined credentials that can be edited later such as email address and password. Admin can make the following changes to the application's data.
 Admin can view and delete user's data and their profiles.
 Admin can view and delete driver's data and their profiles.
 Admin can insert and delete SOS number and mechanics details.
 Admin can view and delete user's alerts and feedback.
Therefore, the admin has all the privileges granted.

IV. ALGORITHM AND IMPLEMENTATION
We will discuss two important facts here in this section. One is the algorithmic approach and diagrammatical representation of the system.

A. Algorithmic design
The algorithm is chosen to equip the system with the ability to handle several emergency circumstances where multiple ambulances are required but only a few are available. We amalgamated the current scheduling method of First Come First Serve with Dijkstra's algorithm to ensure the system's positive performance and to meet users' requests [9]. The "first come first serve" algorithm processes the request of patients in the pipeline according to the concept of first to book, first to serve. Nevertheless, the distance to the patient's location, the seriousness of the patient's predicament, the cost, and other factors are not taken into account. This concept is simple, but it has long-term, diversification, and holding consequences that affect the cost progression [10]. In contrast, Dijkstra's method seeks the shortest way between the user-selected source and destination. In case of a high traffic situation, an alternative path with a new duration is determined. The Dijkstra algorithm is used in this application to help ambulances to discover people in need of emergency care when resources are insufficient [11]. In contrast, if only one ambulance is available on a given day and each patient's request is treated equally for the sake of visibility, it's critical to manage such instances as efficiently as possible. Google Maps API (Application Programming Interface) uses the Dijkstra algorithm to steer a guiding GPS device to help us journey to our location in every conceivable way, mode of transportation, traffic, and duration.

B. System Digramitical Representation
The system is operated by three important actors as a userthe patients, the ambulance driver, and the administrator of the system.
First of all, the application's use case diagram is attached below to show the activities and links of each system user. The diagram illustrates the accessibility of features to the patient, driver, and admin. Common links between the three actors are the registration process and login scenario into the system.
According to Fig.8, the main responsibility is of a driver as they have to respond to the alert as soon as possible and admin as he has to generate alerts and manages all requests. Secondly, a level 2 data flow diagram is included here to demonstrate the flow of data throughout the system. As per Fig.9, everything is approaching the firebase real-time database. The coordinates of user and driver locations are stored in firebase real-time data which we are getting through Google Map API (Application Programming Interface). Similarly, the data like mechanics and hospital information, SOS (Save Our Souls) numbers, and details (text and images) filled in by users through in-app basic information form are saved in firebase real-time database and storage. A sign-up authentication token is generated by firebase authentication and sends through the firebase cloud messaging service to the user's number. The application which resembles our application is, "Mohafiz", it let you communicate in a perilous situation by picking an action on screen as "In Case of Emergency" contacts through SMS, Facebook, and Twitter. And then they will contact the emergency department by themselves [7].
One more similar application which is operational in India is "Call Ambulance" [8]. In this section, we will compare help pro's novelty, merits, superiority, and differences with other similar applications in the market.

A. Core Functionality
Help Pro is designed in such a way that a user can get facilitated for almost every emergency condition. It can save a lot of time and can avoid several constraints to reach the spot of the incident.
Unlike other apps, it is a one-link solution to almost every emergency service. Users have an option for real-time tracking for the ambulance service.

B. Responsive User Interface
Our logo of the app will remind you, your daily life routine and emergencies you could face. The logo itself represents our daily routine chorus. The design is simple, attractive, user-friendly, and responsive.

C. Tracking
Generally, we don't have any facilities to track the ambulance, call the police or call a firefighter. To know the emergency service's location and how far they are from us. In other apps, we don't have the privilege to direct contact to the desired emergency depart itself so that without delaying anytime further we could get the help.
But with our app users can directly contact the emergency departments from where they are trying to get help. Users can track the live location of the ambulance by simply seeing it on the map integrated with our application. Ambulance drivers have a separate app to track users in trouble with on-screen map navigation.

D. Driver's Information
Generally, none of the driver's information is given or known.
Our application provides you full privilege to know about your driver along with their full basic information so you could contact them if you are facing any sort of difficulty. The driver can also see its patient details like picture, name, and contact number.

E. Mechanic
Generally, if we face any emergencies related to our vehicle or if our vehicles broke down or something, we have to call for our vehicle to be transported to the mechanic. In other apps, we usually don't see the option of a mechanic but in our app, you could also find mechanics nearby you. Our app provides the user mechanic list near them which contains the name number shop address of mechanics and helps them through any emergency related to vehicles.

F. Blood Donation
Generally, if we need blood or want to donate blood, we have to search through blood banks, call friends and family this all is quite hectic.
In our app, with just one click we could send a request with a detailed message as a notification or on our WhatsApp blood group at a time.

G. SOS List
Generally, our schedules are so hectic and our lives are so busy that we don't have time to even memorize some important emergency helpline numbers and if we face any emergency, we have to search for the numbers.
But with our app, you can search through the emergency list of departments along with their contact or hotline numbers and addresses.
The idea of our application is unique and easy to be implemented in this era of a smartphone in order to somehow contribute to saving someone's life free of cost at any time with just a single click. By presenting & publishing our idea and research work in this paper, can be a highway for the thinker, innovators, and investors to contribute in an application or idea which can provide ease and help to humans in different scenarios or even in daily life.
By publishing this paper a boost will be added to research work or ideas in areas which are still lacking like emergencies in under developing countries or development of such application or technologies which help people in different situations and much more.

VI. CONCLUSION
Our project gives essential services to the individuals in this new time where everybody has occupied themselves around their life and nobody is tuning in to one's call for assistance. Our application gives you a platform where you can alert your family and companions in a matter of seconds and can get help all the more effectively than call other emergency hailing services with progressively included alternatives. This application can be of tremendous assistance for all those people utilizing this application.

A. Funding
Not applicable.

B. Conflicts of interest
Not applicable.

C. Availability of data and material
Not applicable.

D. Code availability
Not applicable.