Skip to main content

Advertisement

Log in

Concealed pistol detection from thermal images with deep neural networks

  • Published:
Multimedia Tools and Applications Aims and scope Submit manuscript

Abstract

Violence involving firearms is a rising threat that requires precise and competent surveillance systems. Current surveillance technologies involve continuous human observation and are prone to human errors. To handle such errors and monitor with minimal human effort, new solutions using artificial intelligence approaches that can detect and pinpoint the threat are required. In this study, our aim is to develop a deep learning-based solution capable of detecting and locating concealed pistols on thermal images for real-time surveillance. For this purpose, we generate a dataset consisting of thermal video recordings of multiple human models and combine this dataset with thermal images from public sources. Then, we build up a deep learning-based framework by combining two deep learning models that detects and localizes the concealed pistol in the given thermal image. We evaluate multiple deep learning architectures for the classification and segmentation of the images. The best test set results in detecting the concealed pistol was achieved by a fine-tuned VGG19-based convolutional neural network model with an F1 score of 0.84 on the test set. In the second module of the system, a fine-tuned Yolo-V3 model trained as a multi-tasking model for both classification and location detection gave the highest mean average precision value of 0.95 in labeling and locating the pistol in a bounding box in approximately 10 milliseconds. The findings exhibit the potential of using deep learning techniques with thermal imaging for the real time concealed pistol detection.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7

Similar content being viewed by others

Data availability

The dataset generated during this study is partially available at Figshare repository, https://figshare.com/articles/dataset/Concealed_Pistol_Detection_Dataset/20105600

Code availability

Not applicable.

