Comparative performance of machine learning vs classical formulas for LDL-cholesterol calculation

Salomón Martín Pérez, Remo Suppi, Teresa Arrobas Velilla, Francisco de Borja Téllez Hernández, Antonio León-Justel
{"title":"Comparative performance of machine learning vs classical formulas for LDL-cholesterol calculation","authors":"Salomón Martín Pérez,&nbsp;Remo Suppi,&nbsp;Teresa Arrobas Velilla,&nbsp;Francisco de Borja Téllez Hernández,&nbsp;Antonio León-Justel","doi":"10.1016/j.artere.2026.500887","DOIUrl":null,"url":null,"abstract":"<div><h3>Introduction</h3><div>Low-density lipoprotein cholesterol (LDL-C) is a significant cardiovascular risk factor, as direct measurement is expensive and often unavailable in most clinical laboratories. The Friedewald formula (FD), despite its widespread use since 1972, has notable limitations, especially at high triglyceride levels and low LDL-C concentrations. Machine learning (ML) techniques offer promising alternatives for accurate LDL-C estimation, potentially overcoming traditional formula limitations by leveraging complex pattern recognition in lipid profile data.</div></div><div><h3>Material and methods</h3><div>This retrospective study analyzed 34,678 lipid profiles from patients over 18 years attending Hospital Virgen Macarena, Seville (January 2021–December 2022). The study was approved by the Ethics Committee (CEI HVM-VR_03/2024). All lipid parameters (total cholesterol, triglycerides, HDL-C, LDL-C) were measured using Cobas 6000 analyzer. Twenty-two machine learning models were developed using Python's PyCaret library with 80/20 train-test split. Models included Linear Regression, Random Forest, XGBoost, LightGBM, and Gradient Boosting among others. Performance was evaluated using coefficient of determination (<em>R</em><sup>2</sup>), mean absolute error (MAE), and root mean square error (RMSE). Four triglyceride subgroups were analyzed: &lt;150, 150–250, 250–400, and &gt;400<!--> <!-->mg/dL.</div></div><div><h3>Results</h3><div>The dataset comprised 34,678 individuals with mean values: total cholesterol 204.6<!--> <!-->±<!--> <!-->73.36<!--> <!-->mg/dL, triglycerides 203.95<!--> <!-->±<!--> <!-->143.94<!--> <!-->mg/dL, HDL-C 51.83<!--> <!-->±<!--> <!-->18.45<!--> <!-->mg/dL, and LDL-C 120.38<!--> <!-->±<!--> <!-->62.29<!--> <!-->mg/dL. LightGBM achieved the highest performance (<em>R</em><sup>2</sup> <!-->=<!--> <!-->0.965, RMSE<!--> <!-->=<!--> <!-->11.35, MAE<!--> <!-->=<!--> <!-->7.99), followed by Gradient Boosting (<em>R</em><sup>2</sup> <!-->=<!--> <!-->0.962, RMSE<!--> <!-->=<!--> <!-->11.89, MAE<!--> <!-->=<!--> <!-->7.87) and XGBoost (<em>R</em><sup>2</sup> <!-->=<!--> <!-->0.958, RMSE<!--> <!-->=<!--> <!-->12.49, MAE<!--> <!-->=<!--> <!-->8.3). Traditional formulas showed inferior performance: Martin–Hopkins (<em>R</em><sup>2</sup> <!-->=<!--> <!-->0.951, RMSE<!--> <!-->=<!--> <!-->13.82, MAE<!--> <!-->=<!--> <!-->9.3) and Friedewald (<em>R</em><sup>2</sup> <!-->=<!--> <!-->0.926, RMSE<!--> <!-->=<!--> <!-->16.92, MAE<!--> <!-->=<!--> <!-->11.97). Performance differences were more pronounced at triglyceride levels<!--> <!-->≥<!--> <!-->250<!--> <!-->mg/dL, with ML models maintaining <em>R</em><sup>2</sup> <!-->&gt;<!--> <!-->0.92 while classical formulas deteriorated significantly, particularly Friedewald (<em>R</em><sup>2</sup> <!-->=<!--> <!-->0.34) at triglycerides<!--> <!-->&gt;<!--> <!-->400<!--> <!-->mg/dL.</div></div><div><h3>Conclusions</h3><div>Machine learning models, particularly boosting algorithms (LightGBM, Gradient Boosting, XGBoost), significantly outperformed traditional LDL-C calculation formulas across all triglyceride ranges. These AI-based approaches yielded superior accuracy and robustness, especially in challenging clinical scenarios with elevated triglycerides where conventional formulas fail. Implementation of ML models in clinical laboratories could provide more reliable LDL-C estimations, contributing to improved cardiovascular risk stratification and patient management. This technological advancement represents a promising transformation in laboratory medicine methodology.</div></div>","PeriodicalId":100263,"journal":{"name":"Clínica e Investigación en Arteriosclerosis (English Edition)","volume":"38 5","pages":"Article 500887"},"PeriodicalIF":0.0000,"publicationDate":"2026-09-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Clínica e Investigación en Arteriosclerosis (English Edition)","FirstCategoryId":"1085","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S2529912326000422","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2026/9/4 0:00:00","PubModel":"Epub","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Introduction

Low-density lipoprotein cholesterol (LDL-C) is a significant cardiovascular risk factor, as direct measurement is expensive and often unavailable in most clinical laboratories. The Friedewald formula (FD), despite its widespread use since 1972, has notable limitations, especially at high triglyceride levels and low LDL-C concentrations. Machine learning (ML) techniques offer promising alternatives for accurate LDL-C estimation, potentially overcoming traditional formula limitations by leveraging complex pattern recognition in lipid profile data.

Material and methods

This retrospective study analyzed 34,678 lipid profiles from patients over 18 years attending Hospital Virgen Macarena, Seville (January 2021–December 2022). The study was approved by the Ethics Committee (CEI HVM-VR_03/2024). All lipid parameters (total cholesterol, triglycerides, HDL-C, LDL-C) were measured using Cobas 6000 analyzer. Twenty-two machine learning models were developed using Python's PyCaret library with 80/20 train-test split. Models included Linear Regression, Random Forest, XGBoost, LightGBM, and Gradient Boosting among others. Performance was evaluated using coefficient of determination (R2), mean absolute error (MAE), and root mean square error (RMSE). Four triglyceride subgroups were analyzed: <150, 150–250, 250–400, and >400 mg/dL.

Results

The dataset comprised 34,678 individuals with mean values: total cholesterol 204.6 ± 73.36 mg/dL, triglycerides 203.95 ± 143.94 mg/dL, HDL-C 51.83 ± 18.45 mg/dL, and LDL-C 120.38 ± 62.29 mg/dL. LightGBM achieved the highest performance (R2 = 0.965, RMSE = 11.35, MAE = 7.99), followed by Gradient Boosting (R2 = 0.962, RMSE = 11.89, MAE = 7.87) and XGBoost (R2 = 0.958, RMSE = 12.49, MAE = 8.3). Traditional formulas showed inferior performance: Martin–Hopkins (R2 = 0.951, RMSE = 13.82, MAE = 9.3) and Friedewald (R2 = 0.926, RMSE = 16.92, MAE = 11.97). Performance differences were more pronounced at triglyceride levels ≥ 250 mg/dL, with ML models maintaining R2 > 0.92 while classical formulas deteriorated significantly, particularly Friedewald (R2 = 0.34) at triglycerides > 400 mg/dL.

Conclusions

Machine learning models, particularly boosting algorithms (LightGBM, Gradient Boosting, XGBoost), significantly outperformed traditional LDL-C calculation formulas across all triglyceride ranges. These AI-based approaches yielded superior accuracy and robustness, especially in challenging clinical scenarios with elevated triglycerides where conventional formulas fail. Implementation of ML models in clinical laboratories could provide more reliable LDL-C estimations, contributing to improved cardiovascular risk stratification and patient management. This technological advancement represents a promising transformation in laboratory medicine methodology.
机器学习与ldl -胆固醇计算经典公式的比较性能
低密度脂蛋白胆固醇(LDL-C)是一个重要的心血管危险因素,因为直接测量是昂贵的,而且在大多数临床实验室通常无法获得。弗里德瓦尔德公式(FD),尽管自1972年以来被广泛使用,但有明显的局限性,特别是在高甘油三酯水平和低LDL-C浓度时。机器学习(ML)技术为准确估计LDL-C提供了有希望的替代方法,通过利用脂质谱数据中的复杂模式识别,有可能克服传统公式的限制。材料和方法本回顾性研究分析了来自塞维利亚Virgen Macarena医院(2021年1月至2022年12月)18年以上患者的34,678例脂质谱。该研究已获得伦理委员会批准(CEI HVM-VR_03/2024)。所有脂质参数(总胆固醇、甘油三酯、HDL-C、LDL-C)均采用Cobas 6000分析仪测定。使用Python的PyCaret库以80/20训练-测试分割开发了22个机器学习模型。模型包括线性回归、随机森林、XGBoost、LightGBM和梯度增强等。使用决定系数(R2)、平均绝对误差(MAE)和均方根误差(RMSE)对性能进行评价。分析了四个甘油三酯亚组:150mg /dL、150 - 250mg /dL、250-400 mg/dL和400mg /dL。结果该数据集包括34,678名个体,平均值:总胆固醇204.6±73.36 mg/dL,甘油三酯203.95±143.94 mg/dL, HDL-C 51.83±18.45 mg/dL, LDL-C 120.38±62.29 mg/dL。LightGBM的效果最好(R2 = 0.965, RMSE = 11.35, MAE = 7.99),其次是Gradient Boosting (R2 = 0.962, RMSE = 11.89, MAE = 7.87)和XGBoost (R2 = 0.958, RMSE = 12.49, MAE = 8.3)。传统配方的疗效较差:Martin-Hopkins (R2 = 0.951, RMSE = 13.82, MAE = 9.3)和Friedewald (R2 = 0.926, RMSE = 16.92, MAE = 11.97)。当甘油三酯水平≥250 mg/dL时,性能差异更为明显,ML模型维持R2 >; 0.92,而经典公式显著恶化,特别是当甘油三酯水平为400 mg/dL时,Friedewald (R2 = 0.34)。在所有甘油三酯范围内,机器学习模型,特别是增强算法(LightGBM, Gradient boosting, XGBoost)显著优于传统的LDL-C计算公式。这些基于人工智能的方法产生了卓越的准确性和稳健性,特别是在具有挑战性的甘油三酯升高的临床场景中,传统的配方失败了。在临床实验室实施ML模型可以提供更可靠的LDL-C估计,有助于改善心血管风险分层和患者管理。这一技术进步代表了检验医学方法论的一个有希望的转变。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书