CENDRe: Concept Extraction with Natural Domain Representations

Antonia Holzapfel, Andres Felipe Posada Moreno, Sebastian TrimpeNeurIPS 2026

TL;DR

When neural networks diagnose failing machinery or monitor vital signs using time-series data, we need to know why they make their decisions—and often, the answer hides in the frequency spectrum rather than the raw timeline. CENDRe is the first concept extraction method for time-series CNNs that automatically discovers what global patterns a model has learned and translates those explanations into any invertible domain, like frequency. Even better, it figures out how many concepts exist on its own, no manual guesswork required.

What Problem Does This Paper Address?

Imagine asking an audio engineer what makes a мотор sound "broken," and they are only allowed to point at raw waveform wiggles over time instead of talking about pitch or harmonics. That is the current state of Concept Extraction (CE)—a branch of Explainable AI (XAI) that uncovers recurring global patterns in a model's latent space—for time-series Convolutional Neural Networks (CNNs).

Existing time-series CE methods suffer from three big blind spots:

  1. Stuck in time: They only explain patterns in the time domain, leaving spectral (frequency) features completely invisible and unintelligible.
  2. The $K$-guessing game: Users must manually predefine the number of concepts ($K$) before running the extraction, forcing tedious parameter sweeps that inject human bias into what the model actually learned.
  3. Blurry localization: To show where a concept appears in the signal, prior methods either upsample low-resolution feature maps or highlight a neuron's entire effective receptive field—either missing what the model actually used or highlighting way too much irrelevant signal.

Methods

CENDRe (Concept Extraction with Natural Domain Representations) pairs standard latent probing with three clever innovations:

  • Two-Stage Automatic Clustering (New): CENDRe starts with standard Local Aggregated Descriptors (LADs)—slices of activations upsampled and concatenated across multiple CNN layers for every timestep. Because clustering all timesteps directly is computationally heavy, CENDRe first compresses LADs into $J$ "micro-centroids" ($J \gg K$, e.g., $J=50$) via mini-batch $k$-means. Next, it merges these micro-centroids using hierarchical clustering, automatically picking the $K$ that maximizes the silhouette score.
  • Contrastive Gradient Masks (New): Instead of heuristic upsampling, CENDRe defines a contrastive presence score—measuring how close a timestep's representation is to its own concept's micro-centroid versus all other concepts. Taking the gradient of this score with respect to the input pinpoints the exact signal regions driving the concept.
  • Cross-Domain Inspection (Adapted for Global CE): Borrowing virtual inspection layers from local XAI, CENDRe slips a differentiable, invertible transform and its inverse ($\phi^{-1} \circ \phi$, such as a Fast Fourier Transform and inverse FFT) onto the input graph. The model's predictions don't change, but backpropagating the contrastive presence gradients into $\phi(x)$ cleanly reveals the concept's footprint in the frequency domain! Finally, overlapping these masks with class-logit sensitivities yields a per-class importance score on $[-1, 1]$.

Datasets

To verify explanations when models don't come with ground-truth manuals, the authors evaluate on both controlled synthetic data and real-world industrial sensors:

  • Synthetic Benchmarks: SYNTHETICLOCAL (noisy sine waves injected with localized square, circle, or triangle shapes) and SYNTHETICFREQUENCY (signals with class-discriminative peaks in mid, mid-high, or high frequency bands), plus multichannel and confounded variants.
  • Real-World Bearing Faults & Archives: CWRU Bearing (two-channel accelerometer data at 12 kHz across healthy and three fault locations), BearingPD, and five datasets from the UCR archive (detailed in appendices).

Key Insights and Ideas

  • Catching "Shortcut Learning" Red-Handed: On synthetic square waves, baseline methods highlight the entire square, whereas CENDRe concentrates its mask sharply on the corners. Why? Because the CNN only needed the sharp transitions from the baseline to classify the shape! CENDRe stays faithful to the model's partial use of a feature rather than flattering human expectations.
