ORIGINAL RESEARCH article
Front. Public Health
Sec. Public Health Education and Promotion
Volume 13 - 2025 | doi: 10.3389/fpubh.2025.1574531
Machine Learning-Driven Model for Predicting Knowledge, Attitudes, and Practices Regarding Medication Safety Among Residents in Hubei, China
Provisionally accepted- Wuhan Union Hospital, Tongji Medical College, Huazhong University of Science and Technology, Wuhan, China
Select one of your emails
You have multiple emails registered with Frontiers:
Notify me on publication
Please enter your email address:
If you already have an account, please login
You don't have a Frontiers account ? You can register here
Objective: To evaluate the current state and determinants of medication safety knowledge, attitudes, and practices (KAP) among residents in Hubei Province, and to offer guidance for targeted educational initiatives. Methods: A standardized questionnaire from the Science and Technology Development Center of the Chinese Pharmaceutical Association was utilized. Responses were scored systematically. Univariate and multivariate Logistic regression analyses, along with machine learning (ML) techniques, were applied to identify risk factors associated with medication safety KAP. Results: Out of 1,065 distributed questionnaires, 1,042 were valid (91.8% response rate). The study revealed that 30.2% of residents demonstrated 'excellent' medication knowledge, while attitude and practice scores were lower 10.3% and 46.3%, respectively). Univariate analysis indicated that age, monthly income, employment status, and occupation significantly influenced KAP. Multivariate analysis further identified age (≥65 years: OR = 0.27), education level (Middle school: OR = 0.36, Primary school: OR = 0.16), occupation (Healthcare workers: OR = 3.67), and medical insurance coverage (Basic social medical insurance: OR = 17.48, Out-of-pocket medical care: OR = 7.44, Publicly-funded medical care: OR = 11.92) as independent risk factors affecting the total KAP score. In evaluating ML models for predicting KAP, the eXtreme Gradient Boosting (XGB) model showed the best performance for predicting knowledge (training accuracy: 0.7014, Kappa: 0.3045; validation accuracy: 0.6186, Kappa: 0.1004). The Fully Connected Neural Network (FCNN) was optimal for attitude prediction (training accuracy: 0.7205, Kappa: 0.0778; validation accuracy: 0.7019, Kappa: 0.0008). The Ordered Multinomial Logistic Regression model was most accurate for practice prediction (training accuracy: 0.6471, Kappa: 0.3421; validation accuracy: 0.6302, Kappa: 0.3153). And the Deep Neural Network (DNN) model demonstrated the highest accuracy for predicting the total score (training accuracy: 0.7387, Kappa: 0.3211; validation accuracy: 0.7074, Kappa: 0.1902).Conclusion: Residents of Hubei have a fundamental grasp of medication safety but also harbor certain misconceptions. Effective pharmaceutical science communication should take into account the characteristics of the residents and the identified risk factors.
Keywords: KAP, Rational drug use, machine learning, Medication behavior, Model
Received: 11 Feb 2025; Accepted: 19 May 2025.
Copyright: © 2025 Mei, Wu, Zhou, Lv, Zhang, Gong and Shi. 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:
Wei-Jing Gong, Wuhan Union Hospital, Tongji Medical College, Huazhong University of Science and Technology, Wuhan, China
Chen Shi, Wuhan Union Hospital, Tongji Medical College, Huazhong University of Science and Technology, Wuhan, China
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.