Using Rule Base System in Mobile Platform to Build Alert System for Evacuation and Guidance

The last few years have witnessed the widespread use of mobile technology. Billions of citizens around the world own smartphones, which they use for both personal and business applications. Thus, technologies will minimize the risk of losing people's lives. Mobile platform is one of the most popular platform technologies utilized on a wide scale and accessible to a high number of people. There has been a huge increase in natural and manmade disasters in the last few years. Such disasters can happen anytime and anywhere causing major damage to people and property. The environment affluence and the failure of people to go to other safe places are the results of catastrophic events recently in Jeddah city. Flood causes the sinking and destruction of homes and private properties. Thus, this paper describes a system that can help in determining the affected properties, evacuating them, and providing a proper guidance to the registered users in the system. This system notifies mobile phone users by sending guidance messages and sound alerts, in a real-time when disasters (fires, floods) hit. Warnings and tips are received on the mobile user to teach him/her how to react before, during, and after the disaster. Provide a mobile application using GPS to determine the user location and guide the user for the best way with the aid of rule-based system that built through the interview with the Experts domains. Moreover, the user will receive Google map updates for any added information. This system consists of two subsystems: the first helps students in our university to evacuate during a catastrophe and the second aids all people in the city. Due to all these features, the system can access the required information at the needed time. Keywords—safety; Natural disasters; smartphone; rulebased system; Mobile Network; Smart Phone


INTRODUCTION
Damages and ripple effects can happen due to disasters without notification anytime and anywhere [1].Disaster break presents many unique logistics challenges, such as damage to transportation infrastructure, limited communication, and coordination of multiple agents [2].To build a solid disaster management system, three fundamental things need to be addressed [3]: a) To prevent disaster, we must have strong communication.
b) Mobile user location and real-time pictures of events are very important to make decisions.c) Effective analysis and reasoning engines help in the prediction model, and reduce, and prevent disasters.
Knowledge and personal expertise is represented in the form of rule-based systems that has the form of IF-Then rules.A number of applications are suitable to use Rule-based systems [4], [5] and [6].New types of spatial computing applications and technologies use GPS and sensors installed on smartphones and other powerful smart devices [7] and [8].
In this paper, we use Rule-based systems, smartphones equipped with GPS and other technology to make our system.Our system is divided into two subsystems: 1) Calamity communicator (iCalamityGuide) will deliver the following in terms of Hardware and Software:  Build a communicator mobile phone application that broadcasts notification, guiding and giving correct directions as exits from buildings and nearest safe building from an authorized source to guide and locate registered people (students and employees of King Abdulaziz University, Jeddah city ) by using WIFI or 3G, and GPS locator.
 Engaging the locating services such as GPS and maps reflecting King Abdulaziz University.
 Establishing a connection using PHP to integrate a double communication link between the database at the hosting server with the iPhone application and XML files.We have the ability to edit this database and reflect the changes on user request from the application.
2) This subsystem is called Disaster smart road guidance DSRG.It solves the problem of real-time disaster and road constructions information.This system notifies the users with the updated information concerning fires, floods, and constructions in Jeddah city in Saudi Arabia.The users can also receive messages about the action they must take before, during, and after a disaster, on their mobile phones.This application provides the users with nearest short path safe location using GPS technology.
Moreover, this application sends Google map updates for any newly added information to the users.Feedback action is also sent to users in a time of trouble using Rule-based system www.ijacsa.thesai.orgfeature upon a specific situation.The interview with the Experts domains was the aid in building the Rule-based system.[8].
The rest of this paper is organized as follows.Section 2 discusses the related work.Section 3 introduces the iCalami-tyGuide and DSRG system.Comparison of related work is done in Section 4. The paper conclusion is presented in Section 5.

II. RELATED WORK
GAIA GPS (FOR HAITIAN DISASTER RELIEF) [9]: The application used to download the map when an earthquake occurs in the area.Up-to-date overlays of disaster sites, hospitals, and other relevant waypoints showed.The application also records GPS tracks, waypoints, and geo-tagged photos.One can also import /export GPX tracks photos and guidance to waypoints and along tracks.
UBALERT-DISASTER ALERT NETWORK [10]: This application supports interactive map, shoots photos for the disaster, and reports the events with more descriptions.It also sorts events according to severity, location, and popularity.
DISASTER ALERT [11]: This application detects the most popular types of natural disaster from their occurrence time, and it announces the same to all citizens in the same region.The Pacific Disaster Centre (PDC) organization is the main source of the application information.This application presents its information on an interactive user map using global disaster info [11].
In [12], system works on the principles of the client-Server system, wherein the server responds to the requests of the Clients.This system is implemented in two parts: the EMS Client Application, Rescue Application and Server.The Client and Rescue Application are implemented on an Android Application.The server is implemented as a web-based Java Application.This web application is useful for generating area wise issues report, priority wise issues report, and location wise issues report.

