Enhancing Query Classification in Chatbot Using LSTM

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.

Authors

Institutions

Publication Details

Published
2025-05-14
DOI
https://doi.org/10.1109/sist61657.2025.11139197
Primary Topic
AI in Service Interactions
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Enhancing Query Classification in Chatbot Using LSTM

Rahim Ahmed Druba, Aidyn Kuandyk, Myrzabek Mergenov
AI in Service Interactions
article

Enhancing Query Classification in Chatbot Using LSTM

Rahim Ahmed Druba, Aidyn Kuandyk, Myrzabek Mergenov
article en

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.

Al-Farabi Kazakh National University (KZ)
Openalex Percentile: Top 88%
AI in Service Interactions
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.