# From Post-Hoc to Ante-Hoc: Consistently Explainable Semi-Supervised Time Series Classification

*Viet-Hung Tran, Zichi Zhang, Ngoc Phu Doan, Xuan Hoang Nguyen, Phi Hung Nguyen, Yimeng An, Peixin Li, Huynh Thi Khanh Chi, Hans Vandierendonck, Ira Assent, Thai Son Mai*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/154078) · [OpenReview](https://openreview.net/forum?id=GMZeOQcKOW) · [Open on the map](../papers.html#p154078)

Category: [Time Series, PDEs & Probabilistic ML](../pcat/9.md) › [Time Series Forecasting and Robustness](../pgroup/253.md) · Type: new method · Keywords: semi-supervised time series classification, explainability, post-hoc attribution, ante-hoc explanation, feature gating, knowledge distillation

Areas: [Interpretability](../areas/interpretability.md) › Model Explanations › Model Interpretability

## Summary
Sensory Gating is a semi-supervised time series classification framework that combines post-hoc and ante-hoc explanations through a four-stage pipeline, reducing required features while maintaining competitive accuracy.

## Explained to a 5-year-old
A computer looks at a series of numbers that change over time to guess what something is. It only needs a few examples that are already labeled and many unlabeled examples to learn. It also learns which parts of the numbers are important by covering up the rest with a mask. This helps the computer make decisions that are easier for people to understand. The result is a smarter and more trustworthy model.

## Explained to a 5-year-old, longer
Imagine you have a long song and you want to know which part of the song tells you what the song is about. A computer program can listen to many songs, but it only knows the answer for a few of them. It uses those few answers to learn how to guess the rest. To understand the song better, the program learns to hide unimportant parts and focus on the important bits, like the chorus. This way, when it says a song is happy, you can see exactly which part made it think that. The program also makes a smaller version of itself that works only with the important parts, so it runs faster and is easier to trust. All of this helps the program make correct guesses while showing you why it made each choice.

## For a technical reader
The framework trains a base classifier with an auxiliary forecasting joint-embedding objective, generates per-instance binary masks from post-hoc attributions, and uses a lightweight gating module to enforce those masks via binary cross-entropy. A knowledge-distillation step produces an explainable student that operates on masked inputs while matching the teacher’s predictions. This pipeline reduces feature usage to 20-45% and maintains accuracy across multiple datasets and label ratios.

## Problem
Semi-supervised time series classification models are accurate but act as black boxes, lacking reliable explanations. Existing post-hoc and ante-hoc explanation methods either provide no guarantee of reliance on features or impose inflexible architectural constraints, and none address explainability in the semi-supervised regime with limited labels.

## Method
The approach trains a base classifier with an auxiliary forecasting joint-embedding predictive objective, converts post-hoc attribution maps into binary masks via greedy feature selection, uses a lightweight gating module to amortize these masks with binary cross-entropy supervision, and distills an explainable student model that operates on masked inputs while matching the original model's predictions.

## Results
The approach achieves better performance than recent state-of-the-art semi-supervised TSC methods, and the gating mechanism reduces the required features to 20-45% while maintaining competitive accuracy. On MIT-BIH, the selected features align with domain-relevant regions, and classification performance remains competitive when only 10-20% of features are kept.

## Contributions
It introduces the first semi-supervised time series classification framework that unifies post-hoc and ante-hoc explanations, provides consistent feature gating, and yields an explainable student model via knowledge distillation. The work also demonstrates reduced feature usage and alignment with ground-truth saliency on medical data.

## Practical relevance
By reducing required features, the approach enables more efficient and interpretable time series classification in settings where labeling is costly, such as healthcare.

## Research questions this paper is counted under

- [How can we generate explanations for time series classifiers that incorporate both local patterns and global temporal context?](../q/825.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/154078)
