Classify Customer Complaint Narratives Into Issue Categories

Last updated: November 29, 2026

Quick Overview

Capital One receives free-text customer complaints through many channels. Design a model that classifies each complaint narrative into issue categories like billing dispute, fraud, credit reporting and customer service, and explain how you would evaluate it.

Capital One
Machine Learning
Data Scientist
Capital One
November 29, 2026
Data Scientist
Technical Screen
Machine Learning
Medium

0

0

0 solved


Capital One receives free-text customer complaints through many channels. Design a model that classifies each complaint narrative into issue categories like billing dispute, fraud, credit reporting and customer service, and explain how you would evaluate it.

Complaint handling is a regulatory priority for any large US bank: complaints must be routed, tracked, and analyzed for root causes. The interviewer is checking NLP pipeline choices from a TF-IDF baseline to fine-tuned transformers, handling of multi-label and imbalanced classes, and evaluation that matches the routing use case.

What the Interviewer Expects
  • Starts with a strong simple baseline before transformers
  • Handles multi-label complaints and rare categories
  • Removes or masks PII before training
  • Uses macro F1 and per-class recall, not just accuracy
  • Plans for human review of low-confidence predictions
  • Monitors drift as new issues appear
Key Topics to Cover
text classification
NLP
transformers
multi-label
imbalanced classes
How to Approach This
  1. Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
  2. Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
  3. Feature engineering is often more impactful than model selection.
  4. Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
  5. Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
  • How would you detect a new complaint theme that is not in the label set?
  • How would you use an LLM here, and what would you keep a fine-tuned model for?
  • What if label quality from agents is inconsistent?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Explore ML Interview Prep
Sample Answer
Clarify
  • About 300,000 labeled narratives from agent tagging, 25 categories, highly imbalanced (credit reporting and billing dominate).
  • A complaint can have more than one issue, so this is multi-label.
  • T...
Approach
  1. Preprocess: mask PII with regex and an entity recognizer, lowercase, keep negations.
  2. Baseline: TF-IDF of word 1 to 2 grams plus logistic regression one-vs-rest. Fast, explainable, and often with...

Submit Your Answer
Markdown supported