INDIGENOUS WEAPON DETECTION IN IMAGES FOR ENHANCED SECURITY IN NIGERIA USING YOLO APPROACH
- Authors
-
-
A. A. Ponnle
Department of Electrical and Electronics Engineering, Federal University of Technology, Akure, Ondo State, Nigeria
-
C. N. Udekwe
-
A. E. Akin-Ponnle
-
- Keywords:
- Array, Array, Array, Array, Array, Array, Array
- Abstract
-
This work explores the use of the ‘You Only Look Once’ (YOLO) deep learning model, for real-time weapon detection in images to enhance security. The work addresses the rising threat of insecurity of lives in Nigeria by developing an automated system capable of identifying guns and knives in public spaces, including the local indigenous ones. The primary dataset used consisted of publicly available foreign image datasets of handguns and knives. Also, a small custom dataset was created consisting of images of local indigenous weapons taken within Nigeria. These diverse datasets were pre-processed and used with YOLOv10 model for training, validation and test. Google Colab with GPU acceleration was used for the training. After validation, a mean average precision (mAP) of 64.4% was achieved for all the classes (57% for the knife class and 72% for the handgun class). On the test dataset, an overall precision of 76%, an overall recall of 64%, and an overall F1-score of 70% were achieved; thus, demonstrating some level of success in detecting local indigenous weapons, and detecting handguns better than knives, though challenges such as false positives, false negatives and misclassifications were noted. With larger custom dataset of images of local indigenous weapons for training, better results would be achieved. The work shows that the YOLO-based system can be integrated into existing security infrastructures of the country, with potential to improve existing security measures, and contributing to improved public safety.
- References
-
Akinyede, J., Olebu, C., Ponnle, A., Akinluyi, F., Thompson, A., Dahunsi, O., Alese, B., and Oyinloye, M. (2022). Development of a real-time crime management system in Southwestern Nigeria: The mobile application. European Journal of Science, Innovation and Technology (EJSIT), 2(5), 68 – 82.
Akinyede, J., Olebu, C., Ponnle, A., Akinluyi, F., Thompson, A., Dahunsi, O., Alese, B., and Oyinloye, M. (2023). Development of a software system for realtime management of crime reports in Southwestern Nigeria: The administrative approach. American Journal of Science, Engineering and Technology (AJSET), 8(1), 23-32.
Ali, M. L., and Zhang, Z. (2024). The YOLO framework: A comprehensive review of evolution, applications, and benchmarks in object detection. Computers, MDPI, 13(12), 336, 1 - 37.
Bochkovskiy, A., Wang, C. Y., and Liao, H. Y. M. (2020). YOLOv4: Optimal speed and accuracy of object detection. https://doi.org/10.48550/arXiv.2004.10934
Chunchwar, P., Shelare, U., Nagpure, A., Patil, R., Dhole, D., and Shete R. M. (2024). Real-Time weapon detection using YOLOv8 and alert mechanism. International Journal for Research in Applied Science and Engineering Technology, 12(4), 2122 – 2129.
Dakalbab, F. M., Abu Talib, M., Waraga, O. A., Nassif, A. B., Abbas, S., and Nasir, Q. (2022). Artificial intelligence and crime prediction: A systematic literature review. Social Sciences & Humanities Open, Elsevier, 6(1), 100342s: 1 – 23.
González, J.L.S., Zaccaro, C., Álvarez-García, J.A., Morillo, L.M.S., and Caparrini, F.S. (2020). Real-time gun detection in CCTV: An open problem. Neural Networks, 132, 297 – 308.
Jain, H., Vikram, A., Mohana, Kashyap, A., and Jain, A. (2020). Weapon detection using artificial intelligence and deep learning for security applications. 2020 International Conference on Electronics and Sustainable Communication Systems (ICESC), Coimbatore, India, 193 – 198. https://doi.org/10.1109/ICESC48915.2020.9155832
Jimenez, J., Toscano, J., Oñate, W., and Caiza G. (2024). Development of firearms and target weapons recognition and alerting system applying artificial intelligence. WiPiEC Journal - Works in Progress in Embedded Computing Journal, 10(2), 46 – 50.
Kaggle Datasets. https://www.kaggle.com/datasets
Keerthana, S.M., Sujitha, R., and Yazhini, P. (2024). Weapon detection for security using the Yolo algorithm with email alert notification, 2024 International Conference on Innovations and Challenges in Emerging Technologies (ICICET), Nagpur, India, 1-6. https://doi.org/10.1109/ICICET59348.2024.10616365
Kumar, R., Rajpurohit, D. S., Hanief, M., Sharma S., Choudhury T., and Choudhury T. (2024). Detection of criminal activities/criminals through CCTV by live footage analysis. 2024 OPJU International Technology Conference (OTCON) on Smart Computing for Innovation and Advancement in Industry 4.0, Raigarh, India, 1 – 6. https://doi.org/10.1109/OTCON60325.2024.10687573.
Mane, S.B. (2024). Weapon detection and classification using deep learning. Journal of Engineering and Technology for Industrial Applications (ITEGAM-JETIA), 10(47), 19 – 26.
More, P., Patil, S., and Pattanshetti, T. (2024). Real-time violence and weapon detection and alert system. Research Square. Information on https://doi.org/10.21203/rs.3.rs-4389485/v1.
Open Images Dataset and Extensions. https://storage.googleapis.com/openimages/web/
Qi, D., Tan, W., Liu, Z., Yao, Q., and Liu, J. (2021). A dataset and system for real-time gun detection in surveillance video using deep learning, In proceedings of 2021 IEEE International Conference on Systems, Man, and Cybernetics (SMC), Melbourne, Australia, 667 – 672. https://doi.org/10.1109/SMC52423.2021.9659207.
Reddy, D., Poojitha, M., Puspalalitha, G., Reddy, M.V.V., Kumar, K.A., and Sree, G.N. (2023). Weapon identification using YOLOv5 algorithm, International Journal of Science and Research (IJSR), 12(11), 550 – 564.
Redmon, J., Divvala, S., Girshick, R., and Farhadi, A. (2016). You Only Look Once: Unified, real-time object detection, Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, USA, 779 – 788. https://doi.org/10.1109/CVPR.2016.91.
Santos, T., Oliveira, H., and Cunha, A. (2024). Systematic review on weapon detection in surveillance footage through deep learning. Computer Science Review, Elsevier, 51(C), 100612.
Sapkota, R., Flores-Calero, M., Qureshi, R., Badgujar, C., Nepal, U., Poulose, A., Zeno, P., Vaddevolu, U. B. P., Khan, S., Shoman, M., Yan, H., and Karkee, M. (2025). YOLO advances to its genesis: a decadal and comprehensive review of the You Only Look Once (YOLO) series. Artificial Intelligence Review, 58, Article 274. https://doi.org/10.1007/s10462-025-11253-3
Shidik, G. F., Noersasongko, E., Nugraha, A., Andono, P. N., Jumanto, J., and Kusuma, E. J. (2019). A systematic review of intelligent video surveillance: Trends, techniques, frameworks, and datasets. IEEE Access, 7, 170457-170473.
THU-MIG/yolov10. Information on https://github.com/THU-MIG/yolov10 (accessed 15 January 2025).
Ultralytics, YOLOv5 GitHub, (2020). Information on https://github.com/ultralytics/yolov5.
Wang, A., Chen, H., Liu, L., Chen, K., Lin, Z., Han, J., and Ding, G. (2024). YOLOv10: Real-time end-to-end object detection. 38th Conference on Neural Information Processing Systems (NeurIPS 2024). ArXiv, abs/2405.14458. 1-25.
Warsi, A., Abdullah, M., Husen, M.N., Yahya, M., Khan, S., and Jawaid, N. (2019). Gun detection system using Yolov3, 2019 IEEE International Conference on Smart Instrumentation, Measurement and Application (ICSIMA), Kuala Lumpur, Malaysia, 27-29 August, 1-4.
Yadav, P., Gupta, N., and Sharma, P.K. (2024), Robust weapon detection in dark environments using Yolov7-DarkVision, Digital Signal Processing, Elsevier, 145, 104342, 1 - 11.
YOLOv10: Real-time end-to-end object detection. Information on https://docs.ultralytics.com/models/yolov10.
- Downloads
- Published
- 2026-05-21
- Section
- Articles
- License
-
Copyright (c) 2026 FUTA JOURNAL OF ENGINEERING AND ENGINEERING TECHNOLOGY

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
Copyright
With the submission of a manuscript, the corresponding author confirms that the manuscript is not under consideration by another journal. With the acceptance of a manuscript, the Journal reserves the exclusive right of publication and dissemination of the information contained in the article. The veracity of the paper and all the claims therein is solely the opinion of the authors not the journal.
How to Cite
Similar Articles
- I. M. Rotimi, T. F. Ajibade, O. O. Femi-Fadeyi, F. O. Ajibae, J. R. Adewunmi, OVERVIEW OF THE NEXUS BETWEEN CLIMATE CHANGE AND POTABLE WATER IN NIGERIA: CHALLENGES AND MITIGATION STRATEGIES , FUTA JOURNAL OF ENGINEERING AND ENGINEERING TECHNOLOGY: Vol. 20 No. Special (2026): FUTA JEET: Special Issue on Innovative Solutions for Sustainable Living and Environmental Challenges: Engineering Perspectives
- O O. Daramola, MECHANICAL PROPERTIES AND WEAR BEHAVIOUR OF KAOLINITE CLAY PARTICLES REINFORCED EPOXY MATRIX COMPOSITES , FUTA JOURNAL OF ENGINEERING AND ENGINEERING TECHNOLOGY: Vol. 15 No. 2 (2021): FUTA Journal of Engineering and Engineering Technology
- A. A. Akinlabi, A. P. Faluyi, J. M. Iberedem, F. M. Dahunsi, INTERNLY: A MOBILE PLATFORM FOR CONNECTING NIGERIAN STUDENTS TO INTERNSHIP OPPORTUNITIES , FUTA JOURNAL OF ENGINEERING AND ENGINEERING TECHNOLOGY: Vol. 20 No. Special (2026): FUTA JEET: Special Issue on Innovative Solutions for Sustainable Living and Environmental Challenges: Engineering Perspectives
- Adeyemo A. J., AMELIORATION OF DIFFERENT SOIL TYPES CONTAMINATED WITH SPENT HYDROCARBON. , FUTA JOURNAL OF ENGINEERING AND ENGINEERING TECHNOLOGY: Vol. 18 No. 2 (2024): FUTA Journal of Engineering and Engineering Technology
- R. Ibrahim, C. O. Akinbile, A. O. Owolabi, K. Ibrahim, REVIEW ON THE POTENTIAL OF BASALT ROCK DUST FOR AGRICULTURAL SOIL MINERALIZATION AND ATMOSPHERIC CARBON SEQUESTRATION , FUTA JOURNAL OF ENGINEERING AND ENGINEERING TECHNOLOGY: Vol. 20 No. Special (2026): FUTA JEET: Special Issue on Innovative Solutions for Sustainable Living and Environmental Challenges: Engineering Perspectives
- Obinna Obiora-Okeke, J. R. Adewumi, O. M. Ojo, IMPACT OF LAND USE AND LAND COVER CHANGES ON RUNOFF PREDICTION IN OGBESE RIVER WATERSHED , FUTA JOURNAL OF ENGINEERING AND ENGINEERING TECHNOLOGY: Vol. 15 No. 2 (2021): FUTA Journal of Engineering and Engineering Technology
You may also start an advanced similarity search for this article.
