metricas
Clínica e Investigación en Arteriosclerosis (English Edition) Comparative performance of machine learning vs classical formulas for LDL-choles...
Journal Information
Vol. 38. Issue 5.
(September - October 2026)
Cite
Cite
Share
Download PDF
More article options
Visits
258
Vol. 38. Issue 5.
(September - October 2026)
Original article

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

Rendimiento comparativo del aprendizaje automático frente a las fórmulas clásicas para el cálculo del colesterol LDL
Visits
258
Salomón Martín Péreza,
Corresponding author
salomon.martin.perez@gmail.com

Corresponding author.
, Remo Suppib, Teresa Arrobas Velillaa, Francisco de Borja Téllez Hernándeza, Antonio León-Justela,c,d,e,f
a Laboratory Medicine Department, Hospital Universitario Virgen Macarena, Spain
b Computer Architecture and Operating Systems Department, Universidad Autonoma de Barcelona (UAB), Spain
c Instituto Biomedicina Sevilla IBIs, Spain
d CSIC, Spain
e Universidad de Sevilla, Spain
f Universidad Loyola Andalucia, Spain
This item has received
Article information
Abstract
Full Text
Bibliography
Download PDF
Statistics
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 >400mg/dL.

Results

The dataset comprised 34,678 individuals with mean values: total cholesterol 204.6±73.36mg/dL, triglycerides 203.95±143.94mg/dL, HDL-C 51.83±18.45mg/dL, and LDL-C 120.38±62.29mg/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≥250mg/dL, with ML models maintaining R2>0.92 while classical formulas deteriorated significantly, particularly Friedewald (R2=0.34) at triglycerides>400mg/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.

Keywords:
Machine learning
LDL-cholesterol
Cardiovascular risk
Lipid profile
Clinical laboratory
Gradient boosting
Resumen
Introducción

El colesterol de lipoproteínas de baja densidad (c-LDL) es un factor de riesgo cardiovascular significativo, siendo su medición directa costosa y no disponible en la mayoría de los laboratorios clínicos. La fórmula de Friedewald (FD), a pesar de su uso generalizado desde 1972, presenta limitaciones particularmente en niveles altos de triglicéridos y concentraciones bajas de c-LDL. Las técnicas de aprendizaje automático (ML) ofrecen alternativas prometedoras para la estimación precisa del c-LDL, superando potencialmente las limitaciones de las fórmulas tradicionales mediante el reconocimiento de patrones complejos en los datos del perfil lipídico.

Material y métodos

Este estudio retrospectivo analizó 34.678 perfiles lipídicos de pacientes mayores de 18 años que acudieron al Hospital Universitario Virgen Macarena, Sevilla (enero 2021-diciembre 2022). Se obtuvo la aprobación del estudio por el Comité de Ética (CEI HVM-VR_03/2024). Todos los parámetros lipídicos (colesterol total, triglicéridos, c-HDL, c-LDL) se midieron utilizando el analizador Cobas 6000. Se desarrollaron 22 modelos de aprendizaje automático utilizando la librería PyCaret de Python con división 80/20 entrenamiento-prueba. Los modelos incluyeron Regresión Lineal, Random Forest, XGBoost, LightGBM y Gradient Boosting, entre otros. El rendimiento se evaluó utilizando el coeficiente de determinación (R2), error absoluto medio (MAE) y error cuadrático medio (RMSE). Se analizaron cuatro subgrupos de triglicéridos: <150, 150-250, 250-400 y >400mg/dL.

Resultados

