Design and Performance Evaluation of a Real-Time Computer VisionBased Weapon Detection System for School Surveillance in Philippine Educational Institutions

Authors

  • Jerald Dave Paladan Bachelor of Science in Information Technology, Holy Child Central Colleges
  • Dave Nermal Badol BSIT
  • Jhonreive M. Magbanua Bachelor of Science in Information Technology
  • LJ John S. Tacal
  • Angelo B. Habaradas

Keywords:

Weapon Detection, Real-Time Object Detection, Computer Vision, YOLOv11, School Surveillance, Deep Learning

Abstract

School violence involving firearms and edged weapons has become a pressing concern in Philippine education, with the Department of Education reporting that only about 36% of the country's roughly 48,000 public schools have CCTV cameras, and existing manual security procedures remain inconsistent and prone to human fatigue. Most published weapon-detection systems, meanwhile, are designed and tested only on expensive, surveillance- grade hardware, which limits their applicability in underresourced Philippine schools. This study designed and evaluated a real-time computer vision-based weapon detection system built around consumer-grade cameras (webcams and phone cameras) rather than specialized surveillance equipment. A YOLOv11s model was fine-tuned on a custom dataset of 30,525 images covering six weapon classes: knife, handgun, rifle, grenade, shotgun, and brass knuckles. Detection performance was evaluated using accuracy, precision, recall, F1-score, false positive rate, false negative rate, and mean confidence score per class, while detection latency was measured through live testing. Per-class accuracy ranged from 93.27% to 99.03%, with strong precision and recall for grenade, handgun, knife, and brass knuckles, though rifle and shotgun detection showed comparatively weaker recall and precision. The system achieved an average detection latency of 2.149 seconds. These results indicate that a low-cost, camera-based weapon detection system can meaningfully extend automated security coverage to schools lacking CCTV infrastructure or dedicated security personnel.

References

The Associated Press. 2 students in custody after shooting at high school in Philippines kills 3

[Internet]. NPR; 2026 Jun [cited 2026 Aug 3]. Available from:

https://www.npr.org/2026/06/22/g-s1-129323/2-students-in-custody-after-shooting-at-highschool-in-philippine-kills-3

CHR Philippines. Statement of the Commission on Human Rights on the Tacloban school

shooting incident [Internet]. 2026 Jun [cited 2026 Aug 3]. Available from:

https://chr.gov.ph/statement-of-the-commission-on-human-rights-on-the-tacloban-schoolshooting-incident/

Mantaring JR. Not even half of public schools have CCTV cameras, security guards [Internet].

Jul [cited 2026 Aug 3]. Available from: https://www.rappler.com/philippines/publicschools-cctv-cameras-security-guards-deped-audit/

Clores K. DepEd: security guards found in only 3 of 10 schools [Internet]. 2026 Jul [cited 2026

Aug 3]. Available from: https://newsinfo.inquirer.net/2260529/deped-security-guards-foundin-only-3-of-10-schools

Redmon J, Divvala S, Girshick R, Farhadi A. You only look once: unified, real-time object

detection. In: 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR).

Las Vegas; 2016. p. 779-88.

Bhatti MT, Khan MG, Aslam M, Fiaz MJ. Weapon detection in real-time CCTV videos using

deep learning. IEEE Access. 2021;9:34366-82.

Vijayakumar KP, Pradeep K, Balasundaram A, Dhande A. R-CNN and YOLOv4 based deep

learning model for intelligent detection of weaponries in real time video. Math Biosci Eng.

;20(12):21611-25.

Yadav P, Gupta N, Sharma PK. Robust weapon detection in dark environments using

YOLOv7-DarkVision. Digit Signal Process. 2024;145:104342.

Debnath R, Bhowmik MK. A comprehensive survey on computer vision based concepts,

methodologies, analysis and applications for automatic gun/knife detection. J Vis Commun

Image Represent. 2021;78:103165.

Gbaden AG, Enokela JA, Agbo DO, Iorkyase TE. Lightweight YOLOv8 optimized deep neural

network for real-time weapon detection on Raspberry Pi 5 in smart surveillance systems. J Eng

Res Rep. 2025;27(11):99-112.

Torregrosa-Domínguez Á, Álvarez-García JA, Salazar-González JL, Soria-Morillo LM.

Effective strategies for enhancing real-time weapons detection in industry. Appl Sci.

;14(18):8198.

Sango MJ, Baguio JB. The pressures and predicaments of campus security forces in public

elementary schools: safe and sound. J Sci Res Rep. 2025;31(7):180-95.

Blanco LM, Abreu MM, Somao-i MJF, Cunanan AB, Caballero AR. The proposed integrated

school safety framework: an integrated conceptual framework model of safety, surveillance,

and institutional engagement in Philippine public schools. Int J Res Innov Appl Sci.

;10(12):1057-61.

Jocher G, Qiu J. Ultralytics YOLO11 (Version 11.0.0) [Computer software]. 2024. Available

from: https://github.com/ultralytics/ultralytics

Lin TY, Maire M, Belongie S, Hays J, Perona P, Ramanan D, et al. Microsoft COCO: common

objects in context. In: Computer Vision – ECCV 2014. Lecture Notes in Computer Science,

vol 8693. Springer; 2014. p. 740-55.

Published

2026-08-06