A deep attention-based encoder for the prediction of type 2 diabetes longitudinal outcomes from routinely collected health care data

Recent evidence indicates that Type 2 Diabetes Mellitus (T2DM) is a complex and highly heterogeneous disease involving various pathophysiological and genetic pathways, which presents clinicians with challenges in disease management. While deep learning models have made significant progress in helping practitioners manage T2DM treatments, several important limitations persist. In this paper we propose DARE, a model based on the transformer encoder, designed for analyzing longitudinal heterogeneous diabetes data. The model can be easily fine-tuned for various clinical prediction tasks, enabling a computational approach to assist clinicians in the management of the disease. We trained DARE using data from over 200,000 diabetic subjects from the primary healthcare SIDIAP database, which includes diagnosis and drug codes, along with various clinical and analytical measurements. After an unsupervised pre-training phase, we fine-tuned the model for predicting three specific clinical outcomes: i) occurrence of comorbidity, ii) achievement of target glycemic control (defined as glycated hemoglobin < 7 % ) and iii) changes in glucose-lowering treatment. In cross-validation, the embedding vectors generated by DARE outperformed those from baseline models (comorbidities prediction task A U C = 0 . 88 , treatment prediction task A U C = 0 . 91 , HbA1c target prediction task A U C = 0 . 82 ). Our findings suggest that attention-based encoders improve results with respect to different deep learning and classical baseline models when used to predict different clinical relevant outcomes from T2DM longitudinal data. • Deep learning shows promise in managing T2DM and predicting its progression • We developed DARE, a transformer model for analyzing T2DM longitudinal records • DARE was trained on data from 200K diabetic patients spanning a 5-year period • DARE forecasts treatment changes, HbA1c targets, and diabetes comorbidities.

Authors

Institutions

Publication Details

Journal
Expert Systems with Applications
Published
2025-02-20
DOI
https://doi.org/10.1016/j.eswa.2025.126876
Citations
4
Primary Topic
Machine Learning in Healthcare
Type
article
Field-Weighted Citation Impact
9.92
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A deep attention-based encoder for the prediction of type 2 diabetes longitudinal outcomes from routinely collected health care data

Ana Génova, Dı́dac Mauricio, Josep Franch‐Nadal, Emmanuel Andrès et al.
4 citations
Expert Systems with Applications
Machine Learning in Healthcare
9.92
article

A deep attention-based encoder for the prediction of type 2 diabetes longitudinal outcomes from routinely collected health care data

Ana Génova, Dı́dac Mauricio, Josep Franch‐Nadal, Emmanuel Andrès, Bogdan Vlacho, Alexandre Perera-Lluna, Enrico Manzini, Israel Pizarro, Joan Escudero, Elisenda Reixach
article en
4 citations

Abstract

Recent evidence indicates that Type 2 Diabetes Mellitus (T2DM) is a complex and highly heterogeneous disease involving various pathophysiological and genetic pathways, which presents clinicians with challenges in disease management. While deep learning models have made significant progress in helping practitioners manage T2DM treatments, several important limitations persist. In this paper we propose DARE, a model based on the transformer encoder, designed for analyzing longitudinal heterogeneous diabetes data. The model can be easily fine-tuned for various clinical prediction tasks, enabling a computational approach to assist clinicians in the management of the disease. We trained DARE using data from over 200,000 diabetic subjects from the primary healthcare SIDIAP database, which includes diagnosis and drug codes, along with various clinical and analytical measurements. After an unsupervised pre-training phase, we fine-tuned the model for predicting three specific clinical outcomes: i) occurrence of comorbidity, ii) achievement of target glycemic control (defined as glycated hemoglobin < 7 % ) and iii) changes in glucose-lowering treatment. In cross-validation, the embedding vectors generated by DARE outperformed those from baseline models (comorbidities prediction task A U C = 0 . 88 , treatment prediction task A U C = 0 . 91 , HbA1c target prediction task A U C = 0 . 82 ). Our findings suggest that attention-based encoders improve results with respect to different deep learning and classical baseline models when used to predict different clinical relevant outcomes from T2DM longitudinal data. • Deep learning shows promise in managing T2DM and predicting its progression • We developed DARE, a transformer model for analyzing T2DM longitudinal records • DARE was trained on data from 200K diabetic patients spanning a 5-year period • DARE forecasts treatment changes, HbA1c targets, and diabetes comorbidities.

Expert Systems with ApplicationsVol. 274
Universitat de Vic - Universitat Central de Catalunya (ES), Generalitat de Catalunya (ES), Instituto de Salud Carlos III (ES), Hospital de Sant Pau (ES), Centro de Investigación Biomédica en Red Diabetes y Enfermedades Metabólicas Asociadas (ES), Departament de Salut (ES), Biomedical Research Networking Center in Bioengineering, Biomaterials and Nanomedicine (ES), Madrid Health Service (ES), Sant Joan de Déu Research Foundation (ES), Institut Universitari d'Investigació en Atenció Primària Jordi Gol (ES), Novo Nordisk (Mexico) (MX), Institut Català de la Salut (ES), Institut de Recerca Sant Joan de Déu, Universitat Politècnica de Catalunya (ES)
Openalex Percentile: Top 3%
Machine Learning in Healthcare
9.92
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.