1 Introduction

The Earth’s climate is projected to exhibit relatively rapid changes in temperature and precipitation regimes throughout this century as a result of the increase in greenhouse gas emissions from human activities into the atmosphere (IPCC 2014; Knouft and Flicklin 2017). These changes may cause severe impacts on biological communities and ecosystem functioning (Pecl et al. 2017), considering that species are affected by climate in many ways such as changes in species distribution, relative abundance within species ranges and subtle shifts in activity timing and microhabitat use (Williams et al. 2008; Bates et al. 2014). In fact, there is a rich body of evidence showing that climate change is already impacting biodiversity through modifications in species richness and composition (Pecl et al. 2017).

Given that species are unlikely to share identical sets of environmental requirements, the responses to a given combination of biotic and abiotic factors tend to be specific (Harrington et al. 1999). These specific responses to environmental factors can result in discordant range shifts in a climate change scenario, leading to phenological asynchrony and spatial mismatch among species that currently interact. The effects of climate change on species interactions across time have been examined for a range of taxa, such as shifts in the relative timing of host-plant and herbivore phenologies and increase in phenological asynchrony between spring green-up and arrival of migratory birds (Harrington et al. 1999; Mayor et al. 2017). Similarly, fossil records show considerable instability in spatial associations among species, suggesting that modern assemblages have no long-term history in the Quaternary (Harrington et al. 1999).

Changes in biotic interactions resulting from climate-driven species redistribution may compromise ecosystem services they provide and, as a consequence, affect economic development and human well-being (Pecl et al. 2017). This is especially relevant for plant-pollinator interactions (Hegland et al. 2009), particularly bees, given the key role they play in food production and forest maintenance. More than 90% of the major crops worldwide depend on pollinators (Klein et al. 2007), an important ecosystem service responsible for increasing global production by US$ 235–577 billion dollars annually (Lautenbach et al. 2012). Similarly, most angiosperm species rely on insects and other animals, rather than wind, for reproduction (Memmot et al. 2007), a biotic interaction that plays a significant role in maintaining the functional integrity of terrestrial ecosystems (Ollerton et al. 2011).

In this study, we examined the interaction between Mimosa scabrella Benth. (bracatinga) and the stingless bees Melipona quadrifasciata anthidioides Lepeletier and Melipona quadrifasciata quadrifasciata Lepeletier to assess how range shifts resulting from climate change may affect species association in geographic space. Mimosa scabrella is widely distributed mainly in the southern and south-eastern portion of the Brazilian Atlantic Forest (Flora do Brasil 2018) and, as a pioneer species, plays a key role in ecological succession by providing adequate microhabitat conditions for shade-tolerant trees and food resources for insect pollinators (Luz et al. 2010; Siminski and Mazuchowski 2014). Also, bracatinga timber is used commercially for energy production and in the construction industry (Lunelli et al. 2016). On the other hand, M. q. anthidioides and M. q. quadrifasciata provide important pollination services and produce highly valued honey used by smallholders as additional income (Slaa et al. 2006; Bispo dos Santos et al. 2009). The interaction of M. scabrella with the stingless bees is well reported in the literature. Studies have demonstrated that M. q. quadrifasciata and M. q. anthidioides are important visitors feeding on nectar and pollen of bracatinga (Ramalho et al. 1989; Sobierajski et al. 2006; Oliveira-Abreu et al. 2014; Nascimento et al. 2015), besides being one of its pollinators (Catharino et al. 1982).

Ecological niche models (ENMs) have been widely used in studies involving projections of climate change effects on species distributions. In this study, ENMs and Geographic Information System (GIS) analyses were employed to test whether climate change can affect the spatial association between bracatinga and stingless bees as a consequence of dissimilar range shifts resulting from species-specific responses to climate.

2 Methods

2.1 Occurrence records

Overall, 340, 63 and 71 occurrence records were gathered for M. scabrella, M. q. anthidioides and M q. quadrifasciata, respectively, using the literature and the online databases Global Biodiversity Information Facility (GBIF) and SpeciesLink. All occurrences were analysed in order to remove the records outside the known distribution range of the species based on information obtained from the online databases Flora do Brasil (2018) for M. scabrella and Moure’s Catalogue for the stingless bees.

2.2 Model predictors

