Predicting Heart Disease with Enhanced Genetic Algorithms: The Role of Latin Hypercube Sampling and Hamming Distance-Based Diversity

Authors

  • Fi Imanur Sifaunnufus Ms Brawijaya University, Malang
  • Amila Fadhila Rahmaniati Brawijaya University, Malang
  • Maulida Khairunisa Argaputri Brawijaya University, Malang
  • Yonathan Fanuel Mulyadi Brawijaya University, Malang
  • Lailil Muflikhah Brawijaya University, Malang

DOI:

https://doi.org/10.25126/jitecs.2025102946

Abstract

Heart disease remains a predominant cause of mortality globally and in Indonesia, impacting both older and younger demographics due to pervasive unhealthy lifestyles, heredity, and lack of awareness of heart disease. This study addresses the critical problem of necessitating early detection methods to mitigate severe complications and fatalities associated with heart disease. With that, it is crucial to develop a robust and highly accurate prediction model for heart disease by integrating Artificial Neural networks (ANN) with Genetic Algorithms (GA). The model starts by constructing an ANN model utilizing the Keras Framework for streamlined training, followed by hyperparameter optimization through GA. As a result, this research found that the integrated ANN and GA model attains superior predictive accuracy, with the optimal configuration achieving an accuracy of 85.33%, precision of 92.55%,  recall of 81.32%, and f1-score of 86.57% via Latin Hypercube Sampling (LHS). These show that the combination of ANN and GA can significantly increase prediction accuracy and model efficiency, as a solution for more effective heart disease identification at an early stage.

Downloads

Download data is not yet available.

References

1. World Health Organization, "Cardiovascular diseases (CVDs)," 2021. [Online]. [Accessed: 15-Jun-2024].

2. Kemenkes RI, "Penyakit Jantung Penyebab Utama Kematian, Kemenkes Perkuat Layanan Primer," 2022. [Online]. Available: https://www.kemkes.go.id/article/view/22092900001/penyakit-jantung-penyebab-utama-kematian-kemenkes-perkuat-layanan-primer. [Accessed: 15-Jun-2024].

3. J. S. Aluru, A. Barsouk, K. Saginala, P. Rawla, and A. Barsouk, "Valvular Heart Disease Epidemiology," Medical sciences (Basel, Switzerland), vol. 10, no. 2, 2022. doi: 10.3390/medsci10020032.

4. A. Lakshmi and R. Devi, "Heart Disease Prediction Model using Genetic Algorithm and Support Vector Machine," in Proceedings of the 7th International Conference on Intelligent Computing and Control Systems, ICICCS 2023, pp. 824-829, 2023. doi: 10.1109/ICICCS56967.2023.10142858.

5. D. Shah, S. Patel, and S. K. Bharti, "Heart Disease Prediction using Machine Learning Techniques," SN Computer Science, vol. 1, no. 6, 2020. doi: 10.1007/s42979-020-00365-y.

6. V. Sharma, S. Yadav, and M. Gupta, "Heart Disease Prediction using Machine Learning Techniques," in Proceedings - IEEE 2020 2nd International Conference on Advances in Computing, Communication Control and Networking, ICACCCN 2020, pp. 177-181, 2020. doi: 10.1109/ICACCCN51052.2020.9362842.

7. M. Fathurachman, U. Kalsum, N. Safitri, and C. Utomo, "Heart disease diagnosis using extreme learning based neural networks," in 2014 International Conference of Advanced Informatics: Concept, Theory and Application (ICAICTA), pp. 23-27, 2014.

8. M. G. M. Abdolrasol, S. M. Suhail Hussain, T. S. Ustun, M. R. Sarker, M. A. Hannan, R. Mohamed, J. A. Ali, S. Mekhilef, and A. Milad, "Artificial neural networks based optimization techniques: A review," Electronics (Switzerland), vol. 10, no. 21, 2021. doi: 10.3390/electronics10212689.

9. S. Katoch, S. S. Chauhan, and V. Kumar, "A review on genetic algorithm: past, present, and future," Multimedia Tools and Applications, vol. 80, no. 5, pp. 8091-8126, 2021. doi: 10.1007/s11042-020-10139-6.

10. M. A. Albadr, S. Tiun, M. Ayob, and F. Al-Dhief, "Genetic algorithm based on natural selection theory for optimization problems," Symmetry, vol. 12, no. 11, pp. 1-31, 2020. doi: 10.3390/sym12111758.

11. M. Zope, S. Birje, and A. Vasudevan, "A SYSTEM FOR HEART DISEASE PREDICTION USING DATA MINING TECHNIQUES," 2016.

