cs.LGMar 31, 2026

mtslearn: Machine Learning in Python for Medical Time Series

Authors: Zhongheng Jiang, Yuechao Zhao, Donglin Xie, Chenxi Sun, Rongchen Lu, Silu Luo, Zisheng Liang, Shenda Hong

Organizations: Nanjing University of Information Science and Technology, Nanjing, China · National Institute of Health Data Science, Peking University, Beijing, China · School of Health Humanities, Peking University Health Science Center, Beijing, China · Institute of Medical Technology, Peking University Health Science Center, Beijing, China · 

Abstract

Medical time-series data captures the dynamic progression of patient conditions, playing a vital role in modern clinical decision support systems. However, real-world clinical data is highly heterogeneous and inconsistently formatted. Furthermore, existing machine learning tools often have steep learning curves and fragmented workflows. Consequently, a significant gap remains between cutting-edge AI technologies and clinical application. To address this, we introduce mtslearn, an end-to-end integrated toolkit specifically designed for medical time-series data. First, the framework provides a unified data interface that automates the parsing and alignment of wide, long, and flat data formats. This design significantly reduces data cleaning overhead. Building on this, mtslearn provides a complete pipeline from data reading and feature engineering to model training and result visualization. Furthermore, it offers flexible interfaces for custom algorithms. Through a modular design, mtslearn simplifies complex data engineering tasks into a few lines of code. This significantly lowers the barrier to entry for clinicians with limited programming experience, empowering them to focus more on exploring medical hypotheses and accelerating the translation of advanced algorithms into real-world clinical practice. mtslearn is publicly available at https://github.com/PKUDigitalHealth/mtslearn.

Figures & tables

Explore similar work

CardsList
  1. MedMamba: Multi-View State Space Models with Adaptive Graph Learning for Medical Time Series Classification

    May 24, 2026Da Zhang, Bingyu Li, Zhiyuan Zhao +3Graph Structure LearningSelective SSMs

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

    Jun 19, 2026Mingzhi Chen, Yiyu Gui, Guibo LuoTime Series ClassificationElectrocardiogram Classification

  3. DoctorAgents: an agentic framework to iteratively refine AutoML pipeline for small clinical temporal data

    Aug 5, 2026Ruilin Wang, Bo-Hong Wang, Elizabeth Kourbatski +6LLM Agent OrchestrationAutomated Machine Learning