Giter Site home page Giter Site logo

gischeng / multi-scale-anomaly Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 2.0 280 KB

Codes and data for a published work "Multi-scale detection and interpretation of spatio-temporal anomalies of human activities represented by time-series" (https://doi.org/10.1016/j.compenvurbsys.2021.101627)

Jupyter Notebook 96.52% Python 3.48%
python jupyter-notebook social-sensing ceus multi-scale spatio-temporal anomaly-detection time-series-decomposition taxi-data

multi-scale-anomaly's Introduction

Multi-scale detection and interpretation of human activity anomalies

Title: Multi-scale detection and interpretation of spatio-temporal anomalies of human activities represented by time-series

Abstract

Spatio-temporal patterns of human activities can be affected by events, such as extreme weather. Events cause anomalies that could be expressed by abnormal activity patterns deviating from the inherent ones. The detection of spatio-temporal anomalies thus helps to understand the implicit influencing mechanism with which the external factors affect human activities. Existing methods of spatio-temporal anomaly detection usually treat the temporal information as attributes of spatial units, which is an over-simplification as it ignores complex temporal patterns (e.g., periodic components of time-series). Moreover, as the spatio-temporal resolutions affect expressed characteristics of anomalies, the sensitivity of anomalies to scale is also worth investigating. This study intends to detect and interpret the spatio-temporal anomalies of human activities from a multi-scale perspective. Being different from the single-scale consideration and independent consideration of multiple scales, this research investigates how the anomalies' characteristics change at multiple scales by anomaly matching. The criteria of anomaly matching are the overlapping degree of spatio-temporal influence ranges of anomalies. It helps to specify the events that caused the expressed anomalies. Besides, we introduce the time-series decomposition methods to decompose complex temporal patterns, highlighting the abnormal changes in activity patterns. The study is validated using a multi-temporal-scale simulation experiment, and a multi-spatial-scale experiment based on taxi data in Beijing. Results show that the multi-scale method can detect various anomalies. Moreover, obtained multi-scale characteristics of anomalies are easy to compare with external data, and thus benefit anomaly interpretation (validated by two sample anomalies). This study highlights the significance of scales in anomaly detection of human activities and provides references for related works.

Statement

The program of the time-series decomposition is developed based on the previous implementation of STL in GitHub (STLDecompose).

Code description

  1. The file "Multi-temporal-scale.ipynb" is the program of the simulation of multi-temporal-scale anomaly detection (Section 3.1 of the article).

  2. The file "Multi-spatial-scale.ipynb" is the demo program of the multi-spatial-scale anomaly detection experiment based on sample data (Section 3.2 of the article, except for the time-series organization).

Data description

The file "input_threescales" is the input of the program "Multi-spatial-scale.ipynb". It is saved as the byte format and can be read by the pickle library of Python. The file records the sample time-series data of taxi origin point volume at three spatial scales. Each line records the information of one spatial unit. The data fields include ID, son nodes' IDs, TAS (temporal activity signatures), taxi origin point volume, father node's ID, and the quadtree ID.

Cite

Please consider citing our paper if this helps in your work:

Ximeng Cheng, Zhiqian Wang, Xuexi Yang, Liyan Xu, & Yu Liu (2021). Multi-scale detection and interpretation of spatio-temporal anomalies of human activities represented by time-series. Computers, Environment and Urban Systems. 88:101627. DOI

multi-scale-anomaly's People

Contributors

gischeng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

s3pku jimmy-inl

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.