arXiv:2608.24328cs.LGAug 2026

Manuscript Offprint

arXiv:2608.24328

A Structural FHMM for Interpretable Disease Trajectories in T2DM

Alessandro Mari, Ekaterina Krymova, Guillaume Obozinski, Maria Luisa Marques de Sa Faquetti, Adrian Martinez de la Torre, Andrea Burden

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Abstract

In this work, we propose a structural variant of the Factorial Hidden Markov Model (FHMM) for the analysis of disease trajectories in patients with Type 2 diabetes mellitus (T2DM). The model represents a patient's latent health state as a combination of multiple independent, simultaneously evolving components, associated with comorbidities and lab results. This structured latent representation facilitates the identification of clinically meaningful patient states and clustering of common disease trajectories. We evaluate the proposed approach using The IQVIA Medical Research Data incorporating data from THIN, a Cegedim database of anonymized electronic health records (EHR), identifying patients with a first-ever prescription for a non-insulin antidiabetic drug (NIAD) between January 2006 and December 2019. The model identifies multiple clinically coherent latent components corresponding to known patterns of diabetes-related complications and reveals heterogeneous progression pathways, including distinct microvascular-dominant and multi-organ trajectories associated with elevated comorbidity burden and mortality. These results demonstrate that the proposed framework captures meaningful longitudinal structure in EHR data and provides interpretable insights into the evolution of T2DM and its comorbidities.

1 Background

Type 2 diabetes mellitus (T2DM) is a chronic metabolic disorder characterized by elevated blood glucose levels resulting from insulin resistance and inadequate insulin secretion. It represents a major global health concern and is frequently accompanied by a range of comorbidities, which substantially worsen quality of life and increase the risk of morbidity and mortality [1]. The presence and progression of such comorbidities contribute to the heterogeneity of T2DM trajectories, making disease management and risk stratification particularly challenging. The inference of a patient's underlying health state from longitudinal clinical observations, together with information on T2DM and its associated comorbidities, can support the identification of disease progression patterns and emerging health risks. Leveraging retrospective electronic health records (EHRs) to characterize these evolving health states offers the potential to improve disease understanding, stratify patients into clinically meaningful subgroups, and inform timely interventions.

In this study, we analyze longitudinal observations from EHRs associated with T2DM and multiple comorbidities in order to infer patients' latent health states and characterize common patterns of disease evolution. To this end, we propose a statistical model designed to capture the multi-dimensional and dynamic nature of patient health, with a particular focus on interpretability of the latent representation and its clinical relevance.

Specifically, we consider a structural variant of the Factorial Hidden Markov Model (FHMM) [2], which enables modeling the dynamics of a multi-dimensional patient health state through several independent latent components evolving simultaneously over time. Given longitudinal clinical observations, the proposed model infers the latent configuration of these components, providing a structured representation of disease progression and associated health risks. In contrast to a standard Hidden Markov Model (HMM), which represents patient health using a single latent state, the FHMM framework allows the patient's overall condition to be approximated as a combination of a small number of evolving latent processes. This structure increases modeling flexibility and facilitates interpretation, as individual latent chains can be associated with distinct aspects of disease evolution or comorbidity burden.

By using retrospective information on patients’ health indicators and disease history, the proposed model enables the identification of clinically meaningful latent states and the analysis of transitions between them. The resulting latent trajectories can be used to cluster patients according to common progression patterns, characterize typical disease pathways, and assess the evolution of comorbidity-related risks over time.

Related work. Tracking and modeling comorbidities from longitudinal health observations in patients with T2DM is crucial for understanding disease heterogeneity and supporting effective disease management. A wide range of statistical and machine learning approaches have been proposed to analyze large-scale health data and uncover temporal patterns associated with disease progression and risk. HMM and their generalizations are among the most widely used probabilistic approaches for modeling disease dynamics in healthcare applications [3, 4, 5, 6]. Extensions such as mixtures of Input–Output Hidden Markov Models have been proposed to capture more complex temporal dependencies [7]. Nonparametric latent feature models, including approaches based on the Indian Buffet Process, have also been explored for comorbidity analysis, particularly in the context of psychiatric disorders [8].

More recently, deep generative models have been applied to longitudinal clinical data. In [9], the authors propose a variational autoencoder-based framework to learn latent representations that jointly generate clinical measurements and medical concepts. While effective, their approach requires manual assignment of latent dimensions to specific medical concepts. In contrast, our model automatically learns a structured factorization of the latent space by construction. Moreover, the latent representation in our approach is discrete and subject to monotonicity constraints, which enhances interpretability and facilitates the analysis of disease trajectories.

Methods addressing the joint evolution of multiple diseases have also been proposed. For example, [10] introduces a bivariate copula-based hidden process to model the interaction between two diseases using population-level time series. In the context of T2DM, machine learning approaches have been applied to model disease progression [11], while clustering-based analyses have been used to study patterns of comorbidities [12]. Our work complements these approaches by providing a structured, interpretable latent-state model adapted to the analysis of complex, multi-comorbidity disease trajectories.

References (29)