Code Monkey home page Code Monkey logo

abnormal-spatiotemporal-ae's Introduction

Abnormal Event Detection in Videos Using Spatiotemporal Autoencoder

This repository hosts the codes for "Abnormal Event Detection in Videos Using Spatiotemporal Autoencoder". Paper can be found at Springer and arXiv.

Prerequisites:

  • keras
  • tensorflow
  • h5py
  • scikit-image
  • scikit-learn
  • sk-video
  • tqdm (for progressbar)
  • coloredlogs (optional, for colored terminal logs only)

You can use the Dockerfile provided to build the environment then enter the environment using nvidia-docker run --rm -it -v HOST_FOLDER:/share DOCKER_IMAGE bash.

To train the model, just run python start_train.py. Default configuration can be found at config.yml. You need to prepare video dataset you plan to train/evaluate on. You may get the benchmark dataset videos from respective authors. For each dataset, put the training videos into VIDEO_ROOT_PATH/DATASET_NAME/training_videos and testing videos into VIDEO_ROOT_PATH/DATASET_NAME/testing_videos. Example structure of training videos for avenue dataset:

  • VIDEO_ROOT_PATH/avenue/training_videos
    • 01.avi
    • 02.avi
    • ...
    • 16.avi

Once you have trained the model, you may now run python start_test.py after setting the parameters at the beginning of the file.

Please cite the following paper if you use our code / paper:

@inbook{Chong2017,
  author    = {Chong, Yong Shean and
               Tay, Yong Haur},
  editor    = {Cong, Fengyu and
               Leung, Andrew and
               Wei, Qinglai},
  title     = {Abnormal Event Detection in Videos Using Spatiotemporal Autoencoder},
  bookTitle = {Advances in Neural Networks - ISNN 2017: 14th International Symposium, ISNN 2017, Sapporo, Hakodate, and Muroran, Hokkaido, Japan, June 21--26, 2017, Proceedings, Part II},
  year      = {2017},
  publisher = {Springer International Publishing},
  pages     = {189--196},
  isbn      = {978-3-319-59081-3},
  doi       = {10.1007/978-3-319-59081-3_23},
  url       = {https://doi.org/10.1007/978-3-319-59081-3_23}
}

abnormal-spatiotemporal-ae's People

Contributors

yshean avatar

Watchers

 avatar

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.