Real-Time Crime Detection System for Public Safety Based on YOLO Model and Transfer Learning
Crime is a global threat that can affect individuals and any nation when it is not adequately curtailed. The literature survey, global news, and reports in Nigeria show that security threats and crime rates have heightened the need for efficient techniques for crime detection. Earlier studies have explored crime prevention using machine learning models such as k-Nearest Neighbors (kNN) and support vector machines (SVM) to forecast crime. However, considering the dynamic nature and changing patterns in crime trends pose limitations in these methods. Conversely, the Convolutional Neural Network (CNN)-based deep learning models has shown significant potential in this regard. The You Only Look Once (YOLO) object detection, an example of a CNN model, holds promise for real-time detection. This study proposes a real-time crime detection system based on the YOLO model and transfer learning. An algorithm was formulated based on YOLOv5 architecture and was implemented in Python using PyTorch deep learning framework in a Google Colab environment. The model was trained on a crime custom dataset that contains different classes of weapons and violent crime classes. Transfer learning was employed to facilitate the training. The model was then evaluated using the mean average precision (mAP) metric and F1 score, yielding a promising result of approximately 0.81 and 0.80, and a speed of 94 Frames Per Second (FPS). To test for real-time inference, the model was integrated into a user-friendly interface that was developed using Streamlit and OpenCV, and real-time testing was performed. The results demonstrate the system's ability to detect crime events in real-time. Findings from the study showed that the proposed system when deployed holds significant potential to enhance public safety and support security agencies' efforts in curbing crime.
Authors
- Nachamada Vachaku Blamah (ORCID: https://orcid.org/0000-0002-1845-6124)
- Gilbert Aimufua (ORCID: https://orcid.org/0000-0002-3229-0183)
- Oghenevovwero Zion Apene (ORCID: https://orcid.org/0000-0001-8051-2695)
- Morufu Olalere (ORCID: https://orcid.org/0000-0001-6055-2198)
- Binyamin Adeniyi Ajayi (ORCID: https://orcid.org/0000-0003-3440-4321)
Institutions
- University of Jos (NG)
- Nasarawa State University (NG)
- National Space Research and Development Agency (NG)
- National Open University of Nigeria (NG)
Publication Details
- Published
- 2024-09-30
- DOI
- https://doi.org/10.1109/smartblock4africa61928.2024.10779544
- Primary Topic
- Anomaly Detection Techniques and Applications
- Type
- article
- Field-Weighted Citation Impact
- 0.00