Next Article in Journal
Predictive Models Based on Artificial Intelligence to Estimate Crop Yield: A Literature Review
Previous Article in Journal
Optimization Design of Agrivoltaic Systems Based on Light Environment Simulation
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Data-Driven Management of Mountain Meadows in Central Spanish Pyrenees: Enhancing Productivity and Quality via Random Forests Models

Departamento de Ciencias Agrarias y del Medio Natural, Escuela Politécnica Superior, Universidad de Zaragoza, Ctra Cuarte s/n, 22071 Huesca, Spain
*
Author to whom correspondence should be addressed.
Agriculture 2025, 15(23), 2440; https://doi.org/10.3390/agriculture15232440
Submission received: 27 October 2025 / Revised: 19 November 2025 / Accepted: 24 November 2025 / Published: 26 November 2025
(This article belongs to the Section Agricultural Systems and Management)

Abstract

Mountain meadows are key components of extensive livestock systems, yet their response to management practices remains poorly quantified. This study assessed the effects of cutting date, fertilization, and stocking rate on forage yield, quality (RFV), and protein yield across three meadow types (extensive, semi-extensive, and intensive) in the Central Spanish Pyrenees. Using Random Forest modeling and simulated scenarios, we evaluated how each factor influenced productivity and nutritive value. Cutting date was the most influential variable. Advancing the harvest improved forage quality (RFV) but reduced yield. Conversely, delaying the harvest increased biomass at the expense of RFV. Protein yield provided a more balanced metric: it remained stable or increased in intensive and extensive meadows but declined sharply in semi-extensive systems when cutting was delayed. Fertilization had a moderate effect, with semi-extensive meadows showing significant yield reductions when fertilizer input was halved, while other systems remained largely unaffected. Stocking rate had the least impact overall, although reduced grazing led to declines in protein yield in semi-extensive and extensive meadows. These findings suggest that cutting date should be prioritized in management decisions, while fertilization and grazing intensity require context-specific adjustments. Random Forest modeling effectively identified trade-offs and guided evidence-based strategies for sustainable mountain meadow management.

1. Introduction

Mountain meadows are a key part of livestock farming systems in many European mountain regions, particularly in the Central Spanish Pyrenees [1]. These semi-natural grasslands provide the bulk of forage resources for ruminants, they are grazed in autumn and spring and mowed in late spring or early summer to obtain forage for winter [2]. Beyond their role in sustaining animal husbandry, they also contribute to biodiversity conservation, soil protection, and the maintenance of cultural landscapes [3]. Their persistence is therefore tightly linked to the viability of mountain farming communities and the broader sustainability of highland agroecosystems [4].
Despite their importance, mountain meadows face increasing challenges. Land abandonment, socio-economic transformations, and climate variability are reshaping traditional management practices, often leading to declines in both productivity and forage quality [5]. Farmers in these regions must balance the dual objective of maintaining sufficient yields while ensuring adequate nutritive value to support animal performance [6,7]. Yet, while the ecological and cultural significance of mountain meadows has been widely acknowledged in literature, research explicitly focused on strategies to improve their productivity and quality remains surprisingly scarce [8,9]. Most studies have emphasized biodiversity conservation or land-use change, leaving a critical gap in applied agronomic knowledge for sustaining livestock systems in these environments [10,11,12,13].
The productivity and quality of mountain meadows are influenced by a complex interplay of soil properties, climatic conditions, plant community composition, and management practices such as mowing frequency, fertilization, and grazing regimes [14,15]. Traditional agronomic approaches have provided valuable descriptive insights into these factors, but they often rely on linear models that cannot fully capture the nonlinear interactions and context-specific responses typical of mountain agroecosystems [16,17]. This limitation has hindered the development of clear, evidence-based recommendations for improving forage production in such heterogeneous landscapes [8].
In recent years, data-driven approaches and machine learning techniques have emerged as promising tools to address these challenges [18,19]. By integrating diverse datasets and identifying complex interactions, machine learning can provide robust predictions and highlight the relative importance of different drivers of agricultural performance [20]. Among these methods, Random Forest (RF) has gained particular attention due to its predictive accuracy, resistance to overfitting, and ability to quantify variable importance [21]. RF models are especially well-suited to ecological and agronomic systems where multiple interacting factors shape outcomes, making them an ideal choice for studying mountain meadows [22,23].
Although RF has been successfully applied in various agricultural contexts—such as crop yield prediction, soil property mapping, and precision management—its use in mountain forage systems remains limited [24,25]. This underutilization is striking given the urgent need for practical, data-driven insights to support the sustainability of mountain livestock farming. By applying RF models to long-term field data, researchers can move beyond descriptive analyses and generate actionable recommendations for improving both productivity and forage quality in these critical systems [26,27,28].
Among the diverse drivers of mountain meadow productivity, only three are directly shaped by farmers’ management: cutting date, fertilization, and stocking rate [12,13,16]. As the sole controllable variables, their combined consideration provides the practical basis for optimizing forage yield and quality [9,17,29].
This study represents a novel contribution by combining Random Forest modeling with management scenario simulations, an approach not previously applied to mountain meadow systems in the Central Pyrenees, and builds on previous work in which Random Forest models were developed to predict yield and quality parameters of mountain meadows [30]. Here, we extend this approach to explicitly evaluate how management practices can be optimized to enhance both productivity and forage quality. Specifically, we aim to provide evidence-based recommendations for improving the management of mown meadows in the Central Spanish Pyrenees. In particular, we focus on the separate effects of cutting date, fertilization, and stocking rate on forage yield and quality, providing concrete evidence-based insights for local management practices.

2. Materials and Methods

2.1. Data Collection