References

  1. Berg A, Ahlberg J, Felsberg M (2015) A thermal object tracking benchmark. In 2015 12th IEEE International Conference on Advanced Video and Signal Based Surveillance (AVSS) (pp 1–6). IEEE

  2. Cartucho J, Ventura R, Veloso M (2018) Robust object recognition through symbiotic deep learning in mobile robots. In 2018 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS) (pp 2336–2341). IEEE

  3. Castillo A, Tabik S, Pérez F, Olmos R, Herrera F (2019) Brightness guided preprocessing for automatic cold steel weapon detection in surveillance videos with deep learning. Neurocomputing 330:151–161

    Article  Google Scholar 

  4. Cheng L, Ji Y, Li C, Liu X, Fang G (2022) Improved SSD network for fast concealed object detection and recognition in passive terahertz security images. Sci Rep 12(1):1–16

    Article  Google Scholar 

  5. Fernández-Carrobles MM, Deniz O, Maroto F (2019) Gun and knife detection based on faster R-CNN for video surveillance. In Iberian Conference on Pattern Recognition and Image Analysis (pp 441–452). Springer, Cham

  6. Goenka A, Sitara K (2022) Weapon detection from surveillance images using deep learning. In 2022 3rd International Conference for Emerging Technology (INCET) (pp 1–6). IEEE

  7. González JLS, Zaccaro C, Álvarez-García JA, Morillo LMS, Caparrini FS (2020) Real-time gun detection in CCTV: an open problem. Neural Netw 132:297–308

    Article  Google Scholar 

  8. Hussein NJ, Hu F, He F (2017) Multisensor of thermal and visual images to detect concealed weapon using harmony search image fusion approach. Pattern Recogn Lett 94:219–227

    Article  Google Scholar 

  9. Jain H, Vikram A, Kashyap A, Jain A (2020) Weapon detection using artificial intelligence and deep learning for security applications. In 2020 International Conference on Electronics and Sustainable Communication Systems (ICESC) (pp 193–198). IEEE

  10. Kowalski M (2019) Hidden object detection and recognition in passive terahertz and mid-wavelength infrared. J Infrared Millim Terahertz Waves 40(11-12):1074–1091

    Article  Google Scholar 

  11. Kowalski M, Kastek M, Piszczek M, Życzkowski M, Szustakowski M (2015) Harmless screening of humans for the detection of concealed objects. Saf Secur Eng VI 151:215–223

    Google Scholar 

  12. Lai J, Maples S (2017) Developing a real-time gun detection classifier. In Course: CS231n. Stanford University, Stanford, CA, USA

  13. Lamas A, Tabik S, Montes AC, Pérez-Hernández F, García J, Olmos R, Herrera F (2022) Human pose estimation for mitigating false negatives in weapon detection in video-surveillance. Neurocomputing 489:488–503

    Article  Google Scholar 

  14. Naresh K, RajKumar SS, Ganesh MS, Sai L (2018) An infrared image detecting system model to monitor human with weapon for controlling smuggling of sandalwood trees. In 2018 Second International Conference on Inventive Communication and Computational Technologies (ICICCT) (pp 962–968). IEEE

  15. National Research Council (1996) Airline passenger security screening: new technologies and implementation issues (Vol. 482, No. 1). National Academies Press

  16. Olmos R, Tabik S, Herrera F (2018) Automatic handgun detection alarm in videos using deep learning. Neurocomputing 275:66–72

    Article  Google Scholar 

  17. Palmero C, Clapés A, Bahnsen C, Møgelmose A, Moeslund TB, Escalera S (2016) Multi-modal RGB–depth–thermal human body segmentation. Int J Comput Vis 118(2):217–239

    Article  MathSciNet  Google Scholar 

  18. Pang L, Liu H, Chen Y, Miao J (2020) Real-time concealed object detection from passive millimeter wave images based on the YOLOv3 algorithm. Sensors 20(6):1678

    Article  Google Scholar 

  19. Redmon J, Farhadi A (2018) Yolov3: An incremental improvement. arXiv preprint arXiv:1804.02767

  20. Vallez N, Velasco-Mata A, Deniz O (2021) Deep autoencoder for false positive reduction in handgun detection. Neural Comput Appl 33:5885–5895

    Article  Google Scholar 

  21. Veranyurt O, Sakar CO (2020) An object detection method (Turkey Patent Application No. 2020, 14269). Turkey Patent and Trademark Agency

  22. Verma GK, Dhillon A (2017) A handheld gun detection using faster r-cnn deep learning. In Proceedings of the 7th International Conference on Computer and Communication Technology (pp 84–88)

  23. Wei Y, Liu X (2020) Dangerous goods detection based on transfer learning in X-ray images. Neural Comput Appl 32(12):8711–8724

    Article  Google Scholar 

  24. Wu T, Rappaport TS, Collins CM (2015) The human body and millimeter-wave wireless communication systems: interactions and implications. In 2015 IEEE International Conference on Communications (ICC) (pp 2423–2429). IEEE

  25. Yeom S, Lee DS, Son JY, Jung MK, Jang Y, Jung SW, Lee SJ (2011) Real-time outdoor concealed-object detection with passive millimeter wave imaging. Optics Exp 19(3):2530–2536

    Article  Google Scholar 

  26. Yuenyong S, Hnoohom N, Wongpatikaseree K (2018) Automatic detection of knives in infrared images. In 2018 International ECTI Northern Section Conference on Electrical, Electronics, Computer and Telecommunications Engineering (ECTI-NCON) (pp 65–68). IEEE

  27. Zhang S, Wen L, Bian X, Lei Z, Li SZ (2018) Single-shot refinement neural network for object detection. In Proceedings of the IEEE conference on computer vision and pattern recognition (pp 4203–4212)

  28. Zhang D, Zhan J, Tan L, Gao Y, Župan R (2020) Comparison of two deep learning methods for ship target recognition with optical remotely sensed data. Neural Comput Appl 33:4639–4649

Download references

Acknowledgements

We would like to thank all institutions that have supported us in the data creation in this study.

Author information

Authors and Affiliations

Authors

Contributions

Ozan Veranyurt: Methodology, Software, Formal Analysis, Investigation, Data Curation, Writing - Original Draft, Visualization C. Okan Sakar: Conceptualization, Methodology, Writing - Review & Editing, Supervision, Validation, Project administration.

Corresponding author

Correspondence to Ozan Veranyurt.

Ethics declarations

Ethics approval (include appropriate approvals or waivers)

This study was approved by the Scientific Research and Publication Ethics Committee at Bahcesehir University (ethics application number: E-20021704-604.02.01-7208).

Consent to participate (include appropriate statements)

Not applicable.

Consent for publication (include appropriate statements)

Not applicable.

Conflicts of interest/competing interests (include appropriate disclosures)

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

Additional information

Publisher’s note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Veranyurt, O., Sakar, C.O. Concealed pistol detection from thermal images with deep neural networks. Multimed Tools Appl 82, 44259–44275 (2023). https://doi.org/10.1007/s11042-023-15358-1

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11042-023-15358-1

Keywords

Navigation