Unusual Activity Detection with Alert System Using Vision Transformer

Authors

  • Ocean Sitaula Department of Electronics and Computer Engineering, Purwanchal Campus, Institute of Engineering, Tribhuvan University, Dharan, Nepal
  • Prabesh Sharma Department of Electronics and Computer Engineering, Purwanchal Campus, Institute of Engineering, Tribhuvan University, Dharan, Nepal
  • Pukar Karki Department of Electronics and Computer Engineering, Purwanchal Campus, Institute of Engineering, Tribhuvan University, Dharan, Nepal
  • Shailesh Devkota Department of Electronics and Computer Engineering, Purwanchal Campus, Institute of Engineering, Tribhuvan University, Dharan, Nepal
  • Suchita Kumari Sah Department of Electronics and Computer Engineering, Purwanchal Campus, Institute of Engineering, Tribhuvan University, Dharan, Nepal
  • Pravin Sangroula Department of Electronics and Computer Engineering, Pulchowk Campus, Institute of Engineering, Tribhuvan University, Kathmandu, Nepal

DOI:

https://doi.org/10.3126/joeis.v4i1.81597

Keywords:

Redis, Unusual Activity Detection, Vision Transformers (ViT), WebRTC, WebSocket

Abstract

Traditional surveillance systems are constrained by the limitations of manual monitoring, often resulting in delayed detection of anomalous activities. This research investigates an AI-driven surveillance system employing a Vision Transformer (ViT) architecture, pretrained on the UCF Crime Dataset, to automate anomaly detection by classifying video sequences as ‘normal’ or ‘unusual’. The dataset was preprocessed by extracting frames at 30 fps, followed by resizing, augmentation, and fed into a fine-tuned ViT model, which achieved a macro F1-score of 0.7858 and 78.95% test accuracy. The system built in this study features a backend infrastructure based on Django, Django Channels, and Redis to enable efficient session management and WebSocket communication, supporting a live streaming module for anomaly detection and broadcasting via WebRTC, alongside a surveillance module for remote feed access. When any abnormal event is detected, the system automatically captures relevant snapshots of corresponding image and confidence score, and provides alert through the user interface or third-party applications. This approach aims to enhance detection accuracy, operational efficiency and situational awareness in surveillance environments.

Downloads

Download data is not yet available.
Abstract
183
pdf
92

Author Biographies

Ocean Sitaula, Department of Electronics and Computer Engineering, Purwanchal Campus, Institute of Engineering, Tribhuvan University, Dharan, Nepal

Department of Electronics and Computer Engineering, Purwanchal Campus, Institute of Engineering, Tribhuvan University, Dharan, Nepal

Prabesh Sharma, Department of Electronics and Computer Engineering, Purwanchal Campus, Institute of Engineering, Tribhuvan University, Dharan, Nepal

Department of Electronics and Computer Engineering, Purwanchal Campus, Institute of Engineering, Tribhuvan University, Dharan, Nepal

Pukar Karki, Department of Electronics and Computer Engineering, Purwanchal Campus, Institute of Engineering, Tribhuvan University, Dharan, Nepal

Department of Electronics and Computer Engineering, Purwanchal Campus, Institute of Engineering, Tribhuvan University, Dharan, Nepal

Shailesh Devkota, Department of Electronics and Computer Engineering, Purwanchal Campus, Institute of Engineering, Tribhuvan University, Dharan, Nepal

Department of Electronics and Computer Engineering, Purwanchal Campus, Institute of Engineering, Tribhuvan University, Dharan, Nepal

Suchita Kumari Sah, Department of Electronics and Computer Engineering, Purwanchal Campus, Institute of Engineering, Tribhuvan University, Dharan, Nepal

Department of Electronics and Computer Engineering, Purwanchal Campus, Institute of Engineering, Tribhuvan University, Dharan, Nepal

Pravin Sangroula, Department of Electronics and Computer Engineering, Pulchowk Campus, Institute of Engineering, Tribhuvan University, Kathmandu, Nepal

Department of Electronics and Computer Engineering, Pulchowk Campus, Institute of Engineering, Tribhuvan University, Kathmandu, Nepal

Downloads

Published

2025-07-21

How to Cite

Sitaula, O., Sharma, P., Karki, P., Devkota, S., Sah, S. K., & Sangroula, P. (2025). Unusual Activity Detection with Alert System Using Vision Transformer. Journal of Engineering Issues and Solutions, 4(1), 408–421. https://doi.org/10.3126/joeis.v4i1.81597

Issue

Section

Research Articles