El conjunto de datos comprendió 34.678 individuos con valores medios: colesterol total 204,6±73,36mg/dL, triglicéridos 203,95±143,94mg/dL, c-HDL 51,83±18,45mg/dL y c-LDL 120,38±62,29mg/dL. LightGBM alcanzó el mayor rendimiento (R2=0,965, RMSE=11,35, MAE=7,99), seguido por Gradient Boosting (R2=0,962, RMSE=11,89, MAE=7,87) y XGBoost (R2=0,958, RMSE=12,49, MAE=8,3). Las fórmulas tradicionales mostraron rendimiento inferior: Martin-Hopkins (R2=0,951, RMSE=13,82, MAE=9,3) y Friedewald (R2=0,926, RMSE=16,92, MAE=11,97). Las diferencias de rendimiento se hicieron más evidentes en niveles de triglicéridos ≥ 250mg/dL, con los modelos de ML manteniendo R2> 0,92 mientras que las fórmulas clásicas se deterioraron significativamente, particularmente Friedewald (R2=0,34) con triglicéridos> 400mg/dL.

Conclusiones

Los modelos de aprendizaje automático, particularmente los algoritmos de boosting (LightGBM, Gradient Boosting, XGBoost), superaron significativamente a las fórmulas tradicionales de cálculo del c-LDL en todos los rangos de triglicéridos. Estos enfoques basados en IA demostraron precisión y robustez superiores, especialmente en escenarios clínicos desafiantes con triglicéridos elevados donde las fórmulas convencionales fallan. La implementación de modelos de ML en laboratorios clínicos podría proporcionar estimaciones más confiables del c-LDL, contribuyendo a una mejor estratificación del riesgo cardiovascular y manejo de pacientes. Este avance tecnológico representa una transformación prometedora en la metodología de la medicina de laboratorio.

Palabras clave:
Aprendizaje automático
Colesterol de lipoproteínas de baja densidad
Riesgo cardiovascular
Perfil lipídico
Laboratorio clínico
Gradient boosting

Article

These are the options to access the full texts of the publication Clínica e Investigación en Arteriosclerosis (English Edition)
Subscriber
Subscriber

If you already have your login data, please click here .

If you have forgotten your password you can you can recover it by clicking here and selecting the option “I have forgotten my password”
Purchase
Purchase article

Purchasing article the PDF version will be downloaded

