Objective

Computational thinking is a way of solving problems with clear, logical steps, as in programming. Schools are asking teachers to teach it, along with robotics and, more recently, artificial intelligence (AI) and machine learning (ML), where computers find patterns in data. The authors say teacher training matters here, because teachers' own skills and attitudes shape whether they will use these topics in class, and that without training they may struggle or resist.

The study tested one training program that combined block programming (building programs by snapping visual blocks together), educational robotics with the micro:bit, and a first look at machine learning. It followed constructionism, an idea that people learn well by making things, in this case by programming devices and robots.

The authors set three aims:

  • Measure participants' knowledge of basic computing ideas (sequences, loops, conditionals and sensors) and of ML with a knowledge test.
  • Look at attitudes toward bringing programming, ML and robotics into the primary school curriculum.
  • Judge whether robotics-based activities can work in initial teacher training and in schools.

Two groups took part: students training to become primary teachers and teachers already working in primary schools.

Methods

The authors call this a quasi-experimental study, meaning the groups were not formed by random assignment. They say the design has lower internal validity than a true experiment. Both groups did the same program, and the paper compares the two groups on a knowledge test and on attitude questions. The paper does not describe a test before the program, so it cannot show how much each person learned.

Participants

A purposive sample of 170 people took part. Of these, 83 were first-year undergraduate pre-service teachers at a Spanish public university, with a mean age of 19.35 years, 92.8% female and 7.2% male. The other 87 were in-service primary school teachers from the city of Madrid, 48.3% female and 51.7% male. Groups were formed from the availability of schools and existing class groups. The practicing teachers took the training in seven schools during the 2024-2025 academic year.

The program

There were four sessions. Participants built projects with the micro:bit, a small programmable board, using temperature and light sensors and the block-based MakeCode environment. They also used the Maqueen kit to build a small robot car that moves when the light is bright and stops when it is dim, which teaches conditional statements (if this, then that). The content, materials, length and order were the same for both groups.

Measures and analysis

The Coding, Robotics and Machine Learning Test (CRMT) has 10 items. Eleven expert judges reviewed the instruments, and reliability scores were above 0.80. Three attitude scales, with reliability of 0.918 for teachers and 0.911 for university students, asked about block programming, robotics and curriculum use. The authors compared test scores with a t-test and a regression model, and compared attitude scales with Mann-Whitney tests and rank correlations. The paper reports ethics approval from a university board.

Key Findings

Pre-service teachers scored higher than practicing teachers on the knowledge test and on several attitude items, and in both groups programming ideas were closely linked to each other and to classroom uses.

Knowledge test

  • The average CRMT score was 6.31 out of 10 for university students and 5.59 out of 10 for practicing teachers. The difference was statistically significant (p = 0.002), with a small to medium effect.
  • A regression model with group, gender and teaching experience explained only 5.4% of the differences in scores (F(3,166) = 3.19, p = 0.025). Group was the only predictor that mattered: students scored on average 1.13 points higher than teachers (p = 0.011). Teaching experience (p = 0.345) and gender (p = 0.530) did not.
  • University students rated themselves higher on knowing programming and ML, on seeing ML as important, on block programming, and on basic ideas like sequences, loops and conditionals. For loops, students' answers were also less spread out (SD of 0.75 against 1.02 for teachers).

Attitudes toward use in schools

  • Students gave higher ratings to robotics learning, block programming content, and use in art and music. Teachers gave a slightly higher rating for natural sciences.
  • Both groups rated the potential of programming to help students with special educational needs as high, with students rating it higher. Group differences on these items were small, with effect sizes of about 0.22 to 0.31.

Links between answers

  • In both groups, knowing sequences, loops and conditionals went together. Among teachers, the correlations were 0.781, 0.697 and 0.819, and among students 0.760, 0.696 and 0.628.
  • Interest in coding went along with active student participation and with attention to students with special educational needs in both groups. Among teachers, views on innovation with robotics were strongly linked to views on use in mathematics and natural sciences.
  • Among students, learning with robotics was linked to interest in coding, and interest in coding was linked to active participation, which in turn went along with attention to students with special educational needs.
  • Only correlations of 0.50 or higher were reported, so weaker links are not shown.

These links are correlations, so they do not show that one thing causes another.

Implications

The authors argue that structured, hands-on robotics and ML work is a workable way to build computational skills and positive attitudes in teacher education. Their recommendations are below.

Teacher education programs

  • Include block programming, educational robotics and introductory ML as core parts of initial training, starting with basic ideas and moving toward game-based and ML activities.

Practicing teachers and schools

  • Expand professional development on ML and robotics, with hands-on, practice-oriented sessions that match classroom reality. The authors read the gap between the groups as a training gap among practicing teachers.

Institutions and policymakers

  • Support uses of programming and robotics beyond science and math, including the arts, social sciences and special education, and provide resources, time and institutional support.

Teacher educators

  • The authors say early, structured exposure appears to build both understanding and positive attitudes toward using technology in class, and that programs should be progressive and grounded in teaching practice.

Researchers

  • Use longitudinal and experimental designs and larger, more varied samples.

Our reading (not the authors' recommendation): Because the pre-service group scored higher but there was no pre-test, a school could give practicing teachers a short baseline quiz before a workshop, so it can see what the workshop adds.

Our reading (not the authors' recommendation): The test score gap may reflect that university students are used to being tested, as the authors themselves suggest, so a low score by a practicing teacher need not mean they teach robotics poorly.

Limitations

The authors state that the purposive sample and the use of existing groups limit how far the results apply and could produce selection bias. They say that without random assignment, strong claims about cause are not possible. The gender balance was uneven, especially among the university students, which makes it hard to look at gender differences. The study ran in a limited number of institutions over a short period, so it says nothing about long-term retention or about use in real teaching.

The paper does not mention, but the two groups differ in more than their job: they differ in age, in recent schooling and in how they were recruited, so the score gap cannot be pinned on teaching experience or training alone.

The paper does not mention, but there was no test before the program and no comparison group that skipped it. The authors' wording about "improvements" therefore goes beyond what a single after-program comparison can show.

The paper does not mention, but much of the attitude data are self-ratings of knowledge, which can differ from actual skill.

The paper does not mention, but the regression had a low explained variance and a Durbin-Watson value of 0.82, which the authors say points to some dependence among the residuals, so the model should be read with caution.

Future Directions

The authors say future research should use longitudinal and experimental designs to see the long-term effects of robotics and ML programs on teaching practice and on student learning. They ask for larger and more varied samples, drawn randomly or in strata, to make results apply more widely.

  • Which other factors, such as motivation, self-efficacy and prior experience, explain differences in technology skills among teachers?
  • How do outcomes differ by gender, in samples that are more balanced than this one?
  • Do the skills and positive attitudes last, and do they show up in real classroom teaching?
  • Do the results hold in more schools and universities, in multi-site studies?

The authors also suggest that future models should deal with the dependence in residuals noted in this study, for example through hierarchical modeling.

The bottom line: In this Spanish study, 83 first-year pre-service teachers and 87 practicing primary teachers did the same four-session micro:bit robotics and machine learning program. The pre-service group scored higher on the knowledge test, 6.31 against 5.59 out of 10, and rated their own skills higher. With no pre-test, no no-training group and non-random groups, the study cannot say how much the program taught. It does suggest that hands-on training is workable and that practicing teachers may need more support.