Evaluation of Machine Learning Algorithms for an Early Warning System of Student Graduation in a Python Programming Course

Authors

  • Rahmatika Hizria Universitas Deli Sumatera
  • Ericky Benna Perolihin Manurung Universitas Deli Sumatera
  • Victor Saputra Ginting

DOI:

https://doi.org/10.47709/cnahpc.v8i1.7718

Keywords:

Early Warning System, K-Nearest Neighbor (KNN), Logistic Regression, Random Forest, Support Vector Machine (SVM)

Abstract

The high failure rate in Python programming courses has become a serious issue for educational institutions. This study aims to evaluate the performance of four machine learning algorithms as the basis of an Early Warning System for predicting student graduation, namely Random Forest (RF), Support Vector Machine (SVM), Logistic Regression (LR), and K-Nearest Neighbors (KNN). The dataset consists of 3,000 records with 15 features, including demographic data, programming experience, and students’ learning activities. Performance evaluation was conducted using accuracy, precision, recall, F1-score, and ROC-AUC metrics after optimal hyperparameter tuning through GridSearchCV with 5-fold cross-validation. The evaluation results indicate that Random Forest achieved the best performance with an accuracy of 89.33%, precision of 87.50%, recall of 46.23%, F1-score of 60.49%, and ROC-AUC of 94.40%, outperforming SVM (accuracy 86.33%, F1-score 55.43%), Logistic Regression (accuracy 86.50%, F1-score 53.71%), and KNN (accuracy 84.83%, F1-score 44.17%). Feature importance analysis identified experience_encoded, hours_spent_learning_per_week, and projects_completed as the three strongest predictors of student graduation. These findings provide empirical evidence that Random Forest is the most effective algorithm for implementing an Early Warning System in Python programming courses, enabling instructors to identify at-risk students early and provide timely interventions to improve learning success rates.

Downloads

Download data is not yet available.

References

A, S., & Sekaran, R. (2025). Optimized Intrusion Detection in IoT Environments Using Machine Learning and Nature-Inspired Algorithms. Journal of Information Systems Engineering and Management, 10(30s), 802-817.

Abdillah, S., Yanris, G. J., & Sihombing, V. (2024). Implementation Of The Support Vector Machine Method In Predicting Student Graduation. International Journal of Science, Technology & Management, 263-270.

Andrade-Girón, D., Sandivar-Rosas, J., Marín-Rodriguez, W., Susanibar-Ramirez, E., Toro-Dextre, E., Ausejo-Sanchez, J., . . . Angeles-Morales, J. (2023). Predicting Student Dropout based on Machine Learning and Deep Learning: A Systematic Review. EAI Endorsed Transactions on Scalable Information Systems, 10(5).

Cheah, C. S. (2020). Factors Contributing to the Difficulties in Teaching and Learning of Computer Programming: A Literature Review. CONT ED TECHNOLOGY, 272.

Géron, A. (2019). Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow (2nd Edition). Sebastopol, California, USA: O’Reilly Media, Inc.

Hellas, A., Ihantol, P., Petersen, A., Ajanovski, V. V., Gutica, M., Hynninen, T., . . . Liao, S. N. (2018). Predicting academic performance: a systematic literature review. Conference on Innovation and Technology in Computer Science Education (pp. 175 - 199). New York: Association for Computing Machinery.

Jayaprakash, S. M., Moody, E. W., Lauría, E. J., Regan, J. R., & Baron, J. D. (2014). Early Alert of Academically At-Risk Students:. Journal of Learning Analytics, 1(1), 6-47.

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 (IJMECS), 29-44.

Manurung, J., Saragih, H., Prabukusumo, M. A., & Firdaus, E. A. (2025). Optimizing the performance of the K-Nearest Neighbors algorithm using grid search and feature scaling to improve data classification accuracy. Computer Science and Field, v14i2.466.

Marcolino, M. R., Porto, T. R., Primo, T. T., Targino, R., Ramos, V., Queiroga, E. M., . . . Cechinel, C. (2025). Student dropout prediction through machine learning optimization: insights from moodle log data. Scientific Reports, Sci Rep 15, 9840. https://doi.org/10.1038/s41598-025-93918-1.

Mengash, H. A. (2020). Using Data Mining Techniques to Predict Student Performance to Support Decision Making in University Admission Systems. Journals & Magazines (pp. vol. 8, pp. 55462-55470). United State: IEEE.

Schantong, B., Gorgosch, D., & Siegmund, J. (2024). Toward Finding and Supporting Struggling Students in a Programming Course with an Early Warning System. arXiv:2402.01709.

Topi, A., Hudhra, D., & Topi, D. (2025). Hyperparameter search using GridSearchCV with 5-fold Cross-Validation in classifier tuning. Journal of Information Systems Engineering and Management, 10(11s), 500.

Watson, C., & Li, F. W. (2014). Failure rates in introductory programming revisited. Innovation & technology in computer science education (pp. 39 - 44). New York: Association for Computing Machinery.

Zerkouk, M., Mihoubi, M., Chikhaoui , B., & Wang, S. (2024). A machine learning based model for student’s dropout prediction in online training. Education and Information Technologies, 15793-15812.

Downloads

Published

2026-01-22

How to Cite

Hizria, R. ., Manurung, E. B. P., & Ginting, V. S. (2026). Evaluation of Machine Learning Algorithms for an Early Warning System of Student Graduation in a Python Programming Course. Journal of Computer Networks, Architecture and High Performance Computing, 8(1), 92–112. https://doi.org/10.47709/cnahpc.v8i1.7718

Citation Tracker

Cited by: 0 documents

No citing documents were found.

Source: OpenAlex  · Updated 2026-09-23 02:30 UTC