MTS-LOF: Medical Time-Series Representation Learning via Occlusion-Invariant Features

Huayu Li, Ana S. Carreon-Rascon, Xiwen Chen, Geng Yuan, Ao Li

Abstract

Medical time series data are indispensable in healthcare, providing critical insights for disease diagnosis, treatment planning, and patient management. The exponential growth in data complexity, driven by advanced sensor technologies, has presented challenges related to data labeling. Self-supervised learning (SSL) has emerged as a transformative approach to address these challenges, eliminating the need for extensive human annotation. In this study, we introduce a novel framework for Medical Time Series Representation Learning, known as MTS-LOF. MTS-LOF leverages the strengths of Joint-Embedding SSL and Masked Autoencoder (MAE) methods, offering a unique approach to representation learning for medical time series data. By combining these techniques, MTS-LOF enhances the potential of healthcare applications by providing more sophisticated, context-rich representations. Additionally, MTS-LOF employs a multi-masking strategy to facilitate occlusion-invariant feature learning. This approach allows the model to create multiple views of the data by masking portions of it. By minimizing the discrepancy between the representations of these masked patches and the fully visible patches, MTS-LOF learns to capture rich contextual information within medical time series datasets. The results of experiments conducted on diverse medical time series datasets demonstrate the superiority of MTS-LOF over other methods. These findings hold promise for significantly enhancing healthcare applications by improving representation learning. Furthermore, our work delves into the integration of Joint-Embedding SSL and MAE techniques, shedding light on the intricate interplay between temporal and structural dependencies in healthcare data.

Introduction

In the digital health era, wearable sensors and electronic health records generate massive streams of time-series data, such as EEG and heart rate signals. However, the utility of this data is often bottlenecked by the high cost and slow pace of expert annotation. While self-supervised learning (SSL) has transformed fields like computer vision, time-series data presents unique challenges. Standard augmentations (e.g., cropping or jittering) can destroy clinical meaning, and signals often contain both local patterns and long-term trends that are difficult to capture simultaneously.

Methodology

The proposed MTS-LOF (Medical Time-Series Occlusion-Invariant Features) framework addresses these challenges through a three-pronged strategy designed to learn robust, context-rich representations.

  1. Hybrid Backbone: The architecture utilizes a 1D-CNN to "patch" raw signals, extracting local semantic information. These patches are subsequently processed by a Transformer Encoder to capture long-range temporal dependencies.
  2. Multi-Masking Strategy: Instead of traditional data augmentation, the framework applies multiple random masks to the data patches, creating several "occluded" views of the same signal. This acts as a "neutral" augmentation that forces the model to rely on context without distorting signal characteristics like frequency or amplitude.
  3. Occlusion-Invariant Learning: The model is trained to minimize the discrepancy between the representation of the fully visible signal and its various masked versions. To prevent representation collapse, Total Coding Rate (TCR) regularization is employed, ensuring learned features remain diverse and informative.
The MTS-LOF framework overview, highlighting the flow of masked and unmasked patches through the Transformer Encoder and Decoder for loss calculation.

Experimental Evaluation

MTS-LOF was evaluated across a diverse battery of datasets to demonstrate its generalizability:

  • Epilepsy Seizure Prediction: EEG recordings for seizure detection.
  • Human Activity Recognition (HAR): Smartphone sensor data (accelerometer/gyroscope).
  • UWaveGesture: Accelerometer-based gesture recognition.
  • Sleep-EDF & SHHS: Large-scale EEG datasets for sleep stage classification.
  • Fault Diagnosis (FD): Motor current signals used to test the model's transferability to non-medical industrial domains.

Results and Discussion

MTS-LOF consistently outperformed existing state-of-the-art (SOTA) methods, including TS-TCC, SimCLR, and TS2Vec, across multiple benchmarks.

Comparison of MTS-LOF against various SOTA self-supervised learning methods across four benchmark datasets.

Key findings from the evaluation include:

  • High Performance: The model achieved a remarkable 98.33% accuracy on Epilepsy seizure prediction and 93.05% on Human Activity Recognition.
  • Label Efficiency: In semi-supervised tests on the Sleep-EDF dataset, using only 1% of labeled data yielded a competitive F1 score of 72.77%, nearly matching some fully supervised baselines.
  • Superior Transferability: When pre-trained on the SHHS dataset and tested on Sleep-EDF, MTS-LOF demonstrated significantly better cross-domain performance than supervised models, indicating it captures universal physiological features of human sleep.
  • Latent Space Quality: Visualization of the latent space using t-SNE showed that SSL pre-training alone clusters medical conditions so effectively that they are almost linearly separable before the model even sees a single label.

Conclusion

MTS-LOF represents a significant step forward in medical time-series representation learning. By treating masking as a "neutral" augmentation that forces the model to rely on context, it avoids the pitfalls of traditional signal distortions. While the Transformer architecture introduces computational demands that may challenge edge-device deployment, the framework's label efficiency and transferability offer immense promise for clinical settings. Future work will focus on streamlining the model for resource-constrained environments and exploring its application in broader time-series domains like finance or climatology.

Summary updated

BibTeX
@article{li2024mts,
  author = {Huayu Li and Ana S. Carreon-Rascon and Xiwen Chen and Geng Yuan and Ao Li},
  title = {{MTS-LOF: Medical Time-Series Representation Learning via Occlusion-Invariant Features}},
  journal = {IEEE Journal of Biomedical and Health Informatics},
  year = {2024},
  doi = {10.1109/jbhi.2024.3373439},
}
Figure