Application of machine learning models in predicting insomnia severity: an integrative approach with constitution of traditional Chinese medicine

Front Med (Lausanne). 2023 Oct 19:10:1292761. doi: 10.3389/fmed.2023.1292761. eCollection 2023.

Abstract

Objective: This study sought to explore the utility of machine learning models in predicting insomnia severity based on Traditional Chinese Medicine (TCM) constitution classifications, with an aim to discuss the potential applications of such models in the treatment and prevention of insomnia.

Methods: We analyzed a dataset of 165 insomnia patients from the Shanghai Minhang District Integrated Traditional Chinese and Western Medicine Hospital. TCM constitution was assessed using a standardized Constitution in Chinese Medicine (CCM) scale. Sleep quality, or insomnia severity, was evaluated using the Spiegel Sleep Questionnaire (SSQ). Machine learning models, including Random Forest Classifier (RFC), Support Vector Classifier (SVC), and K-Nearest Neighbors (KNN), were utilized. These models were optimized using Grid Search algorithm and were trained and tested on stratified patient data, with the TCM constitution classifications serving as primary predictors.

Results: The RFC outperformed others, achieving a weighted average accuracy, precision, recall, and F1-score of 0.91, 0.94, 0.92, and 0.92 respectively, it also effectively classified the severity of insomnia with high area under receiver operating characteristic curve (AUC-ROC) values. Feature importance analysis demonstrated the Damp-heat constitution as the most influential predictor, followed by Yang-deficiency, Qi-depression, Qi-deficiency, and Blood-stasis constitutions.

Conclusion: The results demonstrate the potent utility of machine learning, specifically RFC, coupled with TCM constitution classifications in predicting insomnia severity. Notably, the constitution classifications such as Damp-heat and Yang-deficiency emerged as crucial determinants, emphasizing its potential in guiding targeted insomnia treatments. This approach enables the development of more personalized and efficient interventions, thereby enhancing patient outcomes.

Keywords: K-nearest neighbors (KNN); constitution of traditional Chinese medicine; insomnia; machine learning; prediction model; random forest classifier (RFC); support vector classifier (SVC).

Grants and funding

The author(s) declare financial support was received for the research, authorship, and/or publication of this article. This work was supported by the Shanghai Technical Prescription Project for Preventive Treatment of Diseases (ZY (2021–2023)-0104-02-JS-30), the Shanghai Minhang District Traditional Chinese Medicine Specialty Brand Specialty Construction Project (ZYPP-03) and the Shanghai Minhang District Famous Traditional Chinese Medicine Studio Construction Project (mhmlzy01).