4TaStiC: Time and trend traveling time series clustering for classifying long-term type 2 diabetes patients
Onthada Preedasawakul, Nathakhun Wiroonsri
TL;DR
This paper tackles clustering of long-term HbA1c time series in type 2 diabetes patients despite irregular visit timings and evolving patterns. It introduces 4TaStiC, a dissimilarity measure that jointly performs time traveling and trend traveling by optimizing over time shifts up to $L$ and tilt angles in $E$, blending $d_{weu}$ and Pearson correlation with a tunable weight $\alpha$. The method, implemented in the FourTaStiC R package, is evaluated against seven baselines on artificial data and applied to 1,989 Siriraj diabetes patients, yielding clinically meaningful seven groups with distinct HbA1c trajectories and complication profiles. The approach advances patient stratification for personalized care and has potential applicability beyond healthcare to any domain with pattern-driven time series data.
Abstract
Diabetes is one of the most prevalent diseases worldwide, characterized by persistently high blood sugar levels, capable of damaging various internal organs and systems. Diabetes patients require routine check-ups, resulting in a time series of laboratory records, such as hemoglobin A1c, which reflects each patient's health behavior over time and informs their doctor's recommendations. Clustering patients into groups based on their entire time series data assists doctors in making recommendations and choosing treatments without the need to review all records. However, time series clustering of this type of dataset introduces some challenges; patients visit their doctors at different time points, making it difficult to capture and match trends, peaks, and patterns. Additionally, two aspects must be considered: differences in the levels of laboratory results and differences in trends and patterns. To address these challenges, we introduce a new clustering algorithm called Time and Trend Traveling Time Series Clustering (4TaStiC), using a base dissimilarity measure combined with Euclidean and Pearson correlation metrics. We evaluated this algorithm on artificial datasets, comparing its performance with that of seven existing methods. The results show that 4TaStiC outperformed the other methods on the targeted datasets. Finally, we applied 4TaStiC to cluster a cohort of 1,989 type 2 diabetes patients at Siriraj Hospital. Each group of patients exhibits clear characteristics that will benefit doctors in making efficient clinical decisions. Furthermore, the proposed algorithm can be applied to contexts outside the medical field.