12. J. Arroyo and A. Delima, "An Optimized Neural Network Using Genetic Algorithm for Cardiovascular Disease Prediction," Journal of Advances in Information Technology, 2022.

13. M. Abushariah, A. Alqudah, O. Adwan, and R. Yousef, "Automatic Heart Disease Diagnosis System Based on Artificial Neural Network (ANN) and Adaptive Neuro-Fuzzy Inference Systems (ANFIS) Approaches," Journal of Software Engineering and Applications, vol. 7, pp. 1055-1064, 2014.

14. O. Atkov, S. Gorokhova, A. Sboev, E. Generozov, E. Muraseyeva, S. Moroshkina, and N. Cherniy, "Coronary heart disease diagnosis by artificial neural networks including genetic polymorphisms and clinical parameters," Journal of Cardiology, vol. 59, no. 2, pp. 190-194, 2012.

15. A. Kulshreshth, M. Yadav, and G. Sharma, "Detecting Cardiac Ailments using Machine Learning," in 2022 2nd International Conference on Intelligent Technologies (CONIT), pp. 1-5, 2022.

16. H. Calderon-Vilca, K. Callupe, R. Aliaga, J. Cuba, and F. Mariño-Cárdenas, "Early Cardiac Disease Detection Using Neural Networks," in 2019 7th International Engineering, Sciences and Technology Conference (IESTEC), pp. 562-567, 2019.

17. M. Nabih-Ali, E. El-Dahshan, and A. Yahia, "Heart Diseases Diagnosis Using Intelligent Algorithm Based on PCG Signal Analysis," Circuits and Systems, vol. 8, pp. 184-190, 2017.

18. Fedesoriano, "Heart Failure Prediction Dataset," Kaggle, Sep. 2021. [Online]. Available: https://www.kaggle.com/fedesoriano/heart-failure-prediction. [Accessed: 15-Jun-2024].

19. R. Dastres and M. Soori, "Artificial Neural Network Systems," International Journal of Imaging and Robotics (IJIR), vol. 21, no. 2, pp. 13-25, Sep. 2021. [Online]. Available: https://hal.science/hal-03349542. [Accessed: 15-Jun-2024].

20. S. N. Sivanandam and S. N. Deepa, "Genetic algorithms," in Genetic Algorithms, Springer Berlin Heidelberg, pp. 15-37, 2008.

21. S. Nikbakht, C. Anitescu, and T. Rabczuk, "Optimizing the neural network hyperparameters utilizing genetic algorithm," Journal of Zhejiang University-SCIENCE A, vol. 22, pp. 407–426, 2021. doi: 10.1631/jzus.A2000384.

22. J.-H. Han, D.-J. Choi, S.-U. Park, and S.-K. Hong, "Hyperparameter Optimization for Multi-Layer Data Input Using Genetic Algorithm," in 2020 IEEE 7th International Conference on Industrial Engineering and Applications (ICIEA), pp. 701-704, 2020. doi: 10.1109/ICIEA49774.2020.9101973.

23. H. Zhao and N. Alachiotis, "Data preprocessing methods for selective sweep detection using convolutional neural networks," Methods, vol. 233, pp. 19–29, 2025. doi: 10.1016/j.ymeth.2024.11.003.

24. S. J. Rosli, H. A. Rahim, K. N. A. Rani, R. Ngadiran, R. B. Ahmad, N. Z. Yahaya, M. Abdulmalek, M. Jusoh, M. N. M. Yasin, T. Sabapathy, and A. M. Andrew, "A hybrid modified method of the sine cosine algorithm using latin hypercube sampling with the cuckoo search algorithm for optimization problems," Electronics (Switzerland), vol. 9, no. 11, pp. 1-23, 2020. doi: 10.3390/electronics9111786.

25. L. Yang, X. Li, J. Shi, F. Shen, F. Qi, B. Gao, Z. Chen, A. X. Zhu, and C. Zhou, "Evaluation of conditioned Latin hypercube sampling for soil mapping based on a machine learning method," Geoderma, vol. 369, 2020. doi: 10.1016/j.geoderma.2020.114337.

26. F. Zhang, L. Cheng, M. Wu, X. Xu, P. Wang, and Z. Liu, "Performance analysis of two-stage thermoelectric generator model based on Latin hypercube sampling," Energy Conversion and Management, vol. 221, 2020. doi: 10.1016/j.enconman.2020.1131

Downloads

Published

2026-08-20

Issue

Section

Articles

How to Cite

Predicting Heart Disease with Enhanced Genetic Algorithms: The Role of Latin Hypercube Sampling and Hamming Distance-Based Diversity. (2026). Journal of Information Technology and Computer Science, 10(2), 221-231. https://doi.org/10.25126/jitecs.2025102946