Web-Based Computational Thinking Assessment Using K-Nearest Neighbor and Rule-Based Adaptive Treatment
Abstract
Conventional database-learning assessments generally provide aggregate scores without showing which computational thinking components require further support. This study developed a web-based adaptive assessment system for vocational high school students by integrating K-nearest neighbor classification, adaptive hints, and rule-based treatment. The research applied a development approach using the Smart Learning Environment Establishment Guideline through analysis, design, development, implementation, and evaluation stages. The KNN model was developed using 64 empirical records from students in XI RPL 2 and XI RPL 3. Four weighted computational thinking indicators—decomposition, pattern recognition, abstraction, and algorithmic thinking—were used as classification features. KNN, RandomOverSampler–KNN, and Synthetic Minority Over-sampling Technique (SMOTE)–KNN pipelines were evaluated using group-aware cross-validation. The selected SMOTE–KNN model used distance weighting with k = 9 and achieved 92.19% accuracy, 88.59% balanced accuracy, and 89.75% macro F1-score. The classification result adjusted adaptive hints, while explicit rules controlled indicator priority, difficulty progression, mastery points, and treatment transitions. All 24 black-box scenarios met the expected requirements. The novelty and main contribution of this study lie in integrating indicator-level CT diagnosis, data-driven classification, and transparent rule-based adaptation within a single web-based workflow for vocational database learning.
Keywords
Full Text:
PDFReferences
Agbo, F. J., Oyelere, S. S., Suhonen, J., & Adewumi, S. (2019). A systematic review of computational thinking approach for programming education in higher education institutions. In Proceedings of the 19th Koli Calling International Conference on Computing Education Research (pp. 1–10). Association for Computing Machinery. DOI: 10.1145/3364510.3364521.
Badriyah, N. L., Thamrin, A. G., & Nurhidayati, A. (2018). Analisis instrumen penilaian hasil belajar mata pelajaran gambar teknik siswa kelas X sekolah menengah kejuruan program keahlian bangunan. Indonesian Journal of Civil Engineering Education, 4(2), 93–102. DOI: 10.20961/ijcee.v4i2.27780.
Brusilovsky, P. (2001). Adaptive hypermedia. User Modeling and User-Adapted Interaction, 11(1–2), 87–110. DOI: 10.1023/A:1011143116306.
Chawla, N. V., Bowyer, K. W., Hall, L. O., & Kegelmeyer, W. P. (2002). SMOTE: Synthetic minority over-sampling technique. Journal of Artificial Intelligence Research, 16, 321–357. DOI: 10.1613/jair.953.
Cunningham, P., & Delany, S. J. (2021). K-nearest neighbour classifiers—A tutorial. ACM Computing Surveys, 54(6), Article 128. DOI: 10.1145/3459665.
Delianidi, M., Diamantaras, K., Moras, I., & Sidiropoulos, A. (2025). DK-PRACTICE: An intelligent educational platform for personalized learning content recommendations based on students knowledge state. In The Barcelona Conference on Education 2024: Official Conference Proceedings (pp. 391–403). DOI: 10.22492/issn.2435-9467.2024.36.
dos Santos, S. C., & Junior, G. A. S. (2024). Opportunities and challenges of AI to support student assessment in computing education: A systematic literature review. In Proceedings of the 16th International Conference on Computer Supported Education (CSEDU 2024) (Vol. 2, pp. 15–26). SciTePress. DOI: 10.5220/0012552500003693.
Forsström, S., & Bond, M. (2024). Computational thinking assessment in primary and secondary education: A meta-synthesis of tools, methods and pedagogical approaches. International Journal of Computer Science Education in Schools, 6(4). DOI: 10.21585/ijcses.v6i4.208.
Khatun, S., Jha, A., & Halagappa, P. P. (2023). The effects of problem-based learning model on the computational thinking skills of middle year school students. International Journal of Current Science, 13(1), 626–632.
Matayoshi, J., Cosyn, E., & Uzun, H. (2022). Does practice make perfect? Analyzing the relationship between higher mastery and forgetting in an adaptive learning system. In Proceedings of the 15th International Conference on Educational Data Mining (pp. 316–324). International Educational Data Mining Society. DOI: 10.5281/zenodo.6853075.
Milala, E. B., Buaton, R., & Fatmaira, Z. (2023). Grouping of outstanding students at Abdi Negara Vocational School using the K-nearest neighbor method. Journal of Artificial Intelligence and Engineering Applications, 3(1), 428–432. DOI: 10.59934/jaiea.v3i1.349.
Putra, B., & Sujatmiko, B. (2024). Pengembangan media pembelajaran basis data berbasis web terhadap kompetensi bahasa query terapan di SMK Negeri Mojoagung. IT-Edu: Jurnal Information Technology and Education, 9(1), 84–91. DOI: 10.26740/it-edu.v9i1.58647.
Ria, R. R. P. (2023). Asesmen computational thinking di pendidikan matematika: Analisis bibliometrik menggunakan VOSviewer. EDUPEDIKA: Jurnal Studi Pendidikan dan Pembelajaran, 2(2), 27–38. DOI: 10.60004/edupedika.v2i2.66.
Rosmansyah, Y., Putro, B. L., Putri, A., Utomo, N. B., & Suhardi. (2023). A simple model of smart learning environment. Interactive Learning Environments, 31(9), 5831–5852. DOI: 10.1080/10494820.2021.2020295.
Savery, J. R. (2006). Overview of problem-based learning: Definitions and distinctions. Interdisciplinary Journal of Problem-Based Learning, 1(1), 9–20. DOI: 10.7771/1541-5015.1002.
Shin, S. S. (2022). Effect of semantic distance on learning structured query language: An empirical study. Frontiers in Psychology, 13, 996363. DOI: 10.3389/fpsyg.2022.996363.
Shute, V. J., Sun, C., & Asbell-Clarke, J. (2017). Demystifying computational thinking. Educational Research Review, 22, 142–158. DOI: 10.1016/j.edurev.2017.09.003.
Tan, B., Jin, H.-Y., & Cutumisu, M. (2024). The applications of machine learning in computational thinking assessments: A scoping review. Computer Science Education, 34(2), 193–221. DOI: 10.1080/08993408.2023.2245687.
Wing, J. M. (2006). Computational thinking. Communications of the ACM, 49(3), 33–35. DOI: 10.1145/1118178.1118215.
Wiyono, S., Wibowo, D. S., Hidayatullah, M. F., & Dairoh, D. (2020). Comparative study of KNN, SVM and decision tree algorithm for student’s performance prediction. International Journal of Computing Science and Applied Mathematics, 6(2), 50–53. DOI: 10.12962/j24775401.v6i2.4360.
DOI: https://doi.org/10.21107/edutic.v13i2.35292
Refbacks
- There are currently no refbacks.
Copyright (c) 2026 Muhammad Izzuddin Al Fatih, Erlangga Erlangga, Yuli Sopianti

This work is licensed under a Creative Commons Attribution 4.0 International License.
Indexed by:
J. Ilm. Edutic is licensed under a Creative Commons Attribution 4.0 International License.













