Weapon Detection and Alarm System Using Yolov5

Abstract

This paper presents a weapon detection and email alert system that utilizes the YOLOv5 deep learning architecture and a custom dataset of pistol images. The system is designed to detect the presence of pistols in real-time video streams and send an email alert to the administrator in the event of a positive detection. The custom pistol dataset was created to train the YOLOv5 model and improve its ability to accurately detect pistols in a variety of environments and conditions. The system was tested on various videos and was found to achieve high accuracy in detecting pistols with low false positive rates. The email alert feature ensures that the administrator is immediately notified in case of weapon detection, allowing for quick and effective response. This system has the potential to be integrated into various settings such as schools, public spaces, and security systems to enhance security and prevent weapons-related incidents.

Country : India

1 Saif Khan2 Mujib Sayyed3 Shikha Yadav4 Bhavesh Bhalerao5 Anjali Devi Patil

  1. Student, Smt. Indira Gandhi College of Engineering, Ghansoli, New Mumbai, Maharashtra, India
  2. Student, Smt. Indira Gandhi College of Engineering, Ghansoli, New Mumbai, Maharashtra, India
  3. Student, Smt. Indira Gandhi College of Engineering, Ghansoli, New Mumbai, Maharashtra, India
  4. Student, Smt. Indira Gandhi College of Engineering, Ghansoli, New Mumbai, Maharashtra, India
  5. Professor, Dept. of AI & ML, Smt. Indira Gandhi College of Engineering, Ghansoli, New Mumbai, Maharashtra, India

IRJIET, Volume 7, Issue 3, March 2023 pp. 102-105

doi.org/10.47001/IRJIET/2023.703014

References

  1. Zhong-Qiu Zhao, Member, IEEE, Peng Zheng, Shou-tao Xu, and Xindong Wu, Fellow, Object Detection with Deep Learning: A Review IEEE , (16 april 2013).
  2. M. Gufran Khan, A. M. and F. Junaid, "Weapon Detection in Real-Time CCTV Videos Using Deep Learning," IEEE, 2020.
  3. Dataset Collection from stock: https://www.istockphoto.com/
  4. Wang, C.-Y.; Mark Liao, H.-Y.; Wu, Y.-H.; Chen, P.-Y.; Hsieh, J.-W.; Yeh, I.-H. CSPNet: A New Backbone that can Enhance Learning Capability of CNN. CVF 2020, 14–19.
  5. Harsh Jain, Aditya Vikram, Mohana, Ankit Kashyap, Ayush Jain “Weapon Detection using Artificial Intelligence and Deep Learning for Security Application”2020  International Conference on Electronics and Sustainable Communication Systems (ICESC), 04 August 2020.
  6. Olmos, R., Tabik, S., & Herrera, F. (2018). Automatic handgun detection alarm in videos using deep learning. Neurocomputing, 275,66-72.doi.org/10.1016/j.neucom.2017.05.012.
  7. Roboflow for annotation techniques: https://roboflow.com/
  8. Marks Dextre, Oscar Rosas (Jesus Lazo, Juan C. Gutiérrez, (Escuela profesional de Ciencia de la Computación, Universidad Nacional de San Agustín de Arequipa, Arequipa, Perú), (21 December 2021), Gun Detection in Real-Time, using YOLOv5.
  9. Yang, H.; Chen, L.; Chen, M.; Ma, Z.; Deng, F.; Li, M.; Li, X. Detection of coal and gangue based on improved YOLOv5.1 which embedded the scSE module. Measurement 2021, 10, 1016.
  10. Herbert Bay, Andreas Ess, Tinne Tuytelaars, Luc Van Gool , “(SURF) Speed-Up Robust Features”, ELSEVIER Computer Vision and Image Understanding, Vol 110, Pages: 346 –359, 2016.
  11. Nikhil Yadav, Utkarsh, “Comparative Study of Object Detection Algorithms”, IRJET, 2017.
  12. Yolov5 github: https://github.com/ultralytics/yolov5
  13. Lin, T.-Y.; Goyal, P.; Girshick, R.; He, K.; Dollár, P. Focal Loss for Dense Object Detection. In Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy, 22–29, October 2017; pp. 2980–2988.
  14. Developing a Real-Time Gun Detection Classifier. Available online: https://www.scribd.com/document/380866575/Developinga-Real-Time-Gun-Detection-Classifier (accessed on 8 May 2021).
  15. Asnani, S.; Ahmed, A.; Manjotho, A.A. Bank Security System based on Weapon Detection using HOG Features. Asia J. Eng. Sci. Technol. 2014, 4, 23–29.
  16. Ineneji, C; Kusaf, M. Hybrid weapon detection algorithm, using material test and fuzzy logic system. Computer. Electr. Eng. 2019, 78, 437–448.
  17. Thomas Truong and Svetlana Yanushkevich “Detecting Subject-Weapon Visual Relationships”, 2020 IEEE Symposium Series on Computational Intelligence (SSCI), 05 January 2021.
  18. A.B.P., A. M., D.N.G. Akash Kumar. K. S, "Weapon Detection in Surveillance System," IJERT, 2021.
  19. M. Gufran Khan, A. M. and F. Junaid, "Weapon Detection in Real-Time CCTV Videos Using Deep Learning.," IEEE, 2020.
  20. Alexander Alahi, Raphael Ortiz, Pierre, Vandergheynst, “Fast Retina Keypoint (FREAK)”, IEEE, Computer Vision and Pattern Recognition, pages: 510- 517, 2017.
  21. Google 2014. Google Inbox. https://inbox.google.com/
  22. Automatic Email sender from towards data science the PyCoach.