Maximum Likelihood
Assumes each class follows a multivariate Gaussian distribution and assigns the class with the highest discriminant probability.
Create a thematic class raster from labelled training samples. Spectral classifiers learn pixel-feature relationships; CNN/U-Net use spatial neighborhoods or semantic segmentation context.
Remote Sensing CoreEnd-User DocumentationTheory + Formula + ParametersCreate a thematic class raster from labelled training samples. Spectral classifiers learn pixel-feature relationships; CNN/U-Net use spatial neighborhoods or semantic segmentation context.
Assumes each class follows a multivariate Gaussian distribution and assigns the class with the highest discriminant probability.
Assigns a class from nearby labelled samples in feature space.
Measures distance from a class mean while accounting for covariance.
Combines many decision trees; each tree votes for a class.
Learns spectral-spatial filters from image patches around labelled pixels.
Encoder–decoder semantic segmentation network with skip connections that restores pixel-level class boundaries.
Nonlinear classifier using learnable univariate functions on connections.
Uses self-attention to learn relationships among predictor bands/features.
| Input | Type | Requirement | Description |
|---|---|---|---|
| Predictor Raster | raster | Required | Multi-band raster used as classification predictors. |
| Training Samples | vector | Required for selected method | Point or polygon training features containing the selected class field. |
| Training Areas | vector | Required for selected method | Polygon training areas are recommended for CNN and U-Net. Point labels are accepted but provide sparse supervision. |
| Validation Samples (Optional) | vector | Conditional / Optional | Independent Point/MultiPoint or Polygon/MultiPolygon reference samples. When supplied, the same run computes confusion matrix, Overall Accuracy, Kappa, Producer/User Accuracy, Precision, Recall and F1. |
| Parameter | Default | Choices / Range | How to Use It |
|---|---|---|---|
| Classification Algorithm | — | Maximum Likelihood, Nearest Neighbour, Mahalanobis Distance, Random Forest, CNN, U-Net, KAN, Transformer | |
| Class Field | — | — | Attribute containing the training class label. Shown for: maximum_likelihood, nearest_neighbour, mahalanobis, random_forest, kan, transformer, cnn, unet |
| Validation Class Field | — | — | Reference class field in Validation Samples. Leave empty to use the same Class Field. |
| Predictor Bands | — | — | Raster band numbers, for example [1,2,3,4]. Leave empty to use all bands. Shown for: maximum_likelihood, nearest_neighbour, mahalanobis, random_forest, kan, transformer, cnn, unet |
| All Touched Pixels | Off | — | When enabled, every pixel touched by a training geometry is labelled. Shown for: maximum_likelihood, nearest_neighbour, mahalanobis, random_forest, kan, transformer, cnn, unet |
| Random State | 42 | — | Shown for: nearest_neighbour, random_forest, cnn, unet, kan, transformer |
| Maximum Training Pixels | 200000 | 100 to None | Balanced maximum number of labelled pixels used by spectral classifiers. Shown for: maximum_likelihood, nearest_neighbour, mahalanobis, random_forest, kan, transformer |
| Prediction Batch Size | 200000 | 1000 to 2000000 | Shown for: maximum_likelihood, nearest_neighbour, mahalanobis, random_forest, kan, transformer |
| Covariance Regularization | 1e-06 | 1e-12 to — | Shown for: maximum_likelihood |
| Class Priors | empirical | empirical, equal | Shown for: maximum_likelihood |
| Number of Neighbours | 5 | 1 to 100 | Shown for: nearest_neighbour |
| Neighbour Weights | distance | uniform, distance | Shown for: nearest_neighbour |
| Distance Metric | euclidean | euclidean, manhattan | Shown for: nearest_neighbour |
| Standardize Predictors | On | — | Shown for: nearest_neighbour |
| Covariance Regularization | 1e-06 | 1e-12 to — | Shown for: mahalanobis |
| Number of Trees | 300 | 10 to 3000 | Shown for: random_forest |
| Maximum Tree Depth (0 = unlimited) | 0 | 0 to 500 | Shown for: random_forest |
| Minimum Samples Split | 2 | 2 to 100 | Shown for: random_forest |
| Maximum Features | sqrt | sqrt, log2, all | Shown for: random_forest |
| CNN Patch Size | 15 | 5 to 63 | Shown for: cnn |
| CNN Channels | [32, 64] | — | Shown for: cnn |
| CNN Epochs | 80 | 1 to 2000 | Shown for: cnn |
| CNN Learning Rate | 0.001 | 1e-07 to — | Shown for: cnn |
| CNN Batch Size | 16 | 1 to 512 | Shown for: cnn |
| CNN Dropout | 0.1 | 0.0 to 0.9 | Shown for: cnn |
| Maximum CNN Training Patches | 5000 | 10 to None | Shown for: cnn |
| U-Net Patch Size | 128 | 32 to 1024 | Shown for: unet |
| U-Net Base Channels | 24 | 4 to 256 | Shown for: unet |
| U-Net Depth | 3 | 2 to 5 | Shown for: unet |
| U-Net Epochs | 60 | 1 to 2000 | Shown for: unet |
| U-Net Learning Rate | 0.001 | 1e-07 to — | Shown for: unet |
| U-Net Batch Size | 4 | 1 to 128 | Shown for: unet |
| U-Net Dropout | 0.1 | 0.0 to 0.9 | Shown for: unet |
| Maximum U-Net Training Patches | 2500 | 10 to None | Shown for: unet |
| Compute Device | auto | auto, cpu, cuda | Shown for: cnn, unet, kan, transformer |
| KAN Hidden Layers | [32, 16] | — | Shown for: kan |
| KAN Grid Size | 5 | 2 to 32 | Shown for: kan |
| KAN Spline Order | 3 | 1 to 5 | Shown for: kan |
| KAN Epochs | 150 | 1 to 2000 | Shown for: kan |
| KAN Learning Rate | 0.01 | 1e-07 to — | Shown for: kan |
| KAN Batch Size | 512 | 2 to 65536 | Shown for: kan |
| KAN Weight Decay | 0.0 | 0.0 to — | Shown for: kan |
| Transformer Embedding Size | 64 | 4 to 1024 | Shown for: transformer |
| Transformer Attention Heads | 4 | 1 to 32 | Shown for: transformer |
| Transformer Encoder Layers | 2 | 1 to 12 | Shown for: transformer |
| Transformer Feed-forward Size | 128 | 4 to 8192 | Shown for: transformer |
| Transformer Dropout | 0.1 | 0.0 to 0.9 | Shown for: transformer |
| Transformer Epochs | 150 | 1 to 2000 | Shown for: transformer |
| Transformer Learning Rate | 0.001 | 1e-07 to — | Shown for: transformer |
| Transformer Batch Size | 512 | 2 to 65536 | Shown for: transformer |
| Transformer Weight Decay | 1e-05 | 0.0 to — | Shown for: transformer |
The result should be interpreted according to the selected method and the physical meaning of the input data. Preserve source units, coordinate reference information, NoData meaning, acquisition date, and preprocessing level when comparing results.