Skip to content

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)

Notifications You must be signed in to change notification settings

GISCheng/multi-scale-anomaly

Repository files navigation

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

About

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)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published