$$\rightleftharpoonup{xx}$$
$$\longleftharp{xx}$$,
$$\longrightharp{xx}$$,
The semi-automated method for mapping and classifying plant communities is designed to generate accurate land-cover information for coastal wetlands, which are dominated by heterogeneous, low-growing herbaceous plants and characterized by microtopography; see an example of such a habitat in the photograph in Figure 1. A case study of the Baltic boreal coastal wetland on Hiiumaa Island, Estonia, was conducted. On-site, four plant communities were sampled for training the classification model: Open Pioneer (OP), Lower Shore (LS), Upper Shore (US), and Tall Grass (TG). Figure 2 provides a concise overview of the methodology implemented in four distinct phases. In contrast, Figure 3 illustrates a detailed diagrammatic guide delineating numbered, actionable steps coupled by arrows to represent the data flow, thus synthesizing the methodology across the steps and phases of the protocol. The final outputs of this method, utilizing a multispectral sensor and an RGB sensor, are multispectral and RGB-based plant community maps, which are stored as layers in a GIS project together with all intermediate datasets. The quality of the geospatial datasets was evaluated upon the completion of each protocol phase, as the quality of outcomes in succeeding phases depends on the quality of preceding-phase results, culminating in the final phase, where inputs comprise the aggregate of all prior steps.
The following summarizes the outcomes of each of the four phases of the protocol:
In the first phase, the UAV aerial survey was conducted at an altitude of 120 m, yielding a Ground Sample Distance (GSD) of approximately 10 cm/pixel. The aerial survey produced multispectral and RGB images. After post-processing kinematic (PPK), geotags were corrected for each drone image, and the images were mosaicked in professional photogrammetry software to produce aerial survey maps. Photogrammetric processing of multispectral aerial imagery yielded raster files of RED, GREEN, NIR, and Red-edge reflectance.
Multispectral and RGB aerial images were processed as separate projects due to the inherently distinct resolutions of photographs. See Figure 4 of the RGB image mosaicking settings. Figure 4A. processing options by selecting merged tiles and generating seamless, unified output maps. Figure 4B. selection of automated index calculations from RGB camera images produced four raster maps: one per band (red, green, and blue), and the DSM (Digital Surface Model). Figure 4C. demonstrates the generation of automatic tie points to match common pixels across overlapping images during the initial processing step. Together with 3 RGB (red, green, blue) indices and DSM, the photogrammetry software generated a software-generated grayscale raster: a monochromatic, single-channel representation that scales and combines the different bands (e.g., red, green, blue), with low pixel values appearing black and high values appearing white. The formulation of this grayscale index is software‑specific and not standardized across photogrammetry platforms.
Photogrammetry software generated quality reports describing the processing results for both sets of aerial image mosaicking projects: multispectral and RGB. These reports provide key metrics to validate accuracy. Indicators of high-quality results are low reprojection error: the closer to 0, the better (anything below 1.0 is generally accepted). For example, dense "match lines" mean strong matches between most images. The output maps were visually assessed and found to be free of voids and other visual discrepancies. Visual discrepancies are a sign of possible reflectance and mosaicking errors, as well as underlying georeferencing grid issues. The photogrammetry report, along with specific software manuals and training resources, is used to identify the issue, find a solution, and reprocess aerial images.
UAV aerial survey maps served as a baseline dataset for recalculating complex spectral information into standardized pixel‑based indices (i.e., vegetation indices VIs generated in the third phase), enabling their use as structured inputs for machine‑learning classification (in the final phase of the protocol).
On-site biophysical observations were collected as a ground-truth dataset. At the case study site (Baltic Boreal coastal wetland), four key vascular plant communities were identified and sampled: Open Pioneer (OP), Lower Shore (LS), Upper Shore (US), and Tall Grass (TG). Utilizing the stratified quadrat sampling method delineated in the second phase of the protocol, the OP plant community was identified by the presence of indicator species: Salicornia europaea and Suaeda maritima; LS by high percentages of Glaux maritima and Juncus geradii; US by its indicator species: Festuca rubra and Leontodon autumnalis; while TG is distinguished by a significant presence of tall grasses: Deschampsia cespitosa, Elytrigia repens, and Molinia caerulea. At least 10 quadrat samples were collected for each plant community. Each quadrat sample included the following biophysical observations: plant species composition (%), soil moisture (%), vegetation heights in centimeters, and precise quadrat coordinate locations. These variables were digitized as a tabulated dataset, imported into GIS Project, added to the sample quadrat GNSS data shapefile, and saved as a GeoPackage (.gpkg). Such a platform-independent file, containing biophysical observations of wetland plant communities and precise sample coordinate data, serves a dual purpose: for further environmental and ecological ecosystem assessment and modeling. Most importantly, for the successful execution of this protocol, this GeoPackage file serves as model training and validation data in the machine learning process delineated in phase 4. Plant community coding: OP, LS, US, TG; were used as training labels in the machine learning process. Accuracy (High-fidelity labels, human audit, consistent format) and structure (clean, rectangular format (rows/columns)) are crucial for producing a high-quality ground truth dataset. Ground truth labels must have near-zero error rates (e.g., typos) to ensure consistent labeling conventions. For example, if "OP" is the ground truth, ensuring it is not labeled in any other way (such as "op", "O.P.”) is essential to avoid duplication.
To execute the third phase of the protocol, the datasets from the aerial survey conducted in the first phase were used to recalculate raw aerial survey data into Vegetation indices (VIs). First, to reduce dataset size and streamline the computing process, photogrammetry outputs "clipped" to omit irrelevant or low-quality pixel data outside the boundaries of the study site (see Figure 5 as an illustration of actions performed in a GIS software).
Then, 19 multispectral VIs were calculated using RED, GREEN, NIR, and Red-edge reflectance maps. The following multispectral VI raster files were generated and included in the GIS Project: Datt index 4 (Datt4)41, Enhanced Vegetation Index (EVI)42, Green Chlorophyll Index (GCI)43, Greenness Difference Index (GDI)44, Generalized Difference Vegetation Indices (GDVI)45, Green Infrared Percentage Vegetation Index (GIPVI)46, Green Normalized Difference Vegetation Index (GNDVI)47, Green-Red Difference Index (GRDI)44, Green-Red Vegetation Index (GRVI)45, Modified Normalized Difference Vegetation Index (mNDVI)48, Modified Soil-Adjusted Vegetation Index49 (MSAVI: see Figure 6. a screenshot of a raster calculator in GIS software with MSAVI formula input), Modified Simple Ratio red-edge (MSRred_edge)50, Normalized Difference Water Index (NDWI)51, Normalized Difference Vegetation Index (NDVI)52, Red-Edge NDVI (NDVIre)47, Red-Edge Triangulated Vegetation Index (RTVIcore)50, Soil Adjusted Vegetation Index (SAVI)53,54, Simple Ratio (SR)55, Red-Edge Simple Ratio (SRre)47.
Furthermore, a total of 23 RGB-based VIs were calculated and saved as raster files in the GIS project for further spatial analysis: Blue–Green Ratio Index (BGRI)57, Brightness Index (BI)58, Blue Wide Dynamic Range Vegetation Index (BRVI)59, Color Index of Vegetation (CIVE)60, Enhanced Green View Vegetation Index (EGVI)61, Enhanced Vegetation Index (ERVI)62, Excess Green indices ExG and ExGI63, Combination index (COM)64, Green Chromatic Coordinate (GCC)34,65, Green Leaf Index (GLI)66, Green-Red Vegetation Index (GRVI)67, Modified Green Red Vegetation Index (MGRVI)68, Normalized Green-Blue Difference Index (NGBDI)69, Normalized Green-Red Difference Index (NGRDI)69, Red–Green–Blue Ratio Index and Red-Green-Blue Vegetation Index (RGBRI70 and RGBVI68), Red-Green Ratio Index (RGRI)57, Visible Soil Adjusted Vegetation Index (SAVI)53, Triangular Greenness Index (TGI)69, Visible Atmospherically Resistant Index (VARI)47, Vegetative Index (VEG)71, Woebbecke Index (WI)63.
Final outputs include two separate multispectral and RGB plant community classification maps saved as GeoTIFFs within the GIS project, along with all the preceding geospatial data. 19 Multispectral VIs, along with the ground-truth dataset, were used as pixel-level predictors in a machine-learning workflow (e.g., RF algorithm) to classify Boreal coastal plant communities (OP, LS, US, TG) and generate a multispectral plant community map. And RGB-based predictors (25 RGB VIs, grayscale index, and normalized56 red, blue, green indices and DSM), along with the ground-truth dataset, to classify and generate an RGB-based plant community map (see Figure 7. Final outputs plotted in the R console; Figure 7A represents multispectral, and Figure 7B represents RGB-based plant community maps).
To generate final outputs, the R environment (phase 4 of the protocol) was used to script and execute the machine learning workflow (e.g., RF algorithm), enabling visualization of intermediate outputs, such as vegetation index (VI) performance rankings (Figure 8). When mapping and classifying plant communities, the R console provided real-time error messages and explanations, facilitating troubleshooting and ensuring smooth progression through each step.
This study evaluated two RF algorithm models for plant community classification maps. The first RF model, using multispectral VIs as the input dataset, achieved 92.34% accuracy with a F1 score of 0.915 in the validation dataset. This is a valid outcome, as F1 scores range from 0 (worst) to 1 (perfect), with higher scores indicating superior performance. The F1 score in an RF model represents the harmonic mean of precision and recall. This metric effectively balances false positives and negatives, i.e., it does not allow one type of error to outweigh the other, which is essential for imbalanced datasets, and is frequently averaged across classes or reported per class to assess overall model performance78,79. The multispectral model's OOB error rate was 7.75%, indicating a moderate risk of misclassification. The class-level F1 scores in the validation dataset ranged from 0.845 in TG to 0.984 in OP plant communities, indicating moderate variability in performance across communities.
The second evaluated RF model was based on VIs and DSM derived from the RGB aerial survey, achieving 98.89% accuracy with an overall F1 score of 0.987. Its OOB error rate was only 1.14%, reflecting very high reliability. Class-level F1 scores were consistently high (0.986–0.993), indicating robust classification for all communities.
The variable-importance plot in R (Figure 8A) demonstrated each VI's predictive abilities for the Boreal coastal wetland plant communities. The most influential multispectral VIs as predictors were mNDVI and SR, which indicate strong sensitivity to canopy greenness and biomass. Similarly, GRDI, NDVI, NDVIre and SRre were also highly ranked, reflecting the role of red-edge and normalized difference indices in distinguishing vegetation types. In contrast, the RGB-based index and DSM variable-importance plot show that DSM-derived structural height model as a predictor is a key driver of classification accuracy (Figure 8B). Other important predictors include TGI, grayscale, and VARI, which leverage RGB reflectance variability. Thus, these results indicate that DSM and RGB-derived indices significantly improve classification reliability and reduce misclassification risk.
The entire geospatial dataset was saved as the GIS Project, a folder, including UAV survey and VI raster maps, the biophysical observation GeoPackage (ground truth), and plant community maps; all linked as a QGIS project (.qgz file). The project is suitable for offline use and enables interoperability across GIS platforms.

Figure 1: Study site. Photograph with a location pin on the global map, pointing at the island of Hiiumaa in the Western Estonian archipelago. The study site, Kõrgessaare rannaniit, is located in Viscosa village and is a nature conservation area. Habitat type: boreal Baltic coastal meadow (Natura 2000 code 1630). Please click here to view a larger version of this figure.

Figure 2: Conceptual workflow diagram. (1) UAV-based aerial survey, (2) ground-truth data collection and georeferencing, (3) vegetation index computation, and (4) supervised classification using random Forest in R. Actual maps from the protocol implementation illustrate this four-phase method. Please click here to view a larger version of this figure.

Figure 3: Detailed workflow diagram. The diagram lists the 4 phases (and key steps) of the protocol in different-coloured panels, along with datasets generated in each phase. Arrors symbolize data flow. Blue color distinguishes multispectral dataset from RGB in red. Please click here to view a larger version of this figure.

Figure 4: Photogrammetry software example. (A–C) A screenshot of an RGB image mosaicking project: (A) Processing options for DSM and orthomosaics. (B) Processing options for red, green, and blue indices. (C) View of the processing progress, including aerial images and camera angles. Please click here to view a larger version of this figure.

Figure 5. Clipping map raster files in GIS software. Screenshot of a QGIS workspace with visible layers and opened tabs in sequence demonstrating how to clip unnecessary data: raster-extraction-clip raster by Extent ("extent" in this case refers to a polygon shape drawn as desired and used to mask pixels falling outside its boundaries) Please click here to view a larger version of this figure.

Figure 6. GIS software Raster Calculator screenshot. Modified soil-adjusted vegetation index (MSAVI) formula input as an example. Please click here to view a larger version of this figure.

Figure 7. Statistical computing environment for R version screenshots demonstrating final outputs plotted in the R console (RStudio). (A) multispectral and (B) RGB-based plant community maps. Please click here to view a larger version of this figure.

Figure 8. Statistical computing environment for R screenshots demonstrating VI performance rankings. (A, B) Views of an R console: (A) Screenshot when using multispectral VIs as an input dataset, and (B) Screenshot when using an RGB+DSM dataset. Both (A and B) views include variable-importance plots named "final_rf" (script-generated object name). Please click here to view a larger version of this figure.
Supplementary File 1: Vegetation index equations. List of multispectral and RGB-based vegetation index (VI) equations used in this protocol, including formulas for RGB band normalization prior to RGB VI calculation. Please click here to download this file.
Supplementary File 2: RF classification and validation script.R. Please click here to download this file.