1. Introduction
Ruminant nutrition relies largely on forage resources, whose productivity varies according to soil conditions, management practices, and edaphoclimatic factors. In semi-arid regions, characterised by prolonged dry periods [
1], these constraints limit the productive capacity of livestock systems. In such environments, cultivating forage cactus is a strategic approach to maintaining forage availability. Real-time prediction of forage cactus productivity can support management decisions and optimise livestock production systems.
Arid and semi-arid regions cover approximately 40% of the Earth’s surface and are home to more than two billion people [
2]. In these areas, water scarcity restricts the cultivation of conventional crops, highlighting the need for species adapted to such conditions. Forage cactus stands out in this context, with the genera Opuntia and Nopalea being historically the most used due to their adaptation to semi-arid environments and high productive potential [
3]. The crassulacean acid metabolism (CAM) of these species reduces water loss and enhances water-use efficiency [
4], making them strategic crops for regions with low rainfall indices [
5]. The ability to estimate productivity can support feed planning for livestock herds and contribute to more efficient crop management.
The geoprocessing of satellite imagery is an established technology for assessing and monitoring agricultural production. Silva et al. [
6] characterised the spectral responses of soil and plant indicators in forage cactus cultivation areas using the Soil-Adjusted Vegetation Index (SAVI) and Leaf Area Index (LAI). They reported a strong correlation between plant height, cladode number, and vegetation indices, which were used as predictive variables in multiple regression models. However, Sentinel-2 satellite imagery offers limited spatial resolution and depends on favourable atmospheric conditions, restricting its use to small areas with minimal cloud interference. In this context, the use of Unmanned Aerial Vehicles (UAVs), commonly known as drones, has gained prominence because they operate below cloud cover, providing greater temporal and spatial flexibility for data collection. This capability enables the acquisition of high-resolution spectral and structural information, supporting more detailed and accurate crop analyses [
7].
Machine learning has further expanded the use of remote sensing data in agricultural systems by allowing complex and non-linear relationships between image-derived predictors and plant traits to be modelled. In forage systems, these approaches have been used as non-destructive tools to predict agronomic and nutritional responses and support precision management decisions [
8]. Among machine learning algorithms, Random Forest is particularly useful because it combines multiple decision trees, handles interactions among predictors, and reduces sensitivity to noise and overfitting [
9].
Although UAV-based remote sensing and machine learning have been increasingly used in agricultural and forage systems, their integrated application to forage cactus remains limited, particularly under semi-arid conditions. Forage cactus has a distinct architecture compared with conventional forage crops, as its productivity is closely related to cladode number, cladode area, plant volume, and differences between Opuntia and Nopalea varieties. These morphological differences may affect the relationship between UAV-derived predictors and field-measured traits, indicating the need for variety-specific modelling. In this context, integrating RGB and RGNir UAV imagery, structural information derived from digital elevation models, and Random Forest modelling represents an innovative strategy to generate predictive information on productive, morphological, and physiological traits of forage cactus, with the potential to reduce dependence on repeated destructive sampling and labour-intensive field assessments.
In forage crops, UAV-based monitoring has shown considerable potential for identifying areas of higher productivity [
10], thus enabling harvest optimisation and maximising feed supply for livestock. By tracking the productive performance of forage cactus, it is possible to detect reductions in yield that may indicate, for example, early pest attacks or physiological issues. UAVs allow for the collection of detailed plant information, including structural attributes and spectral indices derived from imaging spectroscopy, enabling centimetre-scale canopy analyses [
11] and providing accurate data on crop health and development.
Furthermore, drone-based monitoring makes it possible to evaluate the impact of management practices, such as fertilisation and irrigation, on forage productivity. Based on the collected data, water and nutrient application can be adjusted with greater precision, promoting more efficient resource use and increasing agricultural output. Thus, the objective of this study was to evaluate the use of UAV-derived spectral and canopy-structure variables combined with the Random Forest algorithm to predict productive, morphological, and physiological traits of four forage cactus varieties cultivated under semi-arid conditions.
3. Results
The distribution of structural, physiological, and productive variables was first evaluated to identify extreme values that could affect model fitting (
Figure 3). A filtering procedure was then applied separately for each variable, removing observations located at the lower and upper extremes of the distribution, corresponding to 5% in each tail and 10% of observations in total for each variable. This procedure was applied at the variable level and not to the entire dataset simultaneously, avoiding disruption of the relationship among predictors and response variables. This approach reduced the influence of extreme values while preserving the central variability of the dataset. After filtering, the data showed a greater concentration of values around the median, particularly for height, dry mass per cladode, total dry mass, and volume. These variables showed wider dispersion before filtering, indicating that productive and structural traits were more affected by extreme observations than chlorophyll A and B, which presented comparatively narrower distributions.
The adjusted variables ranged from 0.60 to 0.81 for plant height, 25.46 to 31.90 for chlorophyll A, 6.08 to 11.68 for chlorophyll B, 0.71 to 1.05 for cladode width, 27.9 to 78.41 for dry mass per cladode, 10.0 to 31.36 for total dry mass, and 0.10 to 0.16 for volume, reflecting the central distribution representative of the sampled population. These ranges indicate that the filtering procedure retained variation among structural, physiological, and productive traits while reducing the effect of extreme observations. The narrower ranges observed for chlorophyll A and B suggest greater physiological uniformity among plants, whereas dry mass per cladode, total dry mass, and volume maintained wider variation, reflecting differences in plant size and productive structure within the evaluated dataset.
The overall correlation analysis showed that total dry mass had positive but weak correlations with UAV-derived spectral indices, particularly mean GLI and mean VARI (
Table 3). DMY was positively correlated with mean VARI (r = 0.25;
p < 0.01), maximum VARI (r = 0.16;
p < 0.01), mean GLI (r = 0.26;
p < 0.01), and maximum GLI (r = 0.18;
p < 0.01). Lower correlations were observed for mean NDVI (r = 0.09;
p < 0.05) and maximum NDVI (r = 0.13;
p < 0.01). Among the structural variables, width (r = 0.33;
p < 0.01) and volume (r = 0.25;
p < 0.01) were associated with DMY. The highest correlation was observed between DMY and the cladode area index (CAI; r = 0.73;
p < 0.01).
In contrast to the weak associations observed for spectral indices, the strong correlation between DMY and CAI indicates that, in the overall dataset, dry mass production was more closely related to plant architecture and cladode surface development than to isolated spectral responses. The positive correlations between DMY, number of cladodes (r = 0.65; p < 0.01), and CAI also show that productive performance was associated with the structural expansion of the plant, rather than with a single UAV-derived vegetation index.
The correlation data by forage cactus variety for dry mass production (
Table 4) show distinct relationships among cultivars. Spectral indices showed weak to moderate associations with DMY, with VARI being more relevant for OEM and IPA Sertânia, reaching r = 0.32 and r = 0.36, respectively. In contrast, GLI was more associated with DMY in Miúda and IPA 20, although with lower coefficients (r = 0.31 and r = 0.21, respectively). NDVI showed positive correlations with DMY only in OEM, with r = 0.25 for mean NDVI and r = 0.24 for maximum NDVI, whereas its associations were weak or absent in the other varieties. CI showed negative correlations with DMY only in IPA Sertânia, with r = −0.25 for mean CI and r = −0.19 for maximum CI. These results indicate that the spectral response associated with dry mass production varied according to the variety and the vegetation index considered.
Among the UAV-derived structural variables, estimated width showed the strongest association with DMY in OEM (r = 0.52), while weaker and less consistent relationships were observed for the other varieties. Estimated height and volume were negatively correlated with DMY in IPA Sertânia, indicating that UAV-derived structural predictors did not show a uniform pattern across varieties. Field-derived structural traits showed stronger and more consistent associations with DMY than spectral indices. The cladode area index was strongly correlated with DMY in OEM and IPA 20 (r = 0.82 and r = 0.86, respectively), while the number of cladodes showed the strongest association with DMY in Miúda (r = 0.91). In IPA Sertânia, the number of cladodes also showed a strong correlation with DMY (r = 0.82), while CAI showed a moderate association (r = 0.57). These patterns show that dry mass accumulation was more closely associated with field-measured structural traits, especially CAI and number of cladodes, than with individual spectral indices. These results indicate that dry mass accumulation in forage cactus is strongly related to plant architecture and cladode development, and that the relationship between UAV-derived predictors and DMY depends on the morphological characteristics of each variety.
The correlation matrix for plant height (
Table 5) also showed distinct relationships among cultivars. Associations between observed height and UAV-derived spectral indices were generally weak, with the highest coefficients observed for GLI in Miúda (r = 0.33) and CI in IPA 20 (r = 0.22). These low coefficients indicate that spectral indices were not strong indicators of plant height, regardless of variety. Among UAV-derived structural variables, estimated height showed weak correlations with observed height in Miúda and IPA 20 (r = 0.25 and r = 0.26, respectively), whereas estimated volume was more associated with observed height in Miúda (r = 0.35). For OEM, the correlation between estimated height and observed height was negligible (r = 0.06), and for IPA Sertânia this association was negative (r = −0.25), showing that UAV-derived height did not consistently represent field-measured height across varieties. In contrast, field-measured structural variables showed stronger relationships with observed height, particularly observed volume across all varieties (r ≥ 0.81) and observed width in IPA Sertânia (r = 0.53). The strongest and most stable association was observed between field-measured volume and observed height, with correlations ranging from 0.81 to 0.84 among varieties. This pattern indicates that plant height was more closely related to the three-dimensional structure measured in the field than to height or volume estimated from the UAV-derived digital elevation model. These results suggest that UAV-derived variables captured part of the vertical and canopy-structure variation, but their direct association with plant height was less consistent than that observed among field-measured structural traits. Therefore, the correlation results already indicate a limitation of the UAV-derived structural variables, especially estimated height, for representing the architecture of forage cactus plants.
The relationship between predicted and observed values for the overall forage cactus dataset (
Figure 4) indicates good model fit during the training phase, with coefficients of determination above 0.80 for structural traits and above 0.70 for DMY and chlorophylls. However, model performance decreased in the testing phase, with low linearity for structural variables (R
2 < 0.40) and moderate performance for DMY (R
2 = 0.53).
In the testing phase, the point distribution became more dispersed, indicating lower agreement between predicted and observed values compared with the training phase. This dispersion was more evident for height, width, and volume, whereas DMY and chlorophyll variables showed comparatively closer alignment between predicted and observed values. A greater spread of points was also observed at higher observed values for some variables, indicating lower prediction consistency in the upper range of the dataset.
The predicted and observed data for the OEM cultivar showed good agreement between model predictions and field values (
Figure 5). For the OEM cultivar, model performance for DMY reached R
2 = 0.76 in training and 0.73 in testing. DMY per cladode reached R
2 = 0.85 in training and 0.84 in testing. Height reached R
2 = 0.83 in training and 0.66 in testing. The close R
2 values between training and testing for DMY and DMY per cladode indicate greater stability of the model for productive variables in this cultivar. The point distribution for these variables showed closer alignment between predicted and observed values, particularly when compared with width and volume. Among the structural variables, height showed the best testing performance, while width and volume presented greater dispersion of predicted values in relation to observed values.
For the Miúda variety, model performance was lower, with R
2 = 0.69 for DMY and 0.58 for height in the testing phase. DMY per cladode reached R
2 = 0.92 in training and 0.72 in testing (
Figure 6). Compared with the OEM cultivar, the Miúda variety showed greater reduction in model performance from training to testing, especially for DMY per cladode. Although this variable showed the highest R
2 in the training phase, the testing phase presented lower agreement between predicted and observed values. For DMY and height, the points showed moderate alignment, whereas width and volume presented greater dispersion. Overall, the Miúda models showed less stable prediction patterns across variables when compared with the best-performing cultivars.
For IPA Sertânia, predicted values were close to observed values, with good performance for DMY and chlorophyll variables (
Figure 7). DMY showed MAPE values of 20% in training and 27% in testing. Structural variables showed R
2 values of 0.72 (training) and 0.66 (testing) for height, 0.74 and 0.50 for width, and 0.74 and 0.56 for volume. Chlorophyll A and Chlorophyll B also showed close agreement between predicted and observed values, with lower dispersion in the testing phase than that observed for width and volume. Among the structural variables, height showed the smallest reduction between training and testing, while width and volume presented lower testing performance. The distribution of points indicates that IPA Sertânia had more consistent prediction patterns for DMY and chlorophyll variables than for structural traits.
For IPA 20, DMY showed MAPE values of 16% in training and 19% in testing, with absolute mean errors of 2.03 and 2.54 t ha
−1, respectively. Height showed MAPE values of 12% and 14% in training and testing, respectively (
Figure 8). The difference between training and testing was small for DMY and height. The predicted and observed values for DMY were closely distributed along the 1:1 line. For height, the points also showed close distribution between predicted and observed values in both phases. Width and volume showed greater dispersion of points in the testing phase.
4. Discussion
The integration of UAV-derived imagery with Random Forest modelling showed greater potential for predicting productive and physiological variables than structural traits. Height is a structural trait commonly used in forage management, and, in forage cactus, plant height and width are closely related to CAI and yield, particularly for OEM and Miúda varieties [
23]. Although the simple correlations between spectral indices and dry mass production were weak in the overall dataset, indices derived from RGB and RGNir images contributed as predictors within the multivariate model, especially when combined with structural information extracted from the images. This result indicates that the performance of this approach does not depend on a single vegetation index, but rather on the combination of different sources of information through Random Forest.
Similarly, Tueros et al. [
24], when evaluating UAV-derived RGB images in potato, observed low correlations between RGB indices and yield, but reported better performance of Random Forest for yield prediction. Saltos-Alcivar et al. [
25] also found that RGB images associated with vegetation indices and machine learning constituted a low-cost approach for estimating physiological traits in peanut, with Random Forest performing better than K-Nearest Neighbours (KNN).
Studies involving different crops show that the relationship between UAV-derived spectral indices and biomass or yield is not always strong when the indices are evaluated individually. Vahidi et al. [
26], when estimating pasture biomass using UAV-derived RGB images, observed that the integration of spectral and structural variables was important to improve prediction, whereas the spectral response showed limitations under conditions of higher biomass due to canopy saturation and shading. In the present study, forage cactus showed weak correlations between DMY and spectral indices in the overall dataset, which may be associated with the inclined and overlapping arrangement of cladodes, the high water content of the tissues, and the absence of a continuous canopy. Therefore, spectral indices should be interpreted as complementary information for prediction, rather than as isolated indicators of productivity.
The association between dry mass production and cladode area index indicates the importance of plant structure in forage cactus productivity. Cladodes are the main photosynthetic organs of cactus pear and also contribute to water and reserve storage. Therefore, their area, number, and development are directly related to mass accumulation. Lucena et al. [
27] highlighted that cactus pear production is influenced by light interception, which depends on morphological characteristics such as cladode area. The authors also indicated that cladode area and weight can be estimated using linear dimensions, showing the strong relationship between cladode morphometry and plant growth.
The relationship between spectral indices and dry mass production varied among varieties. VARI was more relevant for OEM and IPA Sertânia, whereas GLI was more associated with DMY in Miúda and IPA 20. Therefore, there was no single spectral index capable of representing all forage cactus varieties equally. Differences in architecture, number of cladodes, cladode area, growth pattern, and exposed surface can alter how each variety reflects radiation and how this response is captured by the images. In this context, variety-specific models tend to better represent the relationship between UAV-derived data and field-measured traits.
The need to fit individual models for each forage cactus variety arises from the structural differences between the genera
Opuntia and
Nopalea. Silva et al. [
28] reported that Opuntia ficus-indica shows higher values of fresh mass (433 g), cladode length (31.2 cm), and cladode width (16.6 cm) compared with
Nopalea cochenillifera, which presented 154 g, 22.6 cm, and 9.7 cm, respectively. In addition to these morphometric differences, Opuntia has higher moisture content (91 vs. 89.67%) and lower pH (4.40 vs. 4.70). These physical and chemical distinctions may influence the spectral and structural responses captured by UAV imagery.
The reduced amplitude of physiological variables such as chlorophyll A and B indicates greater uniformity among plants, whereas the wider variation observed in fresh mass per cladode and total fresh mass reflects marked structural differences among cultivars. It is important to note that, although often treated as a single group, forage cactus exhibit structural, physiological, and productive heterogeneity. These differences arise both from the distinction between the genera
Opuntia and
Nopalea and from the specific characteristics of each clone. The OEM clone, for example, shows higher mass accumulation and higher cladode area index (IAC). Siqueira et al. [
13] reported fresh mass values of 131.7 Mg ha
−1 for OEM, while IPA Sertânia and Miúda reached 44.65 and 57.60 Mg ha
−1, respectively.
The lower stability of the models for the Miúda variety may be associated with its more complex architecture. Rocha et al. [
29] observed that Miúda has a greater number of cladodes and lighter cladodes compared with OEM and IPA 20, as well as a higher cladode area index from eight months after planting onward. This combination of a greater number of structures, smaller individual size, and higher plant density may increase cladode overlap, internal shading, and visual heterogeneity, making it more difficult to define plant contours and reconstruct plant structure from UAV-derived images.
Thus, the lower accuracy observed for Miúda should not be interpreted only as a limitation of the algorithm, but also as a consequence of the interaction between plant architecture and image acquisition. Plants with a greater number of cladodes, smaller cladodes, and higher overlap may generate greater visual noise for the models, especially for structural variables such as height and volume. Miúda requires special attention in future modelling efforts, with strategies adjusted to its architecture, such as more refined plant segmentation, the use of higher spatial resolution, or the inclusion of textural variables.
For IPA Sertânia, the better performance for DMY and chlorophylls, together with intermediate results for structural variables, suggests that spectral and physiological signals were better captured than the three-dimensional geometry of the plant. This behaviour indicates that the prediction of productive and physiological variables may be more stable than the prediction of height, width, and volume, which depends more strongly on the quality of the digital elevation model and on its ability to represent the internal architecture of the plant. The distribution of predicted points close to the observed values for DMY, Chlorophyll A, and Chlorophyll B also suggests good linear coherence and absence of directional bias for these variables.
IPA 20 also showed good predictive performance, especially for DMY, with lower errors in the testing phase. This result may be associated with an architecture more favourable to UAV-based image acquisition, with lower visual complexity compared with Miúda and a clearer definition of the apparent plant surface. In varieties with less overlap or more clearly delimited structures, images tend to better represent the exposed surface, favouring the extraction of spectral and structural information useful for the model.
The lower performance for height, width, and volume may be related to limitations of the digital elevation model in representing the three-dimensional architecture of forage cactus. Unlike crops with continuous canopies, forage cactus has cladodes oriented at different angles, overlapping structures, and gaps between cladodes, which makes photogrammetric reconstruction of the plant more difficult. Thus, UAV imagery tends to capture the visible canopy surfaces more effectively than the internal plant structure, which may increase error in structural variables. Li et al. [
30] observed that the accuracy of UAV-based monitoring depends strongly on flight altitude and spatial resolution, with better performance at lower altitudes and reduced accuracy for variables such as LAI, SPAD, plant height, and aboveground mass at higher altitudes. These findings show that the quality of spatial information plays a decisive role in the prediction of structural traits.
The Random Forest models were able to predict field variables with satisfactory performance, particularly for dry mass production and physiological indicators. Among the evaluated traits, DMY showed the highest predictive accuracy, followed by Chlorophyll A and Chlorophyll B. The physiological variables, Chlorophyll A and Chlorophyll B, and DMY per cladode exhibited high predictive accuracy, indicating that spectral attributes derived from aerial imagery are informative for characterising plant physiology and productivity. In contrast, the structural attributes estimated via UAV showed moderate performance, with reduced accuracy associated with DEM-related noise, shading, cladode inclination, and variations in canopy arrangement.
The better performance for productive and physiological traits may also be related to the greater sensitivity of spectral bands to vegetation structure and plant condition. In plants with greater overall size and larger leaf surface area, reflectance measured in the red (approximately 620–700 nm), green (approximately 500–600 nm), and especially near-infrared (NIR, 700–1100 nm) spectral bands tends to be more responsive to structural variation, such as vegetation mass density. In the NIR region, reflectance is strongly affected by internal leaf structure and total mass, making it a suitable indicator of plant vigour and size [
31]. This relationship helps explain why variables associated with dry mass accumulation and chlorophyll content were more consistently predicted than traits that depend directly on three-dimensional reconstruction.
Differences among cultivars also contributed to variation in model performance. The OEM clone, for example, shows higher mass accumulation and higher cladode area index (IAC). Siqueira et al. [
13] reported fresh mass values of 131.7 Mg ha
−1 for OEM, while IPA Sertânia and Miúda reached 44.65 and 57.60 Mg ha
−1, respectively. These differences indicate that, although forage cactus is often analysed as a single group, the crop includes materials with distinct structural and productive patterns. Such variation affects both the spectral response captured by UAV imagery and the ability of the model to represent relationships between image-derived predictors and field-measured traits.
A slight asymmetry was observed at the upper range of DMY, DMY per cladode, and observed height, with a tendency to underestimate the highest values. This pattern is typical of tree-based models, as the predictions within each node correspond to the average of the grouped observations, reducing the ability to capture extreme values [
32]. Although Random Forest is robust to noise, outliers, and multicollinearity, this type of algorithm tends to shrink the extremes of the distribution and concentrate predictions near the central values [
9]. Even so, RF remains suitable for this type of aerial-imagery application because it can handle non-linear relationships, interactions among predictors, and correlated variables. Studies in digital agriculture show that RF provides strong generalisation ability under complex conditions, including prediction tasks based on remote sensing data [
33].
The cactus pear plants were irrigated via drip irrigation; therefore, no water stress occurred during the experimental period. Under water deficit, it is common for the concentrations of photosynthetic pigments, especially chlorophylls a and b, to decline, which alters light absorption in the visible spectrum and modifies the spectral response of plants [
34]. This typically reduces the sensitivity of image-derived indices for estimating physiological attributes. Silva et al. [
6], analysing OEM and Miúda under drought-prone conditions, reported marked reductions in the Soil-Adjusted Vegetation Index and leaf area index during periods of low rainfall, attributed to loss of cladode turgor, reduced photosynthetic area, and pigment degradation. Because the plants in the present study did not experience such restrictions, they maintained greater physiological stability and preserved pigment concentrations. This scenario may have contributed to better model performance in predicting Chlorophyll A and B.
The image acquisition process showed good overall quality, allowing consistent extraction of spectral indices and structural variables. The main limitation was associated with the DEM, which did not fully capture the three-dimensional geometry of cactus pear plants. This limitation is probably linked to the irregular architecture of the cladodes, their orientation in different planes, and the presence of internal shading and overlap. Therefore, the performance of UAV-based monitoring in forage cactus depends not only on sensor quality and model choice, but also on the interaction between plant architecture, spatial resolution, and the type of trait being predicted.
The results indicate that UAV imagery combined with Random Forest can support forage cactus management in semi-arid environments. The possibility of estimating dry mass availability and physiological variables allows plant growth to be monitored, areas with lower vigour to be identified, and harvest planning to be improved. This technology can reduce the need for repeated sampling and intensive manual assessments, especially in larger areas or in systems that require frequent monitoring.
Thus, the integration of UAV imagery, spectral indices, structural information, and Random Forest represents a promising strategy for monitoring forage cactus in semi-arid regions. The results suggest greater applicability for productive and physiological variables than for structural variables estimated directly from the digital elevation model. The main contribution of this approach lies in generating rapid predictive information, with lower labour demand and less need for repeated destructive sampling, provided that the models are calibrated and validated for each cultivation condition and evaluated variety.