Interactive Dense Pixel Visualizations for Time Series and Model Attribution Explanations

Udo Schlegel, Daniel A. Keim

TL;DR

DAVOTS (Dense-pixel Attribution Visualization On Time Series) is an interactive visual analytics tool designed to make deep learning models for time series more interpretable. By condensing raw data, model activations, and attribution explanations into a single-pixel-per-value display and applying hierarchical clustering, it allows researchers to identify hidden patterns and evaluate model faithfulness across large datasets at a glance.

What Problem Does This Paper Address?

Deep learning has significantly advanced time series analysis, but these models are often "black boxes." While Explainable AI (XAI) techniques provide attribution scores (highlighting which parts of the input were important for a prediction), interpreting these scores for time series is notoriously difficult. Unlike images, where a human can easily see if a model is looking at a "cat's ear," raw time series data is often non-intelligible to the naked eye.

Furthermore, standard visualization techniques like line plots do not scale. Trying to compare the attributions of hundreds of samples using overlapping lines results in a "spaghetti plot" that obscures more than it reveals. There is a critical need for a visualization method that can handle large-scale data while simultaneously showing the relationship between the raw input, the model's internal state, and the resulting explanation.

Methods

The authors introduce a "dense pixel" approach where every data point is reduced to a single color-coded pixel.

  • The DAVOTS Interface: The visualization is organized in a tabular format. Each row represents a single data sample. The columns are grouped into sections: Raw Time Series, Activations (from a specific neural network layer), and Attributions (the XAI output).
  • Contextual Histograms: To provide a quick summary of data distributions, the tool includes small histograms next to each pixel group.
  • Interactive Clustering: This is the core "engine" of the tool. Users can choose to cluster the rows based on any of the three domains (raw data, activations, or attributions).
  • Algorithms: The tool uses Hierarchical Agglomerative Clustering (specifically Ward’s method and complete linkage).
  • Distance Metrics: To determine similarity, users can toggle between standard Euclidean distance, a normalized Euclidean distance (designed to focus on shape similarity), and the Pearson correlation coefficient.

Datasets

The authors demonstrate their approach using the FordA dataset, a well-known benchmark from the UCR Time Series Classification Archive. This dataset contains engine noise measurements, where the task is to classify whether a certain component is present or absent based on the acoustic signature.

Key Insights and Ideas

  • The Power of Reordering: The most significant insight is that how you order the rows changes what you see. By clustering based on attributions rather than raw data, users can group samples that the model "thinks" about in similar ways. This often reveals subsequences in the raw data that are crucial for classification but might have been ignored if the data were sorted by raw signal similarity alone.
  • Multi-Domain Alignment: By placing raw data, activations, and attributions in the same row, the tool allows for immediate visual cross-referencing. If a model has a high attribution score for a specific time point, the user can look left to see exactly what the raw signal looked like at that moment.
  • Scalability via Density: Using a pixel-based approach allows the tool to display hundreds of samples on a single screen, providing a "global" view of model behavior that is impossible with traditional charting.

Key Results

The paper presents qualitative findings from exploring a CNN trained on the FordA dataset:

  • Pattern Discovery: When clustering by attributions, the authors found recurring "subsequences" in the raw data that were clearly linked to the model's decision-making process.
  • Activation vs. Attribution: They noted that clustering by activations (internal model states) sometimes produced noisier results than clustering by attributions, suggesting that attributions might be a cleaner signal for understanding the model's "intent."
  • Visual Validation: The tool successfully highlighted that the model was focusing on specific trends in the noise data, providing a visual "sanity check" for the XAI methods being used.

Limitations and Future Work

  • Limited Interactivity: Currently, the tool focuses on representation and parameter steering. The authors want to add more direct manipulation, such as "drag and drop" functionality to manually reorder or group rows.
  • Advanced Transformations: The authors suggest that applying Fourier transforms before clustering might help reveal patterns in the frequency domain that are currently hidden in the time domain.
  • Automated Insights: Future versions could include automatic detection of "interesting" clusters or transitions between different data stages (e.g., comparing how patterns shift from the training set to the test set).
  • Clustering Complexity: While hierarchical clustering is useful, the authors acknowledge the need to explore density-based methods like DBSCAN to better handle outliers and complex data distributions.

Summary updated

BibTeX
@inproceedings{schlegel2023interactive,
  author = {Udo Schlegel and Daniel A. Keim},
  title = {{Interactive Dense Pixel Visualizations for Time Series and Model Attribution Explanations}},
  booktitle = {MLVis@EuroVis},
  year = {2023},
  url = {https://openreview.net/forum?id=IlywSESbZ8},
}
Figure