Generalization Investigation in Heart Disease Prediction: Comparative Analysis of MLP, Random Forest, and SVM with Cross-Domain Datasets

Authors

  • Shansong Zhou

DOI:

https://doi.org/10.61173/ej47s420

Keywords:

Machine learning, heart disease, generalization

Abstract

The traditional way of predicting heart disease is usually through the subjective judgment of doctors, which is high subjectivity. Current machine learning methods do not pay enough attention to its universality. The two datasets used in this study are from Kaggle and preprocessed in advance, including standardization by using Z-Score and dimensionality reduction by KPCA. The two datasets were designated as the source domain and the target domain. The source domain dataset was further divided into two subsets with an 80:20 split, where 80% was used for training the model and the remaining 20% served as the test set. The trained model was then applied to the target domain to compare the differences in prediction results. Through the exploration of Multilayer Perceptron (MLP), Random Forest and Support Vector Machine (SVM), for the data set used in this study, when MLP uses a simple structure, the difference in prediction accuracy dropped from 13.8% to 5.07. For Random Forest, by increasing the number of decision trees and decreasing the minimum number of samples required for splitting, the difference is reduced from 15.6% to 9.32%. By modifying the penalty parameter C value of SVM, the difference on different datasets is reduced from 13.39% to 4.46%. This study is one of the few to explore the generalizations of heart disease prediction. The results demonstrate that the generalization performance of the model for heart disease prediction can be significantly enhanced through appropriate modifications to its structure and hyperparameters.

References

[1] World Heart Federation. World Heart Federation, 2024, https://world-heart-federation.org/about-whf/.

[2] Liao Y, Tang Z, Gao K, et al. Optimization of resources in intelligent electronic health systems based on internet of things to predict heart diseases via artificial neural network. Heliyon, 2024, 10(11): e32090.

[3] Cheng L, Nie Y, Wen H, et al. An ensemble machine learning model for predicting one-year mortality in elderly coronary heart disease patients with anemia. Journal of Big Data, 2024, 11(1): 99.

[4] Madrid J, Duijvenboden V S, Munroe B P, et al. PO-02-049 ECG-based unsupervised clustering in coronary artery disease detects and predicts heart failure. Heart Rhythm, 2024, 21(5S): S278-S278.

[5] Yue H, YingBo R, Hai Y, et al. Using a machine learningbased risk prediction model to analyze the coronary artery calcification score and predict coronary heart disease and risk assessment. Computers in Biology and Medicine, 2022, 151(PB): 106297.

[6] Varshney K, Paliwal M. Heart Disease Diagnosis by Neural Networks. Journal of Pharmaceutical Research International, 2021: 202-208.

[7] Mexwell. Heart Disease Dataset, 2023. https://www.kaggle. com/datasets/mexwell/heart-disease-dataset/data.

[8] Winson. Heart Disease Dataset, 2023. https://www.kaggle. com/datasets/winson13/heart-disease-dataset/data.

[9] Cybenko G. Approximation by superpositions of a sigmoidal function. Mathematics of Control, Signals, and Systems, 1989, 2(4): 303-314.

[10] Ho T K. Random Decision Forests. Proceedings of the 3rd International Conference on Document Analysis and Recognition, Montreal, QC, 14–16 August 1995: 278–282.

[11] Ho T K. The Random Subspace Method for Constructing Decision Forests. IEEE Transactions on Pattern Analysis and Machine Intelligence, 1998, 20(8): 832-844.

[12] Cortes C, Vapnik V. Support-vector networks. Machine Learning, 1995, 20(3): 273-297.

Downloads

Published

2024-10-29