Enhancing Query Classification in Chatbot Using LSTM

2025

Closed access Metadata (CSL-JSON)
DOI 10.1109/sist61657.2025.11139197
Data confidence 70 medium
How this score is calculated

It is built from checkable properties of the record itself: whether the article has a DOI, how many independent sources confirmed its data, whether the required fields are filled in, and how recent the latest confirmation is. Disagreement between sources and a missing identifier lower it. A value of 80 or above means the record was published without further checking; 60 to 79 means it is published at reduced confidence, with a manual check advisable. A record verified by an editor by hand is never pushed below 90 by a recalculation. This scores our data about the article, not the article itself.

Abstract

This study presents the design, implementation, and evaluation of an LSTM-based model for classifying user queries in a cleaning service chatbot. The dataset comprised 50,000 queries, 10% of which were removed as irrelevant or duplicate, leaving 45,000 cleaned queries for training (80%) and testing (20%). Text preprocessing steps included lowercasing, stop-word removal, lemmatization, tokenization, padding, and word embedding using FastText. The model architecture featured a Bidirectional LSTM with 256 neurons, an attention layer for identifying key terms, and a Softmax output layer for classification across 10 categories. Trained with categorical cross-entropy loss and the Adam optimizer over 30 epochs, the model achieved high accuracy metrics, including an F1-score of 92.6% and an AUC-ROC of 0.95. Analysis of errors revealed common misclassifications between similar categories, such as "post-renovation cleaning" and "deep cleaning," prompting improvements through expanded training data and data augmentation. The deployed model has enhanced query handling efficiency and service quality, proving its suitability for production use.