Giter Site home page Giter Site logo

sahilkumar47 / shecure Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iamdeepti/shecure

0.0 1.0 0.0 1.16 MB

ShECURE is a web app that leverages machine learning algorithms to predict safe routes.

Home Page: https://shecure.herokuapp.com

HTML 0.69% CSS 1.98% JavaScript 27.79% Jupyter Notebook 69.55%

shecure's Introduction


Website link : 🔗 ShECURE

HitCount

INSPIRATION

Unsafe streets limits women’s choices in life forcing them to miss those important opportunities and moments where they can feel proud,confident and empowered. While many initiatives have been taken by the Ministry of Women and Child development like installation of CCTV monitors in railways stations with 24*7 monitoring , equipping phones with emergency helpline numbers(181) and panic buttons etc. Our contribution in circumventing this problem is through ShECURE,a web-application which behaves like a personal safety map for women

ShECURE provides 2 utilities depending on user’s choice:

1) Detecting the safest route:

The user enters the source and destination, the application extracts different possible routes using the Mapbox Directions API and for each route, it uses reverse geocoding API to extract all the streets names in a particular route. For each street lying in the route, the k nearest neighbours model is used to predict the safety score of the street lying between 1- 4 (4 being highly safe and 1 being unsafe). Data used for the value of different factors specified were collected using web-scraping. Safety of a route is calculated by taking an average of all the safety scores from the streets lying in the route. The application then shows the safety score of each route and mark the safest route with green. It is the user’s choice to choose her path accordingly.

2) Detecting the safety score of current position:

The application takes the current position of the user by using the Mapbox geolocation API. For the returned longitude and latitude, all the streets and places lying within the radius of 500m are extracted using the Mapbox Geocoding API. The safety scores of all these places are predicted using the machine learning model on taking the average of all the safety scores of the region. If the safety score is below a certain threshold an emergency SOS is activated and the user is alerted. We also depict the safety of the region by marking it green (safe) / red (unsafe).

3) Feedback form:

We used feedback form to get few details like lighting that are not originally extracted through public datasets. User is asked to enter a rating and remark, sentiment analysis is done on the remark and a rating between 1-5 (1 suggesting unsafe and 5 suggesting safe) is assigned to it,an average of this score and the rating entered by user is taken, and if it's above a certain threshold (which we have taken to be 3) then the route is considered to be safe by user. This score isn't reflected in safety score, it's shown separately as the 'percentage of users who found this route safe'.

How to use this repo?

Fork or clone this repo, then run the following commands in sequence

  1. move to the directory (cd path_to_directory)
  2. make .env file in directory and write
    MONGO_URI = your_mongo_URI_to_connect_node_app
    REACT_APP_TOKEN = your_MAPBOX_API_ACCESS_KEY
  3. npm install This will install all the node modules for server files
  4. cd client Moving to client folder
  5. npm install this will install all the node modules for client directory
  6. cd ..
  7. npm run dev This command will run both back-end and front-end simultaneously

Contributions

We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's:

  • Reporting a bug
  • Discussing the current state of the code
  • Submitting a fix
  • Proposing new features
  • Becoming a maintainer

Screenshots:

  1. Safest route MAP
  2. Current Location MY LOCATION
  3. Feedback Form Feedback form

shecure's People

Contributors

iamdeepti avatar priyagarg1304 avatar sanskriti0512 avatar maruthimohan avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.