Coder Social home page Coder Social logo

shafinh / cctv-lsrv Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 1.0 322 KB

Code for "CCTV Latent Representations for Reducing Accident Response Time" (ICCGV 2022)

Home Page: https://doi.org/10.1145/3529570.3529582

License: MIT License

Python 96.02% Jupyter Notebook 3.98%
deep-learning unsupervised-learning dataset cctv-cameras accident-detection emergency-response

cctv-lsrv's Introduction

CCTV-LSRV

Code for "CCTV Latent Representations for Reducing Accident Response Time", Shafin Haque. Published in ACM Proceedings of ICDSP 2022.

Abstract

Emergency Medical Services' response times to accidents are crucial to saving lives in vehicle accidents. Using deep learning to instantly detect accidents in public cameras and automatically alerting authorities could help this issue. However, this would require a large set of data on public cameras to train on, but this type of data hardly exists in a usable form. Current deep learning approaches to vehicle accidents typically use first-person cameras, which are not helpful for reducing response time as we do not have access to these cameras at all times. Also, public cameras such as closed-circuit television (CCTV) pick up a much larger amount of street activity than private cameras. Thus, we create a video dataset from live closed-circuit television, so we have access to the cameras at all times. We annotate the videos with metadata to help with future trend prediction as well as give further information for each video, as they are unlabeled. We create an unsupervised learning model to train on this video dataset, and visualize latent space representations of this data in order to cluster different types of street activity and pinpoint vehicle accidents.

Workflow

Workflow.png

Usage

Installation

git clone https://github.com/ShafinH/CCTV-LSRV.git
cd CCTV-LSRV

Requirements

Python requirements for this implementation.

pip install -r requirements.txt

Data Downloader

The video downloader requires FFmpeg and downloads hour-long videos into the designated folder.

mkdir scraped_data/Maryland
python downloader.py

Dataset

The dataset can be modified in the cctv.py for cutomizable training.

Model

Pretrained checkpoints can be found in the checkpoints folder. If training new model, edit conv_autoencoder.py and run main.py. A results/cctv folder will be created where model checkpoint and results can be found.

python main.py

Experiments

Experiments can be run and edited by encoder.py

python encoder.py

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.