Real-Time Weapon Detection with Artificial Intelligence
Loko AI enables real-time weapon detection using industry-leading AI platform engineering
Loko AI is a pioneer in Autonomous Systems that aims to provide security and safety to essential businesses, communities, and schools through real-time human behavior and weapon detection.
Loko AI was looking to migrate its computer vision cloud platform to the Amazon cloud within four months. The migration was needed so that the platform could perform highly scalable, real-time weapon detection to identify firearms and suspects in high-security environments.
Provectus’ and Loko AI’s engineering teams joined forces to design a sustainable solution on AWS that would meet the demands of processing hundreds of simultaneous security camera feeds in real-time. The result involved deploying Loko’s proprietary ML models on SageMaker, applying DevOps best practices, rolling out a video decode engine, swapping in Loko’s new UI, and integrating an IoT alert system with Alexa notifications.
In just four months, Loko AI received a highly scalable, real-time, multi-tenant, production-grade weapon detection solution for video processing with AI. The platform detects weapons in multiple security video streams with an accuracy of 99% with a time to detection of 15ms.
Time to detection
Time to market
Weapon Detection with AI Can Prevent School Shootings and Violence
In 2019 alone, there were 45 school shootings that resulted in 8 deaths and 43 injuries in the US. Gun violence across the country has been on the decline for almost 30 years, but tragic incidents in schools still occur. No wonder that more than a third of parents fear for their child’s physical safety at school.
Joseph Zaki, founder and CEO of Loko AI, and the team believe that AI can play a key role in preventing school shootings and gun-related crime in public spaces. Their goal is to protect communities by bringing AI-driven visual imaging and human behavior recognition technology to every school, public building, and business across the country.
With two applications for visual imaging and behavior recognition already in the works, the Loko AI team was looking to develop a weapon detection solution that they could integrate with their apps in the AWS cloud, to be able to deter, detect, and defend against shooters quickly and efficiently.
The team sought for a solution that met the following requirements:
- Highly scalable
- 95% or above detection accuracy
- Real-time weapon detection
- Instant alerts and Alexa integration
As Loko AI explored the ways to migrate their platform to AWS, they recognized the need to bring in a helping hand of experts in both the AWS architecture and ML to help them tackle the infrastructure, performance, and app integration challenges. The result was Loko AI augmenting its resources with Provectus to complete the migration and build-out.
Embracing AI & Computer Vision
Together Loko AI and Provectus believe that AI can stop acts of violence before they occur — identify and classify threats, dispatch alerts for immediate response, and help security minimize unwelcome visitors’ access to public spaces.
To do that, however, AI solutions like the weapon detection system envisioned by Loko AI should have the infrastructure capable of:
- Processing vast amounts of data in real time
- Detecting threats with high accuracy
Unless these requirements are met, the solution can be rendered useless.
Provectus’ first goal was to deploy Loko AI’s ML inferencing pipeline on AWS in such a manner to minimize the round-trip latency and improve the performance of ML models on 30 fps video streams.
We reviewed the existing ML components of Loko AI’s apps, implemented the best practices around DevOps, and enhanced the infrastructure by using Streaming Data Platform. That allowed us to improve video capture for IP cameras to stream frames in real time.
The value of that is clear:
The faster the video streams data goes around the system, the quicker it can be fed to ML algorithms for analysis and the more rapidly security alerts can be dispatched to users if any threats occur.
Incorporating gun detection alerts sent to the Alexa device was the second goal of Provectus. Thanks to real-time data streaming and processing, Loko AI’s customers receive security alerts instantly via SMS, email, and Alexa and have more time for response.
And finally, Provectus implemented Loko’s custom UI with an interactive timeline, allowing to easily create cameras and users in the admin board, custom bins, a favorites tagging system, and notifications and alerts. The solution is a beautiful user experience design that is easy to use for customers and simple to maintain for Loko AI’s admins.
Real-Time Weapon Detection Means Faster Response Time, More Lives Saved
“We want to make sure that we do our best to improve public safety and reduce crime-related incidents with AI,” says Joseph Zaki.
At Provectus, we also stay committed to this mission. All through the effort and dedication of our experts, Loko AI has received a highly scalable, real-time, multi-tenant, production-grade solution for video processing with AI in four months.
With all the required ML components deployed and the applications integrated, Loko AI can now detect guns in video streams with accuracy of no less than 99%. It takes only 15 milliseconds to identify and classify the weapon, and to send alerts.
Loko AI is working on numerous government and large-scale commercial projects and continues to evolve its partnership with Provectus to meet the security and safety challenges of the future.
Looking to explore the solution?