Leveraging Prolog's Declarative Power for Clustering Student Performance in a Timed Quiz
Main Article Content
Abstract
Student performance analysis in programming education presents challenges in identifying learning patterns and addressing diverse needs. This study introduces an automated Prolog-based quiz program designed to evaluate student learning progression through a structured quiz system. Unlike conventional assessment tools, the Prolog program leverages its declarative nature to dynamically generate questions, offer real-time feedback, and facilitate level-based progression, ensuring an interactive and adaptive learning experience. Data collected from 140 students during a 15-minute quiz session was analyzed using the K-Means clustering algorithm to group students based on their highest achieved levels. Clusters revealed distinct performance profiles: foundational challenges, transitional difficulties, and variability among advanced learners. Visualizations, including scatter plots, bar charts, and box plots, highlighted these clusters, showing that most students struggled with intermediate levels, while fewer mastered advanced topics. The findings underscore the need for tailored educational interventions and demonstrate the novelty and efficacy of combining Prolog-based assessments with clustering techniques for scalable educational data mining.
Article Details

This work is licensed under a Creative Commons Attribution 4.0 International License.
References
Ahmed, M., Seraj, R., & Islam, S. M. S. (2020). The k-means Algorithm: A Comprehensive Survey and Performance Evaluation. Electronics, 9(8), 1295. https://doi.org/10.3390/electronics9081295
Almansoury, F., Kpodjedo, S., & Boussaidi, G. E. (2022). Identifying Community-Supported Technologies and Software Developments Concepts by K-means Clustering. International Journal of Advanced Computer Science and Applications, 13(6). https://doi.org/10.14569/ijacsa.2022.01306108
Govender, P., & Sivakumar, V. (2020). Application of k-means and hierarchical clustering techniques for analysis of air pollution: A review (1980–2019). Atmospheric Pollution Research, 11(1), 40–56. https://doi.org/10.1016/j.apr.2019.09.009
Hermenegildo, M. V., Morales, J. F., Lopez-Garcia, P., & Carro, M. (2023). Types, Modes and so Much More – The Prolog Way. Lecture Notes in Computer Science, 23–37. https://doi.org/10.1007/978-3-031-35254-6_2
Huang, S., Kang, Z., Xu, Z., & Liu, Q. (2021). Robust deep k-means: An effective and simple method for data clustering. Pattern Recognition, 117, 107996. https://doi.org/10.1016/j.patcog.2021.107996
Ikotun, A. M., Ezugwu, A. E., Abualigah, L., Abuhaija, B., & Heming, J. (2022). K-means Clustering Algorithms: a Comprehensive Review, Variants Analysis, and Advances in the Era of Big Data. Information Sciences, 622(622). https://doi.org/10.1016/j.ins.2022.11.139
Philipp Körner, Leuschel, M., Barbosa, J., Vítor Santos Costa, Dahl, V., Hermenegildo, M. V., Morales, J. F., Wielemaker, J., Diaz, D., Abreu, S., & Ciatto, G. (2022). Fifty Years of Prolog and Beyond. 22(6), 776–858. https://doi.org/10.1017/s1471068422000102
Sinaga, K. P., & Yang, M.-S. (2020). Unsupervised K-Means Clustering Algorithm. IEEE Access, 8, 80716–80727. https://doi.org/10.1109/access.2020.2988796
Veneta Tabakova-Komsalova, Stoyanov, S., Asya Stoyanova-Doycheva, & Lyubka Doukovska. (2023). Prolog Education in Selected Secondary Schools in Bulgaria. Lecture Notes in Computer Science, 144–153. https://doi.org/10.1007/978-3-031-35254-6_12
Warren, D. S. (2023). Introduction to Prolog. Lecture Notes in Computer Science, 3–19. https://doi.org/10.1007/978-3-031-35254-6_1