Next Article in Journal
Micro-Expression-Based Facial Analysis for Automated Pain Recognition in Dairy Cattle: An Early-Stage Evaluation
Previous Article in Journal
Dairy DigiD: An Edge-Cloud Framework for Real-Time Cattle Biometrics and Health Classification
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
This is an early access version, the complete PDF, HTML, and XML versions will be available soon.
Article

Using a High-Precision YOLO Surveillance System for Gun Detection to Prevent Mass Shootings

1
Department of Computer Science, University of California Santa Barbara Santa Barbara, CA 93106, USA
2
Department of Computer Science, Tunghai University, Taichung City 407224, Taiwan
3
Research Center for Smart Sustainable Circular Economy, Tunghai University, Taichung City 407224, Taiwan
4
Department of Medical Research, Kuang Tien General Hospital, Taichung 433004, Taiwan
*
Author to whom correspondence should be addressed.
AI 2025, 6(9), 198; https://doi.org/10.3390/ai6090198
Submission received: 12 July 2025 / Revised: 13 August 2025 / Accepted: 20 August 2025 / Published: 22 August 2025

Abstract

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.
Keywords: YOLO; gun detection; surveillance; edge computing; image detection YOLO; gun detection; surveillance; edge computing; image detection

Share and Cite

MDPI and ACS Style

Hsueh, J.; Yang, C.-T. Using a High-Precision YOLO Surveillance System for Gun Detection to Prevent Mass Shootings. AI 2025, 6, 198. https://doi.org/10.3390/ai6090198

AMA Style

Hsueh J, Yang C-T. Using a High-Precision YOLO Surveillance System for Gun Detection to Prevent Mass Shootings. AI. 2025; 6(9):198. https://doi.org/10.3390/ai6090198

Chicago/Turabian Style

Hsueh, Jonathan, and Chao-Tung Yang. 2025. "Using a High-Precision YOLO Surveillance System for Gun Detection to Prevent Mass Shootings" AI 6, no. 9: 198. https://doi.org/10.3390/ai6090198

APA Style

Hsueh, J., & Yang, C.-T. (2025). Using a High-Precision YOLO Surveillance System for Gun Detection to Prevent Mass Shootings. AI, 6(9), 198. https://doi.org/10.3390/ai6090198

Article Metrics

Back to TopTop