Objective

Chatbots are widely used to help students learn programming, because they answer questions at any hour and can help large classes. Most chatbots work through typed text. The authors say text can feel impersonal and may add frustration when a programming problem is hard. Voice chatbots can sound more natural and carry emotion through tone, but the authors note most studies are in English, few compare text with voice in a real classroom task, and many rely on students' own opinions rather than measures of the work they produced.

An emotion-aware chatbot is one that tries to notice how a learner feels (for example confused or frustrated) and adjusts how it helps. An avatar is an animated on-screen face that can smile and nod.

This study asked how four kinds of support affect students working on a timed Java programming task:

  • Text-based chatbot support.
  • Voice-based chatbot support.
  • Voice-based chatbot support with an animated avatar.
  • Voice-based support from a real teacher.

The authors compared the groups on engagement, satisfaction, usability, emotional state and the quality of the code students wrote. They focused on Arabic-speaking students, a group the authors say is rarely studied in controlled classroom experiments.

Methods

This was a controlled experiment where different students were randomly placed in different groups (a between-subjects design). Random assignment lets the authors compare groups fairly, though a small study can still be thrown off by chance.

The 56 participants were computer science students at Birzeit University in Palestine who had finished foundational Java and object-oriented programming courses. They signed up voluntarily and were randomly assigned to four groups of 14. All worked individually in a university computer lab on the same Java task, building a student records management program. The target time was 60 minutes, and sessions ran 45 to 60 minutes. Everything was done in Arabic.

For the three chatbot conditions the authors used a Wizard-of-Oz method: a trained person secretly acted as the chatbot, so that responses were consistent and realistic. Students were told afterward. For the text condition, the operator could consult an AI assistant such as ChatGPT. In the avatar condition, answers were spoken through an animated avatar. A tool called MorphCast read students' facial expressions, and in the real teacher and avatar conditions the helper used those signals to change pace and detail.

Data included questionnaires after the task (satisfaction, usability and engagement on a 5-point scale), measures of interaction time and engagement percentage, emotional readings from facial expressions, and ratings of each student's code by two experienced Java instructors. The authors compared groups with a one-way ANOVA and follow-up Tukey tests, and reported effect sizes. The study had ethics approval from the university's review board and informed consent.

Key Findings

Voice-based help, especially with an avatar, was linked to higher engagement, better mood and more readable, maintainable code than text chat, while ratings of satisfaction and usability did not differ.

Engagement

  • Subjective engagement differed across groups (F(3,52) = 4.75, p = .007). Voice and avatar groups rated their engagement significantly higher than the text group.
  • Objective engagement, based on how much of the session students actively interacted, also differed (p = .005). Voice and avatar groups showed higher levels.

Mood

  • Emotional valence (the balance of positive against negative facial expressions, scaled 1 to 5) differed strongly (p < .001, a large effect).
  • The avatar group scored highest (M = 4.70), then voice (4.18), then text (3.21) and real teacher (3.11).
  • Avatar and voice groups were significantly more positive than both text and real teacher groups. The avatar group's mood rose over the session, while the real teacher group's mood fluctuated and stayed closer to neutral.

Code and task completion

  • Task completion was highest in the voice group (83.71%) and the real teacher group (82.53%), compared with the avatar (67.28%) and text (63.54%) groups. Voice and real teacher beat text significantly.
  • Readability and maintainability were higher in the voice and avatar groups than in the text group (p = .017 and p = .014).
  • Code accuracy did not differ significantly (p = .120).

To picture the code results: the average readability rating was 3.94 for voice and 4.08 for avatar, against 3.29 for text on a 5-point scale. Maintainability averaged 7.42 for voice and 7.56 for avatar, against 6.18 for text. Both are expert ratings of how well the program was organized and easy to change later.

The text group also trailed on mood and engagement, so it was the weakest of the four on most measures. The real teacher group did well on finishing the task but showed more tension and distraction in the authors' observations, which the authors link to being watched closely.

Opinions

  • Satisfaction (p = .471) and usability (p = .302) did not differ significantly across groups.
  • The authors say students leaned toward a mix of teacher and chatbot help, but give no counts.

Implications

The authors suggest the following from their results.

  • Developers: voice-based, emotionally expressive chatbot interfaces, especially with an animated avatar, may approximate parts of a supportive teacher's presence while still scaling to large programming classes. The authors say voice should be prioritized when the goal is to raise engagement.
  • Teachers and programs: chatbots appear to work best as a complement to teachers, not a replacement, because students leaned toward a mix of both.
  • Design for Arabic-speaking learners: the authors say the results give design guidance for AI teaching assistants for this group.

The authors say the avatar may give emotional support without the social pressure that some students feel with a human watching, which could be useful in large classes where one-on-one teacher time is scarce. They add that satisfaction and usability scores alone missed these differences, so tools should be judged with behavior and mood measures too.

The authors also note a trade-off. Voice and real teacher support led to faster task completion, while voice and avatar support went along with better structure in the code.

Our reading (not the authors' recommendation): a teacher who wants to try voice help could pilot it in one lab session first and compare how students' code is structured, not just whether it runs.

Our reading (not the authors' recommendation): because a human played the chatbot, a real automatic system may not do as well, so schools should test the actual product before relying on these results.

Limitations

The authors say the sample was relatively small and came from a single institution, so it may not apply elsewhere. The Wizard-of-Oz method kept responses consistent but does not capture the limits of fully automatic chatbots. The study used a single 60-minute task, so it says nothing about long-term learning, retention or skill transfer. Emotion detection relied mainly on facial expressions, which may not capture inner feelings or cultural differences in showing emotion.

The paper does not mention, but each group had only 14 students, which makes the results easy to shift by chance. The study ran many comparisons, so some significant results could be false alarms.

The paper does not mention, but the avatar and real teacher groups used the facial emotion readings to adjust help, while the text and voice groups did not, so the groups differed in more than the way help was delivered. The emotional valence score also came from the same tool used to guide the helper in two groups.

The paper does not mention, but the helper in the text group may have used ChatGPT while the teacher and avatar helpers did not, and the authors do not report how any one operator's own style may have shaped results. One operator played every chatbot role.

The paper does not mention, but the study measured one task over about an hour, not learning over time, and did not test whether students could do the work later without help.

The paper does not mention, but some of the paper's wording is inconsistent. For example, it calls the real-teacher condition both a baseline and one in which a teacher simulates chatbot responses,.

Future Directions

The authors suggest these next steps:

  • Run studies at more than one institution with larger and more varied groups of students.
  • Use fully automatic emotion-aware chatbots, not a human playing the role.
  • Follow students over a longer time, not just one 60-minute task.
  • Add other emotion signals, such as voice features or body measures, to go beyond facial expressions.
  • Explore more advanced avatars, including AR/VR ones, and emotional speech that adapts to the student.

Open questions the study leaves include why the avatar group finished less of the task than the voice and real teacher groups, whether the avatar adds value beyond voice alone, and whether students keep benefiting after the novelty wears off. The authors say better systems could give scalable, human-like support that complements teaching.

The bottom line: In a randomized experiment with 56 Arabic-speaking programming students, voice-based help with an animated avatar led to higher engagement and better mood than text chat, and voice and avatar help went along with more readable, maintainable code. Accuracy, satisfaction and usability did not differ. Each group had only 14 students and a hidden person played the chatbot, so this is early evidence. Developers can treat it as a hint about voice and avatar design, to be checked with real systems.