Elevation data and nine bioclimatic variables obtained from the WorldClim database at the resolution of 5 arc-minutes (Hijmans et al. 2005) were used in the modelling process as follows: annual mean temperature (Bio1), temperature seasonality (Bio4), maximum temperature of warmest month (Bio5), minimum temperature of coldest month (Bio6), temperature annual range (Bio7), annual precipitation (Bio12), precipitation of wettest (Bio13) and driest months (Bio14) and precipitation seasonality (Bio15). These variables were selected because they represent temperature and precipitation conditions that are known to constraint species occurrence. We also used the bioclimatic variables projected for 2050 and 2070 based on the scenarios of greenhouse gas emission RCP 4.5 and RCP 8.5 representing intermediate and high levels of gas emissions (Meinshausen et al. 2011) derived from the fifth Intergovernmental Panel on Climate Change assessment report (AR5) of the United Nations (IPCC 2014). In order to reduce the uncertainties associated to future prediction, climate data was obtained for five different Global Circulation Models (GCMs): CCSM4 (Community Climate System Model), HadGEM2-ES (Hadley Center Global Environment Model version 2 Earth System), MIROC5 (Model for Interdisciplinary Research on Climate), MRI-CGCM2.3.2 (Meteorological Research Institute, Japan) and BCC-CSM1.1 (Climate Center Climate System Model). Consensus maps for each species, year and climate change scenario were generated through averaging the final models.

2.3 Modelling approaches

Ecological niche models were developed using the maximum entropy algorithm implemented in the software MaxEnt version 3.3.3.k. MaxEnt is a machine learning algorithm that uses presence-only data to estimate species distribution based on occurrence data and environmental predictors (Phillips et al. 2006). The development of models with appropriated levels of complexity is critical to generate reliable future predictions. We approached model complexity using the following procedures: (i) spatial filtering of occurrence records to avoid spatial autocorrelation; (ii) reduction of the number of predictors by an a priori selection of uncorrelated variables based on their biological significance (Rodda et al. 2011), (iii) delimitation of the study area based on ecological criteria, such as biomes or climate zones (Fourcade et al. 2014; Hill and Terblanche 2014) and (iv) evaluation of the best configuration of MaxEnt parameters with tuning experiments using different combinations of feature classes and regularization multiplier values (Morales et al. 2017).

In agreement with previous studies (Zwiener et al. 2018), the occurrence records were submitted to a spatial filtering (Brown et al. 2017) delimiting a minimum distance of 20 km between each occurrence for M. scabrella, and of 2 km for the stingless bees based on the flying capacity of the genus Melipona (Araújo et al. 2004). Briefly, a distance matrix was calculated, then the first occurrence point in the list was removed, and the table of distances were re-evaluated until all points are removed at the specified distances. This procedure reduced to 141, 63 and 70 the number of unique records for M. scabrella, M. q. anthidioides, and M q. quadrifasciata, respectively (Figure 1). Also, the predictors were submitted to a Pearson’s correlation test to ensure the lack of multicollinearity among them. The variables showing high correlation (r > 0.85) were excluded from the modelling process (Elith et al. 2010), and in this case, preference was given to those variables with higher biological significance (Elith et al. 2010). The biome where the species occur was used to delimit the study area and train the models. When occurrence records were recorded only in the margins of the biome, only a portion of this biome was used to delimit the study area (Fig. S1). Maps of the Brazilian biomes were obtained from the Brazilian Institute of Geography and Statistics (www.ibge.gov.br).

Figure 1.
figure 1

Occurrence records obtained from the literature and the online databases Global Biodiversity Information Facility and SpeciesLink for Mimosa scabrella, Melipona quadrifasciata anthidioides and M. q. quadrifasciata in the different Brazilian biomes.

Additionally, 15 models for each species were generated using different MaxEnt settings. The feature classes (i.e. a function of an environmental predictor) and the regularization multiplier values are known to affect both complexity and performance of the models generated with MaxEnt (Merow et al. 2013; Radosavljevic and Anderson 2014; Morales et al. 2017). Linear (L), quadratic (Q), product (P), hinge (H) and threshold (T) feature classes can be used in MaxEnt, and the selection of individual features for each predictor is based on their contribution to model fitting using a regularization coefficient β (Phillips et al. 2006; Merow et al. 2013). The value of this regularization coefficient can be changed by multiplying it by a user-specified constant named regularization multiplier. In this study, five different combinations of feature classes (L, H, LQ, LQH and LQHPT) and three regularization multiplier values (1, 3 and 5) were tested. All occurrence records were used to build these models and the output format was set as raw.