Figure 1: Concepts extracted from a ResNet1D-18 trained on a SYNTHETICLOCAL square-triangle dataset. Within each grid, rows are concepts, columns are samples, and row labels show importance scores. The bottom row shows the ground-truth primitive locations for the same samples. CENDRe and ECLAD-ts extract the same input features, while MultiVISION shows no coherent pattern.
  • Frequency Turns Noise into Meaning: When a CNN classifies signals based on spectral bands, time-domain concept masks look like incomprehensible chatter. Pushing the exact same concept gradients through an FFT instantly crystallizes them into sharp, distinct frequency peaks (e.g., isolating a dominant $\sim 2000\text{ Hz}$ drive-end fault signature on CWRU bearing data).
  • Trading $K$ for $J$ Kills Hyperparameter Sensitivity: Replacing the manual concept count $K$ with micro-cluster count $J$ makes the pipeline remarkably stable. Across three orders of magnitude, varying $J$ explains just 0.02 of the variance in representation quality for CENDRe's silhouette method, compared to 0.70 explained simply by the random training seed.

Key Results

The authors propose soft evaluation metrics—Soft Representation Correctness (sRC, how well masks align with ground-truth primitives) and Soft Importance Correctness (sIC, how well importance scores match discriminative primitives)—tested across InceptionTime10, ResNet1D-18, and DenseNet1D-121:

  • Time-Domain: On SYNTHETICLOCAL, CENDRe achieves sRC (~0.58–0.74 medians) comparable to the strongest baseline (ECLAD-ts, even when ECLAD-ts is cherry-picked at its best manual $K$), while decisively beating baselines on sIC (~0.76–0.90 vs. ECLAD-ts's ~0.50–0.55). MultiVISION struggles on both.
  • Frequency-Domain: Where prior CE baselines cannot operate at all, CENDRe achieves ~0.49–0.57 sRC and high sIC (~0.71–0.94) on SYNTHETICFREQUENCY, cleanly recovering ground-truth spectral bands.

Limitations and Future Work

  • CNN-Bound: CENDRe's per-timestep descriptors rely on the approximate translation equivariance of 1D CNNs. Extending this to Transformers or State-Space Models is an open next step.
  • Beyond Pure Time and Frequency: While demonstrated mainly with identity and Fourier transforms (with wavelets/STFT explored in the appendix), the pipeline can be expanded to other invertible signal representations, interactive model debugging, and formal user studies with domain experts.

Summary updated

Abstract

Convolutional neural networks (CNNs) are widely used for time-series classification, but their deployment in critical contexts requires understanding the patterns across signal domains that drive their predictions (e.g., temporal or spectral). Concept extraction (CE) methods identify such patterns by analyzing representations within the models’ latent space. However, existing time-series CE methods have three limitations: they operate only in the time domain and cannot locate features in other domains, they depend on a predefined number of concepts that biases them, and they produce localizations misaligned with the regions the model uses. We address these limitations with CENDRe, a concept extraction method for CNNs. For concept discovery, we propose a procedure that clusters per-timestep latent representations in two stages, with a silhouette-guided aggregation that selects the number of concepts automatically. For localization, we define a presence score that contrasts the latent representations with their prototypes, and use its gradients to produce masks that concentrate on the regions driving the concept. These gradients, propagated through a differentiable invertible mapping of the input such as a Fourier transform, yield localizations for the same concepts in different domains. Finally, each concept receives a relevance score that quantifies its contribution to each class. On synthetic benchmarks, CENDRe achieves representation correctness comparable to state-of-the-art CE methods and higher importance correctness, while producing visualizations in different domains. On real bearing-fault data, CENDRe extracts the frequency bands driving the model’s predictions, located in regions commonly inspected for fault diagnosis, producing evidence to assess the model that time-domain CE methods cannot.
BibTeX
@inproceedings{holzapfel2026cendre,
  author = {Antonia Holzapfel and Andres Felipe Posada Moreno and Sebastian Trimpe},
  title = {{CENDRe: Concept Extraction with Natural Domain Representations}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=ht3dAp9x7G},
}
Figure