[Paper Review] Predicting Diabetes Disease Evolution Using Financial Records and Recurrent Neural Networks
This paper proposes a self-attentive recurrent neural network that leverages standardized financial records (TUSS codes) from Brazilian health plans to predict diabetes complications up to 240 days in advance, achieving an AUC of 0.81–0.94, demonstrating that financial data can serve as a viable proxy for clinical risk prediction in resource-constrained settings.
Managing patients with chronic diseases is a major and growing healthcare challenge in several countries. A chronic condition, such as diabetes, is an illness that lasts a long time and does not go away, and often leads to the patient's health gradually getting worse. While recent works involve raw electronic health record (EHR) from hospitals, this work uses only financial records from health plan providers (medical claims) to predict diabetes disease evolution with a self-attentive recurrent neural network. The use of financial data is due to the possibility of being an interface to international standards, as the records standard encodes medical procedures. The main goal was to assess high risk diabetics, so we predict records related to diabetes acute complications such as amputations and debridements, revascularization and hemodialysis. Our work succeeds to anticipate complications between 60 to 240 days with an area under ROC curve ranging from 0.81 to 0.94. In this paper we describe the first half of a work-in-progress developed within a health plan provider with ROC curve ranging from 0.81 to 0.83. This assessment will give healthcare providers the chance to intervene earlier and head off hospitalizations. We are aiming to deliver personalized predictions and personalized recommendations to individual patients, with the goal of improving outcomes and reducing costs
Motivation & Objective
- To develop a machine learning model that predicts diabetes disease progression using only financial records, avoiding reliance on clinical EHRs.
- To assess high-risk diabetic patients by predicting acute complications such as amputations, revascularization, and hemodialysis.
- To overcome data sparsity and heterogeneity in developing countries by using standardized financial codes (TUSS) as a proxy for clinical data.
- To improve early detection of complications through sequence modeling and self-attention mechanisms, enabling proactive healthcare interventions.
- To validate the model’s performance across varying prediction windows (60–240 days) and demonstrate its potential for integration into patient monitoring programs.
Proposed method
- Utilized financial records from a Brazilian health plan provider, encoded using the TUSS standard, which maps to international medical terminology (e.g., CPT, SNOMED-CT).
- Preprocessed data by filtering individuals with at least two HbA1c tests within a year to identify potential diabetics, resulting in ~100,000 candidates.
- Constructed input sequences of up to 500 financial events (e.g., procedures, medications) with a minimum of 40 records to ensure data sufficiency.
- Applied a self-attentive long short-term memory (LSTM) network to model temporal dependencies and highlight salient events in the sequence.
- Used date embeddings to improve temporal modeling, enhancing performance to an AUC of 0.94 in a subset of experiments.
- Employed 5-fold cross-validation with class oversampling to address class imbalance, given the low prevalence of complications (~1900 positive cases).
Experimental results
Research questions
- RQ1Can financial records alone, without clinical EHRs, be used to predict diabetes complications with clinically meaningful accuracy?
- RQ2How effective is a self-attentive RNN in identifying high-risk diabetic patients from sparse, financial transaction data?
- RQ3What is the predictive performance of the model across different time windows (60 to 240 days before complications)?
- RQ4How does the inclusion of date embeddings improve the model’s ability to capture temporal patterns in disease progression?
- RQ5To what extent can this approach reduce false positives and support early intervention in real-world healthcare systems?
Key findings
- The self-attentive LSTM model achieved an average AUC of 0.82 across 60–240 day prediction windows, significantly outperforming standard LSTM (AUC ~0.72).
- The model achieved an AUC of up to 0.94 when using a novel date embedding technique, indicating strong potential for improved temporal modeling.
- Performance slightly decreased with longer prediction windows (240 days), likely due to data sparsity and reduced signal in long-term sequences.
- Attention maps revealed that the model focuses on clinically relevant events (e.g., angioplasty, emergency visits) preceding complications, supporting interpretability.
- Despite high AUC, precision-recall curves indicate challenges in minimizing false positives, likely due to the absence of lab results and clinical outcomes in financial data.
- The method successfully identified high-risk patients up to 240 days in advance, enabling potential integration into monitoring programs for early intervention.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.