
95% of researchers rate our articles as excellent or good
Learn more about the work of our research integrity team to safeguard the quality of each article we publish.
Find out more
ORIGINAL RESEARCH article
Front. Endocrinol. , 20 March 2025
Sec. Clinical Diabetes
Volume 16 - 2025 | https://doi.org/10.3389/fendo.2025.1486350
Background: Medication adherence plays a crucial role in determining the health outcomes of patients, particularly those with chronic conditions like type 2 diabetes. Despite its significance, there is limited evidence regarding the use of machine learning (ML) algorithms to predict medication adherence within the Ethiopian population. The primary objective of this study was to develop and evaluate ML models designed to classify and monitor medication adherence levels among patients with type 2 diabetes in Ethiopia, to improve patient care and health outcomes.
Methods: Using a random sampling technique in a cross-sectional study, we obtained data from 403 patients with type 2 diabetes at the University of Gondar Comprehensive Specialized Hospital (UoGCSH), excluding 13 subjects who were unable to respond and 6 with incomplete data from an initial cohort of 422. Medication adherence was assessed using the General Medication Adherence Scale (GMAS), an eleven-item Likert scale questionnaire. The responses served as features to train and test machine learning (ML) models. To address data imbalance, the Synthetic Minority Over-sampling Technique (SMOTE) was applied. The dataset was split using stratified K-fold cross-validation to preserve the distribution of adherence levels. Eight widely used ML algorithms were employed to develop the models, and their performance was evaluated using metrics such as accuracy, precision, recall, and F1 score. The best-performing model was subsequently deployed for further analysis.
Results: Out of 422 enrolled patients, 403 data samples were collected, with 11 features extracted from each respondent. To mitigate potential class imbalance, the dataset was increased to 620 samples using the Synthetic Minority Over-sampling Technique (SMOTE). Machine learning models including Logistic Regression (LR), Support Vector Machine (SVM), K Nearest Neighbor (KNN), Decision Tree (DT), Random Forest (RF), Gradient Boost Classifier (GBC), Multilayer Perceptron (MLP), and 1D Convolutional Neural Network (1DCNN) were developed and evaluated. Although the performance differences among the models were subtle (within a range of 0.001), the SVM classifier outperformed the others, achieving a recall of 0.9979 and an AUC of 0.9998. Consequently, the SVM model was selected for deployment to monitor and detect patients’ medication adherence levels, enabling timely interventions to improve patient outcomes.
Conclusions: This study highlights a variety of machine learning (ML) models that can be effectively used to monitor and classify medication adherence in diabetic patients in Ethiopia. However, to fully realize the potential impact of digital health applications, further studies that include patients from diverse settings are necessary. Such research could enhance the generalizability of these models and provide insights into the broader applicability of digital tools for improving medication adherence and patient outcomes in varying healthcare contexts.
Non-adherence to medication significantly affects patient health outcomes and increases healthcare costs, particularly for those with diabetes, a prevalent chronic condition (1–4). Non-adherence with medications affects glycemic control, which in turn contributes to a significant proportion of hospitalizations, deaths, and expenditures related to drugs on higher healthcare system costs (5–11). Given that diabetes is a major public health threat expected to affect 783 million people by 2045, ensuring medication adherence is crucial (12).
Persistent long-term medication adherence is crucial for effective disease management in patients with diabetes. However, evidence indicates that a significant proportion of diabetes patients fail to adhere to their prescribed medications. In developed nations, up to 50% of patients report low adherence to long-term medications, and this issue is even more pronounced in low- and middle-income countries, where factors such as limited access to healthcare, financial constraints, and cultural barriers further exacerbate the problem. Addressing this challenge is essential to improving patient outcomes globally (13).
Studies worldwide have shown that medication nonadherence in patients with diabetes ranges from 6.3% to 87% (14–18). Similarly, studies conducted in Ethiopia also showed that the rate of drug nonadherence ranged from 41.5-76.9% (5, 19–26). The pooled prevalence of nonadherence to medications has also been reported to be high in meta-analysis studies (27, 28). These findings highlight the challenges associated with medication adherence and suggest that implementing an alarm system to monitor medication adherence could be a valuable strategy. Traditionally, predicting medication adherence has relied on static and group-based factors, such as medication tolerability, diagnosis, duration of treatment, and demographic information (29, 30). However, adherence can be influenced by multiple factors, including logistical issues such as forgetfulness, complex medication regimens, complications with prescription refills, side effects, adverse effects, lack of insurance coverage, and limited financial resources (5, 31, 32).
Assessing medication adherence is crucial for ensuring optimal patient outcomes, yet directly identifying adherence levels can be challenging for healthcare providers. Physicians often rely on methods such as self-reporting or pill counts, which may not accurately reflect a patient’s true adherence. This gap highlights the need for more reliable methods to detect nonadherence and take appropriate action. Achieving a precise and cost-effective assessment remains a significant challenge. However, leveraging assistive technologies, particularly machine learning (ML) models, could enhance early detection of nonadherence. By analyzing data from various sources, these models can provide healthcare providers with actionable insights, helping them allocate resources more effectively and improve patient care (33).
Research demonstrates that health data can provide ML models with valuable information for individual healthcare evaluation and analysis (34). ML models have proven especially useful for data analysis, prediction, and the detection of chronic conditions and related complications such as diabetes (35–38). In the context of chronic diseases, adherence is often measured using statistical methods (39). However, with the growing volume of healthcare data, predictive models based on ML techniques are increasingly utilized. Compared to traditional statistical methods, ML approaches offer distinct advantages, including the ability to capture nonlinear relationships, reduced bias through automated learning, and greater flexibility in preventing overfitting (40, 41).
Unlike traditional methods, which rely on predefined instructions, ML models are trained using real-world data. These models learn to map features to outcomes through algorithms, enabling them to generalize knowledge and make accurate predictions for new, unseen inputs (42). This paradigm shift toward ML applications has transformed chronic disease management, introducing personalized, data-driven precision care in place of traditional strategies.
Despite the increasing significance of machine learning (ML) in healthcare, our comprehensive literature review found no documented evidence of its application in assessing, monitoring, or collecting data on medication adherence among individuals with diabetes in the Ethiopian population. To address this gap, the present study developed and evaluated ML models designed to classify, monitor, and record medication adherence levels in patients with type 2 diabetes in Ethiopia. These findings contribute to the growing body of knowledge on technological solutions for predicting medication adherence, particularly within the Ethiopian context. Additionally, they provide a foundation for future research, offering insights into effective ML-based methods for improving patient outcomes and advancing healthcare practices in Ethiopia.
A cross-sectional study design was used to collect data on medication adherence among patients with type 2 diabetes who attended the chronic care follow-up at the University of Gondar Comprehensive Specialized Hospital (UoGCSH) between February and May 2023. The study included adults (aged ≥ 18 years) who had been receiving diabetes medications for at least 3 months and were able to respond to the interview. The three months were chosen because it provides a sufficient time frame to assess medication adherence reliably, as it captures habitual patterns and allows treatment regimens for chronic conditions like diabetes to stabilize. This duration is commonly used in clinical studies and guidelines, offering a balance between obtaining meaningful data and enabling timely interventions. Exclusion criteria included patients with severe or acute illnesses requiring emergency treatment, individuals with severe neurological or psychiatric conditions who could not communicate effectively, pregnant women, and patients with incomplete data. This approach ensured that the study focused on individuals who could provide reliable information about their medication adherence.
The sample size was determined using the single mean proportion formula: n = p(1-p) Z²/d², with the following assumptions: a predicted response distribution for medication adherence using ML (P = 0.5), a 95% confidence interval, and a 5% margin of error (d = 0.05), yielding a sample size of 385. Considering a 10% non-response rate, the final study enrolled 422 participants. Using the medical record list as a sampling frame, participants were selected through simple random sampling and a lottery method. Signed informed consent was obtained from all participants, indicating their agreement to allow the use of their questionnaire responses and medical records for research purposes. Of the 422 participants, 13 were excluded due to their inability to respond to the interview, and 6 were excluded due to missing data in the medication adherence measurement items. Ultimately, 403 data entities were included in the final analysis.
The development of the ML model was continued using data on patient medication adherence as determinant features of the model development that can distinguish medication adherence from patients with high and low levels of medication adherence. These determinant features were subsequently used to train an ML model. Figure 1 shows the overall methodology used in this study.
Demographic and medication-related data from the patients were collected using a structured interview-based questionnaire. Before the actual data collection, the data collection instrument was validated and ensured for its content and clarity. Then 4.5% of the study subjects in the study area were pretested (excluded from the final analysis) to ensure the completeness and consistency of the data collection tool. Then, an appropriate amendment was employed. The data were collected by experienced nurses and pharmacists after they had trained for two days. The supervisor explicitly clarified the purpose of the study, and the data collection tools and techniques. The data collection procedure was closely monitored. After the medical records were entered into Microsoft Excel 2013 and checked for repetition, the patients were interviewed, and the data were simultaneously extracted.
Medication adherence: in this study, it refers to the extent to which a patient actively, voluntarily, and consistently follows a mutually agreed-upon treatment plan, including taking medications as prescribed, in collaboration with their healthcare provider. It involves the patient’s commitment to take their medication by prescription that aims to achieve the desired therapeutic outcomes.
Medication adherence data were utilized as a key determinant in developing the ML model. Low and high levels of medication adherence were assessed using the General Medication Adherence Scale (GMAS), an 11-item interview-based questionnaire combining subjective and objective measures. Each item was rated on a 4-point Likert scale, ranging from 0 (lowest) to 3 (highest). The items were categorized into three factors: (I) patient behavior (5 items), (II) medication pill or injection burden (4 items), and (III) medication cost and payment (2 items). The 11 items for which responses were collected addressed various challenges related to medication adherence. These included difficulty remembering to take medications, forgetting medications due to busy schedules, travel, or other events, discontinuing medications when feeling well, stopping medications due to adverse effects, discontinuing medications without consulting a doctor, ceasing medications when prescribed additional treatments for other conditions, finding it burdensome to remember medications due to regimen complexity, missing doses because of disease progression or the addition of new medicines, altering medication regimen, dose, or frequency, discontinuing medications because they are perceived as not worth the cost, and difficulty purchasing medications due to high expenses. The responses to these 11 items, which determined the level of medication adherence as either low or high, were subsequently used to train and develop the ML model.
The English version of the GMAS has been validated (43) and the item has been previously applied to assess medication adherence within the Ethiopian population with a Cronbach’s alpha of 0.84, and its item-level content validity index exceeded 0.79 (5). Scores for each item were summed to calculate a total adherence score, which was used to classify patients’ adherence levels. A GMAS score of <26 indicated low adherence, while a score of ≥27 (out of a maximum of 33 points) was classified as high adherence (5, 44).
During data collection, most participants were found to have low adherence to their medications, with only 22.6% exhibiting a history of high medication adherence. This imbalance in class distribution could significantly affect the performance of machine learning models, as the model may become biased toward the majority class. To address this issue, the Synthetic Minority Oversampling Technique (SMOTE) was employed. SMOTE works by selecting instances from the minority class, identifying their nearest neighbors, and generating synthetic samples through interpolation between the selected instances and their neighbors. These synthetic samples are added to the dataset, effectively balancing the class distribution, improving the model’s performance, and reducing bias toward the majority class.
Additionally, class imbalance can cause issues when the dataset is split into training and testing subsets, where one class may dominate the training set while the other predominates in the test set. This could result in skewed outcomes and variability with each train-test split. To mitigate this, the stratified K-fold cross-validation technique was applied, ensuring that each fold maintains a proportional distribution of both classes, leading to more stable and reliable model evaluation.
Once the data was read then it was subsequently divided into training and testing sets. Then training was performed using LR, RF, SVM, DT, KNN, and XGBC algorithms. The performance of each classification model was evaluated using the parameters precession, recall, F1 score, accuracy, and the area under the curve (AUC). The performance of a machine learning classifier can be measured using several performance evaluation metrics. In this study accuracy precision, recall, and f1-score are used to measure the performance of the developed models. Accuracy is the measure of the overall correctness of the model given by the formula:
Where: TP (True Positives): The number of positive samples correctly identified by the model. TN (True Negatives): The number of negative samples correctly identified by the model. FP (False Positives): The number of negative samples incorrectly identified as positive. FN (False Negatives): The number of positive samples incorrectly identified as negative. Precision is the ratio of correctively classified positive observation to the total predicted positives and is given by the formula:
High precision indicates a low false positive rate. Recall is the ratio of correctly predicted positive values to all actual positive values given by the formula:
High recall indicates a low false negative rate. Recall is also called Sensitivity or True Positive Rate (45). False positive rate (FPR) is the ratio of actual negatives that are incorrectly classified as positive and all actual negatives given by the formula:
F1 score is the harmonic mean of precision and recall given by the formula:
A binary classification model’s performance is graphically represented by the Receiver Operating Characteristic curve, or AUC-ROC curve that shows the degree or measure of separability. At different categorization criteria, it shows the true positive rate (45) against the false positive rate (FPR). As it gives a single scalar value ranging from 0 to 1 the total performance of the model is shown by the AUC_ROC score. ROC_AUC score can be obtained by the formula:
For the perfect model, the AUC_ROC score will be 1, models that are not better than random guessing will score 0.5, and models worse than random guessing will score less than 0.5.
Extensive parameter tuning was done using grid search, random search, and optuna parameter tuning algorithms, and the best combination of hyperparameters was selected.
Finally, the selected best performer model was deployed using a flask environment aiming to design a data collector, monitor, and classifier platform for medication adherence level.
Out of 422 participants approached, data on medication adherence, used as a feature for machine learning, were analyzed from 403 patients, resulting in a 95.5% response rate. Most of the study participants (77.45%; 95% CI: 70.1-83.8) were found to have low medication adherence.
Using the extracted data features, ML models were developed using six ML algorithms. The performance of each model developed was evaluated. Table 1 displays the model’s accuracy, AUC-ROC score, recall, precision, and F1 score before the application of SMOTE. SVM performs better with the values 0.9948 and 1.00 for recall and AUC_ROC, respectively. From the confusion matrix plots before SMOTE shown in Figure 2, we can see that SVM misclassifies an average of 0.2 out of 80.6 entities, which is the lowest value.
Table 1. The accuracy, precision, recall, and F1 score of the developed models before balancing the data classes and tuning model parameters.
Figure 2. The confusion matrix scores of the developed models before balancing the data classes and tuning model parameters.
The goal of the model is to classify medication adherence levels. This is somewhat acceptable if the model categorizes low non-adherence levels as high. However, suppose the model incorrectly identifies high non-adherence levels as low. In that case, it can be critically harmful, as it would mislead both the patient and the physician, potentially delaying necessary corrective measures. A high recall value indicates a low false negative rate, meaning that the number of instances where high non-adherence levels are incorrectly predicted as low non-adherence levels are minimal. Therefore, models that demonstrate higher accuracy and recall are considered better. Among the eight models evaluated, three performed better in accuracy and recall. The collected data is highly imbalanced, with 93 instances (22.6%) of high non-adherence and 310 instances (77.4%) of low non-adherence, which significantly unbalanced data for machine learning models. To address this issue, the Synthetic Minority Over-sampling Technique (SMOTE) was used. The balanced data’s class distribution is 50% for the low adherence class and 50% for the high adherence class detailed in Table 2.
For the first seven machine learning models the parameters are not bulky and parameter tuning was done manually. Again, for the case of 1DCNN, it was computationally inefficient to tune all 1DCNN parameters automatically; as a result, the number of epochs and the batch size were tuned manually, and the performance of the model with the respective batch size and epochs is shown in Figure 3.
Figure 3. The performance of the 1DCNN model while tuning parameters (a) accuracy vs batch size, (b) recall vs batch size, (c) loss vs batch size, (d) accuracy vs epoch, (e) recall vs epoch and (f) loss vs epoch.
Considering the computation time, recall score, accuracy, and loss, batch size 20 is the optimum value. Again, by considering the computation time, recall score, accuracy, and loss, the optimum number of epochs is 90. Finally, after applying SMOTE to the data and tuning parameters, the SVM model is performing superior to others, with a recall of 0.9969 and an AUC score of 0.9998, as presented in Table 3. Furthermore, Figure 4’s confusion matrix computation reveals an average misclassification of 0.8 for the SVM model among 124 entities.
Table 3. The accuracy, precision, recall, F1 score, and AUC_ROC scores of the developed models after data class balancing and parameter tuning.
Figure 5 shows the region of convergence (ROC) graphs of the final optimized models.
The Support Vector Classifier model was deployed on a flask environment as a web-based application. Figure 6 shows an overview of the web-based applications. The deployed application enables the subjects with diabetes to fill out the GMAS parameters and assess their adherence level, the physicians to monitor the patient’s medication adherence level, and the data scientist to access the collected medication adherence data from the database.
Figure 6. The overview of the developed monitoring system, the home page, the login page, the demographic data entry page, the GMAS data entry page, and the monitoring window page.
Diabetes is one of the biggest health risks worldwide, expected to affect 783 million people by 2045 (5–8, 11). In developing countries like Ethiopia, poor medication adherence has become a significant contributor to mortality, hospitalization, and financial strain (13, 19–22, 25, 26). ML algorithms offer a promising solution to this issue and have shown encouraging results. However, models developed in one country may not be applicable to others due to differences in data. This study aimed to develop and implement a machine learning (ML) model to classify and monitor medication adherence levels, as well as to gather data on medication adherence. Data on medication adherence among diabetic patients were collected using the GMAS questionnaire tool [5].
With promising recall (true positive rates) of 0.9898, 0.9969, 0.9785, 0.9907, 0.9962, 0.9637, 0.7838, and 0.9932, and AUC-ROC scores of 0.9992, 0.9998, 0.9981, 0.9906, 0.9998, 0.9805, 0.8484, and 0.9996 for the LR, SVM, KNN, DT, RF, GBC, MLP, and 1DCNN models, respectively, the study’s findings demonstrated that machine learning models can effectively classify medication adherence. Although all the models except the multilayer perceptron model performed very well, the support vector classifier model achieved the best recall and AUC scores before and after addressing the data class imbalance and performing significant parameter adjustments. This study discusses the findings using other international studies conducted on patients with diabetes and other chronic diseases because of a lack of similar studies in a local context. Consistent with the current study, a study used 18 machine learning models for predicting medication adherence of diabetic patients obtained an AUC score of 0.716, 0.743, 0.698, 0.672, 0.667, 0.717, and 790 for LR, RF, SVM, DT, KNN, XGBC, and ensemble models respectively (46). A study on predicting medication adherence levels in people with type 2 diabetes found that the KNN model had an AUC of 0.838 and the SVM model had an AUC of 0.765 (47). Another study that employed logistic regression, multilayer perceptron, and convolutional neural networks to predict medication adherence from Continuous Glucose Monitoring (CGM) signals resulted in accuracy scores of 0.652, 0.725, and 0.775 (48). While most of the findings are in line, little discrepancies between the current study and these previous studies could be due to variations in data collection and analysis methods, with some studies employing in-person questionnaires and electronic medical records. However, the ML models developed in the current study performed remarkably well. This study achieved a better AUC_ROC score, suggesting that its implementation will contribute significantly to monitoring medication non-adherence.
A study on opioid medication adherence classification using LR, DT, RF, and XGBC models reported accuracy scores of 0.9415, 0.8787, 0.9411, and 0.9417, respectively (49). These results indicate that such models are well-suited for implementation in healthcare settings. Similarly, another study on medication adherence in Crohn’s disease patients showed average classification accuracies of 0.816, 0.859, and 0.877 for LR, Backpropagation Neural Network, and SVM models, respectively (40). This suggests that the current study has achieved strong comparative results. Discrepancies between studies may stem from differences in adherence measurement techniques, the nature of the data, and population characteristics.
In another example, Artificial Neural Networks, RF, and Support Vector Regression models achieved accuracies of 0.65, 0.78, and 0.79, respectively, in predicting medication adherence (50). Additionally, a study on predicting medication adherence reported accuracies of 0.777 and 0.772 for XGBC and RF models, respectively (51). Another study using XGBC to classify medication adherence achieved an accuracy of 0.722 in the early stages of research (52). The application of SVM models for medication adherence classification achieved an accuracy of 0.776 using data from 76 patients with heart failure (53). These results align with the findings of this study, supporting the idea that the models developed are suitable for implementation in real-world healthcare settings. Furthermore, a study predicting medication adherence levels in hypertension patients reported AUC scores of 0.774, 0.914, and 0.866 for LR, DT, and RF models, respectively (54). The stronger performance of our study further underscores its potential for confident implementation in healthcare facilities.
A study that developed 300 prediction models using 30 machine ML algorithms demonstrated that medication adherence in patients with type 2 diabetes was predicted with greater precision as the volume of input data increased (54). While further research is needed to assess the potential of ML-based techniques for measuring adherence in patients with chronic infectious diseases, these methods have shown promise for evaluating medication adherence in patients with noncommunicable diseases (3, 33, 55).
This study lays a critical foundation for leveraging technology to improve healthcare and has significant potential for scalability. The innovative use of machine learning to develop a medication adherence system could revolutionize diabetes management in Ethiopia, with the ability to enhance patient outcomes and inform public health strategies. Moreover, the collected data on medication adherence provides valuable insights that can be used to improve patient care, shape public health policies, and guide future research.
However, it is important to note that the data used in this study do not represent the national population, and the findings should be interpreted with caution. Additionally, medication adherence was assessed using a self-reported tool that combines both subjective and objective measures, which may impact the overall adherence outcome. Self-reported data can sometimes introduce biases, such as overreporting or underreporting of adherence, which must be considered when evaluating the results. Furthermore, while machine learning algorithms provide valuable insights, all decisions are supervised by human experts, ensuring that the results are interpreted and applied responsibly. Therefore, the findings should be approached with caution, and future research should focus on expanding the sample to better represent the national population and exploring additional data collection methods to minimize biases.
This study provides a foundation for future research on the application of machine learning (ML) in healthcare, specifically in monitoring medication adherence in patients with type 2 diabetes. Future research should aim to include larger, more diverse patient populations to better assess the generalizability of ML models across various demographics, settings, and healthcare environments. Additionally, exploring the integration of digital tools, such as mobile applications and wearable devices, with ML models could further enhance their ability to track and predict medication adherence patterns, leading to improved patient outcomes.
In clinical practice, implementing ML models, such as the support vector machine used in this study, offers an innovative approach to accurately monitor medication adherence in patients with diabetes. Healthcare providers can leverage these technologies to identify non-adherence early, personalize treatment plans, and intervene promptly to improve patient compliance. Furthermore, the automated monitoring and data collection systems can reduce clinician workload, streamline the management of chronic conditions, and enhance the overall efficiency of diabetes care.
The findings highlight the potential of ML-driven solutions to improve medication adherence, which could be integrated into national or regional healthcare policies for managing chronic diseases like diabetes. Policymakers should promote the inclusion of digital health tools and ML models into routine clinical practices, particularly in low-resource settings such as Ethiopia. Investments in healthcare infrastructure that supports digital applications could address barriers to medication adherence, reduce healthcare costs, and improve public health outcomes. To ensure equitable access to these technologies, policymakers should also focus on addressing potential barriers such as data privacy concerns, training for healthcare professionals, and infrastructure limitations in underserved regions.
While all the developed models performed well in classifying medication adherence levels in patients with type 2 diabetes, the SVM model outperformed the others based on its recall and AUC scores, both before and after applying the SMOTE data balancing method. This suggests that SVM may be the most effective model for predicting medication adherence in this context. Therefore, ML models, particularly SVM, should be further investigated and implemented in the Ethiopian healthcare system to optimize medication adherence for patients with chronic diseases like diabetes. However, nationally representative data, including diverse patient populations from various regions of the country, is essential to better validate the role of these technology-assisted models and ensure their applicability across different healthcare settings. Future research should also explore practical considerations for integrating these models into routine clinical practice, including infrastructure, training for healthcare providers, and policies that support digital health solutions.
The original contributions presented in the study are included in the article/supplementary material. Further inquiries can be directed to the corresponding author.
Ethical approval letters were obtained from the Institutional Review Board of the informatics college at the University of Gondar. All methods were carried out following the ethical standards established in the 1964 Declaration of Helsinki and its later amendments or comparable ethical standards. The participants provided signed informed consent, stating that “the study team has obtained my full permission to use my questionnaire response and medical record for their study and publication,” and data was collected between February and May 2023.
EK: Conceptualization, Data curation, Formal Analysis, Funding acquisition, Investigation, Methodology, Project administration, Resources, Software, Supervision, Validation, Visualization, Writing – original draft, Writing – review & editing. AS: Conceptualization, Data curation, Formal Analysis, Funding acquisition, Investigation, Methodology, Project administration, Resources, Software, Supervision, Validation, Visualization, Writing – original draft, Writing – review & editing. BE: Conceptualization, Data curation, Formal Analysis, Funding acquisition, Investigation, Methodology, Project administration, Resources, Software, Supervision, Validation, Visualization, Writing – original draft, Writing – review & editing. BA: Conceptualization, Data curation, Formal Analysis, Funding acquisition, Investigation, Methodology, Project administration, Resources, Software, Supervision, Validation, Visualization, Writing – original draft, Writing – review & editing.
The author(s) declare that no financial support was received for the research and/or publication of this article.
UoGCSH provided the datasets needed to complete the investigation.
The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
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.
1. W. H. Organization. Adherence to long-term therapies : evidence for action (2003). World Health Organization. Available online at: https://iris.who.int/handle/10665/42682 (Accessed January 04, 2024).
2. You can’t manage what you can’t measure: Medication adherence in chronic disease management . Available online at: https://us.milliman.com/en/insight/you-cant-manage-what-you-cant-measure-medication-adherence-in-chronic-disease-management (Accessed January 04, 2024).
3. Omotosho A, Ayegba P. Medication adherence: a review and lessons for developing countries. (2019) 5. doi: 10.3991/ijoe.v15i11.10647
4. Cutler RL, Fernandez-Llimos F, Frommer M, Benrimoj C, Garcia-Cardenas V. Economic impact of medication non-adherence by disease groups: a systematic review. BMJ Open. (2018) 8:e016982. doi: 10.1136/bmjopen-2017-016982
5. Sendekie AK, Netere AK, Kasahun AE, Belachew EA. Medication adherence and its impact on glycemic control in type 2 diabetes mellitus patients with comorbidity: A multicenter cross-sectional study in Northwest Ethiopia. PloS One. (2022) 17:e0274971. doi: 10.1371/journal.pone.0274971
6. Ogurtsova K, da Rocha Fernandes J, Huang Y, Linnenkamp U, Guariguata L, Cho NH, et al. IDF Diabetes Atlas: Global estimates for the prevalence of diabetes for 2015 and 2040. Diabetes Res Clin pract. (2017) 128:40–50. doi: 10.1016/j.diabres.2017.03.024
7. Amaltinga APM. Non adherence to diabetic medication among diabetic patients, a case study of Dormaa Hospital Ghana. Sci J Public Health. (2017) 5:88–97. doi: 10.11648/j.sjph.20170502.15
8. Fukuda H, Mizobe M. Impact of nonadherence on complication risks and healthcare costs in patients newly-diagnosed with diabetes. Diabetes Res Clin Pract. (2017) 123:55–62. doi: 10.1016/j.diabres.2016.11.007
9. Hong JS, Kang HC. Relationship between oral antihyperglycemic medication adherence and hospitalization, mortality, and healthcare costs in adult ambulatory care patients with type 2 diabetes in South Korea. Med Care. (2011) 49:378–84. doi: 10.1097/MLR.0b013e31820292d1
10. Breitscheidel L, Stamenitis S, Dippel F-W, Schöffski O. Economic impact of compliance to treatment with antidiabetes medication in type 2 diabetes mellitus: a review paper. J Med econ. (2010) 13:8–15. doi: 10.3111/13696990903479199
11. Sokol MC, McGuigan KA, Verbrugge RR, Epstein RS. Impact of medication adherence on hospitalization risk and healthcare cost. Med Care. (2005) 43:521–30. doi: 10.1097/01.mlr.0000163641.86870.af
12. Sun H, Saeedi P, Karuranga S, Pinkepank M, Ogurtsova K, Duncan BB, et al. IDF Diabetes Atlas: Global, regional and country-level diabetes prevalence estimates for 2021 and projections for 2045. Diabetes Res Clin pract. (2022) 183:109119. doi: 10.1016/j.diabres.2021.109119
13. World Health Organization. (2003). Adherence to long-term therapies: evidence for action. World Health Organization. Available online at: https://iris.who.int/handle/10665/42682.
14. Sarraf DP, Gupta PP. A hospital-based assessment of glycemic control and medication adherence in type 2 diabetes mellitus in Eastern Nepal. J Family Med Prim Care. (2023) 12:1190–6. doi: 10.4103/jfmpc.jfmpc_90_23
15. Plakas S, Mastrogiannis D, Mantzorou M, Adamakidou T, Fouka G, Bouziou A, et al. Validation of the 8-item Morisky medication adherence scale in chronically ill ambulatory patients in rural Greece. Open J Nursing. (2016) 6:158–69. doi: 10.4236/ojn.2016.63017
16. Alqarni AM, Alrahbeni T, Qarni AA, Qarni HMA. Adherence to diabetes medication among diabetic patients in the Bisha governorate of Saudi Arabia–a cross-sectional survey. Patient preference adherence. (2018), 63–71. doi: 10.2147/PPA.S176355
17. Bruce SP, Acheampong F, Kretchy I. Adherence to oral anti-diabetic drugs among patients attending a Ghanaian teaching hospital. Pharm Pract. (2015) 13: 1886–3655. doi: 10.18549/PharmPract.2015.01.533
18. Arifulla M, John LJ, Sreedharan J, Muttappallymyalil J, Basha SA. Patients’ adherence to anti-diabetic medications in a hospital at Ajman, UAE. Malaysian J Med sciences: MJMS. (2014) 21:44.
19. Yosef T, Nureye D, Tekalign E, Assefa E, Shifera N. Medication adherence and contributing factors among type 2 diabetes patients at Adama Hospital Medical College in Eastern Ethiopia. SAGE Open nursing. (2023) 9:23779608231158975. doi: 10.1177/23779608231158975
20. Mitiku Y, Belayneh A, Tegegne BA, Kebede B, Abebe D, Biyazin Y, et al. Prevalence of medication non-adherence and associated factors among diabetic patients in a tertiary hospital at Debre Markos, Northwest Ethiopia. Ethiopian J Health Sci. (2022) 32:755–64. doi: 10.4314/ejhs.v32i4.12
21. Faisal K, Tusiimire J, Yadesa TM. Prevalence and factors associated with non-adherence to antidiabetic medication among patients at Mbarara Regional Referral Hospital, Mbarara, Uganda. Patient preference adherence. (2022), 479–91. doi: 10.2147/PPA.S343736
22. Siraj J, Abateka T, Kebede O. Patients’ adherence to anti-diabetic medications and associated factors in Mizan-Tepi University Teaching Hospital: a cross-sectional study. INQUIRY: J Health Care Org Provision Financing. (2021) 58:00469580211067477. doi: 10.1177/00469580211067477
23. Araya EM, Gebrezgabiher HA, Tekulu GH, Alema NM, Getnet D, Gebru HT, et al. Medication non-adherence and associated factors among diabetic patients visiting general hospitals in the eastern zone of Tigrai, Northern Ethiopia. Patient preference adherence. (2020) 2016: 2071–83. doi: 10.2147/PPA.S278148
24. Ali M, Alemu T, Sada O. Medication adherence and its associated factors among diabetic patients at Zewditu Memorial Hospital, Addis Ababa, Ethiopia. BMC Res notes. (2017) 10:1–5. doi: 10.1186/s13104-017-3025-7
25. Abebaw M, Messele A, Hailu M, Zewdu F. Adherence and associated factors towards antidiabetic medication among type II diabetic patients on follow-up at University of Gondar Hospital, Northwest Ethiopia. Adv nursing. (2016) 2016:8579157. doi: 10.1155/2016/8579157
26. Tsehay T, Engidawork E, Ahmed A. Assessment of antidiabetic medication adherence and Its determinants among ambulatory patients with type 2 diabetes at Tikur Anbessa specialized hospital, Addis Ababa, Ethiopia. J Pharm Altern Med. (2016) 11.
27. Dessie G, Wagnew F, Mulugeta H, Belachew A, Negesse A, Kassa GM, et al. Association between the level of reported good medication adherence and the geographic location of a patient’s residence and presence of a glucometer among adult patients with diabetes in Ethiopia: A systematic and meta-analysis. Curr Ther Res. (2020) 92:100585. doi: 10.1016/j.curtheres.2020.100585
28. Yazew KG, Walle TA, Azagew AW. Prevalence of anti-diabetic medication adherence and determinant factors in Ethiopia: a systemic review and meta-analysis, 2019. Int J Afr Nurs Sci. (2019) 11:100167. doi: 10.1016/j.ijans.2019.100167
29. Lee H, Park JH, Floyd JS, Park S, Kim HC. Combined effect of income and medication adherence on mortality in newly treated hypertension: nationwide study of 16 million person-years. J Am Heart Assoc. (2019) 8:e013148. doi: 10.1161/JAHA.119.013148
30. Xie Z, St. Clair P, Goldman DP, Joyce G. Racial and ethnic disparities in medication adherence among privately insured patients in the United States. PloS One. (2019) 14:e0212117. doi: 10.1371/journal.pone.0212117
31. Barfod T, Sørensen HT, Nielsen H, Rodkjær L, Obel N. [amp]]lsquo;Simply forgot’is the most frequently stated reason for missed doses of HAART irrespective of degree of adherence. HIV Med. (2006) 7:285–90. doi: 10.1111/j.1468-1293.2006.00387.x
32. Yamada K, Watanabe K, Nemoto N, Fujita H, Chikaraishi C, Yamauchi K, et al. Prediction of medication noncompliance in outpatients with schizophrenia: 2-year follow-up study. Psychiatry Res. (2006) 141:61–9. doi: 10.1016/j.psychres.2004.07.014
33. Kanyongo W, Ezugwu AE. Machine learning approaches to medication adherence amongst NCD patients: A systematic literature review. Inf Med Unlocked. (2023) 38:101210. doi: 10.1016/j.imu.2023.101210
34. Lam WY, Fresco P. Medication adherence measures: an overview. BioMed Res Int. (2015) 2015:217047. doi: 10.1155/2015/217047
35. Kokori E, Olatunji G, Aderinto N, Muogbo I, Ogieuhi IJ, Isarinade D, et al. The role of machine learning algorithms in detection of gestational diabetes; a narrative review of current evidence. Clin Diabetes Endocrinol. (2024) 10:18. doi: 10.1186/s40842-024-00176-7
36. Tan KR, Seng JJB, Kwan YH, Chen YJ, Zainudin SB, Loh DHF, et al. Evaluation of machine learning methods developed for prediction of diabetes complications: a systematic review. J Diabetes Sci Technol. (2023) 17:474–89. doi: 10.1177/19322968211056917
37. Kavakiotis I, Tsave O, Salifoglou A, Maglaveras N, Vlahavas I, Chouvarda I. Machine learning and data mining methods in diabetes research. Comput Struct Biotechnol J. (2017) 15:104–16. doi: 10.1016/j.csbj.2016.12.005
38. DesilvaK LK. Useandperformanceof machine learning models for type 2 diabetes prediction in community settings: a systematic review and meta analysis. Int J Med Inform. (2020) 143:104268. doi: 10.1016/j.ijmedinf.2020.104268
39. Venkatachalam J, Abrahm SB, Singh Z, Stalin P, Sathya G. Determinants of patient’s adherence to hypertension medications in a rural population of Kancheepuram District in Tamil Nadu, South India. Indian J Community Med. (2015) 40:33–7. doi: 10.4103/0970-0218.149267
40. Wang L, Fan R, Zhang C, Hong L, Zhang T, Chen Y, et al. Applying machine learning models to predict medication nonadherence in Crohn’s disease maintenance therapy. Patient preference adherence. (2020) 551: 917–26. doi: 10.2147/PPA.S253732
41. Sarker IH. Machine learning: Algorithms, real-world applications and research directions. SN Comput science. (2021) 2:160. doi: 10.1007/s42979-021-00592-x
42. Rajkomar A, Dean J, Kohane I. Machine learning in medicine. New Engl J Med. (2019) 380:1347–58. doi: 10.1056/NEJMra1814259
43. Naqvi AA, Hassali MA, Jahangir A, Nadir MN, Kachela B. Translation and validation of the English version of the general medication adherence scale (GMAS) in patients with chronic illnesses. J Drug assess. (2019) 8:36–42. doi: 10.1080/21556660.2019.1579729
44. Allaham KK, Feyasa MB, Govender RD, Musa AMA, AlKaabi AJ, ElBarazi I, et al. Medication adherence among patients with multimorbidity in the United Arab Emirates. Patient preference adherence. (2022), 1187–200. doi: 10.2147/PPA.S355891
45. Tanking C, Lakkananurak C, Srisakvarakul C, Jitpreeda A, Threechod K, Sukitpunyaroj D. Postural orthostatic tachycardia syndrome and other autonomic dysfunctions following COVID-19: Incidence, characteristics, and associated factors. J Arrhythmia. (2024) 40:230–6. doi: 10.1002/joa3.13001
46. Li M, Lu X, Yang H, Yuan R, Yang Y, Tong R, et al. Development and assessment of novel machine learning models to predict medication non-adherence risks in type 2 diabetics. Front Public Health. (2022) 10:1000622. doi: 10.3389/fpubh.2022.1000622
47. Wu X-W, Yang H-B, Yuan R, Long E-W, Tong R-S. Predictive models of medication non-adherence risks of patients with T2D based on multiple machine learning algorithms. BMJ Open Diabetes Res Care. (2020) 8:e001055. doi: 10.1136/bmjdrc-2019-001055
48. Mohebbi A, Aradóttir TB, Johansen AR, Bengtsson H, Fraccaro M, Mørup M. (2017). A deep learning approach to adherence detection for type 2 diabetics, in: 2017 39th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC); 2017: IEEE. doi: 10.1177/1932296820912411
49. Warren D, Marashi A, Siddiqui A, Eijaz AA, Pradhan P, Lim D, et al. Using machine learning to study the effect of medication adherence in Opioid Use Disorder. PloS One. (2022) 17:e0278988. doi: 10.1371/journal.pone.0278988
50. Aziz F, Malek S, Ali AM, Wong MS, Mosleh M, Milow P. Determining hypertensive patients’ beliefs towards medication and associations with medication adherence using machine learning methods. PeerJ. (2020) 8:e8286. doi: 10.7717/peerj.8286
51. Gu Y, Zalkikar A, Liu M, Kelly L, Hall A, Daly K, et al. Predicting medication adherence using ensemble learning and deep learning models with large scale healthcare data. Sci Rep. (2021) 11:18961. doi: 10.1038/s41598-021-98387-w
52. Koesmahargyo V, Abbas A, Zhang L, Guan L, Feng S, Yadav V, et al. Accuracy of machine learning-based prediction of medication adherence in clinical research. Psychiatry Res. (2020) 294:113558. doi: 10.1016/j.psychres.2020.113558
53. Son Y-J, Kim H-G, Kim E-H, Choi S, Lee S-K. Application of support vector machine for prediction of medication adherence in heart failure patients. Healthc Inf Res. (2010) 16:253–9. doi: 10.4258/hir.2010.16.4.253
54. Li X, Xu H, Li M, Zhao D. (2021). Using machine learning models to study medication adherence in hypertensive patients based on national stroke screening data, in: 2021 IEEE 9th international conference on bioinformatics and computational biology (ICBCB) 2021: IEEE. doi: 10.1109/TGRS.2018.2815613
Keywords: medication adherence, diabetes, machine learning, classification, prediction
Citation: Kassaw EA, Sendekie AK, Enyew BM and Abate BB (2025) Machine learning applications to classify and monitor medication adherence in patients with type 2 diabetes in Ethiopia. Front. Endocrinol. 16:1486350. doi: 10.3389/fendo.2025.1486350
Received: 11 September 2024; Accepted: 28 February 2025;
Published: 20 March 2025.
Edited by:
Åke Sjöholm, Gävle Hospital, SwedenReviewed by:
Jun Jie Benjamin Seng, Ministry of Health, SingaporeCopyright © 2025 Kassaw, Sendekie, Enyew and Abate. 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) and the copyright owner(s) 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: Biruk Beletew Abate, YmlydWtrZWxlbWJAZ21haWwuY29t
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.
Research integrity at Frontiers
Learn more about the work of our research integrity team to safeguard the quality of each article we publish.