Handle rare categories in classification by collecting varied examples of the small classes, adjusting training exposure, and testing errors separately for each category. Add a review rule for uncertain or high consequence cases. Judge the combined classifier and review process against business harm, so strong performance on common categories cannot hide costly misses.
Define which rare categories need protection
Start with the decision that follows a prediction. A rare document type might need specialist handling; an unusual support request might require escalation. Write down what happens when that category is mistaken for a routine one, who notices the mistake, and whether the action can be reversed.
Separate frequency from importance. A small class may be harmless to miss, while another small class may interrupt a critical workflow. Give the business owner a category register containing the label definition, typical examples, confusing neighboring labels, and the consequence of a missed or incorrect assignment. Use that register to choose where extra collection and review effort belongs.
Check whether the class represents a distinct action. Splitting nearly identical categories can create labels that reviewers cannot consistently distinguish. Keep a separate category when its meaning and downstream treatment justify the distinction. If the boundary remains unclear, resolve the labeling rule before asking a model to learn it.
Audit the examples before changing training
Count independent examples rather than rows alone. Repeated messages from one incident, copied forms, or multiple versions of the same document can make a category look better represented than it is. Group these related records before dividing data into training, validation, and test sets, so the evaluation does not reward recognition of a familiar case.
Inspect rare examples with someone who understands the business process. Look for mislabeled routine cases, missing context, and categories assigned using information unavailable at prediction time. Correct disputed examples with a written reason. Keep unresolved cases separate until a label owner can decide how they should be treated.
Also examine the common categories into which rare cases disappear. Search for cases that share the rare category’s defining characteristics but carry another label. This can reveal incomplete labeling rather than a shortage of historical examples. Use the checks in AI data readiness to organize the work before changing the model.
Collect targeted examples without narrowing the category
Build a collection plan around variation within the category. For a rare business request, consider different wording, submission channels, document completeness, and points in the workflow. Seek independent cases across these conditions. Collecting many copies of one obvious pattern leaves the harder boundary cases untested.
- Ask reviewers to flag likely rare cases in incoming work, including cases initially assigned a routine label.
- Record the original prediction and the final reviewed label so selection bias remains visible.
- Include confusing routine cases alongside the rare examples to teach the distinction.
- Reserve newly collected cases for evaluation before allocating the rest to training.
Treat generated or manually rewritten examples as development aids until their realism has been checked. They can help expose missing scenarios, but a collection built around imagined phrasing may teach shortcuts absent from actual work. Keep provenance visible and evaluate on independent business records rather than variations derived from training examples.
Set a collection stopping rule based on coverage and stability of errors, rather than a universal example count. If the same overlooked subtype continues to appear, continue collecting that subtype. If reviewers disagree on the label, more examples may be less valuable than clarifying the definition.
Adjust training exposure and compare the tradeoffs
Use the current training approach as a baseline. Then compare a limited set of changes, such as giving rare examples more exposure during training or assigning greater importance to their errors. Record the reason for each change. Alter one major factor at a time so the team can connect a result to a decision.
Apply repeated sampling within the training partition. Keep validation and test records independent of those repetitions. Reducing common examples is another option, but preserve the range of routine cases that the classifier must distinguish. A rare category detector that mistakes ordinary variations for exceptions can create a review queue the team cannot clear.
Compare the number of missed rare cases with the number of routine cases incorrectly assigned to them. Inspect the actual errors alongside the scores. Reject changes that improve recognition by relying on accidental cues, such as a template used by one department. Recheck performance when that cue is absent.
For help planning this work, see AI and ML services.
Evaluate small classes without hiding uncertainty
Report results for each protected category. Recall describes how many true cases the classifier found; precision describes how many cases assigned that category were correct. Show the underlying counts with both measures. A percentage based on a handful of examples gives the reader less evidence than the same percentage across a broad, independent sample.
Use an evaluation set that reflects expected incoming work to estimate operational demand. Maintain a separate challenge set with difficult rare cases to probe weaknesses. Label these sets clearly: a deliberately enriched challenge set should not be used directly to estimate how often rare cases will arrive.
Write acceptance criteria before comparing candidate models. Include allowable misses for consequential categories, tolerable false alarms, and the workload created by review. Where evidence is sparse, document the unresolved uncertainty and choose a narrower automation boundary. The AI evaluation and quality assurance checks can help structure that acceptance decision.
Create a separate review rule
Do not make the predicted label the entire routing policy. Define when a case should enter a review queue even if the classifier selects a common category. Candidate triggers include incomplete input, conflicting category evidence, an unfamiliar record pattern, or business information that signals a consequential exception. Validate each trigger against labeled cases before using it operationally.
Choose review thresholds using observed errors and available reviewer capacity. Treat a model score as something to validate against outcomes, rather than assuming it is a reliable probability. Different categories may justify different routing boundaries because the consequences of a miss differ. Specify what the reviewer sees and which actions remain blocked until review finishes.
Record three outcomes separately: the proposed category, the routing decision, and the reviewed disposition. This lets the team see whether the classifier recognized the case or the review process rescued it. Define an escalation path for unresolved work, including an accountable owner and an agreed response window.
Monitor escaped cases and review capacity
Sample cases that bypass review as well as cases sent to it. Otherwise, the team can learn a great deal about flagged mistakes while remaining unaware of rare cases confidently sent down the routine path. Compare reviewed outcomes with downstream corrections, appeals, and reassignment records where those signals are available.
Track the age of pending cases, reviewer disagreement, and changes in the mix of arriving categories. A routing rule needs adjustment when its queue grows beyond operational capacity, but silently relaxing it can increase missed exceptions. Have the business owner approve a temporary fallback, such as limiting automation for the affected workflow.
Use AI observability and human oversight to connect these signals with intervention responsibilities. After adding reviewed examples to training, repeat the independent evaluation before changing the routing policy. Keep a record of the previous model and rule together so a rollback restores a known decision process.
Questions about unusual category decisions
What if a category has no confirmed examples yet?
Create an explicit exception route based on business criteria and ask a designated specialist to confirm candidate cases. Keep the label provisional during collection. Avoid treating unverified examples as established training truth merely to populate the category.
Can one record belong to several rare categories?
If several actions genuinely apply, consider allowing multiple labels or separating the decisions into stages. If the workflow requires one destination, document which action takes priority. Resolve that business rule before judging predictions as conflicting.
Should reviewers see the model’s proposed label immediately?
For an audit sample, consider asking reviewers to label the record independently before revealing the suggestion. Compare disagreements afterward. This helps identify whether apparent agreement reflects the record’s meaning or a tendency to accept the proposed answer.
How should an old rare label be retired?
Agree on a replacement destination and preserve historical label meanings for reporting. Test the mapping on unresolved records before applying it. Notify the people handling exceptions so cases already in progress do not lose their owner during the change.