https://github.com/boniolp/dcam

[SIGMOD 2022] Python code for "Dimension-wise Class Activation Map for Multivariate Time Series Classification"

https://github.com/boniolp/dcam

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 5 DOI reference(s) in README
  • Academic publication links
    Links to: researchgate.net, acm.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.7%) to scientific vocabulary

Keywords

class-activation-map classification convolutional-neural-networks deep-learning multivariate-timeseries neural-network python pytorch sigmod time-series
Last synced: 6 months ago · JSON representation

Repository

[SIGMOD 2022] Python code for "Dimension-wise Class Activation Map for Multivariate Time Series Classification"

Basic Info
  • Host: GitHub
  • Owner: boniolp
  • License: mit
  • Language: Jupyter Notebook
  • Default Branch: main
  • Homepage:
  • Size: 7.05 MB
Statistics
  • Stars: 16
  • Watchers: 1
  • Forks: 1
  • Open Issues: 1
  • Releases: 0
Topics
class-activation-map classification convolutional-neural-networks deep-learning multivariate-timeseries neural-network python pytorch sigmod time-series
Created over 3 years ago · Last pushed over 2 years ago
Metadata Files
Readme License

README.md

dCAM

Dimension-wise Class Activation Map for Explaining Multivariate Time Series Classification

GitHub GitHub issues

Abstract

Data series classification is an important and challenging problem in data science. Explaining the classification decisions by finding the discriminant parts of the input that led the algorithm to some decision is a real need in many applications. Convolutional neural networks perform well for the data series classification task; though,the explanations provided by this type of algorithms are poor for the specific case of multivariate data series. Solving this important limitation is a significant challenge. We propose a novel method that addresses the above challenge by highlighting both the temporal and dimensional discriminant information. Our contribution is two-fold: we first describe a new convolutional architecture that enables the comparison of dimensions; then, we propose a novel method that returns dCAM, a Dimension-wise ClassActivation Map specifically designed for multivariate time series.

drawing

This repository is dedicated to our paper titled "dCAM : Dimension-wise Class Activation Map for Explaining Multivariate Time Series Classification" published in the Proceedings of the 2022 International Conference on Management of Data also available on here.

dCAM in Practice:

Here are interesting papers that use dCAM.

Data

The data used in this project comes from two sources: - The UCR/UEA archive. Informations are provided in the data folder in order to download our datasets.

Code

The code is divided as follows: - The src/ folder that contains: - CNN_models.py: - CNN architecture (class ConvNet) - dCNN/cCNN architecture (class ConvNet2D) - ResNet architecture (class ResNet) - dResNet/cResNet architecture (class dResNet) - Inception Time architecture (class inceptiontime) - dInception Time/cInception Time architecture (class dinceptiontime) - CNN-MTEX architecture (class ConvNetMTEX) - RNN_models.py: - LSTM architecture (class LSTMClassifier) - RNN architecture (class RNNClassifier) - GRU architecture (class GRUClassifier)

Prerequisites

First, to download the datasets (unzip and move the content in the corresponding folder), please run the following commands:

  • Go to the following folder:

(bash) cd data/UCR_UEA

  • Download and unzip the following archive:

(bash) https://helios2.mi.parisdescartes.fr/~themisp/dCAM/data/UCR_UEA_datasets.zip

  • Then, go to the following folder:

(bash) cd data/synthetic

  • Download and unzip the following archive:

(bash) https://helios2.mi.parisdescartes.fr/~themisp/dCAM/data/Synthetic_datasets.zip

All python packages needed are listed in requirements.txt file and can be installed simply using the pip command:

(bash) pip install -r requirements_version.txt

If the version are not compatible in your environement, please run the following command:

(bash) pip install -r requirements.txt

Jupyter notebook should be installed. To do so, please run the following command:

(bash) pip install notebook

Overall, the required python packages are listed as follows: * numpy * pandas * sklearn * pytorch * tqdm * matplotlib (For the jupyter notebooks only) * torchsummary (For the jupyter notebooks only) * scipy (For the jupyter notebooks only)

Reference

If you re-use this work, please cite:

@inproceedings{DBLP:conf/sigmod/BoniolMRP22, author = {Paul Boniol and Mohammed Meftah and Emmanuel Remy and Themis Palpanas}, editor = {Zachary Ives and Angela Bonifati and Amr El Abbadi}, title = {dCAM: Dimension-wise Class Activation Map for Explaining Multivariate Data Series Classification}, booktitle = {{SIGMOD} '22: International Conference on Management of Data, Philadelphia, PA, USA, June 12 - 17, 2022}, pages = {1175--1189}, publisher = {{ACM}}, year = {2022}, url = {https://doi.org/10.1145/3514221.3526183}, doi = {10.1145/3514221.3526183}, timestamp = {Tue, 14 Jun 2022 18:31:24 +0200}, biburl = {https://dblp.org/rec/conf/sigmod/BoniolMRP22.bib}, bibsource = {dblp computer science bibliography, https://dblp.org} }

Owner

  • Name: Paul Boniol
  • Login: boniolp
  • Kind: user
  • Company: Université Paris Cité

Postdoctoral researcher at Université Paris Cité

GitHub Events

Total
  • Watch event: 1
Last Year
  • Watch event: 1

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 2
  • Total pull requests: 1
  • Average time to close issues: about 18 hours
  • Average time to close pull requests: less than a minute
  • Total issue authors: 2
  • Total pull request authors: 1
  • Average comments per issue: 4.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 1.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • Victordmz (1)
  • Zappytoes (1)
Pull Request Authors
  • boniolp (1)
Top Labels
Issue Labels
Pull Request Labels