How would you formulate a ticket routing model that predicts both a category and a severity level?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
How would you formulate a ticket routing problem that requires predicting both a high-level category and a severity level? Each incoming support ticket must be sent to a team (its category) and given a severity, and you are designing the model that predicts both from the ticket.
```hint Look at the label structure
Category and severity are different kinds of labels. Ask what structure severity has that category does not, and what a loss should do with it.
```
```hint Count the classes
Before merging the two targets into one label, work out how many classes that creates and how many examples the rarest ones would get.
```
### Clarifying Questions to Ask
- Does each ticket go to exactly one team, or can one ticket need several teams?
- How many categories and severity levels are there, and who assigns the labels (the customer, the agent, or a reviewer after resolution)?
- Is missing a critical ticket much more costly than over-escalating a minor one?
- Is there a human triage step for uncertain tickets, and how fast must routing be?
### What a Strong Answer Covers
- How to frame the two targets
- The output layer and loss for each target given its label structure, including tickets that need more than one team
- Architecture options (shared encoder, separate models, chained models) and their trade-offs
- Whether to merge the targets into one combined label
- Evaluation and operations: class imbalance, recall on critical tickets and routing low-confidence cases to people
### Follow-up Questions
- How would you set the weight between the two losses, and what happens if one head dominates training?
- Customers tend to inflate the severity they report. How would you handle those labels?
- How would you evaluate the router once it is live, beyond per-head offline metrics?
- A new category is added. What has to change in each architecture?
Overview: Asks how to frame a support ticket routing model that predicts both a team category and an ordered severity level. It tests multi-output modeling, ordinal targets, loss design, architecture trade-offs, class imbalance and how to handle uncertain predictions in production.