AI classification is not magic sorting. It is a system for mapping signals about an input onto a set of concepts under uncertainty.
An email becomes spam or not spam. A photograph becomes cat, dog or bird. A support message becomes billing, technical or account. A school resource becomes Primary Science, Secondary Mathematics or Vocabulary. A medical note may be routed to a domain. A search query may be mapped to an intent, topic, tool or knowledge source.
The visible output is a label. Underneath sit the taxonomy, examples, features, model, thresholds, confidence, review policy and feedback loop.
Quick answer: how does AI classify something?
- Define the classification task.
- Define the labels or ontology concepts.
- Collect examples or instructions.
- Represent the input as useful signals.
- Use a model to score candidate categories.
- Convert scores into one or more labels.
- Attach confidence or uncertainty.
- Apply thresholds and review rules.
- Measure errors, bias and calibration.
- Monitor drift as the world and taxonomy change.
- Feed reviewed cases back into the system.
AI classification sits on top of the architecture developed throughout the How to Categorise Anything series. If the labels are unclear, the AI will inherit that ambiguity. If the categories are biased, automation can amplify the bias. If the taxonomy changes, the classifier must change with it.
1. AI classification begins before the model
The first design decision is not which model to use.
It is what the categories mean and what the classification must help someone do.
2. The label set defines the problem
A model cannot reliably distinguish labels that humans themselves cannot define.
Before training or prompting, write category definitions, positive examples, near misses and exclusion rules.
3. Single-label and multi-label classification are different
Single-label classification requires one category. Multi-label classification allows several.
A news article may be both economics and politics. A school resource may be both vocabulary and science. A document may be both historical evidence and legal record.
The architecture should decide which behaviour is legitimate before the model is evaluated.
4. Hierarchical classification uses the taxonomy structure
A model may first decide “Science”, then “Biology”, then “Genetics”.
Hierarchical classification can reduce candidate space and improve interpretability, but an early mistake can propagate downward.
5. Faceted classification can be machine-assisted
Instead of one label, an AI can assign separate facet values: subject, audience, place, time, format and status.
This often matches reality better than forcing all information into one tree. See How Faceted Classification Works.
6. Training labels are part of the model
In supervised learning, examples arrive with labels.
If the labels are inconsistent, incomplete or biased, the model learns those defects along with useful patterns.
7. Label quality matters as much as data volume
Ten thousand poorly labelled examples can be less useful than a smaller, carefully governed set.
Measure human agreement before treating the label set as ground truth.
8. Features are the signals used for classification
Traditional systems may use explicit features: word counts, measurements, metadata, colours, shapes or numerical variables.
Modern neural systems often learn internal representations automatically, but the principle remains: classification depends on signals that correlate with the target categories.
9. Bad signals create bad shortcuts
A model may learn a convenient proxy rather than the intended concept.
If every training image of one category has a particular background, the model may classify the background rather than the object.
This is one reason bias and adversarial testing matter.
10. Embeddings represent similarity
Embeddings map text, images or other inputs into numerical spaces where semantically or visually similar items often sit near one another.
Classification can then use similarity to known examples, centroids or label descriptions.
11. Similarity is not identity
Two items can be semantically close and still belong to different jurisdictions, dates, risk classes or audience levels.
Embeddings are powerful candidate generators. Explicit taxonomy rules may still be needed for authoritative constraints.
12. Supervised classification learns from examples
In supervised learning, the model sees many labelled examples and learns patterns that predict those labels.
This works well when categories are stable and representative labelled data exist.
13. Few-shot classification learns from a small number of examples
Large language models can often infer a classification task from a handful of demonstrations.
The examples should show both typical cases and discriminating edge cases.
14. Zero-shot classification uses label meaning
A model may classify without task-specific training examples by comparing an input with natural-language descriptions of candidate labels.
Zero-shot methods are flexible, but label wording and definitions become especially important.
15. Prompt-based classification is still classification
An LLM instructed to choose among categories is performing a classification task even if no traditional classifier head is used.
The prompt should specify definitions, allowed outputs, uncertainty behaviour and examples.
16. Structured output reduces ambiguity
Instead of asking a model to “tell me what this is”, require fields such as category ID, confidence, evidence span and alternatives.
Machine-readable outputs are easier to validate and audit.
17. Category IDs are safer than free-text labels
Free text invites spelling variants, label drift and accidental invention of new categories.
Map the model output to stable concept IDs from a controlled vocabulary where possible.
18. Controlled vocabulary helps natural-language routing
The model may see “A-Math”, “Add Maths” or “Additional Mathematics” and map all three to one canonical concept.
This is the machine-routing value of controlled vocabularies.
19. Ontologies can constrain AI classification
An ontology can state which entity types and relationships are valid.
If an AI proposes an impossible combination, ontology constraints can flag it for correction or review.
20. Scores are not automatically probabilities
Many models output logits, similarities or normalized scores.
Do not assume a score of 0.9 means a 90% chance of correctness unless calibration has been tested.
21. Calibration makes confidence useful
A well-calibrated classifier’s stated confidence should correspond reasonably to observed correctness across comparable cases.
Calibration matters when confidence controls automation or review.
22. Uncertainty should have explicit states
AI systems should be able to return unknown, ambiguous, needs review or out of scope rather than always inventing a confident label.
See How to Categorise With Uncertainty.
23. Thresholds determine automation
A system may auto-accept high-confidence cases, send medium-confidence cases to review and hold low-confidence cases.
The thresholds should reflect error cost rather than convenience.
24. Top-k outputs preserve alternatives
When several labels are plausible, returning the top few candidates can support human review or downstream reranking.
This is often better than hiding near-ties.
25. Human review should target uncertainty and consequence
Not every case needs manual inspection.
Prioritise low-confidence, high-impact, novel, disputed and out-of-distribution cases.
26. Review decisions become new evidence
Human corrections can be fed back into examples, fine-tuning sets, prompts or evaluation suites.
This creates a learning loop.
27. Active learning selects informative cases
Instead of labelling random examples, systems can prioritise uncertain or disagreement-heavy cases for expert review.
Those cases often teach the classifier more efficiently and expose weak category boundaries.
28. Out-of-distribution detection matters
A model may receive a type of input it never encountered during development.
Instead of forcing the nearest familiar label, a robust system should detect novelty or low fit.
29. Novel cases may indicate taxonomy gaps
If many out-of-distribution items cluster together, the problem may be structural rather than model-specific.
The taxonomy may need a new category or facet.
30. Bias testing is essential
Average accuracy can hide unequal error patterns.
The framework in How Classification Bias Works applies directly to automated systems: test data, labels, proxies, thresholds, subgroups and feedback loops.
31. Confusion matrices reveal error structure
Do not report only overall accuracy.
Measure which categories are confused with which others, and whether particular false positives or false negatives matter more.
32. Precision and recall matter by category
Precision asks how many predicted members are truly relevant. Recall asks how many true members were found.
Different tasks need different trade-offs.
33. Retrieval and classification can be combined
An AI may first classify a query into a domain, then retrieve only from the relevant branch, then rank results semantically.
This hybrid approach can be more reliable than global semantic search alone.
34. Classification can route tools
An agent system may classify a request as calculation, search, database query, document retrieval, calendar operation or another capability.
The category becomes a routing decision rather than merely a descriptive label.
35. Routing errors can have operational consequences
A misclassified query may send the request to the wrong tool, source or workflow.
Test end-to-end outcomes, not only label accuracy.
36. Taxonomy drift breaks classifiers
If categories split, merge or change definition, old training labels and evaluation sets become stale.
The article How Dynamic Classification Systems Work explains why models, examples, thresholds and crosswalks must be versioned with the taxonomy.
37. Model drift also matters
Even with a stable taxonomy, incoming language, images, behaviours or technologies may change.
Monitor performance on recent data, not only the original benchmark.
38. AI classification needs provenance
For important decisions, record model version, taxonomy version, input evidence, output category, confidence and review status.
This creates an auditable classification claim.
39. A practical AI classification stack
- Canonical taxonomy or ontology.
- Controlled vocabulary and synonyms.
- Representative labelled or instructed examples.
- Feature or embedding representation.
- Classifier or LLM.
- Structured candidate output.
- Confidence and calibration layer.
- Threshold and routing policy.
- Human review queue.
- Bias and regression test suite.
- Drift monitoring.
- Versioned feedback loop.
40. The deeper idea
AI makes classification faster, scalable and flexible. It does not remove the conceptual work of deciding what the categories mean.
The model can choose among categories. Humans still have to build a category system worth choosing from.
Final answer
AI classification maps signals onto a governed label space. Build the taxonomy first. Stabilise terms with identifiers. Use representative examples. Measure category-level errors. Calibrate confidence. Preserve uncertainty. Route ambiguous or consequential cases to review. Monitor bias and drift. Version the model with the taxonomy.
The strongest AI classifier is not the one that always produces a label. It is the one that knows which label system it is using, how confident it is, and when the world has moved beyond what it learned.
Continue through the series
- How to Categorise Anything | A General Framework for Classification
- How to Categorise With Uncertainty | Unknown, Probable, Disputed and Provisional
- How Classification Bias Works | When Categories Distort the World
- How Dynamic Classification Systems Work | Change, Drift, Versioning and Reclassification
