I. Introduction
Detecting illegal activities such as robbery and gunpoint events and conducting surveillance is a challenging task that often requires a significant workforce, leading to potential human errors. Machine learning and Artificial Intelligence [1] have been very popular in automation of several similar tasks in computer vision ranging from generative AI [2] to object detection [3]–[5] and image segmentation [6]–[8]. Machine learning has been especially useful for multiple practical applications [9], [10], for example, in crop disease detection [11], intrusion detection [12], cyber bullying [13], medical applications [14], [15], and linguistics [16], [17]. As shown in other domains, utilizing computer vision and artificial intelligence offers a more accurate alternative for illegal activity detection. This project focuses on using AI models to detect specific illegal activities, aiming to enhance surveillance and law enforcement. The Yolov5s [18] object detection model is employed, and trained on a custom-designed dataset for illegal activity detection. Python programming language, Google Colab, and PyCharm are utilized for model training and deployment. For seamless deployment on IoT devices, the PyThorce model is chosen due to its ease of use.