Skip to content
Back to the AI glossary

Glossary · AI concepts & terminology

Classification

In short

The task of assigning an input to one of several categories, for example “spam” or “not spam”. One of the most common applications of machine learning.

Reference: General AI knowledge

What it means

Classification is the task of assigning an input to one of several defined categories: spam or not spam, good part or scrap, invoice, delivery note or reminder. ISO/IEC 23053:2022 defines the classification model in 3.1.1 and describes the task in 6.2.3. The model usually returns a score for each category that shows how confident it is. Only a threshold turns this into a decision, and a person sets that threshold.

A confusion matrix describes how well a classifier works far better than a single figure. It shows how many cases were assigned correctly and incorrectly, broken down by category. Measures such as accuracy, precision and recall follow from it, and ISO/IEC 23053 describes them as evaluation metrics in 6.5.5. Which measure counts depends on the purpose. In part inspection a missed defect is usually more expensive than a part rejected unnecessarily; for a spam filter it is often the other way round.

In practice and in the audit

Before a classifier goes live, someone decides how much each kind of error weighs and sets the threshold accordingly. That is a decision on the subject matter, and it should be documented with name and date. ISO/IEC 42001 requires in A.6.2.2 that requirements for an AI system are defined, and in A.6.2.4 criteria for verification and validation. For a classifier this means that measures, target values and test data are fixed before anything is measured.

Once a system classifies people, such as job applications, credit requests or employees, things get delicate. Such uses can count as high-risk AI under Article 6(2) and Annex III of the EU AI Act, with the obligations applying from 2 December 2027. Independently of that, check whether error rates are the same across different groups. A model with a good overall rate can work considerably worse for a small group, and that is exactly what an overall figure hides.

References in standards and law

I cite standards by clause number and in my own words, never verbatim. Legal texts link to EUR-Lex.

  • ISO/IEC 23053:2022, 3.1.1 and 6.2.3Classification model and classification as a machine learning task.
  • ISO/IEC 23053:2022, 6.5.5Evaluation metrics such as accuracy, precision and recall.
  • ISO/IEC 42001:2023, A.6.2.2 and A.6.2.4Requirements for an AI system, verification and validation.
  • Article 6(2) and Annex III Regulation (EU) 2024/1689 Areas in which AI systems count as high-risk.

Frequently asked questions

Which measure is the right one for a classifier?

That depends on which error costs more. If a missed case weighs heavily, recall matters most; if a false alarm weighs heavily, precision does. Fix the weighting before measuring. Otherwise people pick the convenient figure afterwards.

Related terms

Further reading in the insights

Matching service

Check the risk class yourself

With the free AI Act check you assign your AI system to a risk class of the EU AI Act in a few steps, without any data being stored.

To the AI Act check

Author: Lars Zimmermann

Term and explanation in my own words. Researched to the best of my knowledge and reviewed for accuracy.

This is my interpretation from practice. For legal advice, please turn to the appropriate professionals.