Git Product home page Git Product logo

gischeng / st-lrp Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 1.56 MB

Codes and data for a published work "A method to evaluate task-specific importance of spatio-temporal units based on explainable artificial intelligence" (https://doi.org/10.1080/13658816.2020.1805116)

Jupyter Notebook 69.01% Python 30.99%
ijgis deep-learning tensor spatio-temporal-dependence task-specific classification jupyter-notebook python geoai

st-lrp's Introduction

Spatio-temporal layer-wise relevance propagation (ST-LRP) method

Title: A method to evaluate task-specific importance of spatio-temporal units based on explainable artificial intelligence

Abstract

Big geo-data are often aggregated according to spatio-temporal units for analyzing human activities and urban environments. Many applications categorize such data into groups and compare the characteristics across groups. The intergroup differences vary with spatio-temporal units, and the essential is to identify the spatiotemporal units with apparently different data characteristics. However, spatio-temporal dependence, data variety, and the complexity of tasks impede an effective unit assessment. Inspired by the applications to extract critical image components based on explainable artificial intelligence (XAI), we propose a spatio-temporal layerwise relevance propagation method to assess spatio-temporal units as a general solution. The method organizes input data into an extensible three-dimensional tensor form. We provide two means of labeling the spatio-temporal tensor data for typical geographical applications, using temporally or spatially relevant information. Neural network training proceeds to extract the global and local characteristics of data for corresponding analytical tasks. Then the method propagates classification results backward into units as obtained task-specific importance. A case study with taxi trajectory data in Beijing validates the method. The results prove that the proposed method can evaluate the task-specific importance of spatio-temporal units with dependence. This study also attempts to discover task-related knowledge using XAI.

Statement

The program of the ST-LRP is developed based on the previous work of LRP in GitHub (TensorFlow LRP Wrapper) (Lapuschkin et al. 2016).

Lapuschkin, S., et al., 2016. The LRP toolbox for artificial neural networks. The Journal of Machine Learning Research, 17 (1), 3938-3942.

Code description

  1. The file "ST-LRP.zip" is the zip package of the main programs in this study. All the programs are the Jupyter Notebook files in python (.ipynb):

The file "Holiday_revise_2019.ipynb" is the program of neural network model training and the spatio-temporal unit assessment.

The file "Validation1_revise_Replaced zones.ipynb" is the program of the first validation experiment (replace the zone value of input).

The file "Validation2_Regression_POI.ipynb" is the program of the second validation experiment (interpretation of unit importance measure difference based on POI data).

The file "Validation3_Random forests.ipynb" is the program of the third validation experiment (use random forests to assess units).

The file "Validation4_Cluster.ipynb" is the program of the fourth validation experiment (data compression application).

  1. The file "Trained Parameters.zip" is the zip package of trained neural network parameters.

Data

The data that support the findings of the study are available in figshare. The data include the training set, validation set, and test set of the model training (i.e., taxi origin point distributions collected in the years of 2016 and 2017) and the inputs for the subsequent validation experiments.

Cite

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

Ximeng Cheng, Jianying Wang, Haifeng Li, Yi Zhang, Lun Wu, & Yu Liu (2020). A method to evaluate task-specific importance of spatio-temporal units based on explainable artificial intelligence. International Journal of Geographical Information Science. 1-24. DOI

st-lrp's People

Contributors

gischeng avatar

Stargazers

 avatar  avatar Leooooooon avatar

Watchers

 avatar

Forkers

s3pku

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.