Input Classification and Output Filtering in a Dialogue System for Child and Robot Book Conversations
2026 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE credits
Student thesisAlternative title
Input-klassificering och output-filtrering i ett dialogsystem för barns boksamtal med en robot (Swedish)
Abstract [en]
Conversational systems used in educational settings must be able to handle imperfect user input whilst also generating correct and socially appropriate responses. This thesis explores how robustness and appropriateness can be improved for the BookBot project. The BookBot is a conversational robot designed to have book discussions with children, with the goal of inspiring them to read more. Previous versions of the system struggled with misinterpretations of input, as well as a lack of output filtering, resulting in inappropriate responses at times.
To address these problems, this thesis introduces an input interpretation module as well as an output monitoring module. The input module classifies input into distinct categories with the help of the large language model (LLM) used in the system. Depending on the classification, fallback strategies may be triggered, or normal book-related discussions may continue. The output module filters the generated response by performing sentiment analysis as well as LLM-based self-evaluation on the response. The response may be regenerated depending on the outcome of the sentiment analysis and self-evaluation. These modules were evaluated using historical conversation logs from previous deployments of the BookBot system.
The results show that the proposed modules improved the robustness and appropriateness of the system. The input interpretation module reduced misunderstandings and improved the handling of unclear input, while the output monitoring module detected and regenerated potentially harmful responses. The combined system showed that the modules interacted positively and performance improved compared to when the modules operated independently. However, these improvements came at a significant cost in increased latency, due to the increase in LLM calls and API throttling.
The thesis concludes that the input interpretation module and the output monitoring module can improve conversation quality in conversational systems for educational use. However, the additional computational cost and latency introduced with the current implementation limits its practicality. Future work should therefore focus on reducing latency, potentially through the use of a local or fine-tuned LLM.
Place, publisher, year, edition, pages
2026. , p. 55
Keywords [en]
Conversational Systems, Large Language Models (LLMs), Dialogue Management, Input Interpretation, Output Monitoring
National Category
Computer Sciences
Identifiers
URN: urn:nbn:se:liu:diva-225128ISRN: LIU-IDA/LITH-EX-A--26/049--SEOAI: oai:DiVA.org:liu-225128DiVA, id: diva2:2074027
Subject / course
Computer science
Presentation
2026-06-09, Donald Knuth, B-Huset, Linköpings Universitet, Linköping, 10:15 (English)
Supervisors
Examiners
2026-06-232026-06-172026-06-23Bibliographically approved