Objective

Many university computing courses in Nigeria rely on lectures, and teachers often have limited access to labs, robotics kits and reliable internet. Computer robotics programming combines coding, control systems and sensors, so it needs hands-on practice. Problem-based learning (PBL) is one way to give that practice. In PBL, students work on real, open-ended problems, often in groups, instead of only listening to lectures.

The authors wanted to know whether adding an AI assistant to PBL makes a difference. They built a learning environment where students could ask ChatGPT for explanations, coding guidance and debugging help. They based their thinking on two theories: Self-Determination Theory (people are more motivated when they feel in control, capable and connected) and Engagement Theory (people engage more in active, collaborative tasks).

They asked three questions, each after adjusting for students' prior programming experience:

  • Does AI-supported PBL change students' engagement compared with traditional PBL?
  • Does it change intrinsic motivation (the drive to learn for interest and enjoyment)?
  • Does it change academic achievement?

Methods

This was a quasi-experiment, meaning two existing groups were compared and students were not randomly assigned. Each group took a pretest and a posttest. This type of study can show that groups differ, but it cannot fully rule out other reasons for the difference.

Who took part. 87 second-year undergraduates studying computing education and taking a computer robotics programming course in Nigeria. The AI group had 45 students at the University of Nigeria, Nsukka. The comparison group, at Nnamdi Azikiwe University, is described as 42 students in one place and 43 in another. About 43.7% were male and 56.3% female. Of the 87, 34 (39.1%) had programmed before and 53 (60.9%) had not.

What the AI group received. Students used a desktop learning environment built by the authors, with a chat window powered by OpenAI's API (ChatGPT) next to a lesson panel. Students could ask for explanations, code help and hints. The assistant was designed to guide rather than give full solutions. The course ran for 14 weeks, with two 2-hour sessions each week, 64 contact hours in all. Activities moved from a first orientation to team robot problems, such as a line-following robot, and a capstone project.

The comparison group did the same problems and tasks without AI. The instructor and classmates gave all feedback. The existing lecturers at each university taught, after a two-day training and with the same lesson plans and scripts.

Measures. A 20-item engagement survey, a 9-item intrinsic motivation survey, and a 50-question multiple-choice achievement test with a parallel form at the end. Ethics approval came from the University of Nigeria, Nsukka, and students gave written consent.

Analysis. The authors ran a MANCOVA, a statistical test that compares groups on several outcomes at once while adjusting for prior programming experience.

Key Findings

On all three outcomes, the AI-supported group scored higher than the traditional PBL group after adjusting for prior programming experience. The authors report very large effects, which are larger than most classroom studies find.

Combined result

  • Across the three outcomes together, the method of instruction had a large effect (Wilks' Lambda = 0.134, F(3, 82) = 176.93, p < 0.001, partial eta squared = 0.866). Partial eta squared is a measure of effect size, and the authors say it means the teaching method accounted for about 86.6% of the variation in the combined outcomes.

Each outcome on its own

  • Engagement: adjusted average of 75.24 for the AI group versus 49.95 for the traditional group, a gap of 25.29 points (effect size 0.694).
  • Intrinsic motivation: 24.50 versus 14.29, a gap of 10.21 points (effect size 0.690).
  • Achievement: 65.78 versus 47.74, a gap of 18.04 points (effect size 0.519).
  • All three gaps had p below 0.001, and the confidence intervals did not include zero.

Prior programming experience

  • Prior experience had no significant effect on the combined outcomes (Wilks' Lambda = 0.993, p = 0.893). The authors read this as AI support evening out differences in background, but the study did not test that directly.

Overall picture

  • In plain terms, the AI group's engagement average was about half again as high as the comparison group's, and its motivation average was higher by a similar margin.
  • The achievement gap of 18.04 points on a test scored out of 100 is the one a teacher can picture most easily: roughly the difference between a failing and a passing grade in many courses.
  • The authors describe the results as statistically and practically significant, but also call the study exploratory and preliminary.

Checks on the tests

  • The authors report that their questionnaires were consistent (Cronbach's alpha of 0.875 for engagement, 0.804 for motivation and 0.790 for the achievement test) and that the statistical assumptions were met.

These are scores from two groups at two universities, so the gaps may partly reflect differences between the schools and instructors.

Implications

The authors conclude that AI-supported PBL is a promising way to teach robotics programming, and they call their work a proof of concept, not a final answer.

Teachers and curriculum designers

  • The authors recommend using AI tools inside a structured approach such as PBL, not on their own, and keeping the instructor and peers involved.
  • They built the assistant to give hints without full solutions, so students keep thinking for themselves. They say this helps protect independence and motivation.

Leaders and policymakers

  • The authors recommend investing in teacher training and digital infrastructure so that AI-supported teaching can grow, and note that the environment was desktop only. They plan a mobile version to help in places with fewer resources.
  • They suggest AI-enhanced teaching in STEM fields in developing countries.

Our reading (not the authors' recommendation): A department that wants to try this could run a small pilot in a few sections and compare with a similar section before changing the whole program.

Our reading (not the authors' recommendation): Because the two groups were at different universities, a school should look at its own students' results before assuming the same gains. The size of the reported differences is another reason to wait for repeat studies.

Our reading (not the authors' recommendation): Teachers should watch for students leaning on the AI too much. Some of the studies the authors cite raise this concern, and this study did not measure it.

Limitations

The authors name several limits themselves.

  • Engagement and motivation came from self-reported surveys, so students may have answered in ways that look good or may not have judged their own behavior well.
  • Because the quasi-experimental design had no random assignment, the authors say they cannot draw firm cause-and-effect conclusions or rule out existing group differences.
  • The sample was small, from limited institutions, so results may not apply widely.
  • The tool ran only on desktop computers, which may have limited some students' participation.
  • The study did not capture students' own accounts of their experience, so how AI affected their strategies and confidence is unknown.

Other points a reader should keep in mind:

  • The paper does not mention, but each group came from a single university with different instructors, so teacher and school differences could explain some of the gap.
  • The paper does not mention, but the pretest scores of the two groups are not shown in the text, so we cannot see how similar they were at the start.
  • The paper does not mention, but the effect sizes are very large for a classroom study, and the size of the comparison group is given inconsistently (42 and 43).
  • The paper does not mention, but the use of a different test form after the course and a single semester means long-term learning was not checked.

Future Directions

The authors plan to follow up in several ways.

  • Run a randomized controlled trial in the same teaching context, where students are assigned to groups by chance, to test whether AI really causes the gains.
  • Add behavior tracking to the learning environment, such as interactions, time on task and problem-solving paths, to measure engagement more objectively than surveys do.
  • Test with larger and more varied groups at several universities and in other STEM subjects.
  • Build a cross-platform version that works on mobile devices.
  • Carry out a mixed-methods study with focus groups and interviews to learn how AI affected students' problem-solving strategies, confidence and teamwork.

Questions the study leaves open include whether the gains last after the course ends, and whether students come to depend on the AI when it is not available.

The bottom line: In this study of 87 Nigerian undergraduates, students who used a ChatGPT-supported problem-based course scored higher on engagement, motivation and a final robotics test than students in a regular problem-based course. The evidence is early. Groups were not assigned by chance, they came from two different universities and instructors, the measures were partly self-reported, and the gaps are far larger than usual. A reasonable reading is that AI help inside a well-structured course looks promising and is worth testing more carefully. It does not yet show that AI caused the gains.