SafeNet

Impressions on the Prompt
First, I would like to give you guys an idea about what went through my mind when I first saw the themes. The prompt that caught my attention was the one titled communication. Now, communication is a very broad word so there were a lot of things I could work on. So, the first thing I did was search up the word “communication” on Google. The definition that caught my eye was this one: “the successful conveying or sharing of ideas and feelings.” Now, I knew that if I create a system, which can transmit useful information in real-time, I should be good to go. I didn’t want to do something very traditional and boring like creating a discord bot, chat application or calendar. I wanted to do something different and impactful. And after some brainstorming, I finally found a very important problem I could solve.
The Problem
I would like to spend some time talking about the problem I am tackling and its importance. The problem I am trying to solve is the reporting of crime. The way crime is currently reported goes something like this:
- The crime happens.
- Someone notices that a crime has occurred.
- The person calls 911 to report it to the police.
- The police arrive and start the investigation.
This process is very inefficient. In most cases, crimes are reported when the damage has already been done and the culprits have gotten away. This is especially prevalent in cases of assault, incest, and murder. The victim in such cases does not have means to call for help. And by the time someone else informs authorities, it’s too late.
The Solution

This is where “SafeNet” comes in. SafeNet a real-time monitoring system which monitors CCTV feeds in real time and alerts the nearest police station if anything out of the ordinary is detected. It uses Machine Learning (specifically a Convolutional Neural Network) to process CCTV video feeds and make predictions on the current state of the video feed.
If the Neural Network detects that something wrong is going on, a docker container running on Hop’s ignite platform alerts the nearest police station along with information like the address of the crime. This allows the authorities to react to these problems without having to wait for someone to report the crimes.
How it was made

I used a lot of frameworks and libraries to make this project easy to use and powerful. The ML model was trained using TensorFlow using the DenseNet architecture. I use OpenCV for image processing and numpy for some basic mathematics. The frontend is powered by streamlit. Streamlit made it easy for me to connect the ML model to a sleek and modern frontend. Another library I spent a lot of time with is Tensorflow’s model optimization framework and tflite. There allowed me to make the model lightweight and fast without sacrificing too much accuracy. But most importantly, I used Hop to power the system that sends the alerts. I created a Docker Image loaded with FastApi to create a Rest API powered by Hop’s ignite service.
Difficulties faced
The project was a challenging endeavor with a lot of moving components. One of the main difficulties I faced was making the system fast and light. Since the project had to be real time, I had to create a model which was both accurate and lightweight. The first model I trained was pretty large, but after adding some optimizations, I was able to create a system that runs flawlessly on a live video stream.
Favorite part of the Project
The favorite part of the project for me is the dashboard. Even though the main tracking is at the core, creating the dashboard made the project much more user friendly and cohesive.
Experience with Hop
I think my experience with Hop was incredibly smooth. The support they provided in the discord server was quick and effective. The process of deploying docker images on Hop's ignite platform is straightforward and very intuitive. I haven't encountered any platform that is as easy to use. The only addition I would like to see is the inclusion of cheaper GPU's in hop's VM lineup because the A4000's they currently have might be overkill for smaller projects.
Why SafeNet is a great finalist

To conclude, I think SafeNet is a very powerful tool that can change the very fabric of our society by reducing response times and deterring crime. There are several reasons I think SafeNet would be a great finalist in BuilderHacks:
- First, the project is a real-time product which enhances effective communication. This means that it fits the theme like a glove.
- Secondly, the project makes great utilization of the hackathon sponsor Hop to successfully build the project.
- And lastly, no cohesive solution like this one has been created. The idea is original and has a big social impact.

Log in or sign up for Devpost to join the conversation.