Machine learning spots obesity in insurance and health records better than diagnosis codes
Study title: Real-World Identification of Obesity: Development and Internal Validation of a Machine Learning Algorithm
Researchers built machine learning models using a decision tree method called XGBoost to find people with a body mass index of 30 or higher in US commercial and Medicare Advantage claims and health record data. The data covered January 2022 to September 2024 and were enriched with social drivers of health information.
Read the study abstract
To develop and internally validate machine learning (ML) models to retrospectively identify people with obesity (PwO) (body mass index [BMI] ≥ 30 kg/m2) using administrative claims and electronic health record (EHR) data. This study used US commercial and Medicare Advantage claims and EHR data from the Healthcare Integrated Research Database (HIRD) enriched with clinical, laboratory and social drivers of health data from the American Community Survey and Food Access Research Atlas between 1 January 2022 and 30 S…

In brief
Better retrospective identification of obesity could support population-level assessments of disease burden, healthcare use, costs and outcomes. The study reports only internal validation, so how well the model performs in other datasets or settings is not shown.
Main points
- The study analyzed 1,728,010 people, of whom 706,992 (40.9%) had obesity.
- Among those with obesity, 21.5% were Class 1, 10.9% Class 2 and 8.5% Class 3.
- The best collapsed categorical model reached an F1 score of 0.797 against 0.716 for diagnosis codes alone.
- Data came from the Healthcare Integrated Research Database, plus the American Community Survey and Food Access Research Atlas.
The gain
A machine learning model identified people with obesity in claims and health record data more accurately (F1 0.797) than relying on BMI diagnosis codes alone (F1 0.716).
The rundown
The team used US commercial and Medicare Advantage claims and electronic health record data from the Healthcare Integrated Research Database, covering 1 January 2022 to 30 September 2024. They added clinical, laboratory and social drivers of health data.
Models were built with Extreme Gradient Boosting. A random 30% of individuals and their observed BMIs were held out for testing, while the other 70% were used for training and validation.
Performance was judged by area under the precision-recall curve, F1 score, sensitivity, specificity, positive predictive value and accuracy. The F1 score was the basis for comparing the models with BMI diagnosis codes alone.
Sources
- Peer-reviewedDiabetes, Obesity and Metabolism2026-10-25
ace
The debate