This repository hosts the official implementation of the "Interactive Counterfactual Generation for Univariate Time Series" application, as presented in our paper for the Workshop on eXplainable Knowledge Discovery in Data Mining (XKDD) 2024. Our work introduces an interactive visual analytics application for generating counterfactual explanations in univariate time series data, aimed at enhancing the interpretability of deep learning models.
Demo: https://icfts.time-series-xai.dbvis.de/
With the increasing complexity of deep learning models in time series analysis, understanding the decision-making process behind these models becomes crucial. Our application leverages 2D decision maps and inverse projection techniques, allowing users to interactively explore and manipulate data points to generate intuitive counterfactual explanations. This approach aids in demystifying model predictions and fosters a deeper understanding of model behaviors.
- Interactive 2D Decision Maps: Visualize the projections of time series data, activations, and attributions, enabling a simplified exploration of complex data.
- Counterfactual Explanation Generation: Manipulate data points directly in the visualization to explore hypothetical scenarios and their outcomes.
- Deep Learning Insights: Dive into model activations and attributions to uncover the rationale behind predictions.
- User-Centered Design: A straightforward interface allows users to effortlessly generate and understand counterfactuals.
Ensure you have the following installed:
- Python 3.8 or newer
- Required Python packages:
numpy,pandas,torch,umap-learn,matplotlib - Docker
Clone this repository:
git clone https://github.com/visual-xai-for-time-series/interactive-counterfactuals-for-time-series.git
cd interactive-counterfactuals-for-time-seriesTo run the application, execute the following command from the root directory of the project:
docker compose upor
bash start_development.bashFollow the instructions in the terminal to open the application in your web browser.
This project is licensed under the MIT License - see the LICENSE file for details.
If you find this application useful for your research, please consider citing our paper:
@inproceedings{interactive-counterfactual-generation,
title={Interactive Counterfactual Generation for Univariate Time Series},
author={Schlegel, Udo and Rauscher, Julius and Keim, Daniel A.},
booktitle={Workshop on eXplainable Knowledge Discovery in Data Mining (XKDD)},
year={2024}
}