sanchit2843 / Videoclassification

Crime detection in cctv footage using deep learning

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I have implemented crime recognitions from cctv footages using UCF-crime dataset which can be obtained from here. The dataset being too big I downloaded shorter version of it available on kaggle. This shorter version consists of 8 classes which includes Abuse, arrest, arson, assault, burglary, explosion, fighting and normal.

Datapreprocessing

I converted videos into frames and took only 16 frames from every video for the training of model. These 16 frames were selected from complete video sequence by skipping frames according to video length. In this dataset the number of videos are less but longer so to increase number of samples by 10 times I took 16 samples where first frame started from 0-9 thus giving 10 times the number of videos and all with different images. To speed up the transfer of data I combined these 16 images into 1. The implementation of the preprocessing can be found in videodata.ipynb. The preprocessed data with 16 samples can be found here.

Model used

This task is of action recognition and I tried one of the best model for action recognition Slow Fast Networks for Video Recognition worked best. The implementation of this network in pytorch can be found here.

Training

The model trained fast and reached a training accuracy of 99% within 20 epochs.

About

Crime detection in cctv footage using deep learning


Languages

Language:Jupyter Notebook 85.3%Language:Python 14.7%