The study was conducted in the central Spanish Pyrenees (42°30′–42°50′ N, 0°10′–0°40′ E), a mountainous region characterized by diverse topography and varying altitudes. Fifteen meadows were selected across the Aragón, Gállego, Ara, Cinca, and Ésera valleys. Valleys were treated as blocks to ensure spatial independence and represent the range of management practices. Data were collected over five years (2019, 2020, and 2022–2024). Sampling was restricted to the 100 m2 central area of each meadow, consistent with the vegetation inventories, to avoid edge effects and ensure representativeness. Within this area, the experimental design followed a randomized block approach with six sampling enclosures (40 × 60 cm; 0.24 m2) randomly placed as replicates. These enclosures were cut once during the harvest window to obtain fresh biomass, ensuring comparability across meadows and years. In total, 554 samples were collected, each meadow-year combination treated as a replicate.
Management practices were recorded through structured farmer surveys, which included information on (i) livestock type, number, and grazing schedule (used to calculate stocking rate in livestock units, LU); (ii) fertilization type (organic, inorganic, or none), rate, and frequency, with manure and slurry samples analyzed for nutrient content; and (iii) mowing frequency outside experimental cuts.
Vegetation sampling was carried out between 20 May and 10 July, covering the period from flowering onset to the farmers’ harvest. In each enclosure, aboveground biomass was clipped at 5 cm height using a battery-powered hedge trimmer. The fresh material was immediately weighed in the field, then frozen and subsequently oven-dried at 65 °C for 48 h to determine the proportion of dry matter (DM).
For forage quality, subsamples were oven-dried at 105 °C for 4 h. Nitrogen concentration (N) was determined by the Kjeldahl method, crude protein (CP) was calculated as [31]:
C P = N × 6.25
Relative feed value (RFV) was derived from Acid Detergent Fiber (ADF) and Neutral Detergent Fiber (NDF) according to [32]:
R F V = ( 88.9 0.779 × A D F × 120 N D F 1.29
Protein yield was calculated as crude protein content (%) multiplied by DM yield.
Daily temperature (minimum, maximum, mean) and precipitation data were obtained from AEMET stations (9446, 9789A, 9784P, 9814X, 9838A, 9838B, 9843A) covering the period 2019–2024, from January 1 to harvest.
Flora inventories were conducted during peak biomass using the Braun–Blanquet method [33]. Cover-abundance of each species was visually estimated, and taxonomic identification was carried out to species level. Biodiversity was quantified using the Shannon index [34]:
H = i = 1 S p i × l n p i
where pi is the proportional cover of species i, and S is the total number of species.
Meadows were classified as intensive, semi-extensive, or extensive based on fertilization rate (kg N ha−1 year−1), grazing intensity (LU ha−1 year−1 or grazing days), and mowing frequency [2].
Table 1 provides the intrinsic attributes of the studied mountain meadows, including site location and soil characteristics, together with the management factors considered in the experiment (fertilization regime, stocking rate, and cutting date).

2.2. Simulation and Statistical Analysis

All analyses were conducted in Python 3.11 (Jupyter Lab) [35] using scikit-learn v1.3.0 [36] and Optuna v3.2.0 [37]. Random Forest models were developed to predict yield, crude protein content, and RFV, using climate, management, meadow type, and biodiversity as predictors. Model performance was evaluated using k-fold cross-validation (k = 10) on a randomly partitioned dataset (80% for training and 20% for testing). The model’s predictive capability and robustness were assessed using standard regression metrics, specifically the coefficient of determination (R2 and RMSE [38,39]. Hyperparameters were optimized with Optuna, and the final configurations are summarized in Table 2.
Simulation scenarios were designed to assess the sensitivity of forage yield, RFV, and protein yield to farmer-dependent management factors, while controlling for climatic variability. Scenario shifts were defined relative to the observed baseline for each meadow-year: cutting date (actual harvest date), fertilization rate (annual inputs), and stocking rate (LU ha−1 year−1). Three factors were modified: (i) cutting date shifts ranging from 5 to 30 days earlier or later, (ii) fertilization adjustments from −100% to +100%, and (iii) stocking rate changes from −100% to +100%. Each scenario was applied to the three Random Forest models, and responses were evaluated accordingly.
Given the non-parametric distribution of the data, we assessed differences among meadow types using the Kruskal–Wallis H test, followed by Dunn’s post hoc comparisons when applicable [40]. Within each meadow type, contrasts between baseline management and simulated scenarios (cutting date, fertilization rate, and stocking rate) were evaluated using the Mann–Whitney U test, which is appropriate for non-parametric pairwise comparisons [41]. When multiple scenarios were tested (e.g., several cutting date shifts), comparisons were performed sequentially, and p-values were adjusted using the Bonferroni correction to control for multiple testing [42]. Statistical significance was established at p < 0.05 after correction.

3. Results

The environmental and management characteristics of the three meadow types included in the study are summarized in Table 1. Intensive meadows were located at lower altitudes and received synthetic fertilization, while semi-extensive and extensive meadows were situated at higher elevations and managed with organic inputs or no fertilization. Extensive meadows showed the highest biodiversity, as indicated by the Shannon Index, and were also characterized by the latest cutting date, reflecting their lower management intensity and delayed phenological development. Differences in soil texture, nutrient inputs, and species composition reflect contrasting management regimes and ecological conditions.
Figure 1 shows the monthly mean temperature and precipitation patterns recorded in the three meadow types over the 2019–2024 period. Temperature trends were similar across management regimes, with peaks in July and August, while precipitation showed greater variability, particularly in spring and autumn. Intensive meadows exhibited slightly higher temperatures and lower rainfall than semi-extensive and extensive meadows, consistent with their lower elevation.

3.1. Cutting Date Delay

As shown in Figure 2a, harvest date adjustments had a clear effect on yield. Earlier cuts consistently reduced yield across all systems. Conversely, delayed cuts increased yield, an effect that was most pronounced in intensive meadows but produced only limited gains in semi-extensive systems. Figure 2b shows significant differences in yield among meadow types, indicating that management intensity influences responses to cutting date.
Figure 3a shows that forage quality (RFV) changed markedly with cutting date across all management systems. In intensive meadows, advancing the cut generally improved forage quality, while delaying it led to a decline. In semi-extensive meadows, earlier cuts also enhanced RFV, whereas even short delays produced reductions. In extensive meadows, advancing the cut did not consistently improve quality, and delays were associated with clear declines. Figure 3b shows significant differences in forage quality among meadow types, confirming that management intensity influences responses to cutting date.
Figure 4a indicates that protein yield showed a variable response to cutting date adjustments, with significant differences depending on the system. In intensive meadows, delaying the cut did not result in significant improvements, while in semi-extensive meadows only specific early or late adjustments produced noticeable changes. In extensive meadows, protein yield remained relatively stable, with no significant differences detected across the various cutting date adjustments. Figure 4b shows no significant differences between intensive and extensive meadows. Semi-extensive meadows differed significantly from both, highlighting a distinct response.
Table 3 provides a synthetic summary of the results illustrated in Figure 2a,b, Figure 3a,b and Figure 4a,b, presenting changes in yield (kg ha−1), relative feed value (RFV), and protein yield (kg ha−1) according to cutting date and meadow type.
Cutting date emerged as the most influential factor, establishing a clear trade-off between biomass yield and forage quality (RFV) across all three management systems. Advancing the harvest (−30 to −10 days) resulted in significant and consistent losses in both yield and protein yield (exceeding 650 kg ha−1 loss at −30 days), while simultaneously optimizing forage quality, particularly in extensive meadows (RFV increased by up to +13.95 units at −30 days).
Conversely, delaying the harvest consistently increased yield, an effect most notable under intensive management; for instance, postponing the cut by +15 days resulted in a yield increase of 524.83 kg ha−1, coupled with a simultaneous reduction of 6.2 RFV units. Protein yield, however, signaled the optimal management window: maximum accumulation was reached at harvest dates slightly post-reference, peaking at +5 days for extensive meadows (+13.21 kg ha−1) and +10 days for semi-extensive meadows (+10.27 kg ha−1). These protein peaks were associated with only slight-to-moderate RFV reductions (−1.42 and −5.07, respectively), thereby evidencing the management equilibrium point. Nevertheless, protein yield declined significantly in all systems when delayed beyond +15 days (Table 3).

3.2. Fertilization Change

Figure 5a shows that fertilizer adjustments did not significantly affect productivity in intensive or extensive meadows. Yields remained stable across treatments. In contrast, significant effects were observed in semi-extensive systems, where eliminating fertilization reduced productivity and higher fertilizer doses enhanced it. Figure 5b shows no significant differences between intensive and extensive meadows. Both differed significantly from semi-extensive meadows.
Figure 6a shows that forage quality (RFV) did not differ significantly within any meadow type across fertilizer doses. Values remained stable. In intensive meadows, reductions in fertilizer did not lead to consistent declines, while in semi-extensive meadows certain increases or reductions in dose were associated with slight variations. In extensive meadows, RFV values were largely unaffected by changes in fertilization. Figure 6b shows significant differences between semi-extensive and intensive meadows. No differences were detected involving extensive meadows.
Figure 7a shows that protein yield was unaffected by changes in fertilization rate across all meadow types. In intensive meadows, adjustments in fertilization did not lead to significant changes, while in semi-extensive meadows only slight variations were observed depending on the treatment. In extensive meadows, protein yield was also largely unaffected by fertilization adjustments. Figure 7b shows no significant differences between intensive and extensive meadows. Both differed significantly from semi-extensive meadows.
Table 4 summarizes the effects of fertilization rate on yield, relative feed value (RFV), and protein yield across the three meadow types. In extensive meadows, changes in fertilization rate did not produce significant differences in any of the evaluated parameters, with values remaining relatively stable across treatments. In contrast, semi-extensive meadows showed a clear response: eliminating fertilization significantly reduced yield and protein yield, while higher fertilizer doses led to significant increases. Intensive meadows also exhibited sensitivity to fertilization, with reductions under fertilizer withdrawal and progressive improvements as the dose increased. Overall, the results indicate that semi-extensive and intensive systems are more responsive to fertilization adjustments, whereas extensive meadows remain largely unaffected.

3.3. Stocking Rate Change

Figure 8a shows that intensive meadows had relatively stable yields across stocking rates. In semi-extensive meadows, changes in stocking rate produced more evident shifts, while in extensive meadows yields also remained comparatively stable. Figure 8b shows no significant differences between intensive and extensive meadows. Both differed significantly from semi-extensive meadows.
Figure 9a shows that in intensive meadows RFV improved slightly as stocking rate increased. In extensive meadows, RFV values remained relatively stable across treatments, with no clear response to changes in stocking rate. According to the Kruskal–Wallis test, significant differences were detected between semi-extensive and intensive meadows, whereas no significant differences were found between these two systems and the extensive meadows, as shown in Figure 9b.
Figure 10a shows that in extensive meadows, reducing stocking rate decreased protein yield, while increases did not exceed baseline levels. In intensive grasslands, no significant changes were detected when either increasing or decreasing the current stocking rate. In semi-extensive meadows, some variation was observed under different grazing pressures, but these differences were not statistically significant relative to the baseline. Overall, reductions in grazing pressure consistently decreased productivity, whereas increases did not enhance protein yield beyond current levels. Figure 10b shows significant differences between semi-extensive and intensive meadows, but none involving extensive meadows.
Table 5 shows the effects of stocking rate on forage quality (RFV) and protein yield across the three meadow types. In extensive and semi-extensive meadows, increasing the stocking rate was associated with progressive declines in RFV, while protein yield showed only modest improvements. By contrast, intensive meadows exhibited the opposite trend, with RFV increasing steadily as stocking rate rose, accompanied by clear gains in protein yield. These results indicate that stocking rate exerts contrasting effects depending on management intensity: while extensive and semi-extensive systems experience a trade-off between quality and protein yield, in intensive systems increasing stocking rate improved RFV but reduced protein yield.

4. Discussion

We used Random Forest because mountain meadow systems involve multiple interacting factors that rarely respond linearly [43]. Traditional linear models often fail to capture such dynamics, whereas Random Forest, by aggregating multiple decision trees, can identify non-linear interactions and quantify the relative importance of predictors without requiring strict parametric assumptions [44]. This makes it particularly suitable for heterogeneous landscapes such as the Pyrenees, where management practices and environmental drivers are strongly intertwined.
As widely reported in previous research, forage yield and quality often display an inverse relationship, with higher production generally associated with lower nutritive value [8,45,46]. This trade-off was also evident in our study, confirming that management decisions must balance productivity with forage quality.
Regarding cutting date, the three meadow types exhibited distinct responses, except for protein yield, where intensive and extensive meadows did not differ significantly. This similarity may be explained by the higher proportion of legumes in intensive systems, which compensate for their lower floristic diversity and sustain protein yield [47,48]. For yield, a general increase was observed with delayed cutting, except in semi-extensive meadows, where production remained stable across a wide window. The absence of significant differences between delaying the cut by 30 days and advancing it by 15 days suggests a 45-day period of yield stability. This resilience may be linked to the high levels of organic fertilization in these systems, which could slow maturation and sustain production [49,50]. In all meadow types, however, advancing the cut by more than 15 days resulted in significant yield reductions. Forage quality (RFV) followed the opposite trend, reaching maximum values with early cuts and declining progressively thereafter, confirming that earlier cutting improves nutritive value but at the expense of yield [45].
Protein yield, which integrates both biomass and crude protein concentration, provided a more balanced perspective. In intensive meadows, protein yield remained stable across a wide range of cutting dates, likely due to the phenological pattern of legumes, which maintain protein levels from flowering to seed set [51]. Extensive meadows showed even greater stability, probably related to their high species diversity, where asynchronous phenologies buffer declines in some species with increases in others [2]. In contrast, semi-extensive meadows were particularly sensitive: protein yield peaked between the current cutting date and a 10-day advancement, while any delay led to significant reductions. This highlights the vulnerability of semi-extensive systems to even moderate delays in harvest.
Fertilization had a smaller impact on forage performance than cutting date. Differences across meadow types were less pronounced: intensive and extensive meadows did not differ significantly in either yield or protein yield, while semi-extensive meadows consistently displayed higher values. This pattern may be related to their location in more humid areas and on more fertile soils, which favor higher productivity. As observed in other studies, the most productive systems tended to show lower forage quality, although differences with extensive meadows were not significant [8,30].
Yield response to fertilization was negligible in intensive meadows, suggesting that production is more constrained by climatic conditions than by nutrient availability. A similar lack of response was observed in extensive meadows, likely due to their complex floristic composition, which confers resilience and reduces dependence on fertilization. In contrast, semi-extensive meadows exhibited significant yield reductions when fertilization was decreased by at least 50%. This suggests that while a minor reduction (e.g., −25%) could maintain comparable yields (−28.57 kg ha−1, not significant), a 50% reduction would lead to significant losses (−215.5 kg ha−1). For forage quality (RFV), no significant differences were detected in any grassland type, indicating that quality is more strongly linked to cutting date than to fertilization [52,53]. Similarly, protein yield did not vary significantly with fertilization, suggesting that yield gains and quality declines offset each other, resulting in stable protein yield across treatments.
Stocking rate was the management variable with the least overall effect. As with fertilization, semi-extensive meadows showed significantly higher yield and protein yield than intensive and extensive systems, between which no significant differences were observed. In contrast, forage quality was significantly lower in semi-extensive meadows compared to intensive ones but did not differ from extensive systems. This pattern is consistent with the role of stocking rate as an indirect form of fertilization, since higher grazing pressure increases nutrient inputs through animal excreta [7,17,54].
Within each meadow type, no significant differences were detected in yield or forage quality when stocking rate was modified, suggesting that production and quality can be maintained regardless of grazing intensity. However, differences emerged in protein yield. In both extensive and semi-extensive meadows, reducing stocking rate led to significant declines. In extensive systems, this result is expected, as grazing represents the main nutrient input, and its reduction directly limits protein production [29]. The absence of a similar effect on total yield may reflect compensatory mechanisms in biomass accumulation. In semi-extensive meadows, where organic fertilization is already high, the decline in protein yield is less likely to be nutrient-driven and may instead be related to the stimulatory effect of grazing on plant regrowth [54]. Intensive meadows did not show this response, possibly due to their lower floristic diversity, which reduces the capacity for compensatory growth under different grazing pressures [55].
While these simulations offer valuable insights, the limitations of the modeling approach must be considered.
Despite the robustness and predictive accuracy of the Random Forest model used in this study, several limitations must be acknowledged. As a non-mechanistic, data-driven approach, Random Forest does not incorporate physiological or ecological processes explicitly, which restricts its interpretability in terms of causal mechanisms [56]. Moreover, the model’s structure does not account for potential multicollinearity among input variables, meaning that highly correlated predictors may obscure individual effects or inflate variable importance measures [57]. While Random Forest is well suited for capturing complex, nonlinear relationships, its reliance on empirical patterns limits extrapolation beyond the observed data range and may reduce reliability under novel management scenarios or climatic conditions [58]. Therefore, predictions should be interpreted with caution and complemented by mechanistic insights or field validation when informing management decisions.
Taken together, these findings highlight that semi-extensive meadows are the most sensitive system, consistently showing distinct responses to management changes. While intensive and extensive meadows appear more resilient to adjustments in fertilization and grazing, semi-extensive systems require more precise and adaptive management strategies.
A practical implication of these findings is that advancing the cutting date is generally advisable across all meadow types, although the optimal margin differs: approximately 10 days in semi-extensive meadows, 15 days in intensive systems, and up to 20 days in extensive ones. Delays, by contrast, are consistently penalized with reductions in forage quality and protein yield. These differences can be explained by the baseline cutting schedules and the ecological characteristics of each system. Extensive meadows, traditionally harvested later in the season, retain a wider margin for improvement when cuts are advanced. Intensive meadows, despite being cut earlier, also benefit from earlier harvests, likely due to the predominance of grass–legume mixtures in which grasses senesce rapidly under these conditions. Semi-extensive meadows, however, show the narrowest adjustment window, with only a 10-day advancement improving outcomes. This suggests that their current cutting dates are already close to the agronomic optimum, leaving less room for improvement. In this sense, semi-extensive systems represent a central situation, while intensive meadows offer some scope for optimization and extensive meadows the greatest potential for gains through earlier cutting.

5. Conclusions

Advancing harvest improves forage quality (RFV) but reduces yield, while delaying it increases biomass and protein yield at the expense of nutritive value. Protein yield, which integrates both dimensions, proved especially useful for evaluating trade-offs: intensive and extensive meadows maintained stable protein levels across a wide range of cutting dates, whereas semi-extensive meadows were highly sensitive to delays, with even moderate postponements leading to significant declines.
Fertilization had a smaller impact than cutting date. Intensive and extensive meadows showed limited responses to dose changes, whereas semi-extensive meadows were more dependent on nutrient inputs. In contrast, semi-extensive meadows responded more strongly: reducing fertilization by 50% led to significant yield losses, suggesting that these systems are more dependent on nutrient inputs. However, the results also indicate that halving fertilizer doses may still maintain acceptable yields, offering a potential strategy for cost reduction without compromising productivity.
Stocking rate was the least influential factor overall. Yield and forage quality remained stable across grazing intensities, but protein yield declined when stocking rate was reduced in semi-extensive and extensive meadows. This reflects grazing as both a nutrient input and a stimulant for regrowth. Intensive meadows showed no significant response, possibly due to their lower floristic diversity and reduced capacity for compensatory growth.
In summary, management strategies in mountain livestock systems should prioritize cutting date adjustments to balance yield and quality. Fertilization and stocking rate play more context-dependent roles, with semi-extensive meadows emerging as the most productive but also the most sensitive to management changes. Random Forest modeling was effective in identifying these trade-offs, offering a robust framework to support evidence-based decision-making in complex agroecosystems. Nevertheless, future research should validate these model-based insights through controlled field experiments explicitly manipulating cutting date, fertilization, and stocking rate, to ensure that simulated responses are consistent with actual agronomic outcomes.

Author Contributions

Conceptualization, A.J., A.U. and R.R.; methodology, A.J. and R.R.; formal analysis, A.J., A.U. and R.R.; investigation, A.J. and R.R.; resources R.R.; writing—original draft preparation A.J., A.U. and R.R.; writing—review and editing, A.J., A.U. and R.R.; project administration, R.R.; funding acquisition, R.R. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Gobierno de Aragón (Project number GOP2024000400), within the Plan Estratégico Nacional de la PAC 2023–2027, through the Departamento de Desarrollo Rural y Sostenibilidad del Gobierno de Aragón and co-financed by the European Agricultural Fund for Rural Development (EAFRD), European Union).

Data Availability Statement

Dataset available on request from the authors. The raw data supporting the conclusions of this article will be made available by the authors on request.

Acknowledgments

The authors wish to express their gratitude to Jesús Betrán and Antonio López, responsible for the Laboratorio Agroambiental of the Gobierno de Aragón, for the analytical determinations, as well as to the farmers who have lent their meadows for the trials. To Victor Antín and Luis Buetas, technicians from the Agropecuaria del Sobrarbe Cooperative, and to Félix Salanova, an agronomy student, for his participation in the sampling work in the meadows.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Reiné, R.; Barrantes, O.; Chocarro, C.; Juárez-Escario, A.; Broca, A.; Maestro, M.; Ferrer, C. Pyrenean Meadows in Natura 2000 Network: Grass Production and Plant Biodiversity Conservation. Span. J. Agric. Res. 2014, 12, 61–77. [Google Scholar] [CrossRef]
  2. Chocarro, C.; Reiné, R.J. El cultivo de los prados en el Pirineo. In Pastos del Pirineo; Consejo Superior de Investigaciones Científicas (CSIC): Chamartín, Madrid, 2008; pp. 141–158. ISBN 978-84-00-08614-5. [Google Scholar]
  3. Jones, J.A.; Hutchinson, R.; Moldenke, A.; Pfeiffer, V.; Helderop, E.; Thomas, E.; Griffin, J.; Reinholtz, A. Landscape Patterns and Diversity of Meadow Plants and Flower-Visitors in a Mountain Landscape. Landsc. Ecol. 2019, 34, 997–1014. [Google Scholar] [CrossRef]
  4. Michaud, A.; Plantureux, S.; Baumont, R.; Delaby, L. Grasslands, a Source of Richness and Support for Innovation for More Sustainable and Acceptable Ruminant Livestock Farming. INRA Prod. Anim. 2020, 33, 153–171. [Google Scholar] [CrossRef]
  5. Ascaso, J.; Reiné, R.; Barrantes, O. Evolution of Hay Meadows between 1956, 1986, and 2016 and Its Relation to the Characteristics and Location of the Parcels in the Valley of the River Esera (Pyrenees, Spain). Agronomy 2020, 10, 329. [Google Scholar] [CrossRef]
  6. Andales, A.A.; Derner, J.D.; Ahuja, L.R.; Hart, R.H. Strategic and Tactical Prediction of Forage Production in Northern Mixed-Grass Prairie. Rangel. Ecol. Manag. 2006, 59, 576–584. [Google Scholar] [CrossRef]
  7. Pavlů, V.; Hejcman, M.; Pavlů, L.; Gaisler, J.; Nežerková, P. Effect of Continuous Grazing on Forage Quality, Quantity and Animal Performance. Agric. Ecosyst. Environ. 2006, 113, 349–355. [Google Scholar] [CrossRef]
  8. Ascaso, J.; Reiné, R. Temporal Variations in the Production—Quality and Optimal Cutting Date of Hay Meadows in the Central Pyrenees (Spain). Agronomy 2022, 12, 918. [Google Scholar] [CrossRef]
  9. Gabrovska-Evstatieva, K.; Evstatiev, B. Overview of Methods and Technologies Used for Smart Management of Pastures and Meadows. AIP Conf. Proc. 2022, 2570, 040011. [Google Scholar] [CrossRef]
  10. Álvarez, J.; Afif, E.; Díaz, T.E.; García, L.; Oliveira, J.A. Effects of Management Practices on Soil Properties and Plant Nutrition in Hay Meadows in Picos de Europa. Environments 2021, 8, 38. [Google Scholar] [CrossRef]
  11. Bagcilar, S.H.; Reed, C.C.; Poulson, S.R.; Verburg, P.S.J.; Sullivan, B.W. Does Montane Meadow Restoration Influence the Mineral Association and Stability of Soil Carbon? Biogeochemistry 2024, 167, 1089–1105. [Google Scholar] [CrossRef]
  12. Boob, M.; Truckses, B.; Seither, M.; Elsäßer, M.; Thumm, U.; Lewandowski, I. Management Effects on Botanical Composition of Species-Rich Meadows within the Natura 2000 Network. Biodivers. Conserv. 2019, 28, 729–750. [Google Scholar] [CrossRef]
  13. Duffkova, R.; Kvívtek, T. Effect of Cutting Regime on Soil Physical Properties of Wet Thistle Meadows. Soil Water Res. 2009, 4, 104–115. [Google Scholar] [CrossRef]
  14. Bathgate, A.; Revell, C.; Kingwell, R. Identifying the Value of Pasture Improvement Using Wholefarm Modelling. Agric. Syst. 2009, 102, 48–57. [Google Scholar] [CrossRef]
  15. Ben Touhami, H.; Lardy, R.; Barra, V.; Bellocchi, G. Screening Parameters in the Pasture Simulation Model Using the Morris Method. Ecol. Model. 2013, 266, 42–57. [Google Scholar] [CrossRef]
  16. Kasperczyk, M. Mountain meadow yielding depending on meteorological conditions. Acta Agroph. 2004, 3, 263–269. [Google Scholar]
  17. Fu, L.; Bo, T.; Du, G.; Zheng, X. Modeling the Responses of Grassland Vegetation Coverage to Grazing Disturbance in an Alpine Meadow. Ecol. Model. 2012, 247, 221–232. [Google Scholar] [CrossRef]
  18. Fer, I.; Kelly, R.; Moorcroft, P.R.; Richardson, A.D.; Cowdery, E.M.; Dietze, M.C. Linking Big Models to Big Data: Efficient Ecosystem Model Calibration through Bayesian Model Emulation. Biogeosciences 2018, 15, 5801–5830. [Google Scholar] [CrossRef]
  19. Reyana, A.; Kautish, S.; Karthik, P.M.S.; Al-Baltah, I.A.; Jasser, M.B.; Mohamed, A.W. Accelerating Crop Yield: Multisensor Data Fusion and Machine Learning for Agriculture Text Classification. IEEE Access 2023, 11, 20795–20805. [Google Scholar] [CrossRef]
  20. Bala, A. Machine Learning Approaches for Crop Yield Prediction-Review. Int. J. Comput. Eng. Technol. 2020, 11, 23–27. [Google Scholar]
  21. Bogireddy, S.R.; Murari, H. Enhancing Crop Yield Prediction through Random Forest Classifier: A Comprehensive Approach. In Proceedings of the 2024 5th International Conference on Smart Electronics and Communication (ICOSEC), Trichy, India, 18–20 September 2024; pp. 1663–1668. [Google Scholar]
  22. Sahu, S.; Chawla, M.; Khare, N. An Efficient Analysis of Crop Yield Prediction Using Hadoop Framework Based on Random Forest Approach. In Proceedings of the 2017 International Conference on Computing, Communication and Automation (ICCCA), Greater Noida, India, 5–6 May 2017; pp. 53–57. [Google Scholar]
  23. Elavarasan, D.; Vincent, P.M.D.R. A Reinforced Random Forest Model for Enhanced Crop Yield Prediction by Integrating Agrarian Parameters. J. Ambient Intell. Hum. Comput. 2021, 12, 10009–10022. [Google Scholar] [CrossRef]
  24. Vogeler, I.; Kluß, C.; Peters, T.; Taube, F. How Much Complexity Is Required for Modelling Grassland Production at Regional Scales? Land 2023, 12, 327. [Google Scholar] [CrossRef]
  25. Jarne, A.; Usón, A.; Reiné, R. Predictive Production Models for Mountain Meadows: A Review. Agronomy 2024, 14, 830. [Google Scholar] [CrossRef]
  26. Ash, A.; Hunt, L.; McDonald, C.; Scanlan, J.; Bell, L.; Cowley, R.; Watson, I.; McIvor, J.; MacLeod, N. Boosting the Productivity and Profitability of Northern Australian Beef Enterprises: Exploring Innovation Options Using Simulation Modelling and Systems Analysis. Agric. Syst. 2015, 139, 50–65. [Google Scholar] [CrossRef]
  27. Barrett, P.D.; Laidlaw, A.S.; Mayne, C.S. Development of a European Herbage Growth Model (the EU Grazemore Project). In Land Use Systems in Grassland Dominated Regions. Proceedings of the 20th General Meeting of the European Grassland Federation, Luzern, Switzerland, 21–24 June 2004; Grassland Science in Europe; vdf Hochschulverlag AG an der ETH Zurich: Zurich, Switzerland, 2004; Volume 9, Available online: https://www.cabidigitallibrary.org/journal/ab (accessed on 23 November 2025).
  28. Ben Touhami, H.; Bellocchi, G. Bayesian Calibration of the Pasture Simulation Model (PaSim) to Simulate European Grasslands under Water Stress. Ecol. Inform. 2015, 30, 356–364. [Google Scholar] [CrossRef]
  29. Janišová, M.; Bojko, I.; Ivașcu, C.M.; Iuga, A.; Biro, A.-S.; Magnes, M. Grazing Hay Meadows: History, Distribution, and Ecological Context. Appl. Veg. Sci. 2023, 26, e12723. [Google Scholar] [CrossRef]
  30. Jarne, A.; Usón, A.; Reiné, R. Assessing the Impact of Environmental and Management Variables on Mountain Meadow Yield and Feed Quality Using a Random Forest Model. Plants 2025, 14, 2150. [Google Scholar] [CrossRef] [PubMed]
  31. Van Soest, P.J.; Robertson, J.B.; Lewis, B.A. Methods for Dietary Fiber, Neutral Detergent Fiber, and Nonstarch Polysaccharides in Relation to Animal Nutrition. J. Dairy Sci. 1991, 74, 3583–3597. [Google Scholar] [CrossRef]
  32. Linn, J.G.; Martin, N.P. Forage Quality Tests and Interpretation (Revised 1989); University of Minnesota: Minneapolis, MN, USA, 1989. [Google Scholar]
  33. Ivanova, N. Global Overview of the Application of the Braun-Blanquet Approach in Research. Forests 2024, 15, 937. [Google Scholar] [CrossRef]
  34. Daly, A.J.; Baetens, J.M.; Baets, B.D.; Daly, A.J.; Baetens, J.M.; Baets, B.D. Ecological Diversity: Measuring the Unmeasurable. Mathematics 2018, 6, 119. [Google Scholar] [CrossRef]
  35. JupyterLab Documentation—JupyterLab v.4.5.0a0 Documentation. Available online: https://jupyterlab.readthedocs.io/en/latest/ (accessed on 25 May 2025).
  36. Scikit-Learn: Machine Learning in Python—Scikit-Learn v.1.6.1 Documentation. Available online: https://scikit-learn.org/stable/ (accessed on 25 May 2025).
  37. Akiba, T.; Sano, S.; Yanase, T.; Ohta, T.; Koyama, M. Optuna: A Next-Generation Hyperparameter Optimization Framework. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, Anchorage, AK, USA, 4–8 August 2019; Association for Computing Machinery: New York, NY, USA, 2019; pp. 2623–2631. [Google Scholar]
  38. Botero-Valencia, J.; García-Pineda, V.; Valencia-Arias, A.; Valencia, J.; Reyes-Vera, E.; Mejia-Herrera, M.; Hernández-García, R. Machine Learning in Sustainable Agriculture: Systematic Review and Research Perspectives. Agriculture 2025, 15, 377. [Google Scholar] [CrossRef]
  39. Pugh, N.A.; Young, A.; Ojha, M.; Emendack, Y.; Sanchez, J.; Xin, Z.; Puppala, N. Yield Prediction in a Peanut Breeding Program Using Remote Sensing Data and Machine Learning Algorithms. Front. Plant Sci. 2024, 15, 1339864. [Google Scholar] [CrossRef]
  40. Sheskin, D.J. Handbook of Parametric and Nonparametric Statistical Procedures, 3rd ed.; Chapman and Hall/CRC: New York, NY, USA, 2003; ISBN 978-0-429-18616-5. [Google Scholar]
  41. Baltosser, W.H. Biostatistical Analysis, 3rd ed. Ecology 1996, 77, 2266–2268. [Google Scholar] [CrossRef]
  42. Sokal, R.R.; Rohlf, F.J. Biometry: The Principles and Practice of Statistics in Biological Research; W.H. Freeman and Co.: New York, NY, USA, 1995; ISBN 978-0-7167-2411-7. [Google Scholar]
  43. Tan, J.; Jiang, L.; Wei, Y.; Yao, N.; Zhao, G.; Yu, Q.; Tan, J.; Jiang, L.; Wei, Y.; Yao, N.; et al. Optimized Random Forest Framework for Integrating Cultivar, Environmental, and Phenological Interactions in Crop Yield Prediction. Agronomy 2025, 15, 2273. [Google Scholar] [CrossRef]
  44. Cosenza, D.N.; Korhonen, L.; Maltamo, M.; Packalen, P.; Strunk, J.L.; Næsset, E.; Gobakken, T.; Soares, P.; Tomé, M. Comparison of Linear Regression, k-Nearest Neighbour and Random Forest Methods in Airborne Laser-Scanning-Based Prediction of Growing Stock. Forestry 2021, 94, 311–323. [Google Scholar] [CrossRef]
  45. Reiné, R.; Ascaso, J.; Barrantes, O. Nutritional Quality of Plant Species in Pyrenean Hay Meadows of High Diversity. Agronomy 2020, 10, 883. [Google Scholar] [CrossRef]
  46. Schellberg, J.; Möseler, B.M.; Kühbauch, W.; Rademacher, I. Long-Term Effects of Fertilizer on Soil Nutrient Concentration, Yield, Forage Quality and Floristic Composition of a Hay Meadow in the Eifel Mountains, Germany. Grass Forage Sci. 1999, 54, 195–207. [Google Scholar] [CrossRef]
  47. Isbell, F.; Craven, D.; Connolly, J.; Loreau, M.; Schmid, B.; Beierkuhnlein, C.; Bezemer, T.M.; Bonin, C.; Bruelheide, H.; De Luca, E.; et al. Biodiversity Increases the Resistance of Ecosystem Productivity to Climate Extremes. Nature 2015, 526, 574–577. [Google Scholar] [CrossRef] [PubMed]
  48. Van Oijen, M.; Bellocchi, G.; Höglind, M. Effects of Climate Change on Grassland Biodiversity and Productivity: The Need for a Diversity of Models. Agronomy 2018, 8, 14. [Google Scholar] [CrossRef]
  49. Dolezal, J.; Lanta, V.; Mudrak, O.; Leps, J. Seasonality Promotes Grassland Diversity: Interactions with Mowing, Fertilization and Removal of Dominant Species. J. Ecol. 2019, 107, 203–215. [Google Scholar] [CrossRef]
  50. Radkowski, A.; Radkowska, I.; Godyn, D. Effects of Fertilization with an Amino Acid Preparation on the Dry Matter Yield and Chemical Composition of Meadow Plants. J. Elem. 2018, 23, 947–958. [Google Scholar] [CrossRef]
  51. Rodríguez, A.; Canals, R.M.; Sebastià, M.-T. Positive Effects of Legumes on Soil Organic Carbon Stocks Disappear at High Legume Proportions Across Natural Grasslands in the Pyrenees. Ecosystems 2022, 25, 960–975. [Google Scholar] [CrossRef]
  52. Comakli, B.; Mentese, O.; Koc, A. Nitrogen Fertilizing and Pre-Anthesis Cutting Stage Improve Dry Matter Production, Protein Content and Botanical Composition in Meadows. Acta Agric. Scand. Sect. B—Soil Plant Sci. 2005, 55, 125–130. [Google Scholar] [CrossRef]
  53. Graux, A.-I.; Resmond, R.; Casellas, E.; Delaby, L.; Faverdin, P.; Le Bas, C.; Ripoche, D.; Ruget, F.; Thérond, O.; Vertès, F.; et al. High-Resolution Assessment of French Grassland Dry Matter and Nitrogen Yields. Eur. J. Agron. 2020, 112, 125952. [Google Scholar] [CrossRef]
  54. Liu, H.; Gong, Y.; Li, Y.; Liu, S.; Yu, Z.; Zhao, R. Does Grazing Exclusion Enhance Grassland Restoration? Evidence from Northern China. Ecol. Indic. 2023, 149, 110166. [Google Scholar] [CrossRef]
  55. Wezel, A.; Stöckli, S.; Tasser, E.; Nitsch, H.; Vincent, A. Good Pastures, Good Meadows: Mountain Farmers’ Assessment, Perceptions on Ecosystem Services, and Proposals for Biodiversity Management. Sustainability 2021, 13, 5609. [Google Scholar] [CrossRef]
  56. Simon, S.M.; Glaum, P.; Valdovinos, F.S. Interpreting Random Forest Analysis of Ecological Models to Move from Prediction to Explanation. Sci. Rep. 2023, 13, 3881. [Google Scholar] [CrossRef]
  57. Evans, J.S.; Murphy, M.A.; Holden, Z.A.; Cushman, S.A. Modeling Species Distribution and Change Using Random Forest. In Predictive Species and Habitat Modeling in Landscape Ecology: Concepts and Applications; Drew, C.A., Wiersma, Y.F., Huettmann, F., Eds.; Springer: New York, NY, USA, 2011; pp. 139–159. ISBN 978-1-4419-7390-0. [Google Scholar]
  58. Chavent, M.; Lacaille, J.; Mourer, A.; Olteanu, M. Handling Correlations in Random Forests: Which Impacts on Variable Importance and Model Interpretability? In Proceedings of the ESANN 2021—European Symposium on Artificial Neural Networks, Computational Intelligence and Machine Learning, Virtual, 6–8 October 2021; pp. 569–574. [Google Scholar]
Figure 1. Monthly mean temperature (°C, lines) and precipitation (mm, bars) averaged over the 2019–2024 period for extensive, semi-extensive, and intensive meadows in the Central Pyrenees.
Figure 1. Monthly mean temperature (°C, lines) and precipitation (mm, bars) averaged over the 2019–2024 period for extensive, semi-extensive, and intensive meadows in the Central Pyrenees.
Agriculture 15 02440 g001
Figure 2. (a) Boxplots showing mean yield under specific changes in cutting date (advancing or delaying the actual date by up to 30 days). Colors represent meadow types. Significant differences in yield among cutting dates within the same meadow type were evaluated using the Mann–Whitney U test (p < 0.05). (b) Boxplots illustrating the distribution of simulated yields by meadow type under different cutting date adjustments. Each point represents a simulated yield for a specific change relative to the actual cutting date. The color gradient indicates the magnitude and direction of the cutting date change. The central line within each box represents the median yield, the box bounds indicate the interquartile range (IQR), and the whiskers extend to 1.5 times the IQR. Outliers are shown as individual points beyond the whiskers. Lowercase letters (a, b, c, etc.) above the boxplots denote statistically significant differences in median yield between meadow types, as determined by the Kruskal–Wallis H test (p < 0.05), followed by Dunn’s post hoc test for pairwise comparisons.
Figure 2. (a) Boxplots showing mean yield under specific changes in cutting date (advancing or delaying the actual date by up to 30 days). Colors represent meadow types. Significant differences in yield among cutting dates within the same meadow type were evaluated using the Mann–Whitney U test (p < 0.05). (b) Boxplots illustrating the distribution of simulated yields by meadow type under different cutting date adjustments. Each point represents a simulated yield for a specific change relative to the actual cutting date. The color gradient indicates the magnitude and direction of the cutting date change. The central line within each box represents the median yield, the box bounds indicate the interquartile range (IQR), and the whiskers extend to 1.5 times the IQR. Outliers are shown as individual points beyond the whiskers. Lowercase letters (a, b, c, etc.) above the boxplots denote statistically significant differences in median yield between meadow types, as determined by the Kruskal–Wallis H test (p < 0.05), followed by Dunn’s post hoc test for pairwise comparisons.
Agriculture 15 02440 g002aAgriculture 15 02440 g002b
Figure 3. (a) Boxplots showing mean RFV under specific changes in cutting date (advancing or delaying the actual date by up to 30 days). Colors represent meadow types. Significant differences in RFV among cutting dates within the same meadow type were evaluated using the Mann–Whitney U test (p < 0.05). (b) Boxplots illustrating the distribution of simulated RFV by meadow type under different cutting date adjustments. Each point represents a simulated RFV for a specific change relative to the actual cutting date. The color gradient indicates the magnitude and direction of the cutting date change. The central line within each box represents the median RFV, the box bounds indicate the interquartile range (IQR), and the whiskers extend to 1.5 times the IQR. Outliers are shown as individual points beyond the whiskers. Lowercase letters (a, b, c, etc.) above the boxplots indicate significant differences in median RFV between meadow types (Kruskal–Wallis H test, p < 0.05), followed by Dunn’s post hoc test for pairwise comparisons.
Figure 3. (a) Boxplots showing mean RFV under specific changes in cutting date (advancing or delaying the actual date by up to 30 days). Colors represent meadow types. Significant differences in RFV among cutting dates within the same meadow type were evaluated using the Mann–Whitney U test (p < 0.05). (b) Boxplots illustrating the distribution of simulated RFV by meadow type under different cutting date adjustments. Each point represents a simulated RFV for a specific change relative to the actual cutting date. The color gradient indicates the magnitude and direction of the cutting date change. The central line within each box represents the median RFV, the box bounds indicate the interquartile range (IQR), and the whiskers extend to 1.5 times the IQR. Outliers are shown as individual points beyond the whiskers. Lowercase letters (a, b, c, etc.) above the boxplots indicate significant differences in median RFV between meadow types (Kruskal–Wallis H test, p < 0.05), followed by Dunn’s post hoc test for pairwise comparisons.
Agriculture 15 02440 g003
Figure 4. (a) Boxplots showing mean protein yield under specific changes in cutting date (advancing or delaying the actual date by up to 30 days). Colors represent meadow types. Significant differences in protein yield among cutting dates within the same meadow type were evaluated using the Mann–Whitney U test (p < 0.05). (b) Boxplots illustrating the distribution of simulated protein yields by meadow type under different cutting date adjustments. Each point represents a simulated protein yield for a specific change relative to the actual cutting date. The color gradient indicates the magnitude and direction of the cutting date change. The central line within each box represents the median protein yield, the box bounds indicate the interquartile range (IQR), and the whiskers extend to 1.5 times the IQR. Outliers are shown as individual points beyond the whiskers. Lowercase letters (a, b, c, etc.) above the boxplots indicate significant differences in median protein yield between meadow types (Kruskal–Wallis H test, p < 0.05), followed by Dunn’s post hoc test for pairwise comparisons.
Figure 4. (a) Boxplots showing mean protein yield under specific changes in cutting date (advancing or delaying the actual date by up to 30 days). Colors represent meadow types. Significant differences in protein yield among cutting dates within the same meadow type were evaluated using the Mann–Whitney U test (p < 0.05). (b) Boxplots illustrating the distribution of simulated protein yields by meadow type under different cutting date adjustments. Each point represents a simulated protein yield for a specific change relative to the actual cutting date. The color gradient indicates the magnitude and direction of the cutting date change. The central line within each box represents the median protein yield, the box bounds indicate the interquartile range (IQR), and the whiskers extend to 1.5 times the IQR. Outliers are shown as individual points beyond the whiskers. Lowercase letters (a, b, c, etc.) above the boxplots indicate significant differences in median protein yield between meadow types (Kruskal–Wallis H test, p < 0.05), followed by Dunn’s post hoc test for pairwise comparisons.
Agriculture 15 02440 g004
Figure 5. (a) Boxplots showing mean yield under specific changes in fertilization rate. Colors represent meadow types. Significant differences in yield among fertilization rates within the same meadow type were evaluated using the Mann–Whitney U test (p < 0.05). (b) Boxplots illustrating the distribution of simulated yields by meadow type under different fertilization rate adjustments. Each point represents a simulated yield for a specific change relative to the actual fertilization rate. The color gradient indicates the magnitude and direction of the fertilization rate. The central line within each box represents the median yield, the box bounds indicate the interquartile range (IQR), and the whiskers extend to 1.5 times the IQR. Outliers are shown as individual points beyond the whiskers. Lowercase letters (a, b, c) above the boxplots indicate significant differences in median yield between meadow types (Kruskal–Wallis H test, p < 0.05), followed by Dunn’s post hoc test for pairwise comparisons.
Figure 5. (a) Boxplots showing mean yield under specific changes in fertilization rate. Colors represent meadow types. Significant differences in yield among fertilization rates within the same meadow type were evaluated using the Mann–Whitney U test (p < 0.05). (b) Boxplots illustrating the distribution of simulated yields by meadow type under different fertilization rate adjustments. Each point represents a simulated yield for a specific change relative to the actual fertilization rate. The color gradient indicates the magnitude and direction of the fertilization rate. The central line within each box represents the median yield, the box bounds indicate the interquartile range (IQR), and the whiskers extend to 1.5 times the IQR. Outliers are shown as individual points beyond the whiskers. Lowercase letters (a, b, c) above the boxplots indicate significant differences in median yield between meadow types (Kruskal–Wallis H test, p < 0.05), followed by Dunn’s post hoc test for pairwise comparisons.
Agriculture 15 02440 g005
Figure 6. (a) Boxplots showing mean RFV under specific changes in fertilization rate. Colors represent meadow types. Significant differences in RFV among fertilization rates within the same meadow type were evaluated using the Mann–Whitney U test (p < 0.05). (b) Boxplots illustrating the distribution of simulated RFV by meadow type under different fertilization rate adjustments. Each point represents a simulated RFV for a specific change relative to the actual fertilization rate. The color gradient indicates the magnitude and direction of the fertilization rate change. The central line within each box represents the median RFV, the box bounds indicate the interquartile range (IQR), and the whiskers extend to 1.5 times the IQR. Outliers are shown as individual points beyond the whiskers. Lowercase letters (a, b) above the boxplots indicate significant differences in median RFV between meadow types (Kruskal–Wallis H test, p < 0.05), followed by Dunn’s post hoc test for pairwise comparisons.
Figure 6. (a) Boxplots showing mean RFV under specific changes in fertilization rate. Colors represent meadow types. Significant differences in RFV among fertilization rates within the same meadow type were evaluated using the Mann–Whitney U test (p < 0.05). (b) Boxplots illustrating the distribution of simulated RFV by meadow type under different fertilization rate adjustments. Each point represents a simulated RFV for a specific change relative to the actual fertilization rate. The color gradient indicates the magnitude and direction of the fertilization rate change. The central line within each box represents the median RFV, the box bounds indicate the interquartile range (IQR), and the whiskers extend to 1.5 times the IQR. Outliers are shown as individual points beyond the whiskers. Lowercase letters (a, b) above the boxplots indicate significant differences in median RFV between meadow types (Kruskal–Wallis H test, p < 0.05), followed by Dunn’s post hoc test for pairwise comparisons.
Agriculture 15 02440 g006
Figure 7. (a) Boxplots showing mean protein yield under specific changes in fertilization rate. Colors represent meadow types. Significant differences in protein yield among fertilization rates within the same meadow type were evaluated using the Mann–Whitney U test (p < 0.05). (b) Boxplots illustrating the distribution of simulated protein yields by meadow type under different fertilization rate adjustments. Each point represents a simulated protein yield for a specific change relative to the actual fertilization rate. The color gradient indicates the magnitude and direction of the fertilization rate change. The central line within each box represents the median protein yield, the box bounds indicate the interquartile range (IQR), and the whiskers extend to 1.5 times the IQR. Outliers are shown as individual points beyond the whiskers. Lowercase letters (a, b) above the boxplots indicate significant differences in median yield between meadow types (Kruskal–Wallis H test, p < 0.05), followed by Dunn’s post hoc test for pairwise comparisons.
Figure 7. (a) Boxplots showing mean protein yield under specific changes in fertilization rate. Colors represent meadow types. Significant differences in protein yield among fertilization rates within the same meadow type were evaluated using the Mann–Whitney U test (p < 0.05). (b) Boxplots illustrating the distribution of simulated protein yields by meadow type under different fertilization rate adjustments. Each point represents a simulated protein yield for a specific change relative to the actual fertilization rate. The color gradient indicates the magnitude and direction of the fertilization rate change. The central line within each box represents the median protein yield, the box bounds indicate the interquartile range (IQR), and the whiskers extend to 1.5 times the IQR. Outliers are shown as individual points beyond the whiskers. Lowercase letters (a, b) above the boxplots indicate significant differences in median yield between meadow types (Kruskal–Wallis H test, p < 0.05), followed by Dunn’s post hoc test for pairwise comparisons.
Agriculture 15 02440 g007
Figure 8. (a) Boxplots showing mean yield under specific changes in stocking rate. Colors represent meadow types. Significant differences in yield among stocking rates within the same meadow type were evaluated using the Mann–Whitney U test (p < 0.05). (b) Boxplots illustrating the distribution of simulated yield by meadow type under different stocking rate adjustments. Each point represents a simulated yield for a specific change relative to the actual stocking rate. The color gradient indicates the magnitude and direction of stocking rate change. The central line within each box represents the median yield, the box bounds indicate the interquartile range (IQR), and the whiskers extend to 1.5 times the IQR. Outliers are shown as individual points beyond the whiskers. Lowercase letters (a, b) above the boxplots indicate significant differences in median yield between meadow types (Kruskal–Wallis H test, p < 0.05), followed by Dunn’s post hoc test for pairwise comparisons.
Figure 8. (a) Boxplots showing mean yield under specific changes in stocking rate. Colors represent meadow types. Significant differences in yield among stocking rates within the same meadow type were evaluated using the Mann–Whitney U test (p < 0.05). (b) Boxplots illustrating the distribution of simulated yield by meadow type under different stocking rate adjustments. Each point represents a simulated yield for a specific change relative to the actual stocking rate. The color gradient indicates the magnitude and direction of stocking rate change. The central line within each box represents the median yield, the box bounds indicate the interquartile range (IQR), and the whiskers extend to 1.5 times the IQR. Outliers are shown as individual points beyond the whiskers. Lowercase letters (a, b) above the boxplots indicate significant differences in median yield between meadow types (Kruskal–Wallis H test, p < 0.05), followed by Dunn’s post hoc test for pairwise comparisons.
Agriculture 15 02440 g008
Figure 9. (a) Boxplots showing mean RFV under specific changes in stocking rate. Colors represent meadow types. Significant differences in RFV among stocking rates within the same meadow type were evaluated using the Mann–Whitney U test (p < 0.05). (b) Boxplots illustrating the distribution of simulated RFV by meadow type under different stocking rate adjustments. Each point represents a simulated RFV for a specific change relative to the actual stocking rate. The color gradient indicates the magnitude and direction of the stocking rate change. The central line within each box represents the median RFV, the box bounds indicate the interquartile range (IQR), and the whiskers extend to 1.5 times the IQR. Outliers are shown as individual points beyond the whiskers. Lowercase letters (a, b) above the boxplots indicate significant differences in median RFV between meadow types (Kruskal–Wallis H test, p < 0.05), followed by Dunn’s post hoc test for pairwise comparisons.
Figure 9. (a) Boxplots showing mean RFV under specific changes in stocking rate. Colors represent meadow types. Significant differences in RFV among stocking rates within the same meadow type were evaluated using the Mann–Whitney U test (p < 0.05). (b) Boxplots illustrating the distribution of simulated RFV by meadow type under different stocking rate adjustments. Each point represents a simulated RFV for a specific change relative to the actual stocking rate. The color gradient indicates the magnitude and direction of the stocking rate change. The central line within each box represents the median RFV, the box bounds indicate the interquartile range (IQR), and the whiskers extend to 1.5 times the IQR. Outliers are shown as individual points beyond the whiskers. Lowercase letters (a, b) above the boxplots indicate significant differences in median RFV between meadow types (Kruskal–Wallis H test, p < 0.05), followed by Dunn’s post hoc test for pairwise comparisons.
Agriculture 15 02440 g009
Figure 10. (a) Boxplots showing mean protein yield under specific changes in stocking rate. Colors represent meadow types. Significant differences in protein yield among stocking rates within the same meadow type were evaluated using the Mann–Whitney U test (p < 0.05). (b) Boxplots illustrating the distribution of simulated protein yields by meadow type under different stocking rate adjustments. Each point represents a simulated protein yield for a specific change relative to the actual stocking rate. The color gradient indicates the magnitude and direction of the stocking rate change. The central line within each box represents the median protein yield, the box bounds indicate the interquartile range (IQR), and the whiskers extend to 1.5 times the IQR. Outliers are shown as individual points beyond the whiskers. Lowercase letters (a, b, c) above the boxplots indicate significant differences in median protein yield between meadow types (Kruskal–Wallis H test, p < 0.05), followed by Dunn’s post hoc test for pairwise comparisons.
Figure 10. (a) Boxplots showing mean protein yield under specific changes in stocking rate. Colors represent meadow types. Significant differences in protein yield among stocking rates within the same meadow type were evaluated using the Mann–Whitney U test (p < 0.05). (b) Boxplots illustrating the distribution of simulated protein yields by meadow type under different stocking rate adjustments. Each point represents a simulated protein yield for a specific change relative to the actual stocking rate. The color gradient indicates the magnitude and direction of the stocking rate change. The central line within each box represents the median protein yield, the box bounds indicate the interquartile range (IQR), and the whiskers extend to 1.5 times the IQR. Outliers are shown as individual points beyond the whiskers. Lowercase letters (a, b, c) above the boxplots indicate significant differences in median protein yield between meadow types (Kruskal–Wallis H test, p < 0.05), followed by Dunn’s post hoc test for pairwise comparisons.
Agriculture 15 02440 g010
Table 1. Meadow characteristics [8].
Table 1. Meadow characteristics [8].
Intensive MeadowSemi-Extensive MeadowExtensive Meadow
Altitude (m)602–890902–12901100–1612
GPS Range (approx.)42.60–42.70 N; 0.10–0.25 E42.55–42.75 N; 0.15–0.35 E42.50–42.80 N; 0.20–0.40 E
Slope (%)9.63 ± 4.1318.6 ± 4.9916.1 ± 5.35
Soil type (WRB)Haplic RegosolHaplic PhaeozemHaplic Phaeozem
Clay (%)30.47 ± 4.8723.62 ± 4.2616.29 ± 5.04
Sand (%)21.01 ± 7.9240.50 ± 9.4951.61 ± 9.88
pH7.71 ± 0.36.94 ± 0.296.82 ± 0.41
Electric conductivity (dS/m)0.23 ± 0.050.28 ± 0.060.21 ± 0.06
Organic matter (%)3.78 ± 2.129.93 ± 3.589.25 ± 3.18
Fertilization typeCompound NPK (5-15-15) + urea (46% N)Composted cattle manure/cattle slurryComposted cattle manure/None
Fertilization frequencyYearlyYearlyRarely
Nitrogen kg ha−166.22 ± 37.77214.71 ± 136.056.17 ± 10.69
Phosphorus kg ha−147.04 ± 15.06305.09 ± 280.1110.06 ± 11.55
Potassium kg ha−169.32 ± 35.29140.14 ± 145.1011.57 ± 20.05
Livestock load LU ha−1 year−10.59 ± 0.100.35 ± 0.330.20 ± 0.10
Shannon Index1.82 ± 0.152.81 ± 0.313.23 ± 0.14
Legume cover (%)26.25 ± 21.9924.3 ± 5.9523.3 ± 5.33
Dominant speciesDactylis glomerataArrhenatherum elatiusFestuca rubra
Phenological stage of dominant species at cuttingFloweringFloweringFlowering
Cutting dateMay-15 ± 16 daysJun-5 ± 21 daysJun-13 ± 20 days
Table 2. Random Forest model characteristics.
Table 2. Random Forest model characteristics.
ModelYieldRFVProtein Yield
N estimators158198206
Max depth142716
Min samples split555
Min samples leaf111
Random state424242
R20.790.720.73
RMSE963.6213.86115.34
Table 3. Changes in yield (kg ha−1), relative feed value (RFV), and protein yield (kg ha−1) according to cutting date and meadow type are shown. Values in white indicate no significant differences compared to the baseline (actual management), values in red indicate significantly lower results, and values in green indicate significantly higher results (p < 0.05).
Table 3. Changes in yield (kg ha−1), relative feed value (RFV), and protein yield (kg ha−1) according to cutting date and meadow type are shown. Values in white indicate no significant differences compared to the baseline (actual management), values in red indicate significantly lower results, and values in green indicate significantly higher results (p < 0.05).
ExtensiveSemi ExtensiveIntensive
Cutting DateYieldRFVProtein YieldYieldRFVProtein YieldYieldRFVProtein Yield
−30−655.7413.95−21.31−797.2613.08−61.47−753.059.86−63.66
−25−489.0711.94−13.3−675.3811.44−36.11−642.419.43−45.46
−20−372.9510.63−3.7−578.4911.17−10.88−482.577.47−21.04
−15−271.756.995.22−436.858.631.81−388.916.52−11.61
−10−185.544.715.28−163.496.6613.95−333.325.53−6.66
−5−186.132.12−2.11−54.983.0516.36−142.253.483.02
Actual000000000
5216.52−4.3613.21117.72−5.21−10.77178.58−0.67−1.23
10234.12−6.626.74213.98−7.19−9.52411.13−2.972.86
15319.13−8.046.09251.54−9.97−8.42524.83−6.25.46
20332.49−12.01−4.06261.89−12.64−13.92566.76−7.828.17
25465.38−14.731.5297−15.02−12.3736.04−10.5111.2
30599.8−15.925.32340.5−15.52−12.4747.55−12.3810.08
Table 4. Changes in yield (kg ha−1), relative feed value (RFV), and protein yield (kg ha−1) according to fertilization rate and meadow type are shown. Values in white indicate no significant differences compared to the baseline (actual management), and values in red indicate significantly lower results.
Table 4. Changes in yield (kg ha−1), relative feed value (RFV), and protein yield (kg ha−1) according to fertilization rate and meadow type are shown. Values in white indicate no significant differences compared to the baseline (actual management), and values in red indicate significantly lower results.
ExtensiveSemi ExtensiveIntensive
Fertilization RateYieldRFVProtein YieldYieldRFVProtein YieldYieldRFVProtein Yield
−100%−41.84−0.02−0.74−387.961.32−12.7−197.03−0.150.64
−75%−41.780.01−0.54−273.981.25−10.13−199.02−0.091.09
−50%−42.580.05−0.47−215.51.19−8.24−96.27−0.351.16
−25%1.360.08−0.06−28.571.27−1.54−18.49−0.180.08
Actual000000000
+25%9.760.020.326.09−0.82−4.610.33−0.66
+50%9.740.020.3624.76−1.32.07−3.460.35−0.85
+75%9.320.060.2827.66−1.643.117.810.4−0.77
+100%20.930.060.2861.28−1.633.34113.340.430.62
Table 5. Changes in yield (kg ha−1), relative feed value (RFV), and protein yield (kg ha−1) according to stocking rate and meadow type are shown. Values in white indicate no significant differences compared to the baseline (actual management), values in red indicate significantly lower results.
Table 5. Changes in yield (kg ha−1), relative feed value (RFV), and protein yield (kg ha−1) according to stocking rate and meadow type are shown. Values in white indicate no significant differences compared to the baseline (actual management), values in red indicate significantly lower results.
ExtensiveSemi ExtensiveIntensive
Fertilization RateYieldRFVProtein YieldYieldRFVProtein YieldYieldRFVProtein Yield
−100%−30.04−0.56−14.88−69.79−3.1−37.88−29.37−2.31−26.3
−75%−30.04−0.56−14.88−50.53−2.48−30.76−14.2−1.12−10.09
−50%−20.58−0.38−7.08−53.05−2.44−29.754.97−11.16
−25%−9.560.14−0.79−37.57−2.03−23.557.67−1.020.34
Actual000000000
+25%37.140.2411.48−20.23−0.66−14.491.780
+50%54.180.5617.2612.490.415.61−60.654.99−1.3
+75%61.70.5817.6510.670.395.7−65.085.66−1.87
+100%60.410.7717.1612.50.385.84−73.856.04−2.31
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Jarne, A.; Usón, A.; Reiné, R. Data-Driven Management of Mountain Meadows in Central Spanish Pyrenees: Enhancing Productivity and Quality via Random Forests Models. Agriculture 2025, 15, 2440. https://doi.org/10.3390/agriculture15232440

AMA Style

Jarne A, Usón A, Reiné R. Data-Driven Management of Mountain Meadows in Central Spanish Pyrenees: Enhancing Productivity and Quality via Random Forests Models. Agriculture. 2025; 15(23):2440. https://doi.org/10.3390/agriculture15232440

Chicago/Turabian Style

Jarne, Adrián, Asunción Usón, and Ramón Reiné. 2025. "Data-Driven Management of Mountain Meadows in Central Spanish Pyrenees: Enhancing Productivity and Quality via Random Forests Models" Agriculture 15, no. 23: 2440. https://doi.org/10.3390/agriculture15232440

APA Style

Jarne, A., Usón, A., & Reiné, R. (2025). Data-Driven Management of Mountain Meadows in Central Spanish Pyrenees: Enhancing Productivity and Quality via Random Forests Models. Agriculture, 15(23), 2440. https://doi.org/10.3390/agriculture15232440

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop