journal article·2026-03-10Open access

Diabetes Classification with Symptom Data: Apriori-Based Feature Selection and Performance Comparison

Ali Vasfi Ağlarcı, Feridun Karakurt

Applied Sciences· Volume 16· Issue 6

Abstract

Background and Objectives: Diabetes mellitus is a chronic disease prevalent worldwide, carrying significant health and economic burdens. Early diagnosis is critical for effective disease management; however, the multidimensional and complex nature of diabetes makes accurate prediction challenging. In this study, an original feature selection approach based on the Apriori algorithm, traditionally used in market basket analysis, is proposed to identify symptom patterns associated with diabetes. The literature emphasizes that feature selection remains an active research problem. Materials and Methods: A real-world dataset consisting of 16 categorical symptom variables from 520 individuals, obtained from the UCI Machine Learning Repository, was used. Variable encoding, missing data checks, and continuous variable transformations were performed during the preprocessing stages. The basic symptoms frequently associated with diabetes were identified through association analysis using the Apriori algorithm, and these features were used for classification with four different machine learning algorithms (K-Nearest Neighbors, Support Vector Machines, Artificial Neural Networks, and Random Forests). Accuracy, precision, sensitivity, specificity, and F1 score metrics were considered in evaluations conducted on both full and reduced datasets. Results: Feature selection was found to significantly improve model performance, with the SVM algorithm achieving the highest success rate at 97% accuracy and an F1 score of 0.961. KNN stood out in identifying positive cases with 0.975 sensitivity. Conclusions: These findings reveal that Apriori-based feature selection is an effective and explainable method for symptom-based diabetes prediction. This method can contribute to the development of low-cost, symptom-based decision support systems, especially in areas with limited resources.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Artificial Intelligence in Healthcare · Machine Learning in Healthcare · Traditional Chinese Medicine Studies

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Biostatistics, Faculty of Medicine, Kastamonu University, Kastamonu 37150, Türkiye

Department of Internal Medicine, Faculty of Medicine, Necmettin Erbakan University, Konya 42090, Türkiye

References (49)

