Clustering Analysis for Anemia Risk Profiling in Hospital Patients Using K-Prototypes Approach
Abstract
Anemia in inpatients represent a complex clinical condition often associated with systemic responses such as inflammation and infection. However, conventional univariate approaches based solely on hemoglobin (Hb) levels frequently fail to capture the multidimensional nature of anemia risk, particularly in mixed-type clinical datasets. This study aims to develop an anemia risk stratification framework by integrating hematological and demographic variables using the K-Prototypes clustering algorithm. The dataset consisted of 587 patient records collected from multiple hospitals in Central Java, Indonesia, including hemoglobin, leukocytes, platelets, age, and sex. Data preprocessing involved cleaning, standardization, and mixed-data transformation prior to clustering analysis. Multiple cluster configurations ( = 3, = 4, and = 5) were evaluated using the Elbow Method and clustering validation metrics, including Silhouette Score, Davies–Bouldin Index, and Calinski–Harabasz Index. The results identified = 4 as the optimal clustering configuration, providing the best balance between cluster separation and interpretability. Subsequently, the identified clusters were clinically interpreted into three risk categories, including High Risk, Moderate Risk, and Normal Risk. The High-Risk group exhibited the lowest mean Hb level (9.27 g/dL), while the Moderate Risk group was characterized by elevated leukocyte counts (19.2k/µL), suggesting distinct hematological patterns. The Normal Risk group demonstrated relatively stable hematological profiles and higher mean age. Statistical testing confirmed significant differences among risk profiles for age, hemoglobin, leukocytes, platelets, and gender ( < 0.001). These findings demonstrate that anemia-related risk patterns are influenced by multidimensional interactions among hematological and demographic factors. The proposed framework provides clinically meaningful patient stratification and has potential applications in electronic medical record systems and clinical decision support environments.
Downloads
References
W. Zheng, B. Peng, Y. Wu, L. Gauan, S. Wang, and H. Ning, “Global, regional, and national anemia burden among women of reproductive age (15–49 years) from 1990 to 2021: an analysis of the Global Burden of Disease Study 2021,” Front. Nutr., vol. 12, 2025, doi: https://doi.org/10.3389/fnut.2025.1588496.
Z. Sugiyanto et al., “Clinical Data and Laboratory Tests on Covid-19 Patients in Six (6) Hospitals in 2021,” Int. J. Heal. Lit. Sci., vol. 2, no. 1, pp. 41–46, 2024, doi: https://doi.org/10.60074/ihelis.v2i1.57.
S. Aiwale et al., “Non-invasive Anemia Detection and Prediagnosis,” J. Pharmacol. Pharmacother., vol. 15, pp. 408–416, 2024, doi: https://doi.org/10.1177/0976500X241276307.
M. Anai et al., “Decrease in hemoglobin level predicts increased risk for severe respiratory failure in COVID-19 patients with pneumonia,” Respir. Investig., vol. 59, pp. 187–193, 2020, doi: https://doi.org/10.1016/j.resinv.2020.10.009.
S. Rahmaniar, B. Kusuma, and Irfanuddin, “Analysis of the Role of Age Factors on Hemoglobin, Leukocyte and Platelet Levels in Breast Cancer Patients Post Chemotherapy 3 Cycles at Dr. Mohammad Hoesin General Hospital, Palembang, Indonesia,” Sriwij. J. Surg., vol. 7, no. 2, pp. 629–637, 2024, doi: https://doi.org/10.37275/sjs.v7i2.103.
O. Karnabeda, T. Yehorova, and K. Khurdepa, “Anemia of Chronic Disease (Literature review and a clinical case),” Fam. Med. Eur. Pract., no. 4, pp. 154–161, 2025, doi: https://doi.org/10.30841/2786-720X.4.2025.349484.
Q. Zhao et al., “Association between platelet/high-density lipoprotein cholesterol ratio and blood eosinophil counts in American adults with asthma: a population-based study,” Lipids Health Dis., vol. 24, 2025, doi: https://doi.org/10.1186/s12944-025-02479-9.
O. Golomb, I. Schushan-Eisen, A. Maayan-metzger, N. Elisha, T. Strauss, and R. Mazkereth, “The Clinical Significance of Extreme Leukocytosis among Newborns: A Retrospective Cohort Study,” Am. J. Perinatol., vol. 41, pp. e470–e476, 2022, doi: https://doi.org/10.1055/a-1906-9048.
M. A. Haft et al., “Identification of Data-Driven Preoperative Hemoglobin Strata That Predict the Likelihood of Blood Transfusion and the Risk of Major Complications and Prosthetic Joint Infection After Total Hip Arthroplasty,” J. Am. Acad. Orthop. Surg., vol. 33, pp. 127–134, 2024, doi: https://doi.org/10.5435/jaaos-d-24-00435.
P. Yang et al., “Clinical significance of hemoglobin level and blood transfusion therapy in elderly sepsis patients: A retrospective analysis.,” Am. J. Emerg. Med., vol. 73, pp. 27–33, 2023, doi: https://doi.org/10.1016/j.ajem.2023.08.005.
A. Pranolo et al., “Enhanced Multivariate Time Series Analysis Using LSTM: A Comparative Study of Min-Max and Z-Score Normalization Techniques,” Ilk. J. Ilm., vol. 16, no. 2, pp. 210–219, 2024, doi: https://doi.org/10.33096/ilkom.v16i2.2333.210-220.
A. A. A. R. Hassan et al., “Perioperative Anemia, Gender, Blood Transfusion and Urine Output during Cardiopulmonary Bypass: Risk Factors for Acute K. Injury,” Pakistan J. Med. Heal. Sci., vol. 16, no. 4, pp. 270–272, 2022, doi: https://doi.org/10.53350/pjmhs22164270.
M. Rezaeiahari et al., “Pediatric asthma population risk stratification using k-means clustering,” J. Asthma, vol. 62, pp. 2060–2069, 2025, doi: https://doi.org/10.1080/02770903.2025.2552745.
D. N. A. Putri, M. Jannah, S. D. Puspita, and Y. Yuanta, “Mapping Adolescents Vulnerable to Early Marriage Using K-Means Clustering: Strategies for Nutrition Prevention,” Int. J. Stud. Soc. Sci. Humanit., vol. 2, no. 2, pp. 124–133, 2025, doi: https://doi.org/10.25047/ijossh.v2i2.6722.
R. Buaton and S. Solikhun, “The Application of Numerical Measure Variations in K-Means Clustering for Grouping Data,” MATRIK J. Manajemen, Tek. Inform. dan Rekayasa Komput., vol. 23, no. 1, pp. 103–112, 2023, doi: https://doi.org/10.30812/matrik.v23i1.3269.
A. D. Ratulangi, H. Djohan, and L. Kamilla, “The Relationship Between NS1 Examination and the Examination of Hemoglobin, Hematocrit, Leukocytes, Platelets, and Erythrocytes in Dengue Fever (DBD) Patients in The Pediatric Ward,” MEDICA (International Med. Sci. Journal), vol. 7, no. 1, pp. 32–39, 2025, doi: https://doi.org/10.53770/medica.v7i1.486.
I. Blydt-Hansen et al., “Evaluating Hemoglobin Thresholds on the Basis of Sex: Preliminary Insights from a Systematic Review,” Blood, vol. 142, no. 1, pp. 7200–7201, 2023, doi: https://doi.org/10.1182/blood-2023-190173.
K. Ito, Y. Mitobe, R. Inoue, and M. Momoeda, “The quality of life and work productivity are affected by the presence of nausea/vomiting in patients taking iron preparations for heavy menstrual bleeding or anemia: a population-based cross-sectional survey in Japan,” BMC Womens. Health, vol. 24, 2024, doi: https://doi.org/10.1186/s12905-024-03104-0.
R. Aschenbruck, G. Szepannek, and A. F. X. Wilhelm, “Initialization strategies for clustering mixed-type data with the k-prototypes algorithm,” Adv. Data Anal. Classif., 2025, doi: https://doi.org/10.1007/s11634-025-00639-4.
R. Tao, H. Li, and X. Yu, “MSKP: A Proposed K-Prototypes Clustering Algorithm for Multi-Source Medical Data,” 2025 44th Chinese Control Conf., pp. 3933–3938, 2025, doi: https://doi.org/10.23919/CCC64809.2025.11178972.
J. M. G. Vilar and L. Saiz, “Reliably quantifying the evolving worldwide dynamic state of the COVID-19 outbreak from death records, clinical parametrization, and demographic data,” Sci. Rep., vol. 11, 2021, doi: https://doi.org/10.1038/s41598-021-99273-1.
A. D. Chestnikhina, D. O. Efremenko, N. A. Kabina, M. O. Reviakina, I. A. Snimshchikova, and A. V Konshina, “Developing Legal Competences in Medical Students as Applied to Biomedical Research: Pedagogical Experience Based on the Standards of the Declaration of Helsinki,” Rudn J. Psychol. Pedagog., vol. 22, no. 3, pp. 552–573, 2026, doi: https://doi.org/10.22363/2313-1683-2025-22-3-552-573.
D. Costal, C. Farr’e, X. Franch, and C. Quer, “Inclusion and Exclusion Criteria in Software Engineering Tertiary Studies: A Systematic Mapping and Emerging Framework,” Proc. 15th ACM / IEEE Int. Symp. Empir. Softw. Eng. Meas., 2021, doi: https://doi.org/10.1145/3475716.3484190.
A. B. Wiratman and W. Wella, “Personalized Learning Models Using Decision Tree and Random Forest Algorithms in Telecommunication Company,” JOIV Int. J. Informatics Vis., vol. 8, no. 1, pp. 318–325, 2024, doi: https://dx.doi.org/10.62527/joiv.8.1.1905.
M. L. Tauryawati and A. F. Zainuddin, “Mapping Disaster-Prone Areas on Java Island Using The K-PROTOTYPES Algorithm,” BAREKENG J. Ilmu Mat. dan Terap., vol. 20, no. 1, pp. 179–196, 2025, doi: https://doi.org/10.30598/barekengvol20iss1pp0179-0196.
G. F. Shidik, O. Setiono, E. J. Kusuma, L. B. Handoko, P. N. Andono, and M. F. Abdollah, “Novel Unsupervised Cluster Reinforcement Q-Learning in Minimizing Energy Consumption of Federated Edge Cloud,” IEEE Access, vol. 13, pp. 92577–92595, 2025, doi: 10.1109/ACCESS.2025.3572084.
E. Mantadakis, “Iron Deficiency Anemia in Children Residing in High and Low-Income Countries: Risk Factors, Prevention, Diagnosis and Therapy,” Mediterr. J. Hematol. Infect. Dis., vol. 12, 2020, doi: https://doi.org/10.4084/mjhid.2020.041.
A. S. Yaro, F. Maly, P. Prazak, and K. Malý, “Outlier Detection Performance of a Modified Z-Score Method in Time-Series RSS Observation With Hybrid Scale Estimators,” IEEE Access, vol. 12, pp. 12785–12796, 2024, doi: https://doi.org/10.1109/ACCESS.2024.3356731.
B. Peng and J. Zhu, “Self-Calibration Method for Microfacet Slope Standard Deviation σ in Leaf BRDF Microfacet Model Fitting,” Opt. Contin., vol. 4, no. 12, pp. 2813–2824, 2025, doi: https://doi.org/10.1364/OPTCON.564304.
B. D. Roth, M. G. Saunders, C. M. Bachmann, and J. van Aardt, “On Leaf BRDF Estimates and Their Fit to Microfacet Models,” IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens., vol. 13, pp. 1761–1771, 2020, doi: https://doi.org/10.1109/JSTARS.2020.2988428.
H. Hafid and S. Annisa, “Implementation of K-MEDOIDS And K-PROTOTYPES Clustering For Early Detection of Hypertension Disease,” BAREKENG J. Ilmu Mat. dan Terap., vol. 19, no. 1, pp. 465–476, 2025, doi: https://doi.org/10.30598/barekengvol19iss1pp0465-0476.
A. V Eremeev, A. V Kel’manov, M. Y. Kovalyov, and A. V Pyatkin, “Selecting a subset of diverse points based on the squared euclidean distance,” Ann. Math. Artif. Intell., vol. 90, pp. 965–977, 2021, doi: https://doi.org/10.1007/s10472-021-09773-z.
M. Molina and D. P. Payá, “Data-Driven Inventory Policy Assignment in ETO Environments Using Fuzzy K-Prototypes Clustering,” Mathematics, vol. 14, no. 12, pp. 1–23, 2026, doi: https://doi.org/10.3390/math14122206.
N. I. Hussain, K. Boruah, and A. Akhtar, “Predicting Evolutionary Importance of Amino Acids through Mutation of Codons Using K- means Clustering,” J. Electron. Electromed. Eng. Med. Informatics, vol. 7, no. 1, pp. 13–26, 2025, doi: https://doi.org/10.35882/jeeemi.v6i4.457.
K. Siddavatam and S. Shinde, “of Imbalance Medical Data Using Nature Inspired Percolation Clustering,” J. Electron. Electromed. Eng. Med. Informatics, vol. 7, no. 3, pp. 740–762, 2025, doi: https://doi.org/10.35882/jeeemi.v7i3.835.
Z. Jiao, S. Chen, H. Shi, and J. Xu, “Multi-Modal Feature Selection with Feature Correlation and Feature Structure Fusion for MCI and AD Classification,” Brain Sci., vol. 12, 2022, doi: https://doi.org/10.3390/brainsci12010080.
D. Chicco, A. Campagner, A. Spagnolo, D. Ciucci, and G. Jurman, “The Silhouette coefficient and the Davies-Bouldin index are more informative than Dunn index, Calinski-Harabasz index, Shannon entropy, and Gap statistic for unsupervised clustering internal evaluation of two convex clusters,” PeerJ Comput. Sci., vol. 11, p. e3309, 2025, doi: https://doi.org/10.7717/peerj-cs.3309.
H. Benhammou, K. Anoune, and A. Tajmouati, “Determining LFP Battery Parameters through Sum of Squared Errors Optimization,” 2025 11th Int. Conf. Optim. Appl., pp. 1–4, 2025, doi: https://doi.org/10.1109/ICOA66896.2025.11236837.
D. Chicco, A. Sichenze, and G. Jurman, “A simple guide to the use of Student’s t-test, Mann-Whitney U test, Chi-squared test, and Kruskal-Wallis test in biostatistics,” BioData Min., vol. 18, 2025, doi: https://doi.org/10.1186/s13040-025-00465-6.
L. Stěpánek, F. Habarta, I. Malá, and L. Marek, “A short note on post-hoc testing using random forests algorithm: Principles, asymptotic time complexity analysis, and beyond,” 2022 17th Conf. Comput. Sci. Intell. Syst., vol. 30, pp. 489–497, 2022, doi: http://dx.doi.org/10.15439/2022F265.
H. Mukherjee and P. Bhonge, “Assessing Skew Normality in Marks Distribution, a Comparative Analysis of Shapiro Wilk Tests,” in arXivLabs: experimental projects with community collaborators, 2025, pp. 1–8. doi: https://doi.org/10.48550/arXiv.2501.14845.
Copyright (c) 2026 Oki Setiono, Zaenal Sugiyanto, Dyah Ernawati, Arif Kurniadi, Ika Pantiawati, Mohamad Nazri Husin

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution-ShareAlikel 4.0 International (CC BY-SA 4.0) that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).


.png)
.png)
.png)
.png)
.png)