All stories

Consumer Complaint Classification

Letting half the queue skip review without losing accuracy

Pavan Srinivas · Oct 28, 2026 · 1 min read

49.6%of queries cleared automatically

Banking customers write in about 77 different kinds of problem. Routing each message to the right team by hand is slow, but routing it wrongly is worse. I trained an intent classifier on 13,083 customer queries to take some of that load.

Beat the baseline first

Before anything clever, the model had to beat a plain TF-IDF baseline, which reached 85.7% accuracy. The classifier reached 89.5% across all 77 intents. Good, but not good enough to trust on every message.

Then decide when to trust it

The more useful step was a confidence threshold. When the model is confident, the query goes straight through; when it is not, a person reviews it. Set that way, 49.6% of queries clear automatically, and those auto-cleared queries are 99.8% accurate.

The lesson I keep coming back to: a model that knows its limits can be more useful than a slightly more accurate one that doesn't.

NLPClassificationScikit-Learn
View the code

More Stories