III. DESCRIPTION OF THE SYSTEM
When a calamity strikes, warning alerts become very important.The existence of some social networking apps as message boards to convey information, apps for receiving news updates, and breaking news help people become aware of a situation.
The process of calamity management involves four phases: mitigation, preparedness, response, and recovery.The mitigation phase attempts to reduce calamity risks by focusing on long-term measures of eliminating calamity.The preparedness phase is the development of an action plan for an upcoming calamity.The response phase is the mobilization of services and relief when calamity strikes and the recovery phase is the restoration of the affected area to its previous state.

A. Implementation of iPhone Calamity Guide iCalamityGuide iCG
This system is built to serve merely the students, staff, employees, and visitors of King Abdulaziz University.The goals of this system are:  To make the university a safe place for all.
 To make the evacuation plan clear.Guiding a large number of students during the calamity is not an easy task.There are so many blockage problems because they do not know how to act during the calamity.
 To enable the security employees to check and detect the safe places for students and view them on a KAU map.
Figure 1 presents the architecture of the entire system of iCalamityGuide.This system expresses flow and relation through systematic division such as user, interface, web server, and database server, modules for interfaces and service.
In calamity information management, geographic locations are important.Using their mobile phones, they can be located using the mobile network system or using an integrated GPS included in their phone.

Keychain Access
Keychain Access is a Mac application that allows the user to access the Apple Keychain and configure its passwords for Websites, FTP servers, SSH accounts, network shares, wireless networks, groupware applications, encrypted disk images, etc.We used it to gain the keys required for obtaining certificates for Apple developer program to test the application on a real device, as well as distribute it through the Apple store after obtaining the approval of Apple Inc.

PHP My Admin
"Is a free and open source tool written in PHP intended to handle the administration of MySQL with the use of a Web browser?It can perform various tasks such as creating, modifying or deleting databases, tables, fields or rows; executing SQL statements, or managing users and permissions."[14] Features: "Features provided by the program include: 1) Web interface 2) MySQL database management 3) Import data from CSV and SQL.4) Export data to various formats: CSV, SQL, XML, PDF (via the TCPDF library), ISO/IEC 26300 -Open Document Text and Spreadsheet, Word, Excel, LaTeX and others.5) Administering multiple servers 6) Creating PDF graphics of the database layout 7) Creating complex queries using Query-by-example (QBE) 8) Searching globally in a database or a subset of it 9) Transforming stored data into any format using a set of predefined functions, like displaying BLOB-data as image or download-link.10) Active query monitor (Processes)."[14] AutoCAD "Is a software application for CAD computer aided design and drafting, the software supports both 2D and 3D formats."[15] The following section lists the functions used in our system.

 Push notification:
The application will consciously check if any broadcasts were newely added to the database, and will display if it found an Alert message.The user can then take two actions: either View, which will take them to the application, or cancel.

 Guide me:
This function describes acquiring guidance where to go.It will display a brief message saying, "Go to Building …." and the appropriate building based on what arranged from the safety center filled in the database.This message itself will give two options.The Ok option will zoom out to the campus map as a whole and display the safe destination annotation with a bubble on the top with the tagged message pointing to the safe distention.The second option is Show Exits, which will provide exits for the current building and guidance for the way out in addition to the safe distention.

 Share on Twitter:
Connectivity to Twitter allows the User to share a picture or tweet so others can share their locations; any helpful information might help others in the same situation.

 KAU:
KAU is an action representing the zooming area that includes KAU Campus.Whenever a user goes away from that area, by this action he/she can get the view back to where it was at the beginning.

 View Safe buildings:
As a Security member, it can display all safe buildings users must go to and it helps to memorize them and keep up with any changes done.

 Update Safe buildings:
As a Security member, it can update the building's status.In the case of an emergency situation caused to any of the buildings and make them unsafe to stay in and need to be evacuated.www.ijacsa.thesai.org

 Detect users:
