Prediction of Peritonitis Infection Risk in CAPD Patients using Random Forest Algorithm
DOI:
https://doi.org/10.59934/jaiea.v5i3.2249Keywords:
CAPD; Explainable artificial intelligence; Machine learning; Peritonitis; Random forestAbstract
Peritonitis is a serious complication frequently experienced by patients undergoing Continuous Ambulatory Peritoneal Dialysis (CAPD) and may worsen patient outcomes if not detected early. This study aims to develop a machine learning model to predict peritonitis risk using the Random Forest algorithm and to interpret prediction results using Explainable Artificial Intelligence (XAI). The study utilized a secondary dataset obtained from Kaggle consisting of 20,538 clinical records that were transformed to represent CAPD-related clinical parameters. The research stages included data preprocessing, feature selection using SelectKBest (f_classif), dataset splitting into training and testing sets, model development using Random Forest, and performance evaluation using accuracy, precision, recall, F1-score, and Area Under Curve (AUC). Model interpretability was analyzed using SHAP to identify feature contributions. The experimental results demonstrate that the proposed model achieved an accuracy of 98.70%, precision of 98.22%, recall of 99.24%, F1-score of 98.73%, and AUC of 1.00. The findings indicate that Random Forest provides highly reliable predictive performance and interpretable insights into clinical features influencing peritonitis risk. The developed model has potential to support clinical decision-making systems for early detection of peritonitis risk in CAPD patients.
Downloads
References
Q. An, S. Rahman, J. Zhou, and J. J. Kang, “A comprehensive review on machine learning in healthcare industry: Classification, restrictions, opportunities and challenges,” Sensors, vol. 23, no. 9, p. 4178, 2023, doi: 10.3390/s23094178.
S. Yin et al., “Risk Factors and Pathogen Spectrum in Continuous Ambulatory Peritoneal Dialysis- Associated Peritonitis: A Single Center Retrospective Study,” Med. Sci. Monit., vol. 28, Aug. 2022, doi: 10.12659/MSM.937112.
X. Li, Y. Zhang, and J. Zhao, “Threshold optimization for imbalanced medical data,” BMC Med. Inform. Decis. Mak., vol. 22, no. 1, p. 243, 2022, doi: 10.1186/s12911-022-02041-7.
I. G. Okpechi, “Prevalence of peritonitis and mortality in peritoneal dialysis patients in Africa,” BMJ Open, vol. 10, no. 12, p. e039970, 2020, doi: 10.1136/bmjopen-2020-039970.
A. Heidarian, “Comparison of Random Forest, logistic regression, and SVM in medical risk prediction,” BMC Med. Inform. Decis. Mak., vol. 22, p. 112, 2022, doi: 10.1186/s12911-022-01947-0.
J. Amann, A. Blasimme, E. Vayena, D. Frey, and V. I. Madai, “Explainability for artificial intelligence in healthcare: A multidisciplinary perspective,” BMC Med. Inform. Decis. Mak., vol. 22, no. 1, p. 181, 2022, doi: 10.1186/s12911-022-01865-1.
Z. Chen, Y. Liu, H. Wang, and J. Kang, “Interpretability in clinical machine learning models using SHAP and LIME,” J. Biomed. Inform., vol. 149, p. 104550, 2024, doi: 10.1016/j.jbi.2024.104550.
B. D. Mittelstadt and L. Floridi, “The ethics of artificial intelligence: Mapping the debate,” Minds Mach., vol. 32, no. 2, pp. 403–431, 2022, doi: 10.1007/s11023-022-09606-3.
B. M. Pavlyshenko, “Machine-learning models for sales time series forecasting using data from Kaggle datasets,” Data, vol. 5, no. 1, p. 15, 2020, doi: 10.3390/data5010015.
A. Pfob, “Handling missing data in electronic health record-based machine learning models: A systematic review,” J. Biomed. Inform., vol. 128, p. 104059, 2022, doi: 10.1016/j.jbi.2022.104059.
G. Varoquaux, “Cross-validation strategies for data science,” Adv. Neural Inf. Process. Syst., vol. 34, pp. 13854–13866, 2021, [Online]. Available: https://proceedings.neurips.cc/paper/2021/hash/ab9a86e
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Journal of Artificial Intelligence and Engineering Applications (JAIEA)

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.








