Predictive models of medication non-adherence risks of patients with T2D based on multiple machine learning algorithms
- PMID: 32156739
- PMCID: PMC7064141
- DOI: 10.1136/bmjdrc-2019-001055
Predictive models of medication non-adherence risks of patients with T2D based on multiple machine learning algorithms
Abstract
Objective: Medication adherence plays a key role in type 2 diabetes (T2D) care. Identifying patients with high risks of non-compliance helps individualized management, especially for China, where medical resources are relatively insufficient. However, models with good predictive capabilities have not been studied. This study aims to assess multiple machine learning algorithms and screen out a model that can be used to predict patients' non-adherence risks.
Methods: A real-world registration study was conducted at Sichuan Provincial People's Hospital from 1 April 2018 to 30 March 2019. Data of patients with T2D on demographics, disease and treatment, diet and exercise, mental status, and treatment adherence were obtained by face-to-face questionnaires. The medication possession ratio was used to evaluate patients' medication adherence status. Fourteen machine learning algorithms were applied for modeling, including Bayesian network, Neural Net, support vector machine, and so on, and balanced sampling, data imputation, binning, and methods of feature selection were evaluated by the area under the receiver operating characteristic curve (AUC). We use two-way cross-validation to ensure the accuracy of model evaluation, and we performed a posteriori test on the sample size based on the trend of AUC as the sample size increase.
Results: A total of 401 patients out of 630 candidates were investigated, of which 85 were evaluated as poor adherence (21.20%). A total of 16 variables were selected as potential variables for modeling, and 300 models were built based on 30 machine learning algorithms. Among these algorithms, the AUC of the best capable one was 0.866±0.082. Imputing, oversampling and larger sample size will help improve predictive ability.
Conclusions: An accurate and sensitive adherence prediction model based on real-world registration data was established after evaluating data filling, balanced sampling, and so on, which may provide a technical tool for individualized diabetes care.
Keywords: adherence; personality; prediction and prevention; type 2 diabetes.
© Author(s) (or their employer(s)) 2020. Re-use permitted under CC BY. Published by BMJ.
Conflict of interest statement
Competing interests: None declared.
Figures

Similar articles
-
Development and assessment of novel machine learning models to predict medication non-adherence risks in type 2 diabetics.Front Public Health. 2022 Nov 17;10:1000622. doi: 10.3389/fpubh.2022.1000622. eCollection 2022. Front Public Health. 2022. PMID: 36466490 Free PMC article.
-
Machine learning applications to classify and monitor medication adherence in patients with type 2 diabetes in Ethiopia.Front Endocrinol (Lausanne). 2025 Mar 20;16:1486350. doi: 10.3389/fendo.2025.1486350. eCollection 2025. Front Endocrinol (Lausanne). 2025. PMID: 40182636 Free PMC article.
-
Identifying people at risk of developing type 2 diabetes: A comparison of predictive analytics techniques and predictor variables.Int J Med Inform. 2018 Nov;119:22-38. doi: 10.1016/j.ijmedinf.2018.08.008. Epub 2018 Aug 28. Int J Med Inform. 2018. PMID: 30342683
-
Data-driven modeling and prediction of blood glucose dynamics: Machine learning applications in type 1 diabetes.Artif Intell Med. 2019 Jul;98:109-134. doi: 10.1016/j.artmed.2019.07.007. Epub 2019 Jul 26. Artif Intell Med. 2019. PMID: 31383477 Review.
-
Methods and computational techniques for predicting adherence to treatment: A scoping review.Comput Biol Med. 2025 Jun;192(Pt A):110193. doi: 10.1016/j.compbiomed.2025.110193. Epub 2025 Apr 26. Comput Biol Med. 2025. PMID: 40288294
Cited by
-
Challenge in Predicting Persistence to P2Y12 Inhibitors: A Perspective From the ARTEMIS Trial.J Am Heart Assoc. 2023 Jun 20;12(12):e029063. doi: 10.1161/JAHA.122.029063. Epub 2023 Jun 10. J Am Heart Assoc. 2023. PMID: 37301758 Free PMC article. Clinical Trial.
-
Machine Learning to Dynamically Predict In-Hospital Venous Thromboembolism After Inguinal Hernia Surgery: Results From the CHAT-1 Study.Clin Appl Thromb Hemost. 2023 Jan-Dec;29:10760296231171082. doi: 10.1177/10760296231171082. Clin Appl Thromb Hemost. 2023. PMID: 37094089 Free PMC article.
-
A machine learning approach to explore individual risk factors for tuberculosis treatment non-adherence in Mukono district.PLOS Glob Public Health. 2023 Jul 3;3(7):e0001466. doi: 10.1371/journal.pgph.0001466. eCollection 2023. PLOS Glob Public Health. 2023. PMID: 37399173 Free PMC article.
-
Predicting medication wastage using machine learning based on patient beliefs.Digit Health. 2025 Jul 13;11:20552076251355127. doi: 10.1177/20552076251355127. eCollection 2025 Jan-Dec. Digit Health. 2025. PMID: 40666624 Free PMC article.
-
Preliminary study: Data analytics for predicting medication adherence in Malaysian arthritis patients.Digit Health. 2025 Feb 23;11:20552076241309505. doi: 10.1177/20552076241309505. eCollection 2025 Jan-Dec. Digit Health. 2025. PMID: 39996067 Free PMC article.
References
Publication types
MeSH terms
LinkOut - more resources
Full Text Sources
Medical
Miscellaneous