For a Security member, the locations of users can be very helpful to rescue them or make sure they are at a safe building and away from danger, or react toward any crowded locations and take further action to make them safe.
When calamity occurs, the Admin starts the system by sending broadcasting warning news to security employees and users (students, staff, employs and visitors of KAU). Figure 2 (a) shows admin broadcasting an evacuation message to users received as an Alert.
Users respond to the system by push button "View".Then the system starts to detect the location of the user using the GPS location detection.This is followed by a message that represents the evacuation plan regarding that specific spot.Figure 2 shows the sequence in order of screens as viewed by a user.Figure 3 shows sequence in order of screens as viewed by security employees.

d) Implementation of DSRG Disaster Smart Road Guidance
This section will introduce the tools, technologies, and languages used to develop Disaster smart road guidance DSRG package.

Eb2a free Hosting [16]:
An Eb2a is a free hosting site that aids the user during building websites.[17]:

Types of panels used by Eb2a
CPanel (Vista panel): is an excellent hosting control panel on the net.Fantastico: installs complex forums and website templates in an easy way.Htaccess: our system uses the Htaccess features.[18]: Eb2a servers use the latest versions of PHP, MySQL, and Apache Web Server.

Eclipse SDK platform:
To create our Android application, we use three key items in the project's root directory [19]:  A launcher icon [21].Components for DSRG Application Implementation Process are described in Figure 4.As shown in Figure 5, the communication between server and Android is through the database.DSRG application operates on Android mobile phones.Figure 6 shows Android application structure.

Rule-based
Figure 7 shows Home Page and Figure 8 shows Map Screenshot of DSRG.

IV. COMPARISON OF ICG, DSRG AND OTHER SYSTEMS
Table 1 compares our systems with two other systems implemented on Android Operating System.iCG is the system used in the indoor environment.iCG and DSRG guide users have the highest reliability.iCG and DSRG use 3G and Wi-Fi in addition to the mobile network.www.ijacsa.thesai.org

V. CONCLUSION
A disaster is an unexpected occurrence that happens anytime and anywhere.Most students and people are unaware about the prevention or safety responsiveness to face the disaster.When it happens, an evacuation process is conducted to save the victim.The Mobile platform Alerts Systems iCG and DSRG use the Rule-based system to detect evacuation places guidance mobile application, downloadable and ready to use by regular end users.It incorporates GPS technologies to location specific information and fed it to the citizens providing them with the nearest safe location and the shortest path to get there.It provides the user with evacuation tips depending on the current location and as provided from civil protection agency, weather status updates directly from the PME (Presi-dency of Meteorology and Environment) servers and map services.
This work also delivers real-time disaster and road constructions information and notification to the users such as fires, floods, constructions.Users receive warnings and tips on how to react before, during and after the disaster, directly on their mobile phones.Google map updates for any newly added information is received on the mobile user.In the time of a trouble, the user can benefit from the Rule-based system feature that will give him/her a feedback on what action should take in a specific situation.The Rule-based system was built through an interview with the experts domains.All these features, GPS, Google map, Wi-Fi, 3G and rule-based system, are improved access to the needed information at the needed time to save the life of people and students.
GPS can: locate,  calculate the distance traveled,  record the user's path as a set of waypoints,navigate routes,  work as a compass,  indicate the elevation above sea level,  provide the accurate time.Xcode Xcode is an Integrated Development Environment (IDE) containing a suite of software development tools developed by Apple for developing software for OS X and iOS".It was released in 2003; the latest stable release is version 4.3.2.The main application of the suite called Xcode.The Xcode suite also includes most of Apple's developer documentation, and built-in Interface Builder, an application used to construct user graphical interfaces.It includes modified version of the GNU Compiler Collection as well as, in Xcode 3.1 and later.www.ijacsa.thesai.org

Fig. 1 .
Fig. 1. iCalamityGuide Architecture "Apple's LLVM-GCC compiler, with front ends of the GNU Compiler Collection and a code generator based on LLVM, and, in Xcode 3.2 and later, Apple's LLVM Compiler, with the clang front end and a code generator based on LLVM, and the Clang Static Analyzer.It supports C, C++, Objective-C, Objective-C++, Java, AppleScript, Python and Ruby source code with a variety of programming models, including but not limited to Cocoa, Carbon, and Java.Third parties have added support for GNU Pascal, Free Pascal, Ada, C#, Perl, and D. The Xcode suite used the GNU Debugger as the back-end for its debugger.As of version 4.2, the Apple LLVM Compiler became the default compiler.LLDB became the default debugger as of Xcode 4.3".