Predicting student academic performance has become one of the important applications of machine learning in the field of education. This study aims to compare the performance of Naïve Bayes and Random Forest algorithms in predicting student academic performance using a data mining approach. The dataset used in this research is the Student Performance Dataset obtained from the UCI Machine Learning Repository, which contains academic, social, behavioral, and demographic student data. The research method applies the CRISP-DM framework consisting of data understanding, data preparation, modeling, and evaluation stages. The preprocessing stage includes categorical variable encoding, removal of G1 and G2 variables to avoid data leakage, and transformation of the target variable into binary classification. The dataset was divided into 80% training data and 20% testing data. Model evaluation was conducted using accuracy, precision, recall, f1-score, and confusion matrix. The results show that Random Forest achieved an accuracy of 72.15%, outperforming Naïve Bayes with 70.88%. Feature importance analysis indicates that absences, failures, age, and goout are the most influential factors affecting student academic performance. This study concludes that Random Forest provides better performance in classifying student academic performance and is capable of providing interpretation of factors influencing prediction results.
Copyrights © 2026