Comparative Analysis of Decision Tree and Random Forest Models for Student Exam Score Classification

Authors

  • Pocut Naura Nisrina Universitas Islam Negeri Sultan Syarif Kasim Riau, Indonesia
  • Muhammad Rizqi Antara Universitas Islam Negeri Sultan Syarif Kasim Riau, Indonesia
  • Chelsy Intami Universitas Islam Negeri Sultan Syarif Kasim Riau, Indonesia
  • Asmara Azkia Nurazizah Al Qasimia University, United Arab Emirates
  • Mujahidah Fathul Islam Sakarya University, Türkiye
  • Sania Rivka Madina Ibnu Tofail University, Morocco
  • Ratu Fatimah Zahro University of Al Azhar, Egypt
  • Isna Jami’atul Khoeriyah International Islamic University of Islamabad, Pakistan
  • Ahmad Afif University of Al Azhar, Egypt
  • Nur Ilfi Aisah Albukhary International University, Malaysia

DOI:

https://doi.org/10.57152/predatecs.v4i1.2495

Keywords:

Decision Tree, Educational Data Mining, Exam Score Classification, Random Forest, Student Performance

Abstract

Advances in Educational Data Mining (EDM) have encouraged the use of machine learning algorithms to predict students’ academic performance. Although Decision Tree and Random Forest have been widely investigated, most previous studies compare them with multiple classifiers rather than conducting a focused evaluation under a unified framework. This study addresses this gap by systematically comparing the performance of Decision Tree and Random Forest in classifying student exam scores using the same preprocessing, cross-validation, and evaluation procedures. The dataset, obtained from Kaggle, consists of six attributes: student_id, hours studied, sleep hours, attendance percent, previous scores, and exam scores. The research methodology includes data collection, preprocessing, K-Fold Cross Validation, model training, and performance evaluation using a confusion matrix with accuracy, precision, and recall metrics. Experimental results show that Random Forest consistently outperforms Decision Tree, achieving a mean accuracy of 86.50%, compared with 81.50% for Decision Tree. In addition, Random Forest demonstrates greater stability and stronger generalization capability across different validation folds. These findings suggest that Random Forest is a more effective and reliable predictive model for supporting educational decision-making, particularly in identifying students at risk of poor academic performance and enabling timely academic interventions.

References

Ahmed, E. (2024). Student Performance Prediction Using Machine Learning Algorithms. Applied Computational Intelligence and Soft Computing, 2024, Article 4067721. https://doi.org/10.1155/2024/4067721

Akhatkulov, S., Yusupov, O., & Omonov, A. (2024). Predicting students' future final exam results using machine learning algorithms: A comparative analysis. AIP Conference Proceedings, 3244(1), 030071.

Al-Din, M. S. N., & Al Abdulqader, H. A. (2024). Students' Academic Performance Prediction Using Educational Data Mining and Machine Learning: A Systematic Review. International Journal of Research and Innovation in Social Science, 8(8), 1264–1291. https://doi.org/10.47772/IJRISS.2024.808095

Al-Tameemi, G., Xue, J., Hadi, I., & Ajit, S. (2024). A Hybrid Machine Learning Approach for Predicting Student Performance Using Multi-class Educational Datasets. Procedia Computer Science, 238, 888–895. https://doi.org/10.1016/j.procs.2024.06.108

Assegie, T. A., Salau, A. O., Chhabra, G., Kaushik, K., & Braide, S. L. (2024). Evaluation of Random Forest and Support Vector Machine Models in Educational Data Mining. IEEE.

Badal, Y. T., & Sungkur, R. K. (2023). Predictive Modelling and Analytics of Students' Grades Using Machine Learning Algorithms. Education and Information Technologies, 28, 3027–3057. https://doi.org/10.1007/s10639-022-11299-8

Chen, Y., & Jin, K. (2024). Educational Performance Prediction with Random Forest and Innovative Optimizers: A Data Mining Approach. International Journal of Advanced Computer Science and Applications, 15(3). https://doi.org/10.14569/IJACSA.2024.0150308

Helmud, E., Fitriyani, F., & Romadiana, P. (2024). Classification Comparison Performance of Supervised Machine Learning Random Forest and Decision Tree Algorithms Using Confusion Matrix. Jurnal SISFOKOM.