Purchase now
Contact
Phone for subscriptions and reporting of errors
From Monday to Friday from 9 a.m. to 6 p.m. (GMT + 1) except for the months of July and August which will be from 9 a.m. to 3 p.m.
Calls from Spain
932 415 960
Calls from outside Spain
+34 932 415 960
E-mail
References
[1]
S.M. Grundy, N.J. Stone, A.L. Bailey, C. Beam, K.K. Birtcher, R.S. Blumenthal, et al.
2018 AHA/ACC/AACVPR/AAPA/ABC/ACPM/ADA/AGS/APhA/ASPC/NLA/PCNA guideline on the management of blood cholesterol: executive summary: a report of the American College of Cardiology/American Heart Association Task Force on Clinical Practice Guidelines.
J Am Coll Cardiol, 73 (2019), pp. 3168-3209
[2]
B.A. Ference, H.N. Ginsberg, I. Graham, K.K. Ray, C.J. Packard, E. Bruckert, et al.
Low-density lipoproteins cause atherosclerotic cardiovascular disease. 1. Evidence from genetic, epidemiologic, and clinical studies. A consensus statement from the European Atherosclerosis Society Consensus Panel.
Eur Heart J, 38 (2017), pp. 2459-2472
[3]
M. Chung, A.H. Lichtenstein, S. Ip, J. Lau, E.M. Balk.
Comparability of methods for LDL subfraction determination: a systematic review.
Atherosclerosis, 205 (2009), pp. 342-348
[4]
Tietz textbook of clinical chemistry and molecular diagnosis, 5th ed.,
[5]
F. Mach, C. Baigent, A.L. Catapano, K.C. Koskinas, M. Casula, L. Badimon, et al.
2019 ESC/EAS Guidelines for the management of dyslipidaemias: lipid modification to reduce cardiovascular risk.
Eur Heart J, 41 (2020), pp. 111-188
[6]
F.L.J. Visseren, F. Mach, Y.M. Smulders, C. David, K.C. Koskinas, M. Bäck, et al.
Guía ESC 2021 sobre la prevención de la enfermedad cardiovascular.
Rev Esp Cardiol, 75 (2022), pp. 364-369
[7]
W.T. Friedewald, R.I. Levy, D.S. Fredrickson.
Estimation of the concentration of low-density lipoprotein cholesterol in plasma, without use of the preparative ultracentrifuge.
Clin Chem, 18 (1972), pp. 499-502
[8]
W. Shuaib, J.L. Costa.
Anatomy of success: 100 most cited articles in diabetes research.
Ther Adv Endocrinol Metab, 6 (2015), pp. 163-173
[9]
S.S. Kantha.
Random thoughts on the 100 most cited papers from 1925 to 2008.
Curr Sci, 109 (2015), pp. 1545-1548
[10]
N.J. Stone, J.G. Robinson, A.H. Lichtenstein, C.N. Bairey Merz, C.B. Blum, R.H. Eckel, et al.
2013 ACC/AHA guideline on the treatment of blood cholesterol to reduce atherosclerotic cardiovascular risk in adults: a report of the American College of Cardiology/American Heart Association Task Force on Practice Guidelines.
[11]
M.R. Langlois, M.J. Chapman, C. Cobbaert, S. Mora, A.T. Remaley, E. Ros, et al.
Quantifying atherogenic lipoproteins: current and future challenges in the era of personalized medicine and very low concentrations of ldl cholesterol. a consensus statement from EAS and EFLM.
Clin Chem, 64 (2018), pp. 1006-1033
[12]
M. Nauck, G.R. Warnick, N. Rifai.
Methods for measurement of LDL-cholesterol: a critical assessment of direct measurement by homogeneous assays versus calculation.
Clin Chem, 48 (2002), pp. 236-254
[13]
S.S. Martin, M.J. Blaha, M.B. Elshazly, E.A. Brinton, P.P. Toth, J.W. McEvoy, et al.
Friedewald-estimated versus directly measured low-density lipoprotein cholesterol and treatment implications.
J Am Coll Cardiol, 62 (2013), pp. 732-739
[14]
S.S. Martin, M.J. Blaha, M.B. Elshazly, P.P. Toth, P.O. Kwiterovich, R.S. Blumenthal, et al.
Comparison of a novel method vs the Friedewald equation for estimating low-density lipoprotein cholesterol levels from the standard lipid profile.
JAMA, 310 (2013), pp. 2061-2068
[15]
M. Sampson, C. Ling, Q. Sun, R. Harb, M. Ashmaig, R. Warnick, et al.
A new equation for calculation of low-density lipoprotein cholesterol in patients with normolipidemia and/or hypertriglyceridemia.
JAMA Cardiol, 5 (2020), pp. 540-548
[16]
A. Padoan, M. Plebani.
Flowing through laboratory clinical data: the role of artificial intelligence and big data.
Clin Chem Lab Med, 60 (2022), pp. 1875-1880
[17]
Z. Obermeyer, E.J. Emanuel.
Predicting the future – big data, machine learning, and clinical medicine.
N Engl J Med, 375 (2016), pp. 1216-1219
[18]
K.Y. Ngiam, I.W. Khor.
Big data and machine learning algorithms for health-care delivery.
Lancet Oncol, 20 (2019), pp. e262-e273
[19]
F. Jiang, Y. Jiang, H. Zhi, Y. Dong, H. Li, S. Ma, et al.
Artificial intelligence in healthcare: past, present and future.
Stroke Vasc Neurol, 2 (2017), pp. 230-243
[20]
A. Padoan, M. Plebani.
Artificial intelligence: is it the right time for clinical laboratories?.
Clin Chem Lab Med, 60 (2022), pp. 1859-1861
[21]
D.C.J. Goff, D.M. Lloyd-Jones, G. Bennett, S. Coady, R.B. D’Agostino, R. Gibbons, et al.
2013 ACC/AHA guideline on the assessment of cardiovascular risk: a report of the American College of Cardiology/American Heart Association Task Force on Practice Guidelines.
Circulation, 129 (2014), pp. S49-S73
[22]
S. Ranka, M. Reddy, A. Noheria.
Artificial intelligence in cardiovascular medicine.
Curr Opin Cardiol, 36 (2021), pp. 26-35
[23]
E.J. Topol.
High-performance medicine: the convergence of human and artificial intelligence.
[24]
P. Krishnaveni, V.M. Gowda.
Assessing the validity of Friedewald's formula and Anandraja's formula for serum LDL-cholesterol calculation.
J Clin Diagn Res, 9 (2015),
[25]
J.H. Rim, Y.-H. Lee, M.H. Lee, H.Y. Kim, J. Choi, B.-W. Lee, et al.
Comparison and validation of 10 equations including a novel method for estimation of LDL-cholesterol in a 168,212 Asian population.
Medicine (Baltimore), 95 (2016),
[26]
A. Vargas-Vázquez, O.Y. Bello-Chavolla, N.E. Antonio-Villa, R. Mehta, I. Cruz-Bautista, C.A. Aguilar-Salinas.
Lipids Health Dis, 20 (2021), pp. 46
[27]
Y. Hattori, M. Suzuki, M. Tsushima, M. Yoshida, Y. Tokunaga, Y. Wang, et al.
Development of approximate formula for LDL-chol, LDL-apo B and LDL-chol/LDL-apo B as indices of hyperapobetalipoproteinemia and small dense LDL.
Atherosclerosis, 138 (1998), pp. 289-299
[28]
W. Puavilai, D. Laoragpongse.
Is calculated LDL-C by using the new modified Friedewald equation better than the standard Friedewald equation?.
J Med Assoc Thai, 87 (2004), pp. 589-593
[29]
S. Anandaraja, R. Narang, R. Godeswar, R. Laksmy, K.K. Talwar.
Low-density lipoprotein cholesterol estimation by a new formula in Indian population.
Int J Cardiol, 102 (2005), pp. 117-120
[30]
P. Dansethakul, L. Thapanathamchai, S. Saichanma, A. Worachartcheewan, P. Pidetcha.
Determining a new formula for calculating low-density lipoprotein cholesterol: data mining approach.
EXCLI J, 14 (2015), pp. 478-483
[31]
I.M. Saldaña Orejón, M.Á. Benites Ricra, J.A. Chipana Huallpa.
Derivación y validación de una ecuación para estimar el colesterol ligado a lipoproteínas de baja densidad en una población de Lima, Perú.
An la Fac Med, 78 (2017), pp. 41
[32]
C. Tsigalou, M. Panopoulou, C. Papadopoulos, A. Karvelas, D. Tsairidis, K. Anagnostopoulos.
Estimation of low-density lipoprotein cholesterol by machine learning methods.
Clin Chim Acta, 517 (2021), pp. 108-116
[33]
G. Fan, S. Zhang, Q. Wu, Y. Song, A. Jia, D. Li, et al.
A machine learning-based approach for low-density lipoprotein cholesterol calculation using age, and lipid parameters.
Clin Chim Acta, 535 (2022), pp. 53-60
[34]
S. Kumari, A.S. Rajasimman, S. Nayak, P. Priyadarsini.
Machine learning predictive models of LDL-C in the population of eastern India and its comparison with directly measured and calculated LDL-C.
Ann Clin Biochem, 59 (2022), pp. 76-86
[35]
V. Barakett-Hamade, J.P. Ghayad, G. Mchantaf, G. Sleilaty.
Is machine learning-derived low-density lipoprotein cholesterol estimation more reliable than standard closed form equations? Insights from a laboratory database by comparison with a direct homogeneous assay.
Clin Chim Acta, 519 (2021), pp. 220-226
asdasdasd
Article options
Tools