TY - GEN
T1 - Real-Time Handgun Detection Using YOLO and a Custom Videogame Dataset
AU - Bazan, Diego
AU - Casanova, Raul
AU - Ugarte, Willy
N1 - Publisher Copyright:
© The Author(s), under exclusive license to Springer Nature Switzerland AG 2026.
PY - 2026
Y1 - 2026
N2 - This paper presents a novel approach to real-time firearm detection using advanced YOLO models and a custom dataset derived from the Grand Theft Auto V (GTA V) video game. Our work encompasses three primary contributions: the creation of a unique dataset., the development of an effective detection model, and the implementation of a desktop application for real-time alerting. Firstly, we constructed a comprehensive dataset from GTA V to address the limitations of existing datasets, which often lacked modern scenarios and variety in firearm presentation. This dataset includes 2,300 images categorized by distance, firearm type, lighting conditions, and simulated security camera effects. The images underwent augmentation to reduce model overfitting and improve diversity. Our detection model leverages the YOLO architecture, with extensive experiments comparing YOLOv7, YOLOv8, and YOLOv10. YOLOv8 achieved the highest mean Average Precision (mAP50-95) of 0.70485, significantly outperforming YOLOv7 and YOLOv10. YOLOv7 and YOLOv8 were fine-tuned using weights from pre-trained models and adjusted hyperparameters to optimize performance. Additionally, we developed a desktop application to interface with security camera feeds. The application processes images to detect firearms and notifies operators with both auditory and visual alerts. It records incidents and provides tools for real-time crime detection, enhancing security measures. Our results in real-world simulated situations demonstrate the effectiveness of using a custom video game dataset and state-of-the-art YOLO models for accurate firearm detection in real-time applications. Future work will explore further refinements in detection accuracy and application robustness in diverse real-world environments.
AB - This paper presents a novel approach to real-time firearm detection using advanced YOLO models and a custom dataset derived from the Grand Theft Auto V (GTA V) video game. Our work encompasses three primary contributions: the creation of a unique dataset., the development of an effective detection model, and the implementation of a desktop application for real-time alerting. Firstly, we constructed a comprehensive dataset from GTA V to address the limitations of existing datasets, which often lacked modern scenarios and variety in firearm presentation. This dataset includes 2,300 images categorized by distance, firearm type, lighting conditions, and simulated security camera effects. The images underwent augmentation to reduce model overfitting and improve diversity. Our detection model leverages the YOLO architecture, with extensive experiments comparing YOLOv7, YOLOv8, and YOLOv10. YOLOv8 achieved the highest mean Average Precision (mAP50-95) of 0.70485, significantly outperforming YOLOv7 and YOLOv10. YOLOv7 and YOLOv8 were fine-tuned using weights from pre-trained models and adjusted hyperparameters to optimize performance. Additionally, we developed a desktop application to interface with security camera feeds. The application processes images to detect firearms and notifies operators with both auditory and visual alerts. It records incidents and provides tools for real-time crime detection, enhancing security measures. Our results in real-world simulated situations demonstrate the effectiveness of using a custom video game dataset and state-of-the-art YOLO models for accurate firearm detection in real-time applications. Future work will explore further refinements in detection accuracy and application robustness in diverse real-world environments.
KW - Artificial vision
KW - Criminal activities
KW - Custom pistol video-game dataset
KW - Machine learning
KW - Real time detection
KW - Video surveillance systems
KW - YOLOv10
KW - YOLOV7
KW - YOLOv8
UR - https://www.scopus.com/pages/publications/105021814630
U2 - 10.1007/978-3-032-08570-2_11
DO - 10.1007/978-3-032-08570-2_11
M3 - Contribución a la conferencia
AN - SCOPUS:105021814630
SN - 9783032085696
T3 - Lecture Notes in Business Information Processing
SP - 195
EP - 215
BT - Enterprise Information Systems - 26th International Conference, ICEIS 2024, Revised Selected Papers
A2 - Hammoudi, Slimane
A2 - Brodsky, Alexander
A2 - Filipe, Joaquim
A2 - Smialek, Michal
PB - Springer Science and Business Media Deutschland GmbH
T2 - 26th International Conference on Enterprise Information Systems, ICEIS 2024
Y2 - 28 April 2024 through 30 April 2024
ER -