Show source-provided references
1. Kakoly, I.J., Hoque, M.R., and Hasan, N. (2023). Data-Driven Diabetes Risk Factor Prediction Using Machine Learning Algorithms with Feature Selection Technique. Sustainability, 15.10.3390/su15064930 ↗
2. Diabetes prediction using supervised machine learning10.1016/j.procs.2022.12.107 ↗
3. Artificial flora algorithm-based feature selection with gradient boosted tree model for diabetes classification10.2147/DMSO.S312787 ↗
4. Classification models for likelihood prediction of diabetes at early stage using feature selection10.1108/ACI-01-2021-0022 ↗
5. Zhou, H., Xin, Y., and Li, S. (2023). A diabetes prediction model based on Boruta feature selection and ensemble learning. BMC Bioinform., 24.10.1186/s12859-023-05300-5 ↗
6. Aljuraiban, G.S., Alharbi, F.J., Aljohi, A.O., Almeshari, A.Z., Alotaibi, M.N., AlShammari, S.S., Al-Musharaf, S., Aldhwayan, M.M., and Abudawood, M. (2024). Systemic immune-inflammation index in relation to diabetes markers in Saudi adults: A retrospective study. Medicina, 60.10.3390/medicina60030442 ↗
7. Cloud-based framework for diagnosis of diabetes mellitus using K-means clustering10.1007/s13755-018-0054-0 ↗
8. Kotsis, G., Tjoa, A.M., Khalil, I., Moser, B., Mashkoor, A., Sametinger, J., and Khan, M. (2023). An Effective Feature Selection for Diabetes Prediction. Database and Expert Systems Applications—DEXA 2023 Workshops, Springer. DEXA 2023, Communications in Computer and Information Science.10.1007/978-3-031-39689-2 ↗
9. Xu, Z., and Wang, Z. (2019). A risk prediction model for type 2 diabetes based on weighted feature selection of random forest and XGBoost ensemble classifier. 2019 Eleventh International Conference on Advanced Computational Intelligence (ICACI), Guilin, China, 7–9 June 2019, IEEE.10.1109/ICACI.2019.8778622 ↗
10. An adaptive ensemble feature selection technique for model-agnostic diabetes prediction10.1038/s41598-025-91282-8 ↗
11. Kaliappan, J., Saravana Kumar, I.J., Sundaravelan, S., Anesh, T., Rithik, R.R., Singh, Y., Vera-Garcia, D.V., Himeur, Y., Mansoor, W., and Atalla, S. (2024). Analyzing classification and feature selection strategies for diabetes prediction across diverse diabetes datasets. Front. Artif. Intell., 7.10.3389/frai.2024.1421751 ↗
12. Alhussan, A.A., Abdelhamid, A.A., Towfek, S.K., Ibrahim, A., Eid, M.M., Khafaga, D.S., and Saraya, M.S. (2023). Classification of Diabetes Using Feature Selection and Hybrid Al-Biruni Earth Radius and Dipper Throated Optimization. Diagnostics, 13.10.3390/diagnostics13122038 ↗
13. Diabetes prediction: Optimization of machine learning through feature selection and dimensionality reduction
14. A novel wrapper–based feature selection for early diabetes prediction enhanced with a metaheuristic10.1109/ACCESS.2020.3047942 ↗
15. Early stage diabetes prediction by feature selection with metaheuristic methods10.5505/pajes.2022.82610 ↗
16. NSGA-II-XGB: Meta-heuristic feature selection with XGBoost framework for diabetes prediction10.1002/cpe.7123 ↗
17. Related factors mining of diabetes complications based on manifold-constrained multi-label feature selection10.1109/JBHI.2024.3406135 ↗
18. Early detection of diabetes mellitus using feature selection and fuzzy support vector machine10.1016/j.procs.2019.08.140 ↗
19. Design of intelligent diabetes mellitus detection system using hybrid feature selection based XGBoost classifier10.1016/j.compbiomed.2021.104664 ↗
20. Diabetes prediction model for unbalanced community follow-up data set based on optimal feature selection and scorecard10.1177/20552076241236370 ↗
21. Fuzzy unordered rule using greedy hill climbing feature selection method: An application to diabetes classification
22. Aglarci, A.V., and Karakurt, F. (2025). Symptoms affecting the development of diabetes: Analysis of risk factors with data mining. BMC Med. Inf. Decis. Mak., 25.10.1186/s12911-025-03159-5 ↗
23. Efficient framework for sentiment classification using Apriori based feature reduction
24. Enhancing multi-class text classification with Apriori-based feature selection10.51477/mejs.1475196 ↗
25. UCI Machine Learning Repository (2025, February 01). Early Stage Diabetes Risk Prediction Dataset. Available online: https://archive.ics.uci.edu/ml/datasets/Early+stage+diabetes+risk+prediction+dataset.
26. Sagin, A.N., and Ayvaz, B. (2018). Determination of association rules with market basket analysis: Application in the retail sector. Southeast Eur. J. Soft Comput., 7.10.21533/scjournal.v7i1.149 ↗
27. Implementation of Apriori algorithm for analysis of consumer purchase patterns10.1088/1742-6596/1255/1/012057 ↗
28. Han, J., Kamber, M., and Pei, J. (2012). Data Mining: Concepts and Techniques, Morgan Kaufmann. [3rd ed.].
29. Using Apriori with WEKA for frequent pattern mining10.14445/22315381/IJETT-V12P223 ↗
30. Tan, P.-N., Steinbach, M., and Kumar, V. (2014). Introduction to Data Mining, Pearson Education Limited.
31. An Introduction to Kernel and Nearest-Neighbor Nonparametric Regression10.1080/00031305.1992.10475879 ↗
32. Vapnik, N.V. (1998). Statistical Learning Theory, Wiley.
33. Induction of decision trees10.1023/A:1022643204877 ↗
34. Artificial Neural Networks: An Overview10.58496/MJCSC/2023/015 ↗
35. Diabetes prediction model using machine learning techniques10.1007/s11042-023-16745-4 ↗
36. A comparison of machine learning algorithms for diabetes prediction10.1016/j.icte.2021.02.004 ↗
37. Sport participation in pediatric age affects modifications in diabetes markers in adulthood10.1007/s13410-016-0516-3 ↗
38. Classification and prediction of diabetes disease using machine learning paradigm10.1007/s13755-019-0095-z ↗
39. Early prediction of diabetes using feature selection and machine learning algorithms10.1007/s42979-023-02545-y ↗
40. Logistic regression prediction models and key influencing factors analysis of diabetes based on algorithm design10.1007/s00521-023-08447-7 ↗
41. Accurate diabetes risk stratification using machine learning: Role of missing value and outliers10.1007/s10916-018-0940-7 ↗
42. Patel, H., Farrelly, C., Hathaway, Q.A., Rozenblit, J.Z., Deepa, D., Singh, Y., Chaudhary, A., Himeur, Y., Mansoor, W., and Atalls, S. (2023). Topology-aware gan (topogan): Transforming medical imaging advances. 2023 Tenth International Conference on Social Networks Analysis, Management and Security (SNAMS), Abu Dhabi, United Arab Emirates, 21–24 November 2023, IEEE.10.1109/SNAMS60348.2023.10375442 ↗
43. Singh, Y., Farrelly, C., Hathaway, Q.A., Carrubba, A.R., Deepa, D., Friebe, M., Chaudhary, A., Atalls, S., Mansoor, W., and Himeur, Y. (2023). The critical role of homotopy continuation in robotic-assisted surgery-future perspective. 2023 Tenth International Conference on Social Networks Analysis, Management and Security (SNAMS), Abu Dhabi, United Arab Emirates, 21-24 November 2023, IEEE.10.1109/SNAMS60348.2023.10375412 ↗
44. All answers are in the images: A review of deep learning for cerebrovascular segmentation10.1016/j.compmedimag.2023.102229 ↗
45. Mohanty, P.K., Francis, S.A.J., Barik, R.K., Roy, D.S., and Saikia, M.J. (2024). Leveraging Shapley Additive Explanations for Feature Selection in Ensemble Models for Diabetes Prediction. Bioengineering, 11.10.3390/bioengineering11121215 ↗
46. Comparison of performance of data mining algorithms in prediction of diabetes disease
47. A comparative approach for Pima Indians diabetes diagnosis using LDA-support vector machine and feed forward neural network
48. Wide-ranging approach-based feature selection for classification10.1007/s11042-022-14132-z ↗
49. Chi-Square and PCA Based Feature Selection for Diabetes Detection with Ensemble Classifier10.32604/iasc.2023.028257 ↗