Introduction
Detecting active shooters in real-time is a critical challenge for public safety, yet current technological solutions possess significant blind spots. Acoustic sensors, while capable of detecting gunshots, often struggle with echoes, environmental noise (such as fireworks), and providing precise localization. Visual surveillance systems typically focus on detecting the firearm itself. However, firearms are small, easily concealed, and frequently appear as indistinct dark shapes in low-quality security footage.
This research addresses two core challenges:
- Tracking Robustness: Systems that rely solely on weapon detection lose the threat the moment the firearm is holstered or obscured by the shooter's body.
- Data Scarcity: There is a severe lack of high-quality, diverse video data of active shooter events for training deep learning models, primarily due to privacy concerns and ethical constraints.
Methodology
The proposed system utilizes a multi-stage pipeline combining object detection with robust multi-object tracking (MOT).
Detection and Tracking
The system employs YOLOv8n, a "nano" version of the YOLOv8 architecture optimized for edge computing. Unlike traditional models, this one is trained to detect "shooters" (the person) and "guns" as distinct classes. To maintain a persistent "lock" on a subject, the researchers integrated Deep OC-SORT paired with OSNET for Re-Identification (ReID), allowing the system to track individuals even through temporary occlusions.
Gun-Confirmation Logic
To minimize false positives—such as mistaking a person holding a phone for a shooter—the system implements a "Gun-Confirmation" logic. A shooter ID is only initialized upon a confirmed gun detection. Once confirmed, the system shifts its focus to tracking the person's body. This ensures the threat remains monitored even if the weapon is no longer visible.
Synthetic-to-Real Transfer
To bridge the "reality gap," the team employed Domain Randomization. They generated synthetic images where textures, colors, and lighting were varied significantly—sometimes using random colors for skin and clothing—to force the model to learn essential shapes and postures rather than specific color patterns.
Data Strategy
The study utilized a hybrid dataset approach to overcome data scarcity:
- Real-World Data: 700 images extracted from publicly available online videos.
- Synthetic Data (UE4 & UE5): Over 15,000 images generated using Unreal Engine. This included "Textured Synthetic" data (semi-realistic environments like malls or banks) and "Masked Synthetic" data (where objects are replaced with random solid colors).
- Augmentation: Camera sensor effects like noise, blur, and chromatic aberration were applied to synthetic data to mimic the imperfections of real-world security cameras.
Key Results and Insights
The integration of synthetic data yielded substantial performance gains. The researchers found that training on "masked" synthetic data actually improved real-world performance, suggesting that shape and posture diversity are more critical for high-stakes detection than photorealism.
Key findings include:
- Performance Boost: Supplementing real data with textured and masked synthetic data resulted in a 16.3% increase in mAP.
- Sequential Training: The most effective training regimen involved starting with synthetic data (UE4/UE5), followed by augmented data, and finally fine-tuning with real-world images.
- Edge Hardware Performance: The system achieved 5.56 FPS on a Jetson Nano, which is sufficient for capturing human movement in a hallway. However, performance on a Raspberry Pi 4 (1.11 FPS) was deemed insufficient for real-time applications.
- Tracking Accuracy: The gun-based confirmation logic achieved a Multi-Object Tracking Accuracy (MOTA) of 0.171 in complex scenes, effectively reducing false positives from bystanders.
Conclusion and Future Work
While the system demonstrates a robust approach to shooter tracking, several limitations remain. Gun detection is still the "weak link" due to the small size of the objects relative to the person. In crowded environments, the tracker occasionally swaps IDs between shooters and bystanders. Future work will focus on optimizing ReID models for higher frame rates on edge devices and expanding gun datasets to improve the initial confirmation step.
Summary updated