Wang Chi, Liu Chengyong, Wang Xiaoqiu, Liu Enqi, Sun Juguang, Lu Jin, Ding Min, Wu Wenzhong
Department of Acupuncture-Moxibustion and Rehabilitation, Affiliated Hospital of Nanjing University of Chinese Medicine, Nanjing 210001, Jiangsu Province, China; Yueyang Hospital of Integrated Traditional Chinese and Western Medicine, Shanghai University of TCM, Shanghai 200437.
Department of Acupuncture-Moxibustion and Rehabilitation, Affiliated Hospital of Nanjing University of Chinese Medicine, Nanjing 210001, Jiangsu Province, China.
Zhongguo Zhen Jiu. 2025 Jul 12;45(7):881-888. doi: 10.13703/j.0255-2930.20241122-k0003. Epub 2025 Apr 24.
To construct and validate a predictive model for the therapeutic effect of acupuncture at prescription (acupoint prescription for promoting the circulation of the governor vessel and nourishing the heart) on insomnia, so as to develop an open-access interactive artificial intelligence (AI)-assisted decision-making platform.
Clinical data of 139 insomnia patients treated with acupuncture therapy were included. All the patients had received acupuncture at Baihui (GV20), Yintang (GV24), bilateral Shenmen (HT7), and bilateral Sanyinjiao (SP6); and electric stimulation was attached to Baihui (GV20) and Yintang (GV24), using a continuous wave and a frequency of 2 Hz. The treatment was delivered once every other day, 3 treatments a week, and for 2 consecutive weeks. Patients with Pittsburgh sleep quality index (PSQI) score reduction rate <50% were classified as the "no response group", and those with ≥50% were as the "response group". Outliers were addressed using the 1.5×IQR rule, and missing values were imputed via predictive mean matching. Key features were selected by intersecting the feature importance results from eXtreme Gradient Boosting (XGBoost) and random forest algorithms. After balancing class distribution using the Synthetic Minority Over-sampling Technique (SMOTE), 20% of the data was reserved as a validation set. The remained data underwent the stratified sampling iterations to generate 200 pairs of 3∶1 training-test sets, which was employed for training and internal validation of 8 machine learning algorithms. The optimal algorithm and data partitioning strategy were selected to construct the final model, followed by external validation. The best-performing model was deployed online via Streamlit to create an interactive AI platform.
Key predictive features for model construction included insomnia duration, the total PSQI score, PSQI sleep efficiency subscore, the proportion of N1 and N2 sleep stages in total sleep duration, and the maximum pulse rate during sleep. The CatBoost-based model achieved an AUC of 0.92, the average precision of 0.77, and accuracy, average recall, and average F1-score of 0.75 on the test set. On the validation set, it attained an AUC of 0.84, with accuracy, average precision, average recall, and average F1-score all at 0.72, demonstrating robust predictive performance. An interactive AI platform was subsequently developed (https://tdyx-catboost.streamlit.app/).
This study successfully establishes and validates a CatBoost-based efficacy prediction model for acupuncture therapy in treatment of insomnia. The developed AI platform provides data-driven decision support for acupuncture-based insomnia management.
构建并验证督脉通心方针刺治疗失眠的疗效预测模型,以开发一个开放获取的交互式人工智能(AI)辅助决策平台。
纳入139例接受针刺治疗的失眠患者的临床资料。所有患者均接受百会(GV20)、印堂(GV24)、双侧神门(HT7)和双侧三阴交(SP6)针刺治疗;并在百会(GV20)和印堂(GV24)连接电刺激,采用连续波,频率为2Hz。治疗隔日1次,每周3次,连续治疗2周。匹兹堡睡眠质量指数(PSQI)评分降低率<50%的患者分为“无反应组”,评分降低率≥50%的患者分为“反应组”。采用1.5×IQR规则处理异常值,通过预测均值匹配法插补缺失值。通过交叉极端梯度提升(XGBoost)和随机森林算法的特征重要性结果来选择关键特征。使用合成少数过采样技术(SMOTE)平衡类分布后,将20%的数据留作验证集。其余数据进行分层抽样迭代,生成200对3∶1的训练-测试集,用于8种机器学习算法的训练和内部验证。选择最优算法和数据划分策略构建最终模型,随后进行外部验证。通过Streamlit将性能最佳的模型在线部署,创建一个交互式AI平台。
模型构建的关键预测特征包括失眠持续时间、PSQI总分、PSQI睡眠效率子评分、N1和N2睡眠阶段在总睡眠时间中的占比以及睡眠期间的最大脉搏率。基于CatBoost的模型在测试集上的AUC为0.92,平均精度为0.77,准确率、平均召回率和平均F1分数为0.75。在验证集上,其AUC为0.84,准确率、平均精度、平均召回率和平均F1分数均为0.72,显示出强大的预测性能。随后开发了一个交互式AI平台(https://tdyx-catboost.streamlit.app/)。
本研究成功建立并验证了基于CatBoost的针刺治疗失眠疗效预测模型。所开发的AI平台为基于针刺的失眠管理提供了数据驱动的决策支持。