Loading article...
Loading article...
Stream/Area:
-
Subject:
-
Paper ID:
IJSREM65845
Volume:
10 |
7 |
Jul 2026
Pages:
1-8
Publication Frequency:
Monthly (12 issues per year)
License:International Journal of Scientific Research in Engineering and Management follows the Creative Commons Attribution 4.0 (CC BY 4.0) License, allowing free use and distribution with proper attribution.

Department of Computer Science and Engineering
Vardhaman College of Engineering
Department of Computer Science and Engineering
Vardhaman College of Engineering
Department of Computer Science and Engineering
Vardhaman College of Engineering
Department of Computer Science and Engineering
Vardhaman College of Engineering
With the growing incidence of weapon-related violence in public spaces, there is an urgent need for intelligent, camera-based systems that can flag threats as they emerge rather than after harm has occurred. This work describes a Smart Security System built around YOLOv8, a modern anchor-free single-stage detector, trained to identify firearms, knives, and blunt weapons in live video streams. A comparative study involving three transfer-learning configurations was conducted: a completely frozen backbone (Model A), selective adaptation of the detection head and neck (Model B), and unrestricted optimization across all layers (Model C). System performance was measured using [email protected], precision, recall, F1-score, and per-frame inference time. To assess whether each model's decisions were genuinely grounded in weapon appearance, a Weapon Region Activation Ratio (WRAR) was computed from Grad-CAM heatmaps overlaid on annotated bounding boxes. Findings show a non-linear quality curve: selective head adaptation yields the best weapon recall at 96% and a WRAR of 0.88 on weapon frames, while full-backbone optimization, though marginally higher in mAP (0.901 vs. 0.883), causes the model's attention to collapse onto irrelevant background borders (WRAR dropping to 0.19). Statistical verification places this divergence well beyond the large-effect threshold (p < 0.001; Cohen's d ≈ 1.18). The study concludes that partial fine-tuning is the most appropriate strategy when both detection reliability and decision transparency are required for security deployment.
KEYWORDS
This paper examined how the scope of fine-tuning in a YOLOv8-based weapon detection system shapes both detection quality and the interpretability of model decisions. Three configurations — frozen backbone, selective head and neck adaptation, and full-parameter optimization — were compared on a curated weapon surveillance dataset using complementary detection and explainability metrics. The key finding is that composite quality — the product of accuracy and spatial transparency — peaks at the intermediate fine-tuning level. Selectively adapting the detection head and neck raises [email protected] from 0.821 to 0.883 and improves WRAR on clear frames from 0.35 to 0.67, while preserving weapon-frame WRAR at 0.88. Fully optimizing all layers pushes mAP slightly higher to 0.901 but drives WRAR on weapon frames down to 0.19, with Grad-CAM and SHAP maps converging on the same conclusion: the model has substituted image-border cues for weapon appearance in its decision process. This collapse is statistically robust (p < 0.001; Cohen's d ≈ 1.18). Selective fine-tuning emerges as the deployment-ready choice: [email protected] of 0.883, weapon recall of 96%, the lowest missed-detection count, and spatially coherent explanations that withstand operational audit. These results position fine-tuning depth as a substantive architectural variable in security AI design — one that governs not just benchmark scores but whether a deployed system can be responsibly explained, validated, and trusted. The smart security system successfully demonstrated that integrating deep learning-based object detection with real-time surveillance infrastructure provides an efficient, accurate, and scalable solution.
[1] D. Bhatt, C. Patel, H. Ghetia, and P. J. Bhatt, "Weapon detection using deep learning: A review," in Proc. IEEE ICCIT, Dhaka, Bangladesh, 2021, pp. 1–6. [2] R. R. Selvaraju, M. Cogswell, A. Das, R. Vedantam, D. Parikh, and D. Batra, "Grad-CAM: Visual explanations from deep networks via gradient-based localization," in Proc. IEEE ICCV, Venice, Italy, 2017, pp. 618–626. [3] S. M. Lundberg and S.-I. Lee, "A unified approach to interpreting model predictions," in Adv. Neural Inf. Process. Syst., vol. 30, 2017, pp. 4765–4774. [4] G. Jocher, A. Chaurasia, and J. Qiu, "Ultralytics YOLOv8," Ultralytics, 2023. [Online]. Available: https://github.com/ultralytics/ultralytics. [5] C. Feichtenhofer, H. Fan, J. Malik, and K. He, "SlowFast networks for video recognition," in Proc. IEEE ICCV, Seoul, South Korea, 2019, pp. 6202–6211. [6] Z. Liu, J. Ning, Y. Cao, Y. Wei, Z. Zhang, S. Lin, and H. Hu, "Video Swin Transformer," in Proc. IEEE CVPR, New Orleans, LA, USA, 2022, pp. 3202–3211. [7] L. Oakden-Rayner, J. Dunnmon, G. Carneiro, and A. Re, "Hidden stratification causes clinically meaningful failures in machine learning for medical imaging," in Proc. ACM Conf. Health Inference Learning, 2020, pp. 151–159. [8] A. S. Ross, M. C. Hughes, and F. Doshi-Velez, "Right for the right reasons: Training differentiable models by constraining their explanations," in Proc. IJCAI, Melbourne, Australia, 2017, pp. 2662–2670. [9] A. Saleem, J. Akhtar, and M. Usman, "Automatic weapon detection in surveillance videos: A survey," Sensors, vol. 21, no. 9, p. 2954, Apr. 2021. [10] S. Akcay, A. Atapour-Abarghouei, and T. P. Breckon, "GANomaly: Semi-supervised anomaly detection via adversarial training," in Proc. ACCV, Perth, Australia, 2019, pp. 622–637.
Publication Date
7/7/2026
Peer Review Type
Double-Blind Peer Review
Review Rounds: 2
Documents
Article Views
0
Total views since publication
PDF Downloads
7
Total downloads since publication
Geographic Reach
5
Digital Preservation: This article is permanently archived on Zenodo and complies with all data preservation standards across major indexing platforms.
Plagiarism Screening
This manuscript has been checked for plagiarism using TurnitinPlagiarismChecker software.
Conflict of Interest
The authors declare no conflict of interest related to this research work.
Funding Information
No funding information available for this research.
Related research in the same subject area
Loading similar articles...