Glossary · AI concepts & terminology
Clustering (grouping)
also: cluster analysis
In short
A method that divides data into groups of similar objects without predefined labels, for example for customer segmentation.
Reference: General AI knowledge
What it means
Clustering sorts data into groups whose members resemble each other more than they resemble members of other groups. The only thing given is a measure of what similar means. ISO/IEC 23053:2022 describes clustering in 6.2.4 as a typical machine learning task without labels and defines cluster (3.3.2) and distance (3.3.4) as separate terms.
The result depends more on human decisions than it seems. Which features go in, how they are scaled, which distance measure applies and how many groups are sought are all set by someone. Many methods always return groups, even if the data have no natural structure. A cluster is therefore a proposal first, and it has to be checked.
In practice and in the audit
Typical uses in SMEs are customer segments for sales, grouping spare parts by consumption pattern or machines by operating behaviour. Check whether the groups stay stable when you repeat the method with slightly different data or settings, and whether experts can describe them meaningfully. Record features, settings and interpretation. ISO/IEC 42001 requires in A.6.2.3 that the design and development of an AI system are documented.
With data about people the GDPR comes in. If customers or employees are grouped to evaluate their behaviour or preferences, that is profiling under Article 4(4) GDPR. It needs a legal basis, and the people concerned have to be informed. Make sure the groups do not reflect protected characteristics in a roundabout way, for example where postcode or part-time work stands in for origin or sex.
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, 6.2.4Clustering as a machine learning task.
- ISO/IEC 23053:2022, 3.3.2 and 3.3.4Definitions of cluster and distance.
- ISO/IEC 42001:2023, A.6.2.3Documentation of the design and development of an AI system.
- Article 4(4) Regulation (EU) 2016/679 (GDPR) Definition of profiling.
Frequently asked questions
How many clusters are right?
There is rarely one right number. Measures help to compare different groupings. In the end what counts is whether the groups are stable and mean something to the experts. A grouping nobody can explain is of no use in operations.
Related terms
Further reading in the insights
Matching service
Data analyses done properly
Finding AI use cases in your data, testing them with a prototype and turning them into tested software, on request with local AI.
To AI implementationAuthor: 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.