Skip to content
Open access

Real-Time Weapon Detection Using Enhanced YOLO12 Models and a Custom Dataset

2026 · IEEE Access · Vol 14, pp. 120965-120983 · 0 citations · 34 references
Computer Science

Abstract

The paper presents a customized version of the YOLOv12 model that enables better detection of small, occluded, and low-contrast weapons in video sequences while maintaining high precision and real-time inference speed. The new model integrates: 1) loss reweighting strategy that emphasizes small objects’ contributions during training; and 2) set of lightweight, append-only enhancement modules placed in the detection head of the baseline architecture. A large-scale custom dataset has been developed, including more than 26,528 images and 38,167 labeled instances, extracted from about 1,200 YouTube videos and curated web images. The dataset includes three weapon types (knife, pistol, long-gun) and an additional no_weapon class (showing images prone to being easily confused with true instances) to reduce false-positive detections. When benchmarked against the baseline YOLOv12s model, our customized version demonstrated a 4.9% increase in mAP@50, 7.2% in mAP@50-95, 3.8% and 7.1% improvements in Precision and Recall, respectively, while maintaining real-time inference speed.

Read PDF

Similar papers

Open access Oct 2026

Benchmark Comparative Analysis of YOLO Architectures for Weapon Detection with Explainability

Firearms and other weapons pose significant public safety risks due to their widespread accessibility. This research paper investigates automated detection of dangerous objects, specifically guns and persons, to support early intervention in high-risk situations. We present a comprehensive benchmark evaluation using th...

Anna Rösner, Morgan Woodford, Alexander E. Gegov et al. · 0 citations
Open access Aug 2026

Real-Time Weapon Detection and Suspect Face Capturing System Using YOLOv8

A web-based weapon detection system using YOLOv8, specifically designed to detect seven object classes: sickle, machete, axe, sword, knife, pistol, and rifle, effectively detects and classifies sharp weapons and firearms in real-time while simultaneously providing visual documentation of the perpetrator.

Chairina Ulfa, M. Fikry, Hafizh Al Kautsar Aidilof · 0 citations
Open access Sep 2026

Intelligent Surveillance System for Knife Detection Based on YOLOv8 Neural Networks

Cold weapon violence in urban environments represents a growing problem that demands innovative technological solutions for its prevention and control. This article presents the design and implementation of an intelligent surveillance system based on the YOLOv8nano architecture for real-time detection of sharp objects,...

Luis Fernando Juarez Peña, Manuel J. Ibarra-Cabrera · 0 citations
Open access Sep 2026

LIGHTWEIGHT REAL-TIME OBJECT DETECTION FOR ASSISTIVE VISION SYSTEMS USING YOLOV3-TINY AND OPENCV

A lightweight, real-time object detection system specifically designed to assist visually impaired individuals in identifying surrounding objects, thereby improving navigation and personal safety and potential for integrating audio feedback and adaptive thresholding in future versions to further enhance accessibility f...

I. Ibrahim, Aishatu Ibrahim Birma, A. Umar et al. · 0 citations
Sep 2026

Weapons detection in video surveillance systems using deep neural networks

The purpose of this paper is to conduct an empirical assessment of the usefulness of selected deep neural network architectures in detection of weapons in CCTV images. The analysis compa- red single-stage YOLOv5 detectors and two-stage Faster R-CNN detectors, each trained under identical conditions on a limited dataset...

Maciej Płoński · 0 citations
Open access 2026

YOLOv8-Based Firearm Detection for Real-Time Video Surveillance Application

A computer vision approach using the YOLOv8 object detection model to identify whether an individual is carrying a firearm, achieving high precision and recall in detecting both exposed and partially concealed firearms.

R. Mustafovski, T. Shuminoski, Membe et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.