Using a High-Precision YOLO Surveillance System for Gun Detection to Prevent Mass Shootings
Mass shootings are forms of loosely defined violent crimes typically involving four or more casualties by firearm and have become increasingly more frequent, and organized and speedy responses from police are necessary to mitigate harm and neutralize the perpetrator. Recent, widely publicized police responses to mass shooting events have been criticized by the media, government, and public. With the advancements in artificial intelligence, specifically single-shot detection (SSD) models, computer programs can detect harmful weapons within efficient time frames. We utilized YOLO (You Only Look Once), an SSD with a Convolutional Neural Network, and used versions 5, 7, 8, 9, 10, and 11 to develop our detection system. For our data, we used a Roboflow dataset that contained almost 17,000 images of real-life handgun scenarios, designed to skew towards positive instances. We trained each model on our dataset and exchanged different hyperparameters, conducting a randomized trial. Finally, we evaluated the performance based on precision metrics. Using a Python-based design, we tested our model’s capabilities for surveillance functions. Our experimental results showed that our best-performing model was YOLOv10s, with an mAP-50 (mean average precision 50) of 98.2% on our dataset. Our model showed potential in edge computing settings.
Authors
- Chao‐Tung Yang (ORCID: https://orcid.org/0000-0002-9579-4426)
- Jonathan Hsueh
Institutions
- University of California, Santa Barbara (US)
- Tunghai University (TW)
- Kuang Tien General Hospital (TW)
Publication Details
- Journal
- AI
- Published
- 2025-08-22
- DOI
- https://doi.org/10.3390/ai6090198
- Citations
- 1
- Primary Topic
- Advanced Optical Sensing Technologies
- Type
- article
- Field-Weighted Citation Impact
- 1.19