Related Experiment Video
Updated: Jan 8, 2026

Author Spotlight: Addressing Technical and Subjective Challenges in Measuring Classroom Attention
Published on: December 15, 2023
Natural language processing-based emotion and usage analysis of an AI-powered chatbot for epilepsy support
Keiichi Watanuki1,2, Ryoya Oba1, Naoki Nozawa1
1Graduate School of Science and Engineering, Saitama University, Saitama, Japan.
Objective:
Artificial intelligence (AI)-powered chatbots are increasingly used for patient education and mental health support, yet their effectiveness in epilepsy care remains underexplored. This study examines text-based interactions between users and EpiloBot, an epilepsy-focused chatbot, to understand conversational patterns and emotional trends using natural language processing (NLP) techniques.
Methods:
Text interactions from the chatbot's pretest phase (a total of 23 participants; 10 people with epilepsy, PWE, 10 caregivers, and 3 healthcare professionals) were analyzed using JMedRoBERTa (Japanese Medical RoBERTa, a model fine-tuned on Japanese medical literature) to classify user messages into content clusters and DeBERTa (Decoding-enhanced BERT with Disentangled Attention, a model developed by Microsoft Research) to track emotional shifts. For sentiment analysis, only five PWE who interacted frequently with EpiloBot (more than 80 times) were included. The study employed UMAP (Uniform Manifold Approximation and Projection) clustering and k-means algorithms to differentiate between objective medical inquiries and subjective, nonurgent queries. Sentiment analysis was conducted to explore the chatbot's influence on emotional engagement.
Results:
Two primary content clusters were identified: "Medical Inquiry Cluster"-Objective, treatment-related questions about epilepsy medications and management strategies. "Exploratory Use Cluster"-Subjective or emotional inquiries, often focused on coping strategies and personal reflection. Sentiment analysis using DeBERTa revealed that messages related to proactive learning (e.g., gaining social skills) were associated with increased positive emotions, while introspective, self-evaluative messages showed reduced positivity. These findings provide insights into how chatbots influence user emotions and engagement patterns.
Significance:
NLP-based chatbot analyses offer valuable insights into patient engagement and emotional support needs. The study highlights the importance of designing chatbots that balance medical guidance with psychological support, particularly for chronic disease management. Future improvements in chatbot algorithms should focus on context-aware interactions and empathic response generation to optimize patient outcomes.
Plain Language Summary:
This study analyzed how people interacted with EpiloBot, an artificial intelligence (AI)-powered chatbot for epilepsy education and support. Using advanced language processing (NLP) techniques, we examined user messages to understand chatbot usage patterns and emotional responses. Results showed that users engaged in two main ways: medical inquiries about epilepsy treatment and exploratory, nonurgent conversations. Emotion analysis revealed that proactive learning interactions increased positive emotions, while self-reflective questions led to more neutral or negative sentiments. These findings suggest that chatbots can provide emotional benefits, but future improvements should focus on empathetic AI responses and personalized support.
Related Concept Videos
Empathy
Non-equilibrium in the Cell
Epilepsy and Seizures: Overview
Various factors can trigger epilepsy, including genetic factors, brain damage, metabolic causes, and unknown etiology. Diagnosis of epilepsy involves electroencephalography (EEG), which...
Therapeutic Communication
Verbal communication depends on language or a prescribed way of using words so that people can share information effectively. The critical aspects of verbal...
Physiology of Emotion
Autonomic Nervous System
The autonomic nervous system (ANS) plays a critical role in emotional responses by regulating involuntary physiological functions. It consists of two main components: the sympathetic and parasympathetic systems. The sympathetic system...
Emotional Expression
Universal Facial Expressions
Psychologist Paul Ekman identified seven basic...
