Comparative Analysis of SelectKBest and RFE-CV for Feature Selection Based on Random Forest: A Case Study of Student Performance Prediction
Abstract
Machine learning has been widely employed in education to predict students’ learning-related challenges. Meanwhile, feature selection plays a critical role in enhancing model efficiency. During dataset training, irrelevant features often contribute minimally to outcomes and may introduce noise. Eliminating such features reduces data storage redundancy and accelerates model training. This study investigates scientific methods to partition features when prior experience cannot intuitively determine feature importance. Using a dataset of student study habits—including academic behaviors, lifestyle factors, grades, parental information, and socioeconomic status (12 features total), the study compares SelectKBest and RFE-CV feature selection methods within a Random Forest model. Performance is evaluated using R² and MSE metrics. Results demonstrate that RFE-CV outperforms SelectKBest, significantly reducing feature dimensionality while preserving prediction accuracy.
References
- Arian, H., Norouzi Mobarekeh, D., & Seco, L. (2024). Backtest overfitting in the machine learning era: A comparison of out-of-sample testing methods in a synthetic controlled environment. Knowledge-Based Systems, 305, 112477
- Pudjihartono, N., Fadason, T., Kempa-Liehr, A. W., & O’Sullivan, J. M. (2022). A review of feature selection methods for machine learning-based disease risk prediction. Frontiers in Bioinformatics, 2, 927312.
- Preksha, D. (2023). Student Study Habits. Kaggle. https: //www.kaggle.com/datasets/prekshad2166/student-study-habits
- Zhang, R., Xu, Y., & Li, W. (2024). Feasibility study of CT radiomics in differentiating suppurative and tuberculous lymphadenitis in children. Chinese Journal of Medical Imaging, 32(5), 798–805.
- Wang, H., & Li, H. (2023). Research on balanced allocation of regional educational resources based on feature selection. Educational Research, 45(3), 112–120.
- Saeys, Y., Inza, I., & Larrañaga, P. (2007). A Review of Feature Selection Techniques in Bioinformatics. Bioinformatics. 23(19), 2507-2517.
- Jamei, M., Ali, M., Afzaal, H., Karbasi, M., Malik, A., Farooque, A. A., Haydar, Z., & Zaman, Q. U. (2024). Accurate monitoring of micronutrients in tilled potato soils of eastern Canada: Application of an explainable inspired-adaptive boosting framework coupled with SelectKbest. Computers and Electronics in Agriculture, 216, 108479
- Zhang, W., & Chen, M. (2022). Optimization of a credit card fraud detection model based on feature selection. Journal of Financial Research, 59(4), 89–97.
- Wang, J., Cao, D., Lan, X., & Gao, J. (2018). Filter-Wrapper feature variable selection method for yield prediction of catalytic cracking unit. CIESC Journal, 69(1), pp. 464–471,
- Breiman, L. (2001). Random Forests. Machine Learning, 45(1), 5–32. DOI: 10.1023/A: 1010933404324
- Lee, N., Wattanawong, T., Kim, S., et al. (2024). (2024) LLM2LLM: Boosting LLMs with Novel Iterative Data Enhancement. https: //arxiv.org/abs/2403.15042.