Personalization of Programming Education: An NLP-Based Bi-dimensional Classification of Programming Exercises
The need for scalable and personalized content in programming education is driving interest in automating exercise generation. This requires a clear understanding of existing exercises. Our research addresses this by classifying existing exercises by topic and difficulty level. We combine a lexicon-based analysis with machine learning and advanced natural language processing techniques, providing a foundation for AI-assisted content generation. Specifically, we utilize BERTopic for topic modeling and five machine learning models to predict difficulty levels in programming exercises. Our dataset includes 106 programming exercise descriptions from three introductory courses, plus performance data from up to 189 learners. The results demonstrate that lexicon-based approaches significantly improve topic modeling accuracy and coherence compared to the baseline, with reduced variance and more consistent cluster stability. Although difficulty prediction remains challenging due to the complexity of defining ground truth, lexicon integration leads to modest yet consistent performance gains. This work lays an essential groundwork for scalable and resource-efficient solutions for the classification and generation of personalized programming exercises.
Authors
- Gijs Walravens
- Mark van den Brand
- Lina Ochoa (ORCID: https://orcid.org/0000-0002-8767-036X)
- Mazyar Seraj (ORCID: https://orcid.org/0000-0002-4108-3186)
- Tommie Lombarts
Institutions
- Eindhoven University of Technology (NL)
Publication Details
- Published
- 2025-10-09
- DOI
- https://doi.org/10.1145/3758317.3759684
- Primary Topic
- Teaching and Learning Programming
- Type
- article
- Field-Weighted Citation Impact
- 0.00