Unsupervised classification sorts unlabeled data into groups that an algorithm finds, and people usually name the groups afterward. In machine learning, the term is often used loosely as another name for clustering. In remote sensing, it is an established workflow for mapping land cover from satellite or aerial imagery.
Classification with and without labels
Classification usually means assigning items to categories that are already known. A supervised classifier learns from examples that carry the right category, such as emails tagged spam or not spam, and then assigns new emails to those categories.
Unsupervised classification drops the labels. The algorithm groups similar items, and those groups only become categories after someone looks at them and decides what they mean. The name is a little misleading, since nothing is being sorted against a predefined list.
In most machine learning writing, unsupervised classification is just another name for clustering. For the method itself, the answer to “What is clustering in unsupervised learning?” covers the basic steps.
How it works
- Choose features. Pick the numbers that describe each item. For customers, these might be visit frequency, average spend and days since the last purchase.
- Scale them. Put the features on comparable ranges so that none of them dominates the distances.
- Pick a method. K-means is a common choice. You set the number of groups, or use a method that proposes one.
- Run and assign. The algorithm gives each item a group number.
- Inspect the groups. Look at typical members and summary statistics for each group.
- Name what makes sense. Give meaningful names to groups that hold up, and revise the groups that don’t.
An example with customers
A shop has purchase records for thousands of customers. Clustering on visit frequency, average spend and days since last purchase might produce one group that visits often but spends little, and another that buys rarely but spends a lot. The algorithm does not know those descriptions. The analyst reads the group profiles and chooses names. The group numbers 0, 1 and 2 are arbitrary IDs with no meaning on their own.
Remote sensing
The term is especially established in remote sensing. Analysts often run unsupervised classification on satellite or aerial images as a first pass. The software groups pixels with similar spectral values into a set of classes. The analyst then decides what each class represents, such as water, forest or bare soil, often by comparing the classes with the image itself or with ground data. ISODATA, an iterative clustering method, is one classic algorithm used in this setting.
Supervised and unsupervised classification compared
| Supervised classification | Unsupervised classification | |
|---|---|---|
| Training data | Labeled examples | Unlabeled data |
| Categories | Known before training | Found by the algorithm, named afterward |
| Common methods | Logistic regression, decision trees, neural networks | K-means, ISODATA, Gaussian mixture models |
| Main risk | Labels may be wrong or biased | Groups may not match useful categories |
Limits to keep in mind
- You often choose the number of groups, and that choice shapes the result.
- Results depend heavily on which features you use and how you scale them.
- A group is not proof that a real category exists. “The algorithm found four groups” does not mean the world contains four types.
- Check stability by rerunning the method, and ask someone who knows the data whether the groups make sense.
Summary
Unsupervised classification sorts unlabeled data into groups the algorithm finds, with names added afterward. In machine learning it often just means clustering. In remote sensing, it is a standard first step in mapping land cover.