Hussain, M. M., Akbar, S., Hassan, S. A., Aziz, M. W., & Urooj, F. (2024). Prediction of Student's Academic Performance through Data Mining Approach. Journal of Informatics and Web Engineering, 3(1). https://doi.org/10.33093/jiwe.2024.3.1.16

Ibrahimi, E., Lopes, M. B., Dhamo, X., et al. (2023). Overview of Data Preprocessing for Machine Learning Applications in Human Microbiome Research. Frontiers in Microbiology, 14, 1250909. https://doi.org/10.3389/fmicb.2023.1250909

Kurniasari, D., Hidayah, R. N., Notiragayu, N., Warsono, & Nisa, R. K. (2024). Classification Models for Academic Performance: A Comparative Study of Naïve Bayes and Random Forest Algorithms in Analyzing University Student Grades. Jurnal Teknik Informatika (JUTIF), 5(5), 1267–1276. https://doi.org/10.52436/1.jutif.2024.5.5.2066

Kumar, M., Singh, N., Wadhwa, J., Singh, P., Kumar, G., & Qtaishat, A. (2024). Utilizing Random Forest and XGBoost Data Mining Algorithms for Anticipating Students' Academic Performance. International Journal of Modern Education and Computer Science, 16(2), 29–44. https://doi.org/10.5815/ijmecs.2024.02.03

Nachouki, M., Mohamed, E. A., Mehdi, R., & Abou Naaj, M. (2023). Student Course Grade Prediction Using the Random Forest Algorithm: Analysis of Predictors' Importance. Trends in Neuroscience and Education.

Salloum, S. A., Salloum, A., Shaalan, K., Alfaisal, R., & Basiouni, A. (2024). Comparative Analysis of Classical Machine Learning Techniques for Predicting Students' Exam Performance. In Communications in Computer and Information Science (Vol. 2162, pp. 219–227). Springer. https://doi.org/10.1007/978-3-031-65996-6_19

Saeed, M. M. (2024). Forecasting the Academic Performance by Leveraging Educational Data Mining. Intelligent Automation & Soft Computing, 39(2), 213–231. https://doi.org/10.32604/iasc.2024.043020

Sivakumar, S., & Venkataraman, S. (2025). Evaluating Machine Learning Approaches: A Comparative Study of Random Forest and Neural Networks in Grade Classification. Indonesian Journal of Data and Science, 6(1), 73–80. https://doi.org/10.56705/ijodas.v6i1.240

Sombat, W., Kaensar, C., Hiranpongsin, S., & Baokham, S. (2024). Student Academic Success Prediction System Using Random Forest Technique. Journal of Science and Science Education, 7(2), 245–259. https://doi.org/10.14456/jsse.2024.19

Tanveer, H., Adam, M. A., Khan, M. A., Ali, M. A., & Shakoor, A. (2023). Analyzing the Performance and Efficiency of Machine Learning Algorithms on Various Datasets and Applications. Asian Bulletin of Big Data Management, 3(2), 126–136. https://doi.org/10.62019/abbdm.v3i2.83

Ünalan, S., Günay, O., Akkurt, I., Gunoglu, K., & Tekin, H. O. (2024). A Comparative Study on Breast Cancer Classification with Stratified Shuffle Split and K-Fold Cross Validation via Ensembled Machine Learning. Journal of Radiation Research and Applied Sciences, 17(4), 101080. https://doi.org/10.1016/j.jrras.2024.101080

Zhang, Y., Yun, Y., An, R., Cui, J., Dai, H., & Shang, X. (2021). Educational Data Mining Techniques for Student Performance Prediction: Method Review and Comparison Analysis. Frontiers in Psychology, 12, 698490. https://doi.org/10.3389/fpsyg.2021.698490

Ahmed, E. (2024). Student Performance Prediction Using Machine Learning Algorithms. Applied Computational Intelligence and Soft Computing, 2024, Article 4067721. https://doi.org/10.1155/2024/4067721

Akhatkulov, S., Yusupov, O., & Omonov, A. (2024). Predicting students' future final exam results using machine learning algorithms: A comparative analysis. AIP Conference Proceedings, 3244(1), 030071.

Al-Din, M. S. N., & Al Abdulqader, H. A. (2024). Students' Academic Performance Prediction Using Educational Data Mining and Machine Learning: A Systematic Review. International Journal of Research and Innovation in Social Science, 8(8), 1264–1291. https://doi.org/10.47772/IJRISS.2024.808095

