Skip to main content

ORIGINAL RESEARCH article

Front. Endocrinol.

Sec. Thyroid Endocrinology

Volume 16 - 2025 | doi: 10.3389/fendo.2025.1415206

Developing a machine learning-based predictive model for Levothyroxine dosage estimation in hypothyroid patients: a retrospective study

Provisionally accepted
Ngan Thi Tran Ngan Thi Tran 1Tra Huong Dang Tra Huong Dang 1Mai Thi Quynh Ngo Mai Thi Quynh Ngo 1Dung Van Hoang Dung Van Hoang 2Nguyen Van Khai Nguyen Van Khai 3Linh Pham Van Linh Pham Van 4Phuong Nguyen Phuong Nguyen 1*
  • 1 Faculty of Pharmacy, Hai Phong University of Medicine and Pharmacy, Haiphong, Vietnam
  • 2 Department of Internal Medicine, Hai Phong International Hospital, Hai Phong, Red River Delta, Vietnam
  • 3 Faculty of Public Health, Hai Phong University of Medicine and Pharmacy, Hai Phong, Red River Delta, Vietnam
  • 4 Department of Pathology and Immunology, Hai Phong University of Medicine and Pharmacy, Haiphong, Vietnam

The final, formatted version of the article will be published soon.

    Hypothyroidism, a common endocrine disorder, has a high incidence in women and increases with age. Levothyroxine (LT4) is the standard therapy; however, achieving clinical and biochemical euthyroidism is challenging. Therefore, developing an accurate model for predicting LT4 dosage is crucial. This retrospective study aimed to identify factors affecting the daily dose of LT4 and develop a model to estimate the dose of LT4 in hypothyroidism from a cohort of 1,864 patients through a comprehensive analysis of electronic medical records. Univariate analysis was conducted to explore the relationships between clinical and non-clinical variables, including weight, sex, age, body mass index, diastolic blood pressure, comorbidities, food effects, drug-drug interactions, liver function, serum albumin and TSH levels. Among the models tested, the Extra Trees Regressor (ETR) demonstrated the highest predictive accuracy, achieving an R² of 87.37% and the lowest mean absolute error of 9.4 mcg (95% CI: 7.7-11.2) in the test set. Other ensemble models, including Random Forest and Gradient Boosting, also showed strong performance (R² > 80%). Feature importance analysis highlighted BMI (0.516 ± 0.015) as the most influential predictor, followed by comorbidities (0.120 ± 0.010) and age (0.080 ± 0.005). The findings underscore the potential of machine learning in refining LT4 dose estimation by incorporating diverse clinical factors beyond traditional weight-based approaches. The model provides a solid foundation for personalized LT4 dosing, which can enhance treatment precision and reduce the risk of under-or over-medication. Further validation in external cohorts is essential to confirm its clinical applicability.

    Keywords: Levothyroxine, Hypothyroidism, model estimation, endocrine, Retrospective study

    Received: 10 Apr 2024; Accepted: 20 Feb 2025.

    Copyright: © 2025 Tran, Dang, Ngo, Hoang, Khai, Pham Van and Nguyen. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

    * Correspondence: Phuong Nguyen, Faculty of Pharmacy, Hai Phong University of Medicine and Pharmacy, Haiphong, 10000, Vietnam

    Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.

    Research integrity at Frontiers

    Man ultramarathon runner in the mountains he trains at sunset

    94% of researchers rate our articles as excellent or good

    Learn more about the work of our research integrity team to safeguard the quality of each article we publish.


    Find out more