Unsupervised Classification
User Guide & Scientific Theory
Unsupervised Classification groups pixels automatically according to similarity in their spectral or raster values. It is useful when training samples are unavailable, when the analyst wants to explore natural spectral groupings, or when an initial land-cover segmentation is needed before manual interpretation.
1. Overview
The Unsupervised Classification feature in iTSensing Cloud provides six clustering methods: K-Means, ISODATA, Self-Organizing Map (SOM), Gaussian Mixture Model (GMM), Fuzzy C-Means, and BIRCH. All methods analyze the numeric pattern of selected raster bands and produce a thematic raster containing cluster IDs.
2. When to Use Unsupervised Classification
Exploratory mapping
Useful when you want to discover natural spectral groups in a new image before defining final thematic classes.
No training data
Useful when field samples, labelled polygons, or reference classes are not yet available.
Initial land-cover segmentation
Clusters can later be interpreted, merged, or used to help prepare training samples for supervised classification.
Material or spectral grouping
Useful for multispectral, hyperspectral, geological, vegetation, water, or other continuous raster feature spaces.
3. Typical Workflow
3.1 Example
Sentinel-2 Surface Reflectance
B2 + B3 + B4 + B8 + B11 + B12
↓
K-Means
8 classes
↓
Cluster 1...8
↓
Visual interpretation
↓
Water / Dense Vegetation / Sparse Vegetation /
Bare Soil / Built-up / etc.
4. Input Data
4.1 Multiband raster
Each pixel is represented by a vector containing the selected band values:
For example:
Sentinel-2 pixel: [B2, B3, B4, B8, B11, B12] Hyperspectral pixel: [MNF1, MNF2, MNF3, ..., MNF15] Feature stack: [Red, NIR, SWIR, NDVI, Texture, Elevation]
4.2 Band selection
Choose bands that are relevant to the target phenomenon. Leaving all bands selected is convenient, but unnecessary or noisy bands can reduce clustering quality.
4.3 Surface Reflectance is preferable for optical analysis
For multispectral land-cover analysis, Surface Reflectance generally provides more physically comparable spectral values than raw digital numbers. Atmospheric or radiometric preprocessing should be completed before classification when required by the source image.
5. Common Settings
| Setting | Purpose | Typical Recommendation |
|---|---|---|
| Classification Algorithm | Selects the clustering method. | Start with K-Means if unsure. |
| Predictor Bands | Defines which raster bands/features are used. | Select informative bands; leave empty to use all bands. |
| Number of Classes | Requested number of spectral groups. | Usually larger than the final desired thematic classes. |
| Training Pixel Sample | Maximum number of pixels used to learn cluster structure. | Increase for heterogeneous large areas if needed. |
| Standardize Predictor Bands | Puts variables onto comparable numeric scales. | Keep enabled unless all predictors already have comparable scale. |
| Random State | Controls repeatability of randomized steps. | Keep unchanged when comparing parameter settings. |
5.1 Standardization
Standardization centers each predictor around zero and scales it by its standard deviation. This prevents variables with large numeric ranges from dominating distance calculations.
6. K-Means
K-Means is the simplest and often the fastest general-purpose method. It divides pixels into a fixed number of clusters by minimizing distance from pixels to their assigned cluster center.
6.1 Objective function
The algorithm repeatedly:
- assigns each sample to the nearest cluster center;
- updates each center from the mean of its assigned samples;
- continues until centers become stable or the iteration limit is reached.
6.2 Assignment
6.3 Cluster center
6.4 Main settings
- Number of Classes
- Mini-Batch Size
- Maximum Iterations
- Number of Initializations
7. ISODATA
ISODATA extends centroid-based clustering by allowing clusters to be removed, merged, and split. The final number of clusters may therefore differ from the initial number.
7.1 Basic assignment
7.2 Cluster merging
If two centers are very close:
they can be combined into one cluster.
7.3 Cluster splitting
A cluster with high internal variability can be divided into two groups. A practical split criterion uses the largest standard deviation among predictor dimensions:
7.4 Key settings
- Initial Number of Classes
- Minimum Classes
- Maximum Classes
- Minimum Pixels per Cluster
- Merge Distance Threshold
- Split Standard Deviation Threshold
- Maximum Iterations
- Convergence Tolerance
8. Self-Organizing Map (SOM)
A Self-Organizing Map is a neural clustering method that learns a low-dimensional grid of representative spectral vectors. It is useful for exploring complex spectral structures while preserving neighborhood relationships among learned patterns.
8.1 Best Matching Unit
8.2 Neighborhood function
8.3 Weight update
During training, both learning rate α and neighborhood radius σ gradually decrease. The map first learns broad spectral organization, then fine local structure.
8.4 Main settings
- SOM Grid Rows
- SOM Grid Columns
- Epochs
- Initial Learning Rate
- Initial Neighborhood Sigma
- Mini-Batch Size
- Requested Output Classes
9. Gaussian Mixture Model (GMM)
GMM represents the data as a mixture of multiple multivariate Gaussian distributions. Unlike K-Means, clusters can have different spreads, orientations, and covariance structures.
9.1 Probability model
9.2 Multivariate Gaussian
9.3 Posterior probability
9.4 Covariance options
| Type | Meaning |
|---|---|
| Full | Each class may have its own complete covariance matrix. |
| Tied | All classes share one covariance matrix. |
| Diagonal | Only per-band variances are modeled. |
| Spherical | Each cluster uses one variance value. |
10. Fuzzy C-Means
Fuzzy C-Means does not force a pixel to belong completely to only one cluster during model fitting. Instead, every sample receives a membership degree for each cluster.
10.1 Membership
10.2 Cluster center
10.3 Objective
10.4 Fuzziness parameter
The value m controls how soft the membership is. Values closer to 1 produce harder clusters; larger values produce more gradual membership. A common default is m = 2.
11. BIRCH
BIRCH — Balanced Iterative Reducing and Clustering using Hierarchies — is designed for efficient clustering of large datasets. Instead of repeatedly storing every observation, it creates compact clustering summaries in a tree structure.
11.1 Clustering Feature
11.2 Cluster centroid
11.3 Main settings
- Threshold
- Branching Factor
- Number of Classes
A smaller threshold generally creates more compact subclusters. The branching factor controls how many clustering summaries can be stored in tree nodes before the hierarchy expands.
12. Method Comparison
| Method | Main Concept | Fixed Number of Classes? | Best Strength |
|---|---|---|---|
| K-Means | Nearest centroid | Yes | Fast and simple baseline |
| ISODATA | Adaptive centroid clustering | No, within min/max limits | Automatic split/merge |
| SOM | Topology-preserving neural map | Final grouping uses requested count | Complex spectral organization |
| GMM | Gaussian probability distributions | Yes | Elliptical/overlapping clusters |
| Fuzzy C-Means | Soft membership to every cluster | Yes | Mixed pixels / gradual boundaries |
| BIRCH | Hierarchical clustering features | Yes | Large datasets / efficient summarization |
13. Which Method Should I Choose?
| Your Goal | Recommended First Choice |
|---|---|
| Fast general land-cover exploration | K-Means |
| Unknown natural number of clusters | ISODATA |
| Complex spectral topology | SOM |
| Overlapping statistical distributions | GMM |
| Mixed pixels / soft transitions | Fuzzy C-Means |
| Very large feature samples | BIRCH |
14. Understanding the Output
The result is a single thematic raster containing cluster IDs.
0 = NoData 1 = Cluster 1 2 = Cluster 2 3 = Cluster 3 ... K = Cluster K
14.1 Cluster numbers are arbitrary
Cluster 1 in one run does not necessarily represent the same land-cover type as Cluster 1 in another run. Always interpret the cluster using the image, spectral values, reference data, and spatial context.
14.2 Typical post-processing
- change class colors;
- inspect cluster area/statistics;
- compare with RGB or false-color imagery;
- merge spectrally similar clusters;
- assign semantic names;
- apply majority filtering if required;
- validate against reference samples.
15. Remote Sensing Guidance
15.1 Optical imagery
Use analysis-ready reflectance products whenever possible. Clouds, cloud shadows, snow, haze, or sensor artifacts can become artificial clusters if not masked.
15.2 Multispectral imagery
Good predictor combinations often include visible, NIR, and SWIR bands. For Sentinel-2, a typical set may include B2, B3, B4, B8, B11, and B12.
15.3 Hyperspectral imagery
A hyperspectral image can contain hundreds of correlated bands. Dimensionality reduction such as MNF can be useful before clustering.
15.4 Additional raster features
Indices, texture, elevation, slope, or other predictors can be stacked with spectral bands before clustering if they are scientifically relevant.
16. Example Workflows
16.1 Agriculture
Sentinel-2 Surface Reflectance
↓
Cloud Mask
↓
B3, B4, B8, B11
↓
K-Means
10 classes
↓
Interpret crop, soil, water, vegetation vigor groups
16.2 Forest mapping
Reflectance + NDVI + SWIR
↓
ISODATA
Initial = 8
Minimum = 4
Maximum = 14
↓
Adaptive spectral groups
↓
Merge into forest / degraded forest /
open land / water / other
16.3 Coastal water
Visible + Red Edge + NIR water predictors
↓
Fuzzy C-Means
↓
Clusters representing gradual transitions
between clearer, turbid, sediment-rich, or mixed water
16.4 Hyperspectral minerals
Surface Reflectance
↓
Continuum / MNF preprocessing
↓
GMM
↓
Spectral groups
↓
Compare clusters with spectral library
or use them to define further analysis regions
17. Limitations
- Clusters are spectral/statistical groups, not automatic semantic classes.
- Results depend strongly on selected bands and preprocessing quality.
- Different class counts can produce very different maps.
- Random initialization may affect cluster numbering and boundaries.
- Clouds and shadows can form unintended clusters.
- Pixel-based clustering can create salt-and-pepper patterns.
- Unsupervised results should not be treated as validated land-cover maps without interpretation and accuracy assessment.
- Fuzzy or probabilistic algorithms may internally model ambiguity, while the displayed thematic result is still interpreted as a class map.
18. Best Practices
- Start from good preprocessing. Use calibrated/reflectance imagery and mask invalid pixels.
- Select useful bands. Avoid unnecessary noisy or redundant predictors.
- Keep standardization enabled when predictors have different numeric scales.
- Use more clusters than final thematic classes. For example, start with 8–15 spectral clusters for a final 4–7 class land-cover map.
- Compare several methods. K-Means is a useful baseline; ISODATA or GMM may better represent complex scenes.
- Interpret clusters with imagery. Use RGB, false color, indices, spectral profiles, or field knowledge.
- Merge clusters only after interpretation.
- Validate the final thematic map. If final classes matter scientifically, perform an accuracy assessment using independent reference samples.