3.1. Current Suitability and key environmental predictors of C. canephora suitability
The MaxEnt models demonstrated good predictive performance (AUC = 0.75), indicating good model discrimination (see Figure S1). The current suitability is shown in Fig. 3. Optimally productive areas (High and Very High) accounted for 22% of the modelled area while sub-optimal areas accounted for 78% of the predicted suitability. Specifically, suitability varied as High (16.1%), Very High (5.9%), Moderate Suitability (22.5%), Low (35.0%), and Very Low (20.3%).
Precipitation of the warmest quarter (BIO18) contributed the most to model performance (32.2%), followed by soil type (20.3%), precipitation of the wettest month (BIO13, 16.2%), and precipitation of the coldest quarter (BIO19, 14.6%) (Table 3). Together, these four variables accounted for over 80% of total model contribution, suggesting they are the primary environmental predictors for C. canephora suitability. Permutation importance ranked precipitation of the coldest quarter (BIO19, 37.1%) and precipitation of the wettest month (BIO13, 30.4%) as the most influential factors in determining model accuracy. Soil pH and clay content each contributed less than 2%.
Table 3
Relative contribution and permutation importance of environmental predictors in the C. canephora suitability model.
Environmental Variable | Percent Contribution (%) | Permutation Importance (%) |
|---|
BIO18 – Precipitation of the Warmest Quarter | 32.2 | 2.1 |
Soils (FAO classification) | 20.3 | 9.9 |
BIO13 – Precipitation of the Wettest Month | 16.2 | 30.4 |
BIO19 – Precipitation of the Coldest Quarter | 14.6 | 37.1 |
BIO3 – Isothermality | 5.6 | 1.6 |
BIO8 – Mean Temperature of the Wettest Quarter | 5.6 | 4.1 |
BIO14 – Precipitation of the Driest Month | 1.6 | 2.8 |
Soil pH | 1.2 | 2.5 |
BIO15 – Precipitation Seasonality | 0.8 | 1.2 |
BIO2 – Mean Diurnal Range | 0.8 | 1.2 |
Digital Elevation Model (DEM) | 0.1 | 5.9 |
Clay Content (%) | 0.1 | 0.5 |
The Jackknife analysis revealed that soil type, precipitation of the coldest quarter (BIO19), precipitation of the wettest month (BIO13), and precipitation of the warmest quarter (BIO18) were the most informative variables (see Figure S2). When used in isolation, soil type produced the highest training gain. Conversely, model performance dropped most markedly when precipitation of the coldest quarter (BIO19) was omitted. Soil pH and clay content contributed minimally.
3.2. Response of C. canephora to Environmental Conditions
3.2.1. Climatic Drivers
C. canephora exhibited broad tolerance to mean diurnal range (BIO2). Temperature response curves indicated optimal suitability at mean temperatures of the wettest quarter (BIO8) between 10–20°C, with marked declines below 5°C or above 25°C (see Figure S3). Suitability increased sharply with precipitation of the wettest month (BIO13) up to ~ 100–150 mm, stabilizing beyond this range. Suitability peaked under moderate precipitation seasonality (BIO15: 40–70% coefficient of variation), reflecting the species’ dependence on distinct wet and dry phases for flowering and fruit set. Conversely, precipitation of the coldest quarter (BIO19) showed a negative relationship, with highest suitability below 100 mm, indicating preference for relatively dry cool periods.
3.2.2. Topographic and Soil Variables
Optimal suitability occurred between 600–1,500 m.a.s.l (Figure S3). Areas with slightly acidic soils (pH 4.5–5.5) and moderate clay content (~ 20%) were similarly optimal, emphasizing the species’ need for optimal drainage and root aeration. Suitability declined at both highly acidic/alkaline pH and extreme clay or sandy textures. Among soil types, Acric Ferralsols, Nitisols, and Lixic Ferralsols/Luvisols exhibited the highest suitability, reflecting their deep profiles and good moisture retention. In contrast, Vertisols (poor drainage) and Arenosols (low fertility and water-holding capacity) showed the lowest suitability (see Figure S3).
3.3. Projected Coffee Suitability under Future Climate Scenarios
As shown in Supplementary Figure S4, under SSP2–4.5, Highly suitable (9.3%) and moderately suitable (18.7%) areas are concentrated northwest of Lake Victoria and parts of central Uganda. Unsuitable and marginally suitable zones (72%) dominated the northeast and southwest. Model uncertainty maps showed higher variability in predictions under SSP5-8.5 than under SSP2-4.5 (see Figure S5). Areas of high suitability often coincide with areas of higher uncertainty, indicating that while the potential is great, the robustness of this prediction is lower.
3.4. Coffee Suitability Transitions under Climate Change
Under SSP2-4.5, suitability losses were predicted in central, eastern, and southwestern regions, while gains emerge in the northern region (see Figure S6). Under SSP5-8.5, these suitability losses increase, with only limited stable areas remaining. Notable declines in the extent of loss and gain in stability are projected under the agroforestry scenario. However, even under agroforestry, notable losses are still expected under SSP5-8.5. This suggests that while agroforestry is an effective adaptation strategy, its capacity to offset extreme climate impacts is limited.
3.5.Net Effect of Agroforestry on Coffee Suitability under Climate Change
Simulations under agroforestry showed a marked improvement in coffee suitability under both emission scenarios (Fig. 4). Under SSP2–4.5, 14.7% of modeled areas were projected to lose suitability, 32.3% remained stable, and 52.9% gained suitability—yielding a net gain of 38.2% (. Under SSP5–8.5, 16.5% of areas lost suitability, 49.8% remained unchanged, and 33.7% gained, corresponding to a net improvement of 17.2%. Spatially, suitability gains under agroforestry were most pronounced around Lake Victoria, central Uganda, and portions of the western highlands, suggesting that shade trees can buffer adverse temperature extremes and sustain production potential under climate stress.