MedTS-TTT: Test-Time Training for Medical Time Series Classification

Mingzhi Chen, Yiyu Gui, Guibo Luo
6/19/2026
cs.LG

Official code: mingzhi-c/MedTS-TTT (3 stars, Python, MIT, last commit 2026-10-03).

Abstract

Medical time series (MedTS) signals such as electroencephalography (EEG) and electrocardiography (ECG) support many clinical applications. However, substantial subject-level heterogeneity often induces subject-level distribution shift, causing a fixed parameter set to generalize poorly to unseen individuals.

Show full abstract

Compared with domain adaptation methods that often depend on extra adaptation components or target-batch statistics, Test-Time Training (TTT) provides a more practical solution for sequential clinical data by enabling online adaptation from unlabeled test samples. However, many representative TTT methods require iterative inner-loop optimization, increasing test-time overhead. In this paper, we propose MedTS-TTT, a test-time training framework for medical time series modeling. MedTS-TTT is built upon Closed-Loop Self-Alignment Test-Time Training (CLSA-TTT) and a Gated Convolutional Backbone (GCB). CLSA-TTT constructs a token-level self-supervised target and performs a single-step fast-weight update for intra-layer closed-loop alignment, enabling rapid sample-wise adaptation without iterative inner-loop optimization. GCB combines CLSA-TTT-based fast adaptation and token-level fusion with a gated convolutional branch to balance local dynamic modeling and information-flow control. On 4 public datasets (2 EEG and 2 ECG) with subject-independent splits, MedTS-TTT achieves 11 top-1 rankings out of 12 evaluations across 9 baselines and 3 metrics. The code is publicly available at https://github.com/mingzhi-c/MedTS-TTT.

View on arXivView PDF

Code Implementations(1)

MIT

[MICCAI 2026] Official PyTorch implementation of MedTS-TTT: Test-Time Training for Medical Time Series Classification.

30PythonJun 18, 20261 months agoMIT
medical-aimedical-time-seriestest-time-trainingtime-series-classification

Similar Papers

Cite this paper

@article{chen2026medtsttt,
  title  = {MedTS-TTT: Test-Time Training for Medical Time Series Classification},
  author = {Mingzhi Chen and Yiyu Gui and Guibo Luo},
  year   = {2026},
  eprint = {2606.21329},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.21329v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.21329.svg)](https://codeofpaper.com/paper/2606.21329)

Discussion