Analisis Prediksi Resiko Perceraian Menggunakan Algoritma Random Forest dengan Optimasi Hyperparameter Random Search
DOI:
https://doi.org/10.30865/jurikom.v13i2.9529Keywords:
Divorce, Random Rorest, Hyperparameter Optimization, Machine Learning, ClasifficationAbstract
Divorce is a social problem that continues to increase and has negative impacts on the psychological, social, and economic conditions of individuals and families. This study aims to build a divorce risk prediction model using the Random Forest algorithm with hyperparameter optimization using the Random Search method. The dataset was obtained from the Kaggle platform with 170 samples and 54 psychological-behavioral attributes of couples. The research stages included data preprocessing, dataset splitting (80:20), baseline model development, hyperparameter optimization with Random Search, and evaluation using accuracy, precision, recall, and AUC-ROC metrics. The results showed that the model achieved 94.12% accuracy on the test data with 97% recall that minimizes false negative risk. Hyperparameter optimization successfully improved the model's internal stability with a cross-validation average of 98.57%, although the test accuracy was equivalent to the baseline model. A gap of 4.45% between validation and test accuracy indicates potential overfitting, which is common in small datasets. Feature importance analysis revealed five dominant psychological factors: willingness to compromise, effective communication, conflict resolution, alignment of life values, and forgiveness ability. This research contributes to the development of an early detection system for divorce risk based on machine learning and provides an empirical basis for more targeted counseling interventions
References
[1] F. Zulfarina, Badaruddin, H. M. Munthe, Sismudjito, and B. Hafi, “Pernikahan Dini Dan Kerentanan Rumah Tangga (Studi Kasus Di Desa Ujung Kubu Kecamatan Tanjung Tiram Kabupaten Batu Bara),” G-Couns J. Bimbing. dan Konseling, vol. 8, no. 01, pp. 67–88, 2023, doi: 10.31316/gcouns.v8i01.5007.
[2] N. S. Manna, S. Doriza, and M. Oktaviani, “Cerai Gugat: Telaah Penyebab Perceraian Pada Keluarga di Indonesia,” J. Al-AZHAR Indones. SERI Hum., vol. 6, no. Maret, p. 11, 2021, doi: 10.36722/sh.v6i1.443.
[3] M. N. Sari, I. Sukmawati, and U. N. Padang, “Faktor Penyebab Perceraian dan Implikasinya dalam Pelayanan Bimbingan dan Konseling aktor Penyebab Perceraian dan Implikasinya dalam Pelayanan Bimbingan dan Konseling.,” J. Konseling dan Pendidik., vol. 3, pp. 16–21, 2015.
[4] M. Syifa, A. Puspitawati, S. Aliffia, and D. D. Kusumawardani, “Analisis Faktor-Faktor yang Mempengaruhi Tingginya Angka Perceraian Pada Masa Pandemi COVID-19: A Systematic Review,” J. Kesehat. TEMBUSAI, vol. 2, no. September, pp. 10–17, 2021, doi: https://doi.org/10.31004/jkt.v2i3.1886.
[5] D. Siregar, B. M. Wardana, A. S. Baihaqy, L. Naimah, A. N. Putri, Q. Meidianingsih, D. Safitri “Determination of Important Variabels in Divorce Type Classification Using the Random Forest Method With Smote,” J. Stat. dan Apl., vol. 8, no. Desember, pp. 229–244, 2024, doi: 10.21009/jsa.08209.
[6] M. M. Ahsan, “Divorce Prediction with Machine Learning: Insights and LIME Interpretability,” Cornel Universty, no. Oktober, 2023, doi: https://doi.org/10.48550/arXiv.2310.08620.
[7] F. P. Tantisnio and N. Wakhidah, “Clustering Women Violence Cases Based on Number in Central Java Province Using K-Means Algorithm,” J. Comput. Sci. Inf. Technol. Telecommun. Eng., vol. 6, no. Oktober, 2025, doi: 10.30596/jcositte.v6i1.21671.
[8] A. Moumen, A. Shafqat, T. Alraqad, E. S. Alshawarbeh, H. Saber, and R. Shafqat, “Divorce prediction using machine learning algorithms in Ha’il region, KSA,” Sci. Rep., vol. 14, no. 1, pp. 1–11, 2024, doi: 10.1038/s41598-023-50839-1.
[9] M. Azwar, I. P. Hariyadi, and R. Azhar, “Assessing Twitter User Sentiment Regarding Divorce Issues Using the Random Forest Method,” Int. J. Eng. Comput. Sci. Appl., vol. 4, no. 2, pp. 71–80, 2025, doi: 10.30812/ijecsa.v4i2.4980.
[10] R. Asyaroh and A. S. Fitrani, “Sentiment Analysis on Twitter About Domestic Violence Using Random Forest and Extreme Gradient Boosting Methods [Analisa Sentimen Pada Twitter Tentang Kekerasan Dalam Rumah Tangga Menggunakan Metode Random Forest dan Extreme Gradient Boosting],” J. UMSIDA, pp. 1–9, 2023, doi: https://doi.org/10.21070/ups.2459.
[11] R. Rahmadini and B. J. Santoso, “Machine Learning-Based Prediction of Divorce Verdicts Using Posita Data and Imbalanced Data Handling: A Case Study in Padang Sidempuan,” Int. J. Adv. Data Inf. Syst., vol. 6, no. 2, pp. 460–478, 2025, doi: 10.59395/ijadis.v6i2.1405.
[12] A. A. Reza and M. S. Rohman, “Prediction Stunting Analysis Using Random Forest Algorithm and Random Search Optimization,” JITE ( J. Informatics Telecommun. Eng. ), vol. 7, no. January, pp. 534–544, 2024, doi: DOI : 10.31289/jite.v7i2.10628.
[13] A. Sapitri and Y. Afrilia, “Implementation of Clustering Method Using K-Means Algorithm for Grouping BPJS Health Patient Medical Record Data,” J. Appl. Informatics Comput. ( JAIC), vol. 9, no. 5, 2025, doi: https://doi.org/10.30871/jaic.v9i5.10046.
[14] S. Khomsah, “Sentiment Analysis On YouTube Comments Using Word2Vec and Random Forest,” J. Inform. dan Teknol. Inf., vol. 18, no. 1, pp. 61–72, 2021, doi: 10.31515/telematika.v18i1.4493.
[15] U. Sunarya, “Perbandingan Kinerja Algoritma Optimasi pada Metode Random Forest untuk Deteksi Kegagalan Jantung,” J. Rekayasa Elektr., vol. 18, no. 4, pp. 241–247, 2022, doi: 10.17529/jre.v18i4.26981.
[16] Y. Bansal, D. Lillis, and M. T. Kechadi, “A neural meta model for predicting winter wheat crop yield,” Mach. Learn., vol. 113, no. 6, pp. 3771–3788, 2024, doi: 10.1007/s10994-023-06455-1.
[17] F. M. Garcia-moreno and M. A. Gutiérrez-naranjo, “Allerdet : A novel web app for prediction of protein allergenicity,” J. Biomed. Inform., vol. 135, no. September, p. 104217, 2022, doi: 10.1016/j.jbi.2022.104217.
[18] E. Suryani, I. Septiawati, E. Budianita, F. Insani, and L. Oktavia, “Prediksi Jumlah Perceraian Menggunakan Metode Support Vector Regression ( SVR ),” J. Comput. Syst. Informatics, vol. 5, no. 1, pp. 208–217, 2023, doi: 10.47065/josyc.v5i1.4613.
[19] N. P. N. Fuazi, S. Khomsah, and A. D. P. Wicaksono, “Penerapan Feature Engineering dan Hyperparameter Tuning untuk Meningkatkan Akurasi Model Random Forest pada Aplication Of Feature Engineering and Hyperparameter Tuning to Improve the Accuracy of Random Forest Models on credit Risk,” J. Teknol. Inf. dan Ilmu Komput., vol. 12, no. 2, pp. 251–262, 2025, doi: 10.25126/jtiik.2025128472.
[20] P. Kemal and Kusrini, “Prediksi Angka Perceraian Menggunakan Machine Learning,” J. Buffer Inform., vol. 11, no. April, pp. 1–6, 2025, doi: https://doi.org/10.25134/buffer.v11i1.342.



