Early Prediction of Later Struggle in Introductory Programming: Leakage, Time-Aware Validation, and Cross-Section Transfer
Authors
Iconic Open University, Abuja (Nigeria)
Department of Computer, Information Technology & Software Engineering, Iconic Open University, Abuja (Nigeria)
Article Information
DOI: 10.51244/IJRSI.2026.1311000042
Subject Category: Computer Science
Volume/Issue: 13/11 | Page No: 484-499
Publication Timeline
Submitted: 2026-11-01
Accepted: 2026-11-06
Published: 2026-11-21
Abstract
Feedback that reaches a novice programmer only after repeated failure comes too late to help. This study asks whether later struggle on a programming assignment can be anticipated from behavioral traces available early, and whether such predictions survive time-aware validation and a change of cohort or assignment set. We analysed 69,189 submissions from 411 students in two sections of an introductory Java course (CodeWorkout, Spring 2019). Whole-history aggregation is not early prediction: with success rate as the label, six behavioral features reached an AUC of 0.778, adding mean score raised it to 0.934, and restoring the label-defining success rate gave 0.99 or more, which demonstrates target leakage. Naive event filtering can also manufacture such a label, flagging 59.5% of students instead of 21.7%. A truncated-history design instead takes features only from a student’s first k submissions on an assignment, takes the label only from later submissions, and uses rolling-origin validation over five weekly assignments. Early prediction was possible but weak: with history and code-level features, AUC was 0.60 to 0.68 (95% confidence intervals excluding 0.5 at every k) and PR-AUC was 0.26 to 0.32 against a prevalence of 0.16 to 0.22. A cost-tuned model was significantly cheaper than the best trivial policy only when a missed student cost five times a needless flag, and only at some k. Models transferred between concurrent sections about as well as they performed within a section (AUC about 0.70) but transferred unreliably to later assignments, and adding target-section data barely helped. The target is later low scoring, not misconceptions. The data cover one course in one semester, so transfer across semesters and institutions remains untested.
Keywords
early warning; programming education; target leakage; time-aware validation; transfer
Downloads
References
1. Ahadi, A., Lister, R., Haapala, H., & Vihavainen, A. (2015). Exploring machine learning methods to automatically identify students in need of assistance. In Proceedings of the Eleventh Annual International Conference on International Computing Education Research. ACM. [Google Scholar] [Crossref]
2. Al-Hossami, E., & Bunescu, R. (2026). McMining: Automated discovery of misconceptions in student code. [Google Scholar] [Crossref]
3. Bennedsen, J., & Caspersen, M. E. (2007). Failure rates in introductory programming. ACM SIGCSE Bulletin, 39(2). [Google Scholar] [Crossref]
4. Bergmeir, C., & Benítez, J. M. (2012). On the use of cross-validation for time series predictor evaluation. Information Sciences, 191. [Google Scholar] [Crossref]
5. Breiman, L. (2001). Random forests. Machine Learning, 45(1). [Google Scholar] [Crossref]
6. Byrne, P., & Lyons, G. (2001). The effect of student attributes on success in programming. In Proceedings of the 6th Annual Conference on Innovation and Technology in Computer Science Education. ACM. [Google Scholar] [Crossref]
7. Edwards, S. H., & Murali, K. P. (2017). CodeWorkout: Short programming exercises with built-in data collection. In Proceedings of the 2017 ACM Conference on Innovation and Technology in Computer Science Education. ACM. [Google Scholar] [Crossref]
8. Elkan, C. (2001). The foundations of cost-sensitive learning. In Proceedings of the 17th International Joint Conference on Artificial Intelligence. [Google Scholar] [Crossref]
9. Gomes, A., & Mendes, A. J. (2007). Learning to program: Difficulties and solutions. In International Conference on Engineering Education. [Google Scholar] [Crossref]
10. Hoq, M., Rao, A., Jaishankar, R., Piryani, K., Janapati, N., Vandenberg, J., Mott, B., Norouzi, N., Lester, J., & Akram, B. (2025). Automated identification of logical errors in programs: Advancing scalable analysis of student misconceptions. [Google Scholar] [Crossref]
11. Ihantola, P., Vihavainen, A., Ahadi, A., Butler, M., Börstler, J., Edwards, S. H., Isohanni, E., Korhonen, A., Petersen, A., Rivers, K., Rubio, M. Á., Sheard, J., Skupas, B., Spacco, J., Szabo, C., & Toll, D. (2015). Educational data mining and learning analytics in programming: Literature review and case studies. In Proceedings of the 2015 ITiCSE on Working Group Reports. ACM. [Google Scholar] [Crossref]
12. Jadud, M. C. (2006). Methods and tools for exploring novice compilation behaviour. In Proceedings of the Second International Workshop on Computing Education Research. ACM. [Google Scholar] [Crossref]
13. Kaufman, S., Rosset, S., Perlich, C., & Stitelman, O. (2012). Leakage in data mining: Formulation, detection, and avoidance. ACM Transactions on Knowledge Discovery from Data, 6(4). [Google Scholar] [Crossref]
14. Luxton-Reilly, A., Simon, Albluwi, I., Becker, B. A., Giannakos, M., Kumar, A. N., Ott, L., Paterson, J., Scott, M. J., Sheard, J., & Szabo, C. (2018). Introductory programming: A systematic literature review. In Proceedings Companion of the 23rd Annual ACM Conference on Innovation and Technology in Computer Science Education. ACM. [Google Scholar] [Crossref]
15. Niculescu-Mizil, A., & Caruana, R. (2005). Predicting good probabilities with supervised learning. In Proceedings of the 22nd International Conference on Machine Learning. ACM. [Google Scholar] [Crossref]
16. Pan, S. J., & Yang, Q. (2010). A survey on transfer learning. IEEE Transactions on Knowledge and Data Engineering, 22(10). [Google Scholar] [Crossref]
17. Piech, C., Bassen, J., Huang, J., Ganguli, S., Sahami, M., Guibas, L. J., & Sohl-Dickstein, J. (2015). Deep knowledge tracing. In Advances in Neural Information Processing Systems 28. [Google Scholar] [Crossref]
18. Qian, Y., & Lehman, J. (2017). Students’ misconceptions and other difficulties in introductory programming: A literature review. ACM Transactions on Computing Education, 18(1). [Google Scholar] [Crossref]
19. Robins, A., Rountree, J., & Rountree, N. (2003). Learning and teaching programming: A review and discussion. Computer Science Education, 13(2). [Google Scholar] [Crossref]
20. Saito, T., & Rehmsmeier, M. (2015). The precision-recall plot is more informative than the ROC plot when evaluating binary classifiers on imbalanced datasets. PLoS ONE, 10(3). [Google Scholar] [Crossref]
21. Sorva, J. (2013). Notional machines and introductory programming education. ACM Transactions on Computing Education, 13(2). [Google Scholar] [Crossref]
22. Watson, C., & Li, F. W. B. (2014). Failure rates in introductory programming revisited. In Proceedings of the 2014 Conference on Innovation and Technology in Computer Science Education. ACM. [Google Scholar] [Crossref]
23. Watson, C., Li, F. W. B., & Godwin, J. L. (2013). Predicting performance in an introductory programming course by logging and analyzing student programming behavior. In Proceedings of the 13th IEEE International Conference on Advanced Learning Technologies. IEEE. [Google Scholar] [Crossref]
Metrics
Views & Downloads
Similar Articles
- What the Desert Fathers Teach Data Scientists: Ancient Ascetic Principles for Ethical Machine-Learning Practice
- Comparative Analysis of Some Machine Learning Algorithms for the Classification of Ransomware
- Comparative Performance Analysis of Some Priority Queue Variants in Dijkstra’s Algorithm
- Transfer Learning in Detecting E-Assessment Malpractice from a Proctored Video Recordings.
- Dual-Modal Detection of Parkinson’s Disease: A Clinical Framework and Deep Learning Approach Using NeuroParkNet