Plugin icon

Supervised Classifier

Plugin ID: 3406

A plugin to classify a selected raster file with reference. The Supervised Classifier Plugin for QGIS is a powerful tool that facilitates the classification of satellite images using supervised learning algorithms.

(30) votes 
 Download latest

Supervised Classifier: A plugin to classify selected raster file with reference or pre-trained models.
This plugin provides an easy-to-use interface for loading satellite images and selecting from a variety of supervised classification methods, including "Minimum Distance", "Random Forest", "SVM" and "KNN". Also working on "Maximum Likelihood" algorithm as well.
Key Features:
- User-Friendly Interface with Batch Processing
- Multiple Classification Algorithms (Random Forest, SVM, KNN, Minimum Distance)
- Pre-trained Model Support
- Classify multiple rasters using saved models
- Band Selection
- Choose specific bands for classification
- Multiple Label Field Support -
Handle complex reference shapefiles
- Model Saving & Export
- Save trained models with detailed info files
- Label Mapping Export - Export classification labels as CSV/JSON
- Progress Tracking & Error Handling - Seamless QGIS Integration

This plugin is ideal for remote sensing professionals, GIS analysts, and researchers looking to perform efficient and accurate supervised classification of satellite imagery within the QGIS environment.

To use this Tool, follow the steps below:
1. Click on the tool or choose "Raster" menu --> "MAS** Raster Processing" menu item --> "Supervised Classifier" option.
2. Select 'Stack Image' or Image as Input and select the output folder name.
3. Select classification method.
4. Adjust all parameters according to your needs. Select the field of the Reference Shapefile that has the labels for the classification and check mark on "Want to save the trained model?"
If you want to save the trained model (except the "Minimum Distance" model). Select the "No of Iterations:" to train the model (except the "Minimum Distance" model).
5. Decide do you want to open the output or not.
6. Click on the "Classify" button.

Follow the steps below for Version >= 1.0.0:
**Training New Model Mode:**
1. Open the tool: Raster menu → "MAS Raster Processing" → "Supervised Classifier"
2. Keep "Do you want to use a pre-trained model?" unchecked
3. Select input rasters from the table or add new ones using "Add Raster from File"
4. Select reference shapefiles and choose label fields using the "Select Label Fields" button
5. Choose output folder (or check "Save output in same folder as input?")
6. Select classification method (Random Forest, SVM, KNN, or Minimum Distance)
7. Check "Wants to save trained model?" to save the model for future use
8. Set "No of Iterations" for training (except Minimum Distance)
9. Optionally check "Do you want to open output in QGIS Interface?"
10. Click the "Classify" button
11. View label mappings dialog and export if needed

**Pre-trained Model Mode:**
1. Open the tool and check "Do you want to use a pre-trained model?"
2. Select input rasters from the table
3. Add pre-trained model files (.pkl) using the "Add Model from File" button
4. If multiple models are selected, confirm the warning about the total output files
5. Choose output folder
6. Optionally check "Do you want to open output in QGIS Interface?"
7. Click the "Classify" button
8. Check model info files for label mapping details

**Note: After installation, make sure the following points;
1. Check the Installed plugins (under 'Manage and Install Plugins...' menu).
2. Check Mark 'MAS Raster Processing' toolbar (by right-clicking on the toolbar).
3. Issues (please take a look):
[ModuleNotFoundError: No module named 'sklearn' #1](https://github.com/Mirjan-Ali-Sha/supervised_classifier/issues/1)

For more details, please visit 'homepage'.
** MAS refer to my name "Mirjan Ali Sha".

Version QGIS >= QGIS <= Date
1.0.1 - 3.0.0 3.99.0 667 mirjanalisha 2025-11-16T18:19:18.942031+00:00
0.2 - 3.0.0 3.99.0 7669 mirjanalisha 2024-07-06T15:05:48.862053+00:00
0.1 - 3.0.0 3.99.0 733 mirjanalisha 2024-06-22T18:16:02.193283+00:00

QGIS sustaining members

Flagship membership


Flagship membership


Flagship membership


Large membership


Large membership


Large membership


Large membership


Large membership


Large membership


Large membership


Large membership