Redondo Duarte, SaraPattier Bocos, DanielNeubauer, AdriánSáez López, José Manuel2026-04-202026-04-202026-02-27Redondo-Duarte, S., Pattier, D., Neubauer, A., & Sáez López, J.-M. (2026). Machine learning and educational robotics, an implementation in initial university teacher training and for practicing teachers in primary education. Frontiers in Education, 11, 1778718. https://doi.org/10.3389/FEDUC.2026.177871810.3389/feduc.2026.1778718https://hdl.handle.net/20.500.14352/134882Funding: The author(s) declared that financial support was received for this work and/or its publication. Competitive I+D+I project: Creative programming in primary education. Development of materials and proposals for block coding, game engines, machine learning, and robotics (PID2022-136442OB-I00). Knowledge Generation Projects 2022 (MICINN). Ministry of Science, Innovation and Universities of Spain. Referencias bibliográficas: • Alonso-Secades V. López-Rivero A.-J. Martín-Merino-Acera M. Ruiz-García M.-J. Arranz-García O. (2022). Designing an intelligent virtual educational system to improve the efficiency of primary education in developing countries. Electronics 11:1487. doi: 10.3390/electronics11091487 • Brydges C. R. (2019). Effect Size Guidelines, Sample Size Calculations, and Statistical Power in Gerontology. Innovation in Aging, 3. doi: 10.1093/geroni/igz036 • Caballero González Y. A. García-Valcárcel Muñoz-Repiso A. (2020). Strengthening computational thinking and social skills through learning activities with educational robotics in early school levels. Pixel-Bit. Revista De Medios Y Educación, 58, 117–142. doi: 10.12795/pixelbit.75059 • Chevalier M. Giang C. El-Hamamsy L. Bonnet E. Papaspyros V. Pellet J. P. et al. (2022). The role of feedback and guidance as intervention methods to foster computational thinking in educational robotics learning activities for primary school. Comput. Educ. 180:104431. doi: 10.1016/j.compedu.2022.104431 • Constante Amores I. A. Arroyo Resino D. Sánchez Munilla M. Asensio Muñoz I. (2024). Contribution of machine learning to the analysis of grade repetition in Spain: a study with PISA data. Rev. Esp. Pedagog. 82, 539–562. doi: 10.22550/2174-0909.4014 • Cronbach L. (1951). Coefficient alpha and the internal structure of tests. Psychometrika 16, 297–334. doi: 10.1007/bf02310555 • Daher R. (2025). Integrating AI literacy into teacher education: a critical perspective paper. Discov. Artif. Intell. 5:217. doi: 10.1007/s44163-025-00475-7 • de Vink I. C. Tolboom J. L. J. van Beekum O. (2023). Exploring the effects of near-peer teaching in computational thinking education in higher education. Inf. Educ. 22, 329–350. doi: 10.15388/infedu.2023.10 • Demetroulis E. A. Theodoropoulos A. Wallace M. Poulopoulos V. Antoniou A. (2023). Collaboration skills in educational robotics: a methodological approach—results from two case studies in primary schools. Educ. Sci. 13:468. doi: 10.3390/educsci13050468 • Esteve-Mon F. M. Adell-Segura J. Llopis-Nebot M. A. Valedolivas-Novella G. Pacheco-Aparicio J. (2019). The development of computational thinking in student teachers through an intervention with educational robotics. J. Inf. Technol. Educ. Innov. Pract. 18, 140–152. doi: 10.28945/4442 • Fiorella L. Mayer R. E. (2013). The relative benefits of learning by teaching and teaching expectancy. Contemp. Educ. Psychol. 38, 281–288. doi: 10.1016/j.cedpsych.2013.06.001 • Franco Hidalgo-Chacón J. P. Rodríguez-Arteche I. Martínez-Aznar M. M. (2022). What do Spanish primary school students do outside of school hours? Extracurricular activities. Rev. Complut. Educ. 33, 459–474. doi: 10.5209/rced.74490 • Gavrilas L. Kotsis K. T. Papanikolaou M. S. (2024). Exploration of the prospective utilization of educational robotics by preschool and primary education teachers. Pedagog. Res. 9, em0181. doi: 10.29333/pr/14049 • Gavrilas L. Kotsis K. T. Papanikolaou M. (2025). The challenges encountered by preschool and primary educators in implementing educational robotics. Res. Sci. Technol. Educ., 1–29. doi: 10.1080/02635143.2025.2578308 • Giannakoulas A. Xinogalos S. (2024). Studying the effects of educational games on cultivating computational thinking skills to primary school students: a systematic literature review. J. Comput. Educ. 11, 1283–1325. doi: 10.1007/s40692-023-00300-z • Hair J. F. Anderson R. E. Tatham R. L. Black W. C. (1998). Multivariate data analysis. 5th Edn. Upper Saddle River, NJ: Prentice Hall. • Kini T. Podolsky A. (2016). Does teaching experience increase teacher effectiveness? A review of the research: Learning Policy Institute. • Laru J. Celik I. Jokela I. Mäkitalo K. (2025). The antecedents of pre-service teachers’ AI literacy: perceptions about own AI driven applications, attitude towards AI and knowledge in machine learning. Eur. J. Teach. Educ. 48, 964–986. doi: 10.1080/02619768.2025.2535623 • Lillo F. García L. Severino-González P. (2024). Machine learning model for predicting primary school scores based on spatial, socio demographic and school–related information. Interciencia 49, 60–67. Available at: https://www.interciencia.net/wp-content/uploads/2024/02/07_7104_Com_Severino_v49n1_8.pdf • Moreno-Palma N. Berral Ortiz B. Fernández Fernández C. R. Victoria Maldonado J. J. (2025). Computational thinking in basic education through educational robotics: a systematic review. Eur. Public Soc. Innov. Rev. 10, 1–20. doi: 10.31637/epsir-2025-1099 • Musso M. F. Cascallar E. C. Bostani N. Crawford M. (2020). Identifying Reliable Predictors of Educational Outcomes Through Machine-Learning Predictive Modeling. Front. Educ. 5:104. doi: 10.3389/feduc.2020.00104 • Noh J. Lee J. (2020). Effects of robotics programming on the computational thinking and creativity of elementary school students. Educ. Technol. Res. Dev. 68, 463–484. doi: 10.1007/s11423-019-09708-w • Papert S. (1980). Mindstorms: Children, computers, and powerful ideas. New York: Basic Books. • Pérez Juste R. (2006). Evaluación de programas educativos. Madrid: La Muralla. • Purković D. Delač D. Kovačević S. (2022). Interests of Croatian primary school pupils about elective technology teaching and school activities. Metod. Ogl. 29, 167–189. doi: 10.21464/mo.29.1.6 • Rich P. J. Bartholomew S. Daniel D. Dinsmoor K. Nielsen M. Reynolds C. et al. (2022). Trends in tools used to teach computational thinking through elementary coding. J. Res. Technol. Educ. 56, 269–290. doi: 10.1080/15391523.2022.2121345 • Robert J. Muscanell N. McCormack M. Pelletier K. Arnold K. Arbino N. et al. (2025). 2025 EDUCAUSE horizon report. Teaching and learning edition. Boulder, CO: EDUCAUSE. • Ruiz-Ortiz I. (2023). Robotics in the mathematics area in primary education. A systematic review. Edutec, Elect. J. Educ. Tech. 84, 1–17. doi: 10.21556/edutec.2023.84.2889 • Santos A. I. Pereira D. Botelho N. Medeiros P. Cascalho J. M. (2023). Robotics for young people in AZORESminiBOT. Int. J. Inf. Educ. Technol. 13, 33–41. doi: 10.18178/ijiet.2023.13.1.1777 • Sáez-López J. M. González-Calero J. A. Cózar-Gutiérrez R. del Olmo-Muñoz J. (2023). Scratch and unity design in elementary education: A study in initial teacher training. Journal of Computer Assisted Learning, 39, 1528–1538. doi: 10.1111/jcal.12815 • Sáez-López J. M. Buceta Otero R. y De Lara García-Cervigón S. (2021). Introducing robotics and block programming in elementary education. RIED. Revista Iberoamericana de Educación a Distancia, 24, 95–113. doi: 10.5944/ried.24.1.27649 • Schina D. Romero M. France N. (2025). Pair interactions and emergent roles in problem-solving with modular robotics in primary education. Technol. Knowl. Learn. doi: 10.1007/s10758-025-09907-w • Sperling K. Stenliden L. Jörgen N. Heintz F. (2022). Still w(AI)ting for the automation of teaching: an exploration of machine learning in Swedish primary education using actor-network theory. Eur. J. Educ. Res. Dev. Policy 57, 584–600. doi: 10.1111/ejed.12526 • Tejedor F. J. (2000). El diseño y los diseños en la evaluación de Programas. Rev. Investig. Educ. 2, 319–339. https://revistas.um.es/rie/article/view/121021 • Tsai C. Y. Chen Y. A. Hsieh F. P. Chuang M. S. Lin C. L. (2023). Effects of a programming course using the GAME model on undergraduates’ self-efficacy and basic programming concepts. J. Educ. Comput. Res. 62, 482–504. doi: 10.1177/07356331231206071 • Uzumcu O. Bay E. (2020). The effect of computational thinking skill program design developed according to interest driven creator theory on prospective teachers. Educ. Inf. Technol. 26, 565–583. doi: 10.1007/s10639-020-10268-3 • Vera-Sagredo A. Constenla-Núñez J. Jara-Coatt P. (2024). Exploratory study of teachers’ self-perception of robotics and educational work in primary education: contributions to innovation and entrepreneurship. Edutec. Electron. J. Educ. Technol. 90, 1–18. doi: 10.21556/edutec.2024.90.3545 • Villalustre L. Cueli M. (2023). Assessing the computational thinking of pre-service teachers: a gender and robotics programming experience analysis. Educ. Sci. 13:1032. doi: 10.3390/educsci13101032 • Villegas-Ch W. García-Ortiz J. Sánchez-Viteri S. (2024). Optimizing writing skills in children using a real-time feedback system based on machine learning. IEEE Access 12, 164634–164651. doi: 10.1109/ACCESS.2024.3492974 • Weber A. M. Bastian M. Barkela V. Mühling A. Leuchter M. (2022). Fostering preservice teachers’ expectancies and values towards computational thinking. Front. Psychol. 13:987761. doi: 10.3389/fpsyg.2022.987761, 36248515 • Wei X. Lin L. Meng N. Tan W. Kong S. C. Kinshuk (2021). The effectiveness of partial pair programming on elementary school students’ computational thinking skills and self-efficacy. Comput. Educ. 160:Article 104023. doi: 10.1016/j.compedu.2020.104023 • Wing J. (2006). Computational thinking. Commun. ACM 49, 33–35. doi: 10.1145/1118178.1118215 • Wong G. K. W. (2024). Amplifying children’s computational problem-solving skills: a hybrid-based design for programming education. Educ. Inf. Technol. 29, 1761–1793. doi: 10.1007/s10639-023-11880-9 • Wu S.-Y. Su Y.-S. (2021). Visual programming environments and computational thinking performance of fifth- and sixth-grade students. J. Educ. Comput. Res. 59, 1075–1092. doi: 10.1177/0735633120988807 • Zakharov A. (2021). Teaching to the test: effects of test-centred preparation on short-term academic performance. Educ. Meas. Res. Rev. 9, 45–59. doi: 10.1016/j.ijedudev.2021.102422Programming and robotics-based training programs have been shown to enhance computational thinking and self-efficacy, yet limited attention has been paid to preparing future teachers to effectively implement these methodologies in educational practice. This study analyses the impact of an educational intervention based on visual block programming, educational robotics, and machine learning on the initial training of pre-service teachers and in-service primary school teachers. A quasi-experimental design was employed. The sample consisted of 170 participants: 83 students enrolled in a Primary Education degree program and 87 in-service primary school teachers. The instructional procedure was implemented through hands-on activities with micro:bit, Maqueen robots, and introductory machine learning concepts. Data were collected using a coding, robotics, and machine learning knowledge test, along with several validated Likert-type scales to assess attitudes toward the curricular integration of these technologies. For the first dimension, Student’s t-tests and linear regression analyses were conducted, while correlation analyses and nonparametric tests were applied to the second dimension. The findings revealed significant improvements in the acquisition of basic computational concepts (sequences, loops, and conditionals) and in the understanding of machine learning, with university students outperforming practicing teachers. Comparative tests indicated a greater self-perception of technological competence among university students, particularly in block-based programming and the use of game engines for educational purposes. The results suggest that the structured integration of robotics and machine learning appears to constitute a viable and effective strategy for enhancing teacher training, promoting active methodologies, and fostering an interdisciplinary approach in primary education.engAttribution 4.0 Internationalhttp://creativecommons.org/licenses/by/4.0/Machine learning and educational robotics, an implementation in initial university teacher training and for practicing teachers in primary educationjournal article2504-284Xhttps://doi.org/10.3389/feduc.2026.1778718https://produccioncientifica.ucm.es/documentos/69bf033f9cc459169f63c8c5https://www.scopus.com/pages/publications/105032545157https://www.webofscience.com/wos/woscc/full-record/WOS:001713128600001https://www.frontiersin.org/journals/education/articles/10.3389/feduc.2026.1778718/fullopen access37.01337.091.6378373.3371.12004.896Educational technologyHigher educationMachine learningPrimary educationRoboticsCiencias SocialesPedagogíaEnseñanza primariaEnseñanza universitariaMétodos de enseñanzaFormación del profesorado58 Pedagogía5801 Teoría y Métodos Educativos5803 Preparación y Empleo de Profesores