✅
Peer-Reviewed Excellence Hub
Serving Researchers Since 2012

SecureStep: A Smart Personal Safety and Safe Navigation Platform

DOI : 10.5281/zenodo.24711566
Download Full-Text PDF Cite this Publication

Text Only Version

SecureStep: A Smart Personal Safety and Safe Navigation Platform

Dr. Dhanalakshmi S

Professor Department of Computer Science And Engineering, K S Institute of Technology, Bangalore, India

Rajeev B S

U G Student Department of Computer Science And Engineering, K S Institute of Technology Bangalore, India

Pavan Sai P

U G Student Department of Computer Science And Engineering K S Institute of Technology, Bangalore, India

Poonamlal

U G Student Department of Computer Science And Engineering, K S Institute of Technology Bangalore, India

Prajwal B Raghuveer

U G Student Department of Computer Science And Engineering, K S Institute of Technology, Bangalore, India

Abstract – Personal safety has become an important concern, particularly for people travelling alone or through unfamiliar areas. Most existing safety applications mainly provide emer- gency services such as SOS alerts and location sharing, while conventional navigation applications focus on finding the shortest or fastest route. These approaches are useful individually, but they do not fully address the need for safer route planning and emergency support within a single platform. To address this problem, we developed SecureStep, a smart personal safety and navigation platform that combines map-based navigation, safety analysis, route recommendation, incident reporting, emergency assistance, and notification services. The system allows users to select their source and destination through an integrated map and generates possible routes. The available routes are analysed using safety-related information and a safety score is calculated to recommend a comparatively safer route. The platform also provides incident reporting, emergency contact management, SOS alerts, live location tracking, notification support, and safety- related data storage. The completed system provides a unified platform where navigation and personal safety features work together instead of functioning as separate applications. The current implementation does not include machine-learning-based threat detection; this is considered a future enhancement. The developed platform demonstrates how location-based services and safety information can be combined to support safer travel and faster emergency response.

Index TermsPersonal Safety, Safe Navigation, Route Rec-

