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:
- Stuck in time: They only explain patterns in the time domain, leaving spectral (frequency) features completely invisible and unintelligible.
- 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.
- 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) andSYNTHETICFREQUENCY(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.
- 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