A machine learning-assisted system to predict thyrotoxicosis using patients' heart rate monitoring data: a retrospective cohort study

Sci Rep. 2023 Nov 30;13(1):21096. doi: 10.1038/s41598-023-48199-x.

Abstract

Previous studies have shown a correlation between resting heart rate (HR) measured by wearable devices and serum free thyroxine concentration in patients with thyroid dysfunction. We have developed a machine learning (ML)-assisted system that uses HR data collected from wearable devices to predict the occurrence of thyrotoxicosis in patients. HR monitoring data were collected using a wearable device for a period of 4 months in 175 patients with thyroid dysfunction. During this period, 3 or 4 thyroid function tests (TFTs) were performed on each patient at intervals of at least one month. The HR data collected during the 10 days prior to each TFT were paired with the corresponding TFT results, resulting in a total of 662 pairs of data. Our ML-assisted system predicted thyrotoxicosis of a patient at a given time point based on HR data and their HR-TFT data pair at another time point. Our ML-assisted system divided the 662 cases into either thyrotoxicosis and non-thyrotoxicosis and the performance was calculated based on the TFT results. The sensitivity, specificity, positive predictive value (PPV), and negative predictive value (NPV) of our system for predicting thyrotoxicosis were 86.14%, 85.92%, 52.41%, and 97.18%, respectively. When subclinical thyrotoxicosis was excluded from the analysis, the sensitivity, specificity, PPV, and NPV of our system for predicting thyrotoxicosis were 86.14%, 98.28%, 94.57%, and 95.32%, respectively. Our ML-assisted system used the change in mean, relative standard deviation, skewness, and kurtosis of HR while sleeping, and the Jensen-Shannon divergence of sleep HR and TFT distribution as major parameters for predicting thyrotoxicosis. Our ML-assisted system has demonstrated reasonably accurate predictions of thyrotoxicosis in patients with thyroid dysfunction, and the accuracy could be further improved by gathering more data. This predictive system has the potential to monitor the thyroid function status of patients with thyroid dysfunction by collecting heart rate data, and to determine the optimal timing for blood tests and treatment intervention.

MeSH terms

  • Heart Rate Determination
  • Humans
  • Retrospective Studies
  • Thyroid Diseases*
  • Thyroid Function Tests
  • Thyrotoxicosis* / diagnosis
  • Thyrotoxicosis* / drug therapy
  • Thyrotropin
  • Thyroxine

Substances

  • Thyrotropin
  • Thyroxine