ommendation, Map Integration, GPS Tracking, Emergency Re- sponse, Safety Score, Incident Reporting, SOS Alert, Location- Based Services.

  1. Introduction

    Personal safety is an important concern in todays environ- ment. People often travel alone for education, work, shopping, and other daily activities. Travelling through unfamiliar or less crowded areas can create additional safety concerns, particularly when the user has limited information about the surrounding area.

    Traditional navigation applications are mainly designed to

    find the shortest or fastest route between two locations. Al-

    though this is useful for normal travel, the shortest route is not always the safest route. A route may pass through an area associated with previous incidents or other safety concerns while an alternative route may provide a better safety option. At the same time, personal safety applications generally focus on emergency features such as SOS alerts, emergency contacts, and location sharing. These features are useful when a user is already facing a dangerous situation, but they provide

    limited assistance during the route-selection stage.

    This creates a need for a system that combines navigation and personal safety in one platform. SecureStep was developed with this objective. The system combines map-based naviga- tion with safety-aware route recommendation so that users can consider safety while planning their journey.

    The platform allows users to select locations through an integrated map, generate possible routes, and analyse the safety of these routes. A safety score is used to compare the available options and recommend a suitable route. In addition to navigation, the system provides incident reporting, emergency contact management, emergency SOS, live location tracking, notification support, and backend data management.

    The completed system is designed as a modular platform so that additional intelligent features can be incorporated in the future. One such enhancement is AI-based threat detection, which can be used to automatically identify potential threats using suitable data and machine learning techniques.

    The major contributions of this work are:

    • Integration of map-based navigation with personal safety

      features.

    • Safety-based analysis and recommendation of travel

      routes.

    • Calculation of safety scores to support route selection.

    • Incident reporting for maintaining structured safety- related records.

    • Emergency SOS, live location tracking, and notification

      support for emergency communication.

    • Backend APIs and data services for managing safety and emergency information.

    • A modular architecture that allows future integration of

    AI-based threat detection.

  2. Related Work

    1. GPS and GSM Based Personal Safety Systems

      GPS and GSM technologies have been widely used in personal safety systems for tracking users and transmitting emergency alerts. These systems allow a users location to be identified and shared with predefined emergency contacts during critical situations. The main advantage of such systems is their ability to provide location information during an emergency. However, most systems concentrate on emergency communication rather than helping the user avoid unsafe areas before travelling.

      SecureStep extends this idea by integrating location-based safety analysis with route recommendation. Emergency fea- tures are combined with navigation so that the system can provide assistance both during route planning and during an emergency.

    2. AI-Based Smart Safety Monitoring

      Artificial Intelligence and machine learning have been increasingly explored for personal safety applications. AI- based systems can analyse behavioural patterns, sensor in- formation, environmental information, or historical data to identify suspicious or potentially dangerous situations. Such systems can provide automated monitoring and may reduce the dependence on manual reporting. However, reliable AI-based threat detection requires suitable datasets, sufficient training, and continuous evaluation.

      In SecureStep, AI-based threat detection is considered a future enhancement rather than part of the current implementa- tion. The present system focuses on safety-aware navigation, incident reporting, emergency assistance, and related safety services.

    3. Infrastructure-Aware Safe Route Navigation

      Crime-aware navigation systems attempt to improve con- ventional route planning by considering crime statistics and safety information. Instead of selecting a route only according to distance, these systems analyse the risk associated with different areas. GIS mapping and crime databases can be used to identify potentially risky locations and recommend

      safer alternatives. However, the effectiveness of such systems

    4. Wearable and Mobile Safety ystems

    Wearable and mobile technologies have also been used for personal protection. Such systems can provide location track- ing, emergency buttons, communication services, and other safety-related functionality. Wearables can be useful because they provide quick access to emergency features, but they may introduce limitations related to battery life, connectivity, and hardware availability.

    SecureStep focuses on providing the required safety func- tions through a software-based platform. Its modular design also allows additional devices and technologies to be consid- ered in future development.

  3. Proposed Methodology

    1. System Architecture

      The SecureStep platform follows a modular architecture in which each component performs a specific safety or navigation-related function. The complete system workflow consists of user authentication, map and geocoding services, route generation, route safety analysis, safety score calculation, safe route recommendation, emergency contact management, SOS and live location tracking, incident reporting, notifica- tions, and backend data management.

      The system starts with user interaction. The user can provide the required location information and request navigation. The map and navigation components then generate available routes. These routes are analysed using safety-related information, after which a safety score is calculated and the recommended route is displayed.

      The system also allows users to report incidents with de-

      scriptions and location information. Emergency functionality allows the user to trigger an SOS when immediate assistance is required. Notifications and live location information can then be used to communicate the emergency to relevant contacts.

    2. Algorithms Used

      The current SecureStep implementation uses rule-based ge- ographical and route-analysis techniques rather than machine- learning algorithms. The main algorithms used in the safe- navigation workflow are described below.

      1. Haversine Distance Algorithm: The Haversine formula is used to calculate the geographical distance between two latitudelongitude coordinates. This calculation is used to determine the proximity of police stations, hospitals, and streetlights to points along a route. For coordinates ((/>1, A1 ) and ((/>2, A2 ), the distance is calculated as

        s !

        d = 2 R arcsin sin 2 {). (/> + cos((/> ) cos((/> ) sin 2 {). A ,

        depends on the accuracy and availability of the underlying

        safety data.

        SecureStep follows the broader concept of safety-aware

        2 1 2

        where R is the Earth radius.

        2

        (1)

        route planning, but its current implementation uses infrastruc- ture factors such as police stations, hospitals, and streetlights rather than a machine-learning crime-prediction model. The system generates possible routes, evaluates their safety, calcu- lates safety scores, and recommends a suitable route.

      2. Route Coverage Analysis: The route is sampled at regular points and each sampled point is checked for nearby streetlights. A point is considered covered when a streetlight is found within the configured 50 m threshold. The coverage percentage is calculated as the ratio of covered sampled points

        Fig. 1. System flowchart of the SecureStep platform.

        to the total sampled points. Similar distance checks are used

        to identify nearby police stations and hospitals.

      3. Weighted Safety-Score Algorithm: For the active safe- navigation workflow, normalized component scores are com- bined using fixed weights. Police proximity contributes 40%, hospital proximity contributes 25%, and streetlight coverage contributes 35%. The score is calculated as

        S = 0.40P + 0.25H + 0.35L, (2)

        where P , H , and L are the normalized police, hospital, and streetlight scores, respectively. The final value is bounded to the 0100 range.

      4. Route Comparison and Selection: After the safety score is calculated for each available route, the routes are sorted in descending order of safety score. The highest-scoring route is presented as the recommended safer route, while alternative routes remain available for comparison using distance, travel time, nearby facilities, and safety score.

      5. Risk Classification Algorithm: The safety score is mapped to a qualitative risk category. Scores of 80 or above are classified as low risk, scores from 60 to 79 as moderate, scores from 40 to 59 as caution, and scores below 40 as high risk. This classification is used to present the route condition in the user interface.

        The project also contains a central safety-scoring service with additional logic for reported incidents and route effi- ciency. However, the currently displayed safe-navigation route score is based on the three factors and weights described above. No machine-learning or artificial-intelligence algorithm is part of the current implementation; AI-based threat detection is reserved for future work.

        The major modules of the system are:

        • User Authentication and Account Management

        • Map and Geocoding Module

        • Route Generation Module

        • Route Safety Analysis and Scoring Module

        • Safe Route Recommendation Module

        • Emergency Contact Module

        • Emergency SOS and Live Tracking Module

        • Incident Reporting Module

        • Notification and Location Sharing Module

        • Backend Data Management Module

    3. Infrastructure Data and Map Module

      The system uses infrastructure information required for route safety analysis, including police stations, hospitals, and streetlight locations. The application exposes these resources through backend APIs and displays relevant information on the map. Map and geocoding services use OpenStreetMap- based services, while route generation uses the OSRM routing service.

    4. Route Generation Module

      The Route Generation Module obtains real road routes between the selected source and destination. The application uses OpenStreetMap Nominatim/Photon services for place search and OSRM for road routing. Alternative routes returned by the routing service are passed to the safety analysis stage rather than selecting a route only by distance.

    5. Route Safety Analysis and Scoring

      The active safe-navigation implementation calculates a nor- malized safety score from three route-specific factors: nearby police stations, nearby hospitals, and streetlight coverage. The current implementation uses weights of 40% for police proximity, 25% for hospital proximity, and 35% for streetlight coverage. Each component is normalized to a 0100 scale and combined to obtain the route safety score. The score is then used to rank the available routes.

    6. Safe Route Recommendation Module

      After scoring the available OSRM routes, the system ranks them from the highest safety score to the lowest. The highest- ranked route is displayed as the recommended route, while alternative routes are also shown with their route distance, estimated travel time, nearby facilities, and safety score. This allows the user to compare safety and practical navigation information before selecting a route.

    7. Emergency Contact and SOS Module

      The emergency module allows users to manage emergency contacts and initiate an SOS alert with the users current location. Each SOS session receives n emergency token and can maintain location updates during the active session. The user can stop or resolve the SOS session after the emergency has ended.

    8. Notification and Location Sharing Module

      The notification component prepares emergency information containing the users location and a live tracking link for configured contacts. The backend supports SMS and What- sApp dispatch when the corresponding Twilio credentials are configured. Without carrier credentials, the system records and prepares the dispatch information but does not claim successful carrier delivery.

    9. Incident Reporting Module

      The incident reporting interface allows users to select an incident type, enter a description, provide a location using GPS or manual input, and submit the report anonymously when required. The current backend endpoint stores incident reports when MySQL is available. In the tested JSON-fallback environment, this endpoint is unavailable because incident reports require the database service.

    10. Backend Data Management Module

    The backend is implemented with Node.js and Express and supports MySQL persistence when a database connection is available. Selected services, including users, emergency contacts, and SOS records, provide a local JSON fallback when MySQL is unavailable. Infrastructure data are served through API endpoints. The project also includes the SQL schema required for the database-backed deployment.

  4. Implementation Details

    1. Development Environment

      SecureStep was developed as a web-based personal safety and safe-navigation platform using HTML, CSS, JavaScript, Node.js, and Express. The application integrates map services, routing services, backend APIs, and structured safety data. The backend supports MySQL persistence and selected local JSON fallback storage for development when MySQL is unavailable. The MySQL authentication path uses bcrypt password hash- ing, whereas the current Node.js JSON fallback stores user records locally and should not be treated as the production security configuration.

    2. Map and Route Integration

      The map interface provides location selection, current- location display, nearby facility information, and route visu- alization. Place search uses OpenStreetMap-based geocoding services and route generation uses OSRM to obtain real road routes and alternative paths. The resulting routes are passed to the safety scoring stage before recommendation.

    3. Safety Score Calculation

      For the active safe-navigation workflow, each route is evalu- ated using police proximity, hospital proximity, and streetlight coverage. The component scores are normalized to a 0100 scale and combined using weights of 0.40, 0.25, and 0.35, respectively. The final score is bounded to the 0100 range and used to rank the available routes.

    4. Emergency and Location Services

      The SOS implementation creates an emergency session, records the initial location, generates a protected live-tracking token, and accepts subsequent location updates. Emergency contacts can be managed through CRUD APIs. The notifica- tion workflow prepares location-aware SMS and WhatsApp messages and can use Twilio for carrier delivery when cre- dentials are configured.

    5. Incident and Data Management

    Incident reporting accepts an incident type, description, location, anonymity option, severity, and optional image URL at the backend API level. User accounts, emergency contacts, SOS sessions, and infrastructure data are managed through the corresponding backend services. The tested local environment used the JSON fallback because MySQL was unavailable; consequently, the CivicSense incident submission endpoint could not be functionally validated in that environment.

    Fig. 2. Module-wise functional test success rate.

  5. Experimental Setup and Results

    1. Testing Environment

      The project archive was examined and tested in a local Node.js environment. The built-in command npm test re- ported no automated test cases in the repository, so addi- tional manual API-level functional checks were performed against the running application. The server started successfully, but MySQL was unavailable in the test environment and the application therefore used its JSON fallback mode for supported services. OpenStreetMap Nominatim/Photon and OSRM are external services; their live endpoints could not be reached from the isolated test environment, so end-to-end route-generation accuracy was not assigned a numerical value.

      Twenty API-level functional checks were executed across authentication, infrastructure APIs, emergency contacts, SOS/live tracking, incident reporting, and user export. Nine- teen checks passed; the additional health check is not included in Table I. The single failed functional check was incident- report submission because that endpoint requires MySQL in the current implementation. In addition, static syntax valida- tion passed for all 18 JavaScript files and all 6 PHP files present in the project.

      The results in Table I represent functional test success rate rather than machine-learning accuracy. The overall rate of 94.7% reflects the executed API checks in the available test environment and should not be interpreted as navigation or safety-prediction accuracy.

    2. Map and Navigation Results

      The map integration provides the geographical interface required for navigation. Users can select locations and view their current position and nearby landmarks. The project code uses OpenStreetMap-based geocoding and OSRM for genuine road-route generation. A numerical route-accuracy measurement was not reported because live routing services were inaccessible in the isolated test environment.

      Fig. 3. Map interface showing the users current location and nearby

      landmarks.

      TABLE I Functional Test Results

    3. Safe Route Recommendation Results

      Module

      Tests

      Passed

      Failed

      Rate (%)

      Authentication

      4

      4

      0

      100.0

      Infrastructure APIs

      3

      3

      0

      100.0

      Emergency Contacts

      4

      4

      0

      100.0

      SOS and Live Tracking

      6

      6

      0

      100.0

      Incident Reporting

      1

      0

      1

      0.0

      User Export

      1

      1

      0

      100.0

      Overall

      19

      18

      1

      94.7

      The safe route recommendation workflow evaluates alter- native routes using police proximity, hospital proximity, and streetlight coverage. The routes are ranked by the resulting safety score, and the highest-ranked route is presented as the recommended option. The interface also displays route distance, estimated travel time, nearby facilities, and safety score.

      Fig. 4. Safe route recommendation interface with multiple route options.

    4. Emergency System Results

      The SOS functionality was functionally tested through the backend API. Tests verified SOS creation, protected live- location access, rejection of an invalid tracking token, location updates, SOS resolution, and retrieval of SOS history. These checks passed in the JSON-fallback test environment. Actual carrier delivery of SMS or WhatsApp messages was not tested because xternal Twilio credentials were not configured.

      Fig. 5. Emergency SOS interface with contacts, live tracking and safety check.

    5. Incident Reporting Results

      The incident reporting interface allows users to select an incident type, enter a description, provide a location, and submit the report anonymously if required. The interface is implemented, but the backend submission endpoint requires MySQL. Since MySQL was unavailable in the test environ- ment, incident submission could not be validated end-to-end and is recorded as the single failed functional check in Table I.

      Fig. 6. Incident reporting form for submitting safety-related incidents.

    6. Overall System Result

    The project successfully demonstrates the main software workflow for safe navigation and emergency assistance. Func- tional API testing confirmed authentication, infrastructure-data retrieval, emergency-contact management, SOS/live tracking, and user export in the available local environment. Incident- report submission remains dependent on a working MySQL database, while live route generation remains dependent on external OpenStreetMap and OSRM services. Therefore, the measured result in this study is a functional test success rate rather than a general accuracy percentage.

  6. Discussion

    The development of SecureStep demonstrates how route planning and personal safety functions can be integrated into a single web platform. The active navigation workflow uses real road routes and evaluates them using infrastructure-based safety factors rather than relying only on distance.

    The current safety score combines police proximity, hospital proximity, and streetlight coverage. This provides a transparent scoring method that can be explained to users. However, the score represents a rule-based safety indicator and should not be interpreted as a statistically validated probability of safety. Its usefulness depends on the completeness, accuracy, and freshness of the infrastructure data.

    The functional tests also identified an implementation de-

    pendency that should be clearly stated. The incident-reporting backend currently requires MySQL, while selected user, emergency-contact, and SOS services can operate using lo- cal JSON fallback storage. The project therefore supports a database-backed deployment, but the tested environment did not provide a running MySQL service.

    The emergency workflow performed successfully at the API

    level, including protected live tracking and SOS resolution. Carrier-level SMS or WhatsApp delivery was not validated

    because it requires external Twilio credentials. Similarly, live route-generation testing could not be reproduced in the isolated environment because the project depends on external Nomi- natim/Photon and OSRM services.

    The project archive does not contain an automated JavaScript or PHP test suite, and no machine-learning model is implemented in the current version. The local JSON au- thentication fallback should be replaced by the database- backed authentication path for production deployment because password handling differs between the two modes. AI-based threat detection, more advanced learning from incident data, improved route optimization, and continuous safety-data up- dates remain future work.

  7. Conclusion and Future Work

SecureStep is a web-based personal safety and safe- navigation platform that combines map-based routing, infrastructure-aware safety scoring, emergency contacts, SOS assistance, live location tracking, incident reporting, and back- end data services. The implemented navigation workflow uses real road routes from OSRM and ranks route alternatives using police proximity, hospital proximity, and streetlight coverage. Functional testing of the available local deployment pro- duced an overall API-level test success rate of 94.7% across 19 executed functional checks. This value describes software- function testing in the available environment and is not a machine-learning or navigation-accuracy measurement. The main limitation observed during testing was the dependence of incident reporting on a working MySQL service. External routing services and carrier messaging services also require

network access and appropriate configuration.

Future work can include a complete automated test suite, continuous infrastructure-data ingestion, stronger database fallback consistency, end-to-end validation of OSRM/Nominatim routing, carrier-level notification testing, improved route optimization, and AI-based threat detection. Machine-learning techniques may later be introduced to analyse historical incidents and environmental information for proactive threat identification, subject to suitable datasets and validation.

References

  1. S. Rajalakshmi, P. Karthikeya, R. Meghana, and V. Pranav, IoT-Based Smart Personal Security System Using GPS and GSM Technology, International Journal of Engineering Research and Technology (IJERT), vol. 11, no. 5, pp. 102108, 2023.

  2. A. Sharma, R. Verma, S. Gupta, and P. Nair, Artificial Intelligence Enabled Personal Safety Monitoring and Emergency Alert System, Proceedings of the International Conference on Smart Computing and Communication Systems, IEEE, pp. 214220, 2022.

  3. M. K. Hassan, T. Ahmed, and S. R. Chowdhury, Safe Route Navigation Using Crime Data Analysis and Machine Learning Techniques, Interna- tional Journal of Intelligent Transportation Systems Research, Springer, vol. 20, no. 3, pp. 455467, 2023.

  4. N. Priya, S. Kavitha, and R. Balasubramanian, Wearable IoT Device for Smart Personal Protection and Real-Time Emergency Communication, Journal of Advanced Research in Embedded Systems, vol. 9, no. 2, pp. 4553, 2022.

  5. K. Patel, A. Singh, and D. Mehta, Machine Learning Approaches for Intelligent Threat Detection in Smart Safety Applications, Elsevier Journal of Information Security and Applications, vol. 68, pp. 103118, 2023.

  6. H. Lee, J. Kim, and S. Park, Cloud-Integrated GPS Emergency Re-

    sponse Platform for Personal Safety Monitoring, International Journal of Computer Networks and Communications, vol. 15, no. 4, pp. 8799, 2022.

  7. P. Roy, M. Das, and S. Chatterjee, Crime Prediction and Safe Navi-

    gation Framework Using Artificial Intelligence, IEEE Access, vol. 11,

    pp. 5542155435, 2023.

  8. V. Kumar and R. Srinivasan, Smart Mobile Application for Women Safety and Secure Navigation Assistance, International Conference on Emerging Trends in Computing Technologies, Springer, pp. 311320, 2021.

  9. S. Narayanan, P. Arvind, and K. Harish, IoT and AI Based Real-Time

    Personal Security Monitoring System, Journal of Ambient Intelligence

    and Humanized Computing, Springer, vol. 14, no. 6, pp. 72917304,

    2023.

  10. Joseph, L. Fernandez, and M. Thomas, Emergency Alert and Risk Prediction System for Public Applications, International Journal of Smart Sensor and Ad Hoc Network, vol. 4, no. 1, pp. 1524, 2022.

  11. S. Narayanan and K. Priya, SecureStep: An Intelligent Footstep

    Monitoring and Emergency Assistance System for Women Safety, International Journal of Smart Computing and Artificial Intelligence, vol. 11, no. 3, pp. 4558, 2023.

  12. R. K. Sharma, P. Niveditha, and A. Joseph, AI-Driven Smart Navigation

    and Threat Detection Framework for Personal Security Applications, Journal of Emerging Technologies and Innovative Research, vol. 9, no. 7, pp. 201210, 2022.

  13. M. Venkatesh and S. Harini, IoT-Based Wearable Safety Device with

    Real-Time GPS and GSM Tracking International Journal of Advanced

    Computer Science and Applications, vol. 13, no. 5, pp. 411419, 2022.

  14. P. Roy and D. Fernandes, Machine Learning Techniques for Crime Prediction and Safe Route Recommendation, International Journal of Data Science and Analytics, vol. 8, no. 4, pp. 8897, 2023.

  15. T. Hassan, M. Ali, and S. Chowdhury, Crime Data Analytics and

Route Optimization for Safer Urban Navigation, Journal of Information

Security and Applications, vol. 67, pp. 103117, 2022.