2.4 Model evaluation and selection

The corrected Akaike information criterion (AICc) was used to compare and select the best model for each species. AICc provides information on the relative quality of the models based on their goodness of fit and number of parameters. The lower the AICc values, the better and less complex are the models. The best models selected for each species were ran using 80% of the occurrence records for training, and the remaining ones were used for the test, with the replicate run-type setting as subsample with 100 replicates. The performance of the models was evaluated using the area under the curve (AUC) of the receiver-operating characteristic (ROC), which assesses the ability of the model to discriminate between omission versus commission errors (Fielding and Bell 1997). AUC values vary between 0 and 1; while values closer to 0.5 indicate that the model does not perform better than random, values closer to 1 indicate high performance (Radosavljevic and Anderson 2014).

2.5 Quantifying changes in spatial association between species

Distribution shifts due to climate change were assessed through comparison of current and future distributions using binary maps generated with the maximum training sensitivity plus specificity logistic threshold (MSST). This procedure identifies the regions where the model predicted expansion, contraction and/or no change in the species distribution range. A centroid analysis was performed to assess the direction and magnitude of changes through time. This analysis reduces species distributions to a single central point and creates a vector file connecting current and future centroids. Additionally, maps of climate anomalies demonstrating the location and intensity of the projected changes were generated for the most important bioclimatic variables for each species.

Threshold-dependent and threshold-independent metrics were used to assess the changes in spatial association between bracatinga and the stingless bees. As threshold-independent metric, niche overlap analysis was applied to compare the similarity between ecological niche models in space for M. scabrella and stingless bees for the present conditions and then compared with that estimated for the future climate scenarios. This analysis measures the similarity in habitat suitability between one or more pairs of species using Schoener’s D statistics (Schoener 1968). The D value varies from 0, when species have completely discordant distributions, to 1, when species have identical distributions.

Additionally, we also calculated the spatial overlap as the proportion of the suitable ranges of two species overlapping in geographical space. Because this analysis requires binary maps depicting suitable (1) and unsuitable habitats (0), its result depends on the threshold value used to convert suitability maps into binary maps. To overcome this issue, we calculated the spatial overlap among species under current and future climate scenarios using binary maps generated with threshold values ranging from 0.05 to 0.6. This range was employed to represent the variation in the spatial overlapping between species according to the threshold used. Also, the areas showing expansion and/or contraction in spatial interactions among species were quantified using the binary maps.

3 Results

3.1 Model assessment

The best models selected with AICc varied according to the species (Table S1). For M. q. anthidioides and M. q. quadrifasciata, the best model included linear and quadratic feature classes and the default regularization multiplier value (LQ1). For M. scabrella, the selected model included linear, quadratic, hinge, product, and threshold feature classes and the regularization multiplier value of 5. The selected models for all species had AUC values higher than 0.80, indicating good model performance.

The final model developed for all species included seven variables (Table I). However, the importance of each variable differed depending on the species, indicating a species-specific response to the environmental variables assessed (Table I). For instance, while annual mean temperature was the most important variable for M. scabrella and M. q. anthidioides, for M. q. quadrifasciata precipitation seasonality and precipitation of wettest month were the most relevant. Also, the response curves to the climatic variables evaluated reinforced the differential environmental requirements of each species (Supplementary document).

Table I. Percent contribution of predictor for the final models developed for each species.

3.2 Climate change effects on species distribution

The models predicted a decrease in climatically suitable areas for all studied species, although the magnitude of this reduction varied depending on species, year and scenarios of climate change (Figure 2). This reduction in climatically suitable area was more severe in 2070 in the scenario RCP 8.5, when a contraction of 76%, 63% and 54% was projected for M. scabrella, M. q. anthidioides and M. q. quadrifasciata, respectively (Figure 2).

Figure 2.
figure 2

