Objective
Teachers know that how students feel affects how they learn. A teacher who notices frustration and responds kindly can keep a student engaged. But a teacher cannot do this for every student at every moment, especially online. The authors wanted to see whether an AI system could play part of that role.
They built a learning tool that combines three parts: KeyMoji, a sentiment analysis program that reads a short text and labels it positive, negative or neutral; ChatGPT, which writes replies in the tone of a teacher; and Unity, the software used to build the app. Students could type a course question or describe how they felt. The tool then answered with encouragement, correction or a gentle question, depending on the detected emotion. The reply patterns were based on empathy theory, which separates understanding what someone thinks from sharing what they feel.
The study tested how five things were connected, as reported by students:
- empathetic communication from the system;
- learning emotions, such as enjoying new knowledge;
- learning motivation;
- learning engagement; and
- perceived learning outcomes, meaning how much students felt they learned.
The authors proposed six direct links between these and then checked indirect links, where one thing is connected to another through a third.
Methods
This was a one-group survey study. Students used the tool once and then filled in a questionnaire. There was no comparison group and no test before the session, so the design can show how answers go together but cannot show that the tool caused them.
The participants were 303 undergraduate students in an introductory programming course. They spent 30 minutes in class using the software to work on course-related programming problems. The paper says no age or gender information was collected. Formal ethics review was not required for this classroom evaluation, but students gave electronic consent and took part voluntarily.
The tool had two functions. In the inquiry section, students typed a question plus the idea they planned to try, and the system replied based on whether the idea would work and on the detected sentiment. In the feedback section, students wrote how they felt about the class, and the system responded with listening and understanding. The authors compared example outputs with plain ChatGPT answers to show the difference in tone.
Afterward students completed a post-test questionnaire on a 5-point scale from strongly disagree to strongly agree. It had five parts: empathetic communication (5 items), learning emotions (4 items), learning motivation (5 items), perceived learning outcome (4 items) and learning engagement (9 items). The items were adapted from earlier scales. Perceived outcomes were self-reports, not grades.
The authors analyzed the data with partial least squares structural equation modeling in SmartPLS 4.0, a method that estimates how several measured ideas relate to one another.
Key Findings
Overall, students' self-reports showed positive links between empathetic communication, emotions, motivation and engagement, but not every link held, and all of them are associations.
Direct links
- Empathetic communication was linked to more positive learning emotions (coefficient 0.320, p < 0.001).
- Positive learning emotions were linked to higher motivation (0.22, p < 0.001) and higher engagement (0.318, p < 0.001).
- Learning emotions were not directly linked to perceived learning outcomes (0.11, p = 0.150). This hypothesis was not supported.
- Higher motivation (0.25, p < 0.001) and higher engagement (0.23, p = 0.002) were each linked to higher perceived learning outcomes.
Indirect links
- Empathetic communication was linked to motivation through learning emotions. The share of the total link that ran through emotions was 0.44.
- Empathetic communication was linked to engagement through learning emotions (0.38).
- Empathetic communication was not significantly linked to perceived learning outcomes through learning emotions (0.18, p = 0.085).
- Learning emotions were linked to perceived learning outcomes through motivation (0.056, p = 0.011) and through engagement (0.074, p = 0.008). Because the direct link was not significant, the authors call this indirect-only.
In plain terms, students who said the replies made them feel understood tended to say they enjoyed learning more, and those who enjoyed it more tended to say they were more motivated and engaged. The numbers are modest, so the links are real but not large.
How much was explained
- The model explained a modest share of the differences between students: 0.17 of learning emotions, 0.13 of motivation, 0.11 of engagement and 0.19 of perceived learning outcomes.
Measurement checks
- Average ratings were high, from about 4.15 to 4.40 on the 5-point scale.
- Two items in the perceived outcome scale had overlapping content (statistics values of 5.94 and 4.39, above the stricter 3.3 cutoff).
- Some measures of how distinct the ideas were showed overlap, for example between learning emotions and motivation (0.92, above the usual .90 guideline). The authors note these concerns remain unresolved.
The paper also tested that the sentiment tool labeled simple statements such as I am happy and I am sad correctly. This was a functional check, not a formal accuracy test on students' writing.
Implications
The authors present the work as early evidence that AI emotion detection and empathetic replies may help students feel supported, and they are careful to say the findings are associations.
For teachers and designers of tools
- The authors suggest that a tool like this could help teachers understand how students feel and respond more thoughtfully, for example in online courses and smart classrooms.
- They offer a design pattern: praise correct ideas, gently correct wrong ones with a suggested next step, encourage students who are unsure, and respond to stated feelings by listening first.
For institutions
- The authors say that empathy-oriented AI support should come with clear program policies, rules on disclosing AI use and credible detection practices, to encourage ethical use and avoid uncritical dependence.
For researchers
- The authors call for stronger designs before any claims about learning gains, including comparisons with a neutral ChatGPT.
Our reading (not the authors' recommendation): instructors who test any emotion-aware tool should keep a human in the loop, so that a student who writes about real distress reaches a person.
Our reading (not the authors' recommendation): a teacher interested in this idea could try the reply patterns by hand first, such as acknowledging a feeling before giving technical help, since they may be useful without any special software.
Our reading (not the authors' recommendation): the results do not show that the emotion-detection part adds anything beyond a friendly ChatGPT, so schools should not pay for such a feature on this evidence alone.
Limitations
The authors state that the single-group, post-only, self-report design limits what can be concluded and does not allow causal claims. There was no comparison condition, no pre-test and no objective measure of achievement, so the results cannot be tied to the system itself rather than to other factors. Because all answers came from the same students at one time, common method bias cannot be ruled out, and the authors say so. The session was only 30 minutes, so the results reflect short-term reactions. Some measures of how distinct the ideas were showed overlap, and the model explained a modest share of the differences between students. The study also did not measure policy awareness, perceived detection effectiveness, student integrity or grades.
The paper does not mention, but all students were in one introductory programming course, so students in other subjects or countries may react differently. The paper does not mention, but the paper gives no accuracy test of the sentiment tool on real student text, and students may have rated a new tool kindly because it was new. The paper does not mention, but some questionnaire items, such as liking empathetic teacher communication, may measure the same thing as the outcomes they are meant to predict.
Future Directions
The authors recommend several next steps:
- Compare the empathy tool against a neutral ChatGPT and against a generic reply condition, to see whether any benefit comes from the empathy features or from general AI interaction.
- Use randomized or quasi-experimental designs with pre-test and post-test measures.
- Add objective measures such as task accuracy, behavior logs or standardized assessments next to self-reports.
- Study longer use over several weeks or months rather than one 30-minute session.
- Include learners of other ages and backgrounds.
- Measure policy awareness, integrity and the social spread of generative AI use as possible influences.
- Reduce method bias with several data sources and measurements taken at different times.
A further open question is whether students with different levels of experience react differently to the same empathetic replies.
The bottom line: In one programming course, 303 students who used an emotion-aware ChatGPT helper for 30 minutes reported links between feeling supported, positive emotions, motivation and engagement. Emotions were not directly linked to perceived learning, only through motivation and engagement. The evidence is preliminary, since it rests on one group, one session and self-reports, with no comparison to a plain chatbot. Educators can treat it as a hint that responding to feelings matters, not as proof that this tool improves learning. Larger and better controlled studies are needed.
Comments 0
No comments yet. Be the first to share a thought.
Get new research summaries by email
Every new summary each morning, a weekly digest, or a monthly report. You choose, and you can unsubscribe in one click.