Flash-U-Map: A Flashlight-like map for your SAFETY in the community
This web application serves as a "safety guidance map" where one can enter the estimated time and location to see whether the place is likely safe or not.
Inspiration
The idea for this application came across when reading the BBC article 'US crime: Is America seeing a surge in violence?'; the article stated that the number of violent crime cases went up by about 3% in 2020 over the past year. United States is known for its high crime rate compared to other countries located in Europe and Asia. According to the Bureau of Justice Statistics, the crime rate for robbery in the United States is 4 times higher than that of Europe. To ensure the safety of the community, this application will help the user to be conscious of where they are heading to.
What it does
- Users can enter the location and the estimated time of arrival.
- The machine-learning model will evaluate whether the location is likely to be "safe" or "not safe" based on the user's input.
- The model was trained with 610329 data points and achieved an accuracy score of 0.8364.
- Users can also get a glance of the city through the heat map of nearby locations and from the daily update of cases within the city.
- To give users more information, plots ranging from count plot to heat map are displayed on the website.
How we built it
- Dataset downloaded from Kaggle
- Data Preprocessing and Cleaning
- Model Building (RandomForestClassifier, DecisionTreeClassifier)
- Front-End Development with StreamLit
- Connecting Google-Map-API to the website
- Model Deployment
Challenges
Since this was the first time deploying a machine-learning model and launching into an website, it took some time to get everything aligned and use the model in the Streamlit framework.
Accomplishments
- Going beyond from building a machine learning model
- Deploying a machine-learning model into a web application
What we learned
- Working on everything from scratch -- data preprocessing, model building to web application
What's next for Flash-U-Map
The dataset was available for D.C., so the map was restricted to D.C. metro area. Hoping to add datasets in communities in other cities.
Log in or sign up for Devpost to join the conversation.