Distribution shifts of Mimosa scabrella and the singles bees Melipona quadrifasciata anthidioides and Melipona quadrifasciata quadrifasciata in different years and climate change scenarios. The arrows indicate the magnitude and direction of the distribution change.

Similarly, the centroid analysis demonstrated that both magnitude and direction of the core distribution varied according to the species. While M. q. quadrifasciata shifted the core of its distribution north-eastward, M. q. anthidioides and M. scabrella moved southward (Figure 2). The centroid analysis combined with the climate anomalies analysis indicates that M. q. quadrifasciata will change its distribution to regions showing a slight increase in temperature seasonality, precipitation of wettest month, and precipitation seasonality (Fig. S2). On the other hand, M. q. anthidioides and M. scabrella were projected to shift the core of their distribution towards regions with a lower increase in annual mean temperatures and a subtle decrease in temperature seasonality (Fig. S2).

3.3 Climate change effects on species spatial association

The contrast between Schoener’s D obtained for the present with those estimated for future projections revealed a considerable reduction in spatial overlap between the M. scabrella and the two stingless bees in all years and scenarios of climate change evaluated. The most pronounced reduction was obtained for 2070 in the scenario RCP 8.5 for all interactions (Figure 3). Similarly, although the proportion of overlapped area varied according to the threshold used, it was always lower in the projected future climate scenarios when compared with the present (Figure 3). The spatial mismatch varied according to the threshold used for M. q. quadrifasciata and was more pronounced when lower threshold values were used to convert suitability maps into binary maps. By contrast, for M. q. anthidioides the spatial mismatch was independent on the threshold used.

Figure 3.
figure 3

Niche and spatial overlap for the interaction between Mimosa scabrella and the stingless bees Melipona quadrifasciata anthidioides and Melipona quadrifasciata quadrifasciata. Niche overlap analysis measured the similarity in the habitat suitability between pairs of species. The niche overlap was calculated for each of the five General Circulation Models used in this study. Spatial overlap is the proportion of the suitable ranges of two species that overlaps in the geographical space.

The current spatial association between the stingless bees and M. scabrella was estimated predominantly in southern and south-eastern Brazil within the Atlantic Forest domain (Figure 4). Under current climate conditions, the spatial association between bracatinga (MSST = 0.3133) and the meliponids M. q. anthidioides (MSST = 0.3547) and M.q. quadrifasciata (MSST = 0.4054) was estimated in 21.5% and 13.1%, respectively. A considerable reduction in spatial association was projected for all associations between bracatinga and the stingless bees (Figure 4). Although this reduction was more pronounced in 2070 in the RCP 8.5 scenario, our models projected losses of up to 71.4% in the spatial association between M. scabrella and M. q. quadrifasciata in 2050 in the RCP 4.5 scenario. According to projections, most of the remaining climatically suitable areas for the co-occurrence of bracatinga and the stingless bees are in the south-eastern range of their current distribution (Figure 4).

Figure 4.
figure 4

Maps depicting regions with expansion and/or contraction in the spatial interaction between Mimosa scabrella and the stingless bees Melipona quadrifasciata anthidioides and Melipona quadrifasciata quadrifasciata.

4 Discussion

Future climate conditions projected for the twenty-first century suggest drastic changes in species distribution patterns (Warren et al. 2013). In fact, some studies have pointed out that biological responses to current Earth’s climate conditions are already measurable in a global scale (Pecl et al. 2017). Since the mid-2000s, several studies were carried out to predict the effects of climate change on species distribution (Erhlén and Morris 2015), but comparatively few were conducted on species spatial association (Schweiger et al. 2008; Schleuning et al. 2016).

Bracatinga is a pioneer species that plays an important role in the ecological succession in the Atlantic Forest (Siminski and Mazuchowski 2014; Citadini-Zanette et al. 2017). After an environmental disturbance, this species develops favouring soil microorganisms due to the large deposition of litter and the symbiotic association with nitrogen-fixing bacteria, providing the environmental conditions for the growth of other secondary species in the initial steps of forest restoration (Citadini-Zanette et al. 2017). Although this species does not depend on specialized pollinators (Sobierajski et al. 2006), winter flowering may constrain the number of pollinators for a species commonly distributed in colder regions, such as the case of bracatinga. Despite the little information about its pollinators, the meliponids M. q. anthidioides and M. q. quadrifasciata were often cited as important visitors and pollinators of bracatinga (Catharino et al. 1982; Ramalho et al. 1989; Sobierajski et al. 2006; Oliveira-Abreu et al. 2014; Nascimento et al. 2015). The impact of climate change on these species may have consequences for their spatial association, potentially influencing the regeneration of bracatinga and their role on ecological succession.

