Improving Helpdesk Chatbot Performance Using Levenshtein Distance and N-Gram Similarity

The development of NLP-based chatbots faces challenges in understanding user queries and statements, especially when queries contain misspellings or use different synonyms. Previous research has implemented NLP algorithms such as Cosine Similarity to understand user query inputs. However, this algorithm has the weakness of only considering the presence of words in the text, not the frequency or weight of words. This study proposes a solution to overcome the weakness of Cosine Similarity by implementing the N-gram Similarity algorithm. This algorithm focuses on matching word or character sequences (n-grams) between two texts, thus paying more attention to semantic similarity. In addition, this study also proposes the application of the Levenshtein Distance algorithm to recognize and correct spelling errors in user query inputs. This algorithm measures the edit distance between two strings to find the word in the dictionary with the least edit distance. Testing of the Levenshtein Distance algorithm shows satisfactory results with an accuracy rate of 87.5%. This indicates that the algorithm works well in correcting word spelling errors. Overall performance tests indicate a chatbot capability improvement of up to 91.8%

Authors

Institutions

Publication Details

Published
2024-11-29
DOI
https://doi.org/10.1109/icoris63540.2024.10903782
Citations
1
Primary Topic
AI in Service Interactions
Type
article
Field-Weighted Citation Impact
0.35
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Improving Helpdesk Chatbot Performance Using Levenshtein Distance and N-Gram Similarity

Gede Herdian Setiawan, I Made Budi Adnyana, Komang Budiarta, Made Doddy Adi Pranatha
1 citations
AI in Service Interactions
0.35
article

Improving Helpdesk Chatbot Performance Using Levenshtein Distance and N-Gram Similarity

Gede Herdian Setiawan, I Made Budi Adnyana, Komang Budiarta, Made Doddy Adi Pranatha
article en
1 citations

Abstract

The development of NLP-based chatbots faces challenges in understanding user queries and statements, especially when queries contain misspellings or use different synonyms. Previous research has implemented NLP algorithms such as Cosine Similarity to understand user query inputs. However, this algorithm has the weakness of only considering the presence of words in the text, not the frequency or weight of words. This study proposes a solution to overcome the weakness of Cosine Similarity by implementing the N-gram Similarity algorithm. This algorithm focuses on matching word or character sequences (n-grams) between two texts, thus paying more attention to semantic similarity. In addition, this study also proposes the application of the Levenshtein Distance algorithm to recognize and correct spelling errors in user query inputs. This algorithm measures the edit distance between two strings to find the word in the dictionary with the least edit distance. Testing of the Levenshtein Distance algorithm shows satisfactory results with an accuracy rate of 87.5%. This indicates that the algorithm works well in correcting word spelling errors. Overall performance tests indicate a chatbot capability improvement of up to 91.8%

Universitas Teknologi Indonesia (ID), Institut Teknologi Dan Bisnis STIKOM Bali
Openalex Percentile: Top 29%
AI in Service Interactions
0.35
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.