Improving Customer Service with Automatic Topic Detection in User Emails
This study presents a production-ready, language-agnostic NLP pipeline using BERTopic that achieves high accuracy (0.96 F1 score) and rapid processing (0.041 seconds per email) to automatically classify and label Serbian customer service emails, significantly improving operational efficiency for Telekom Srbija.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine Telekom Srbija, a giant telecommunications company, as a massive, bustling post office. Every day, thousands of people drop off letters (emails) with complaints, questions, and requests. Before this new system, a team of human workers had to read every single letter, figure out what it was about, and then sort it into the right pile. It was slow, tiring, and easy to get overwhelmed.
This paper describes how the company built a super-smart robot librarian to do the sorting for them. Here is how it works, broken down into simple steps:
1. The Problem: A Mountain of Unsorted Mail
The company was drowning in emails. Some were about broken internet, others about billing errors, and some were just spam or internal notes. The humans needed a way to instantly know, "Oh, this letter is about a bill," or "This one is about a broken router," so they could send it to the right expert immediately.
2. The Solution: The "Topic Detective" (BERTopic)
Instead of teaching the computer to memorize every possible sentence (which is impossible), they used a tool called BERTopic. Think of BERTopic as a detective that looks for patterns in the "vibe" of the words, rather than just matching keywords.
- The Magic Brain: The detective uses a "multilingual brain" (a pre-trained AI model) that understands Serbian, English, and many other languages. It doesn't need to be taught from scratch; it just needs to be shown a few examples of what the company cares about.
- The Grouping Game: The detective reads thousands of emails and says, "Hey, these 500 emails all talk about 'money' and 'invoices,' so let's put them in the Bill pile. And these 300 emails talk about 'slow internet' and 'connection,' so they go in the Technical Issue pile."
3. Cleaning the Mailbox (Preprocessing)
Before the detective can read the letters, the team had to clean up the mailbox. They built a filter that:
- Translates scripts: Converts old-school Cyrillic letters into modern Latin letters so the robot can read them all the same way.
- Removes the noise: Throws away emojis, random numbers, and polite sign-offs like "Best regards" because those don't tell the robot what the problem is.
- Cuts the fluff: If an email is too short (like just "Hello"), the robot ignores it because it has no clues. If it's too long, the robot focuses on the first part, which usually contains the main problem.
4. The "72 to 12" Trick
When the robot first started sorting, it was too good. It created 72 different piles (topics). That was too many for the human workers to manage.
- The Analogy: Imagine the robot sorted mail into 72 tiny drawers. The humans said, "We only have 12 big bins!"
- The Fix: The humans manually looked at the 72 tiny drawers and said, "Okay, these 5 drawers are all about 'Bills,' so let's glue them together into one big 'Bills' bin." They did this until they had exactly 12 clear categories that matched the company's needs.
5. The Results: Speed and Accuracy
The new system is incredibly fast and accurate:
- Speed: It sorts an email in 0.04 seconds. That's faster than you can blink. It can process thousands of emails in the time it takes to make a cup of coffee.
- Accuracy: It gets it right 96% of the time. If a human were sorting 100 emails, they might make a few mistakes due to fatigue. The robot rarely does.
6. How It Helps in Real Life
Now, the system works in the background like a silent traffic cop.
- An email arrives.
- The robot instantly tags it: "Topic: Billing Issue."
- The human customer service agents use a special app to filter their inbox. They can click "Billing," and poof, all the billing emails appear instantly.
- They can also spot trends. If suddenly 500 emails come in about "Router Crashes," the team knows immediately that there is a network outage and can fix it before customers get angry.
Why This Matters
The best part? This robot isn't just for Serbian. Because it uses a multilingual brain, it could easily be taught to sort emails in Turkish, Russian, or any other language, even languages that are "hard" for computers to learn. It turns a chaotic mountain of letters into an organized, easy-to-read library, letting humans focus on solving problems instead of just sorting paper.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.