{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,3,24]],"date-time":"2026-03-24T00:33:25Z","timestamp":1774312405693,"version":"3.50.1"},"reference-count":32,"publisher":"Frontiers Media SA","license":[{"start":{"date-parts":[[2025,6,2]],"date-time":"2025-06-02T00:00:00Z","timestamp":1748822400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":["frontiersin.org"],"crossmark-restriction":true},"short-container-title":["Front. Public Health"],"abstract":"<jats:sec><jats:title>Objective<\/jats:title><jats:p>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.<\/jats:p><\/jats:sec><jats:sec><jats:title>Methods<\/jats:title><jats:p>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.<\/jats:p><\/jats:sec><jats:sec><jats:title>Results<\/jats:title><jats:p>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 (\u226565 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).<\/jats:p><\/jats:sec><jats:sec><jats:title>Conclusion<\/jats:title><jats:p>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.<\/jats:p><\/jats:sec>","DOI":"10.3389\/fpubh.2025.1574531","type":"journal-article","created":{"date-parts":[[2025,6,2]],"date-time":"2025-06-02T05:23:50Z","timestamp":1748841830000},"update-policy":"https:\/\/doi.org\/10.3389\/crossmark-policy","source":"Crossref","is-referenced-by-count":1,"title":["Machine learning-driven model for predicting knowledge, attitudes, and practices regarding medication safety among residents in Hubei, China"],"prefix":"10.3389","volume":"13","author":[{"given":"Chao","family":"Mei","sequence":"first","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"San-Lan","family":"Wu","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Tao","family":"Zhou","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Yong-Ning","family":"Lv","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Yu","family":"Zhang","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Chen","family":"Shi","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Wei-Jing","family":"Gong","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"1965","published-online":{"date-parts":[[2025,6,2]]},"reference":[{"key":"ref1","doi-asserted-by":"publisher","first-page":"954305","DOI":"10.3389\/fpubh.2022.954305","article-title":"Self-medication and its typology in Chinese elderly population: a cross-sectional study","volume":"10","author":"Qin","year":"2022","journal-title":"Front Public Health"},{"key":"ref2","doi-asserted-by":"publisher","first-page":"101350","DOI":"10.1016\/j.ehb.2024.101350","article-title":"Rational self-medication","volume":"53","author":"Darden","year":"2024","journal-title":"Econ Hum Biol"},{"key":"ref3","doi-asserted-by":"publisher","first-page":"e62","DOI":"10.47750\/jptcp.2022.863","article-title":"Knowledge and practice of self-medication","volume":"28","author":"Al Shibly","year":"2022","journal-title":"J Popul Ther Clin Pharmacol"},{"key":"ref4","doi-asserted-by":"publisher","first-page":"943","DOI":"10.47391\/JPMA.1331","article-title":"An overview of self-medication: a major cause of antibiotic resistance and a threat to global public health","volume":"71","author":"Rehman","year":"2021","journal-title":"J Pak Med Assoc"},{"key":"ref5","doi-asserted-by":"publisher","first-page":"770709","DOI":"10.3389\/fpubh.2021.770709","article-title":"Prevalence and risk factors of self-medication among the pediatric population in China: a National Survey","volume":"9","author":"Yuan","year":"2021","journal-title":"Front Public Health"},{"key":"ref6","doi-asserted-by":"publisher","first-page":"9982","DOI":"10.1038\/s41598-024-59204-2","article-title":"Status of self-medication and the relevant factors regarding drug efficacy and safety as important considerations among adolescents aged 12-18 in China: a cross-sectional study","volume":"14","author":"Liu","year":"2024","journal-title":"Sci Rep"},{"key":"ref7","doi-asserted-by":"publisher","first-page":"1072917","DOI":"10.3389\/fphar.2023.1072917","article-title":"The self-medication behaviors of residents and the factors related to the consideration of drug efficacy and safety-a cross-sectional study in China","volume":"14","author":"Ge","year":"2023","journal-title":"Front Pharmacol"},{"key":"ref8","doi-asserted-by":"publisher","first-page":"6883","DOI":"10.21037\/apm-21-1295","article-title":"Knowledge, attitude, and practice of medication among Haikou residents","volume":"10","author":"Wu","year":"2021","journal-title":"Ann Palliat Med"},{"key":"ref9","doi-asserted-by":"publisher","first-page":"e0302177","DOI":"10.1371\/journal.pone.0302177","article-title":"Self-administration medication errors at home and its predictors among illiterate and low-literate community-dwelling older adults with polypharmacy: a negative binomial hierarchical regression","volume":"19","author":"Ghassab-Abdollahi","year":"2024","journal-title":"PLoS One"},{"key":"ref10","article-title":"Medication without harm","year":"2017"},{"key":"ref11","doi-asserted-by":"publisher","first-page":"873","DOI":"10.3969\/j.issn.1001-0408.2006.11.035","article-title":"Reflections on the fulfillment of social responsibilities by community hospital pharmacists","volume":"17","author":"Chen","year":"2006","journal-title":"China Pharmacy"},{"key":"ref12","doi-asserted-by":"publisher","first-page":"1979","DOI":"10.1056\/NEJMcp2307353","article-title":"Postmenopausal Osteoporosis","volume":"389","author":"Walker","year":"2023","journal-title":"N Engl J Med"},{"key":"ref13","first-page":"238","article-title":"Osteoporosis: common questions and answers","volume":"107","author":"Harris","year":"2023","journal-title":"Am Fam Physician"},{"key":"ref14","doi-asserted-by":"publisher","first-page":"406","DOI":"10.1093\/ijpp\/riab049","article-title":"Knowledge, attitudes and practices of healthcare professionals regarding drug-food interactions: a scoping review","volume":"29","author":"Osuala","year":"2021","journal-title":"Int J Pharm Pract"},{"key":"ref15","doi-asserted-by":"publisher","first-page":"103715","DOI":"10.1016\/j.drudis.2023.103715","article-title":"Machine-learning-based adverse drug event prediction from observational health data: a review","volume":"28","author":"Denck","year":"2023","journal-title":"Drug Discov Today"},{"key":"ref16","doi-asserted-by":"publisher","first-page":"e202400021","DOI":"10.1002\/minf.202400021","article-title":"Prediction of adverse drug reactions due to genetic predisposition using deep neural networks","volume":"43","author":"Dafniet","year":"2024","journal-title":"Mol Inform"},{"key":"ref17","doi-asserted-by":"publisher","first-page":"844","DOI":"10.1001\/jamacardio.2022.1900","article-title":"Machine learning-based models incorporating social determinants of health vs traditional models for predicting in-hospital mortality in patients with heart failure","volume":"7","author":"Segar","year":"2022","journal-title":"JAMA Cardiol"},{"key":"ref18","doi-asserted-by":"publisher","first-page":"1500","DOI":"10.1186\/s12903-024-05292-5","article-title":"Knowledge, attitude, and practice toward oral health management among orthodontic patients: a cross-sectional study","volume":"24","author":"Zhao","year":"2024","journal-title":"BMC Oral Health"},{"key":"ref19","doi-asserted-by":"publisher","first-page":"e086623","DOI":"10.1136\/bmjopen-2024-086623","article-title":"Knowledge, attitude and practice towards postoperative management among patients with type a aortic dissection or their relatives: a cross-sectional study in China","volume":"14","author":"Zhang","year":"2024","journal-title":"BMJ Open"},{"key":"ref20","doi-asserted-by":"publisher","first-page":"3441","DOI":"10.1186\/s12889-024-20987-8","article-title":"Knowledge, attitude, and practices of the community about chikungunya in selected districts of Afar region, Northeast Ethiopia; its implications for controlling the disease: a community-based quantitative and qualitative cross-sectional study","volume":"24","author":"Zerfu","year":"2024","journal-title":"BMC Public Health"},{"key":"ref21","doi-asserted-by":"publisher","first-page":"386","DOI":"10.4103\/jehp.jehp_1875_23","article-title":"Comparing skills-based and lecture-based education on female adolescents' knowledge, attitudes, and practices regarding menstrual health in puberty: a quasi-experimental study","volume":"13","author":"Yogesh","year":"2024","journal-title":"J Educ Health Promot"},{"key":"ref22","doi-asserted-by":"publisher","first-page":"e70150","DOI":"10.1002\/hsr2.70150","article-title":"Medical students' knowledge, attitude, and practice regarding hepatitis B and C virus infections in Jordan: a cross-sectional study","volume":"7","author":"Suilik","year":"2024","journal-title":"Health Sci Rep"},{"key":"ref23","doi-asserted-by":"publisher","first-page":"1611","DOI":"10.1186\/s12913-024-12094-6","article-title":"Knowledge, attitude, and practice of healthcare workers towards healthcare-associated infections in Jimma University medical center, southwestern Ethiopia: using structural equation model","volume":"24","author":"Shacho","year":"2024","journal-title":"BMC Health Serv Res"},{"key":"ref24","doi-asserted-by":"publisher","first-page":"e73948","DOI":"10.7759\/cureus.73948","article-title":"Knowledge, attitude and practice of artificial intelligence among healthcare professionals at a tertiary care teaching Hospital in South Gujarat","volume":"16","author":"Pandya","year":"2024","journal-title":"Cureus"},{"key":"ref25","doi-asserted-by":"publisher","first-page":"3424","DOI":"10.1186\/s12889-024-21076-6","article-title":"Knowledge, attitude and practice toward fibromyalgia among fibromyalgia patients: a web-based cross-sectional study in China","volume":"24","author":"Liang","year":"2024","journal-title":"BMC Public Health"},{"key":"ref26","doi-asserted-by":"publisher","first-page":"1302274","DOI":"10.3389\/fphar.2024.1302274","article-title":"Development and validation of a nomogram to predict medication risk based on a knowledge, attitude and practice (KAP) survey of residents in Shanxi Province, China","volume":"15","author":"Xie","year":"2024","journal-title":"Front Pharmacol"},{"key":"ref27","doi-asserted-by":"publisher","first-page":"1588","DOI":"10.3969\/j.issn.1671-332X.2023.10.032","article-title":"A survey on the knowledge, attitudes, and practices (KAP) regarding medication use behavior risks among residents in Huizhou City","volume":"23","author":"Liu","year":"2023","journal-title":"Modern Hospitals"},{"key":"ref28","doi-asserted-by":"publisher","first-page":"1203","DOI":"10.19962\/j.cnki.issn1008-049X.2022.07.015","article-title":"A survey on the knowledge, attitudes, and practices (KAP) regarding medication safety among residents in Wuhan City and analysis of its influencing factors [J]","volume":"25","author":"Ma","year":"2022","journal-title":"China Pharm"},{"key":"ref29","doi-asserted-by":"publisher","first-page":"2956","DOI":"10.12998\/wjcc.v11.i13.2956","article-title":"Assessment of knowledge, cultural beliefs, and behavior regarding medication safety among residents in Harbin, China","volume":"11","author":"Liu","year":"2023","journal-title":"World J Clin Cases"},{"key":"ref30","doi-asserted-by":"publisher","first-page":"e22","DOI":"10.2196\/ijmr.5231","article-title":"Internet use for searching information on medicines and disease: a community pharmacy-based survey among adult pharmacy customers","volume":"5","author":"Lombardo","year":"2016","journal-title":"Interact J Med Res"},{"key":"ref31","doi-asserted-by":"publisher","first-page":"1379","DOI":"10.1016\/j.dsx.2020.07.026","article-title":"Impact of patient education on KAP, medication adherence and therapeutic outcomes of metformin versus insulin therapy in patients with gestational diabetes: a hospital based pilot study in South India","volume":"14","author":"Krishnakumar","year":"2020","journal-title":"Diabetes Metab Syndr"},{"key":"ref32","doi-asserted-by":"publisher","first-page":"652","DOI":"10.1186\/s12889-024-17913-3","article-title":"Self-medication collaborative, unravelling the dilemma of self-medication in Egypt: a cross-sectional survey on knowledge, attitude, and practice of the general Egyptian population","volume":"24","author":"Ali","year":"2024","journal-title":"BMC Public Health"}],"container-title":["Frontiers in Public Health"],"original-title":[],"link":[{"URL":"https:\/\/www.frontiersin.org\/articles\/10.3389\/fpubh.2025.1574531\/full","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,2]],"date-time":"2025-06-02T05:23:53Z","timestamp":1748841833000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.frontiersin.org\/articles\/10.3389\/fpubh.2025.1574531\/full"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,6,2]]},"references-count":32,"alternative-id":["10.3389\/fpubh.2025.1574531"],"URL":"https:\/\/doi.org\/10.3389\/fpubh.2025.1574531","relation":{},"ISSN":["2296-2565"],"issn-type":[{"value":"2296-2565","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,6,2]]},"article-number":"1574531"}}