AI-Based Customer Complaint Prioritization and Classification Using Natural Language Processing and Large Language Models
This work aims to classify and prioritise complaints. A decision support system is provided to classify complaints and assign complaint priorities. Classifications of complaints are performed via supervised learning. Prioritisation is performed with assistance from a large language model (LLM). Classification models were trained on a dataset extracted from the Consumer Financial Protection Bureau (CFPB). Once removing complaints without labels or incomplete complaints, 438,926 complaints were found, in 9 different products. The dataset was processed to extract unigram and bigram TF-IDF vectors. XGBoost and Random Forest models were trained on the data. The XGBoost model had an accuracy of , macro F1 score of and weighted F1 score of . The Random Forest model had an accuracy of , macro F1 score of and weighted F1 score of . Thus, although the Random Forest model performs better overall, the XGBoost model performs better when each category is equally weighted. Explanations, sentiments, and suggested priorities/actions are produced using the GPT-OSS model with 120B parameters hosted on Groq. Since the CFPB data does not contain validated priorities, suggested priorities and actions are suggestions. In this paper these suggestions are not evaluated. Further details of the dataset, preprocessing, model parameters, system design and limitations are provided. Steps for validating this system in practice are outlined.Index Terms complaint classification, complaint triage, GPT-OSS, human-in-the-loop decision support, large language models, natural language processing, Random Forest, TF-IDF, XGBoost.
Authors
- Yashwant Ingle
- Karan Kumbhar
Institutions
- Vishwakarma University (IN)
- Vishwakarma Institute of Technology (IN)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-25
- DOI
- https://doi.org/10.5281/zenodo.24539049
- Primary Topic
- Text and Document Classification Technologies
- Type
- article
- Field-Weighted Citation Impact
- 0.00