Our models revealed species-specific responses to climate change and a drastic reduction in the spatial association between bracatinga and stingless bees. The specific response to climate change in the studied species was clearly demonstrated by the centroid analysis showing that both magnitude and direction of distribution shifts varied according to the species. For example, discordant range shifts projected between M. q. quadrifasciata and M. scabrella resulted in losses of up to 71.4% in spatial association even under optimistic climate change scenarios (RCP 4.5). These losses were even more prominent in the RCP 8.5 scenario in 2070, when the models projected a reduction of 94.4% in these species co-occurrence.

Fossil records indicate that biotic interactions varied widely across time and that temperature played a major role in these changes mainly due to extinctions and shifts in species distribution and abundance (Blois et al. 2013). For example, the rapid warming and ocean acidification that occurred in the Permian-Triassic probably lead to the mass extinction of a large proportion of marine and terrestrial taxa (Chen and Benton 2012; Payne and Clapham 2012). Nowadays, in addition to climate change, anthropogenic impacts such as habitat loss and/or fragmentation may cause local extinctions and intensify changes in species distribution, which may have severe impacts on biotic interactions. This is a serious threat for the study species, as they occur in the Brazilian Atlantic Forest, a highly threatened biome that currently has only 11.3% of its original coverage (Ribeiro et al. 2009). The deforestation that began in the nineteenth century mainly as a result of urbanization continues to the present due to agriculture expansion (Tabarelli et al. 2010). Although M. scabrella responds well to habitat disturbance, the stingless bees are particularly vulnerable due to their susceptibility to commonly used pesticides (Del Sarto et al. 2014; Tomé et al. 2015). Therefore, the reduction in spatial association between plants and stingless bees may be even more pronounced than predicted by our models.

In this study we assessed the effects of climate change on species spatial association assuming an unlimited dispersal, such that the entire projected climatically suitable regions denote the actual future distribution. In fact, our models indicated that some regions predicted as currently climatically unsuitable may become suitable in the future for both stingless bees. As a consequence, an expansion in spatial association of up to 9.2% was projected for the interaction between M. q. anthidioides and M. scabrella in the southern part of their distributions. These projections can be considered optimistic because species dispersal across the regions predicted as suitable is uncertain and may be constrained by several factors, including land cover or other difficulties inherent to each species (Harsch et al. 2017; Bates et al. 2011; Cariveau et al. 2013; Jha and Kremen 2013).

Despite the predictions indicating a drastic reduction in the spatial association between bracatinga and the stingless bees in the coming years, local extinctions can occur with a substantial delay following habitat degradation (Kuussari et al. 2009). This extinction debt depends on several factors related to species life history traits, the time since habitat was altered and the nature of the alteration (Kuussari et al. 2009). In this context, it is unlikely that sympatric species with different life history traits like the ones studied here will track climate change at the same rate (Schweiger et al. 2008; Devictor et al. 2012). Evidences suggest that delayed extinctions are more likely to occur in long-lived species with low turnover rates compared with short-lived species with high turnover rates (Vellend et al. 2006; Kuussari et al. 2009; Krauuss et al. 2010; Gonzáles-Varo et al. 2015). The stingless bees have comparatively short generation times, which may favour faster evolutionary responses to selective pressures induced by climate change (Thomas et al. 2010; Catullo et al. 2019). As a pioneer species, bracatinga is considered a short-lived species that lives up to 25 years (Siminski and Mazuchowski 2014). Therefore, despite the model predictions indicating a reduction in the spatial association between M. scabrella and the stingless bees, this loss may delay due to local extinction debt.

In summary, this study integrated ENMs and GIS analysis to quantify the effects of climate change on the spatial association between bracatinga and the stingless bees M. q. anthidioides and M. q. quadrifasciata. Our models projected that the species-specific response to climate change will result in different range shifts, leading to a drastic reduction in the spatial association among species.