Chen, Y., & Jin, K. (2024). Educational Performance Prediction with Random Forest and Innovative Optimizers: A Data Mining Approach. International Journal of Advanced Computer Science and Applications, 15(3). https://doi.org/10.14569/IJACSA.2024.0150308

Helmud, E., Fitriyani, F., & Romadiana, P. (2024). Classification Comparison Performance of Supervised Machine Learning Random Forest and Decision Tree Algorithms Using Confusion Matrix. Jurnal SISFOKOM.

Hussain, M. M., Akbar, S., Hassan, S. A., Aziz, M. W., & Urooj, F. (2024). Prediction of Student's Academic Performance through Data Mining Approach. Journal of Informatics and Web Engineering, 3(1). https://doi.org/10.33093/jiwe.2024.3.1.16

Ibrahimi, E., Lopes, M. B., Dhamo, X., Simeon, A., Shigdel, R., Hron, K., Stres, B., D'Elia, D., Berland, M., & Marcos-Zambrano, L. J. (2023). Overview of Data Preprocessing for Machine Learning Applications in Human Microbiome Research. Frontiers in Microbiology, 14, Article 1250909. https://doi.org/10.3389/fmicb.2023.1250909

Khairy, D., Alharbi, N., Amasha, M. A., Areed, M. F., Alkhalaf, S., & Abougalala, R. A. (2024). Prediction of Student Exam Performance Using Data Mining Classification Algorithms. Education and Information Technologies, 29, 21621–21645. https://doi.org/10.1007/s10639-024-12619-w

Kurniasari, D., Hidayah, R. N., Notiragayu, N., Warsono, & Nisa, R. K. (2024). Classification Models for Academic Performance: A Comparative Study of Naïve Bayes and Random Forest Algorithms in Analyzing University Student Grades. Jurnal Teknik Informatika (JUTIF), 5(5), 1267–1276. https://doi.org/10.52436/1.jutif.2024.5.5.2066

Kumar, M., Singh, N., Wadhwa, J., Singh, P., Kumar, G., & Qtaishat, A. (2024). Utilizing Random Forest and XGBoost Data Mining Algorithms for Anticipating Students' Academic Performance. International Journal of Modern Education and Computer Science, 16(2), 29–44. https://doi.org/10.5815/ijmecs.2024.02.03

Nachouki, M., Mohamed, E. A., Mehdi, R., & Abou Naaj, M. (2023). Student Course Grade Prediction Using the Random Forest Algorithm: Analysis of Predictors' Importance. Trends in Neuroscience and Education.

Salloum, S. A., Salloum, A., Shaalan, K., Alfaisal, R., & Basiouni, A. (2024). Comparative Analysis of Classical Machine Learning Techniques for Predicting Students' Exam Performance. In A. Basiouni & C. Frasson (Eds.), Communications in Computer and Information Science (Vol. 2162, pp. 219–227). Springer Nature Switzerland. https://doi.org/10.1007/978-3-031-65996-6_19

Sivakumar, S., & Venkataraman, S. (2025). Evaluating Machine Learning Approaches: A Comparative Study of Random Forest and Neural Networks in Grade Classification. Indonesian Journal of Data and Science, 6(1), 73–80. https://doi.org/10.56705/ijodas.v6i1.240

Tanveer, H., Adam, M. A., Khan, M. A., Ali, M. A., & Shakoor, A. (2023). Analyzing the Performance and Efficiency of Machine Learning Algorithms on Various Datasets and Applications. Asian Bulletin of Big Data Management, 3(2), 126–136. https://doi.org/10.62019/abbdm.v3i2.83

Ünalan, S., Günay, O., Akkurt, I., Gunoglu, K., & Tekin, H. O. (2024). A Comparative Study on Breast Cancer Classification with Stratified Shuffle Split and K-Fold Cross Validation via Ensembled Machine Learning. Journal of Radiation Research and Applied Sciences, 17(4), 101080. https://doi.org/10.1016/j.jrras.2024.101080

Downloads

Published

2026-08-01

How to Cite

Nisrina, P. N., Antara, M. R., Intami, C., Nurazizah, A. A., Islam, M. F., Madina, S. R., Zahro, R. F., Khoeriyah, I. J., Afif, A., & Aisah, N. I. (2026). Comparative Analysis of Decision Tree and Random Forest Models for Student Exam Score Classification. Public Research Journal of Engineering, Data Technology and Computer Science, 4(1), 42-51. https://doi.org/10.57152/predatecs.v4i1.2495