Comparative analysis of supervised machine learning algorithms for predicting student programming anxiety levels
Keywords:
Computer Programming, Anxiety, Machine Learning, Logistic Regression Algorithm, Prediction Model, Classification AlgorithmsAbstract
Computer programming anxiety is a widespread problem in students taking computing-related degrees, which normally impacts their grades and confidence in programming activities. As much as the psychological and academic effects of programming anxiety have been researched, there still exists a gap in research in using supervised machine learning methodologies in predicting anxiety within these varied computing fields. This study demonstrated a comparative analysis of supervised machine learning classification techniques for predicting student programming anxiety levels. A cross-sectional data set comprised of student self-reported answers were analyzed using feature selection methods to determine the most relevant attributes. The five classification algorithms utilized in the study were J48 Decision Tree, Random Forest, Support Vector Machine, Logistic Regression, and Naive Bayes. All the algorithms were applied to create a respective prediction model, and the models were implemented and tested with the help of the WEKA software tool. The performance of the models was evaluated based on accuracy, F-measure, precision, recall, and Cohen’s kappa. Among all the resulting prediction models, the one created from Logistic Regression performed the best in overall performance and showed excellent predictive ability. The results illustrated that machine learning models can be used effectively to build predictive systems for facilitating early identification and intervention for programming anxiety students, thus improving academic support approaches.
References
World Health Organization Anxiety disorders WHO 2024 https://www.who.int/news-room/fact-sheets/detail/anxiety-disorders 02032024
Department of Health (Philippines) DOH townhall session | May 19, 2021 YouTube 2021 https://www.youtube.com/watch?v=DD-OEzkjPJY 24012025
TomićB. StojanovićT. AntovićI. Examining students’ test anxiety and pre-university programming education in an undergraduate introductory programming course EDULEARN Proceedings EDULEARN Palma, Spain 2022 1 3848 3857 10.21125/edulearn.2022.0938
YildirimO. G. OzdenerN. Development and validation of the Programming Anxiety Scale International Journal of Computer Science Education in Schools 2022 5 3 17 34 10.21585/ijcses.v5i3.140
MutalibS. Mental health prediction models using machine learning in higher education institution Turkish Journal of Computer and Mathematics Education (TURCOMAT) 2021 12 5 1782 1792 10.17762/turcomat.v12i5.2181
NemesureM. D. HeinzM. V. HuangR. JacobsonN. C. Predictive modeling of depression and anxiety using electronic health records and a novel machine learning approach with artificial intelligence Scientific Reports 2021 11 1 10.1038/s41598-021-81368-4
QasrawiR. Vicuna PoloS. P. Abu Al-HalawaD. HallaqS. AbdeenZ. Assessment and prediction of depression and anxiety risk factors in schoolchildren: Machine learning techniques performance analysis JMIR Formative Research 2022 6 8 e32736 10.2196/32736
DazaA. SaboyaN. Necochea-ChamorroJ. I. Zavaleta RamosK. Vásquez ValenciaY. del R. Systematic review of machine learning techniques to predict anxiety and stress in college students Informatics in Medicine Unlocked 2023 43 101391 10.1016/j.imu.2023.101391
MalikS. S. KhanA. Anxiety, Depression and Stress prediction among College Students using Machine Learning Algorithms 2023 Second International Conference on Electrical, Electronics, Information and Communication Technologies (ICEEICT) Trichirappalli, India 2023 1 5 10.1109/ICEEICT56924.2023.10157693
KatiyarK. FatmaH. SinghS. Predicting anxiety, depression and stress in women using machine learning algorithms Combating Women’s Health Issues with Machine Learning Boca Raton CRC Press 2023 22 40 10.1201/9781003378556-2
GarkhedkarAshwini Stress and anxiety prediction using machine learning: A benchmark study of key algorithms Panamérican Mathematical Journal 2025 35 4s 200 210 10.52783/pmj.v35.i4s.4639
NikraftarF. Heshmati NabaviF. DastaniM. MazlomS. R. MirhosseiniS. Acceptability, feasibility, and effectiveness of smartphone-based delivery of written educational materials in Iranian patients with coronary artery disease: A randomized control trial study Health Science Reports 2022 5 5 e801 10.1002/hsr2.801
KapoorA. GoelS. Prediction of anxiety disorders using machine learning techniques 2022 IEEE Bombay Section Signature Conference (IBSSC) Mumbai, India 2022 10.1109/IBSSC56953.2022.10037459
MevlevioğluD. TabircaS. MurphyD. Real-time anxiety prediction in virtual reality therapy Proceedings of the 13th ACM Multimedia Systems Conference Athlone, Ireland 2022 10.1145/3524273.3533926
XiaochengH. Application of decision tree algorithm in college students’ mental health evaluation 2023 IEEE International Conference on Integrated Circuits and Communication Systems (ICICACS) Raichur, India 2023 1 6 10.1109/ICICACS57338.2023.10099654
SauA. BhaktaI. Predicting anxiety and depression in elderly patients using machine learning technology Healthcare Technology Letters 2017 4 6 238 243 10.1049/htl.2016.0096
PriyaA. GargS. TiggaN. P. Predicting anxiety, depression and stress in modern life using machine learning algorithms Procedia Computer Science 2020 167 1258 1267 10.1016/j.procs.2020.03.442
FarooqS. A. KondaO. KunwarA. RajeevN. Anxiety prediction and analysis – A machine learning based approach 2023 4th International Conference for Emerging Technology (INCET) Belgaum, India 2023 1 7 10.1109/INCET57972.2023.10170115
IbrahimA. Definition purpose and procedure of developmental research: An analytical review Asian Research Journal of Arts and Social Sciences 2016 1 6 1 6 10.9734/ARJASS/2016/30478
AlijaS. BeqiriE. GaafarA. S. HamoudA. K. Predicting students performance using supervised machine learning based on imbalanced dataset and wrapper feature selection Informatica (Ljubljana) 2023 47 1 10.31449/inf.v47i1.4519
WyS. Decision tree Algorithm−Based prediction of vulnerability to depressive and anxiety symptoms in caregivers of children with glaucoma American Journal of Ophthalmology 2022 239 90 97 10.1016/j.ajo.2022.01.025
XinL. K. RashidN. B. A. Prediction of depression among women using random oversampling and random forest 2021 International Conference of Women in Data Science at Taif University (WiDSTaif) Taif, Saudi Arabia 2021 10.1109/WiDSTaif52235.2021.9430215
AlbagmiF. M. AlansariA. Al ShawanD. S. AlNujaidiH. Y. OlatunjiS. O. Prediction of generalized anxiety levels during the Covid-19 pandemic: A machine learning-based modeling approach Informatics in Medicine Unlocked 2022 28 100854 10.1016/j.imu.2022.100854
van EedenW. A. Predicting the 9-year course of mood and anxiety disorders with automated machine learning: A comparison between auto-sklearn, naïve Bayes classifier, and traditional logistic regression Psychiatry Research 2021 299 113823 10.1016/j.psychres.2021.113823
MonishaS. MeeraR. Swaminath R.V. Raj L.A. Predictive analysis of student stress level using naïve Bayesian classification algorithm 2020 International Conference on Computer Communication and Informatics (ICCCI) Coimbatore, India 2020 10.1109/ICCCI48352.2020.9104113
KaurH. SandhuN. K. Evaluating the Effectiveness of the Proposed System Using F1 Score, Recall, Accuracy, Precision and Loss Metrics Compared to Prior Techniques International Journal of Communication Networks and Information Security 2024 15 4 368 383 https://ijcnis.org/index.php/ijcnis/article/view/7168
YacoubyR. AxmanD. Probabilistic extension of precision, recall, and F1 score for more thorough evaluation of classification models Proceedings of the First Workshop on Evaluation and Comparison of NLP Systems Online 2020 10.18653/v1/2020.eval4nlp-1.9
VakiliM. GhamsariM. RezaeiM. Performance analysis and comparison of machine and deep learning algorithms for IoT data classification arXiv 2020 arXiv:2001.09636 [cs.LG]
HandD. J. ChristenP. KirielleN. F*: an interpretable transformation of the F-measure Machine Learning 2021 110 3 451 456 10.1007/s10994-021-05964-1
AhmedE. Student performance prediction using machine learning algorithms Applied Computational Intelligence and Soft Computing 2024 2024 1 10.1155/2024/4067721
raiManish Machine learning-based strategies for enhancing student achievement in higher education through engagement and support jier 2025 5 2 10.52783/jier.v5i2.2551
Published
How to Cite
Issue
Section
Copyright (c) 2025 The Author(s)

This work is licensed under a Creative Commons Attribution 4.0 International License.