Introduction

Humans have been critical in the decline of many European large carnivore populations over the past centuries (Ripple et al. 2014). Habitat loss, fragmentation and direct persecution have been the most noticeable impacts of human activities (Ray, Hunter, & Zigouris, 2005). During the twentieth century, suitable habitats for large mammals, such as the European brown bear (Ursus arctos), wolf (Canis lupus), wolverine (Gulo gulo), Iberian (Lynx pardinus) and Eurasian lynx (L. lynx), have become scarcer, scattered, and more disconnected (Swenson et al. 2000; Chapron et al. 2014). Human direct persecution, is also an important driver of carnivore population decline and contraction of distribution ranges (Ray et al. 2005; Ripple et al. 2014). This is the case of the brown bear, which was almost extirpated from Western Europe, and suffered a substantial decline in Eastern and Northern Europe (Penteriani and Melletti 2020; Wiegand et al. 1998). As a result, their survival relied on a delicate balance between resource exploitation on a humanized landscape (Clevenger et al. 1987) and seeking refuge from human-induced mortality (Naves et al. 2003).

Swenson et al (2000) reported twelve extant brown bear populations; from these, six were distributed in Western Europe and considered very small (with less than 100 individuals). The critical status of these six populations was aggravated by their isolation from possible source and stable populations (Swenson et al. 2000; Zedrosser et al. 2001; Pérez et al. 2010). Small and isolated populations are more vulnerable to extinction as a consequence of stochastic events (Zedrosser et al. 2011). In Spain, two of these small populations remain—in the Cantabrian and the Pyrenean mountains. If the Pyrenean brown bear population was reinforced with translocated individuals (Parres et al. 2020), the Cantabrian population (consisting of two spatially segregated nuclei, Western and Eastern of the Cantabrian Mountains) survived a near-extinction scenario during the late twentieth century, without any direct conservation action to increase the population size, being considered one of the most endangered bear populations in the world (Méndez et al. 2014; Penteriani et al. 2020). This population was threatened by poaching, increased landscape and genetic fragmentation, and lack of connectivity (Méndez et al. 2014; Penteriani et al. 2020).

The beginning of the twenty-first century was a turning point for the Cantabrian population, particularly for the Western population nuclei (Méndez et al. 2014; Gonzalez et al. 2016), where a consistent increase in the number of females with cubs was detected between 2003 and 2014 (Gonzalez et al. 2016; Lamamy et al. 2019) associated with an increase in the area of occurrence in both nuclei (Díaz-Fernández et al. 2023). Bidirectional migration and gene flow were reported between Western and Eastern Cantabrian mountains, with earlier reports of a dominant eastward migration (Pérez et al. 2010; Gonzalez et al. 2016) and, more recently, a dominant westward migration pattern (Gregório et al. 2020). While it is not clear if habitat differences are the single driver of population and migration patterns in the Cantabrian brown bear (Naves et al. 2003; Lamamy et al. 2019), identifying the most suitable habitat during the recovery of the western subpopulation may provide valuable information to the future conservation, not only of this subpopulation, but to the population of the Cantabrian bear as a whole.

Bearing this in mind, our goal is to use brown bear presence records available for a 19-year period (2000–2018) to test: (i) the relevance of distinct landscape structure (i.e. composition—type of landscape patches—and configuration—spatial characteristics of patches) (Farina 2000) in explaining bear occurrence patterns in the western Cantabrian brown bear subpopulation; and (ii) whether and—if so—how landscape composition relevance changed over 19 years, a period during which bear population size and distribution range increased in this nucleus. It is often assumed in studies focused on identifying suitable areas for brown bears in the Cantabrian Mountains that this species tends to avoid humanized elements (roads, settlements) of the landscape, as well as more densely populated areas (Clevenger et al. 1990; Naves et al. 2003; Mateo-Sánchez et al. 2016). Therefore, we hypothesize that the brown bears in the study area tend to occur in areas more distant from these humanized elements of the landscape. On the other hand, given the historical presence of humans and the brown bear in Europe (Zedrosser et al. 2011), the Cantabrian brown bears may have evolved to balance the exploitation of resources and the search for refuge, despite the human presence in the landscape (Ordiz et al. 2011). For this reason, we hypothesise that this species may favour the use of landscape features associated with refuge and food resources over the avoidance of features related to human disturbance (Fernandéz et al. 2012). Finally, because individuals may use habitat differently during different stages of population expansion (Wydeven et al. 2009; Clavero et al. 2010; Hemmingmoore et al. 2020)—and given both the Cantabrian brown bear population expansion (Palomero et al. 2007; Gonzalez et al. 2016; Lamamy et al. 2019) and the long period analysed—we hypothesize the factors that most conditioned the presence of the brown bear in the region may have varied over the last 19 years.

Methods

Study area

The Cantabrian Mountains run parallel to the Atlantic coast of northern Spain and exhibit a mild and humid climate throughout the year (Ortega Villazán and Morales Rodríguez 2015). The mountains extend for 300km, throughout the provinces of Asturias, Cantabria, León, Palencia, and Galicia and occupy an area of approximately 18.000 km2 (Clevenger et al. 1990).

The mountain range is covered by forests and woodlands mostly composed of oaks (Quercus petraea, Q. pyrenaica, Q. rotundifolia), beech (Fagus sylvatica), birch (Betula celtiberica), holly (Ilex aquifolium), and ash (Sorbus spp.) (Díaz González and Penas 2017). Subalpine shrubland (Juniperus communis, Vaccinium uliginosum, V. myrtillus, Arctostaphylos uva-ursi) dominates mountain areas above the treeline (Díaz González and Penas 2017). In areas converted into pastures, is frequent the occurrence of Genista spp., Cytisus spp., Erica spp., and Calluna spp. (Naves et al. 2003, 2006).

The main economic activities across the bear’s range are agriculture, livestock farming, timber harvesting, mining, and tourism (Naves et al. 2003; Blanco-Fontao et al. 2011). Human population and road density are generally low within the brown bear range in this region (Clevenger et al. 1990; Naves et al. 2003). Anthropic landscape modifications in the last four centuries have altered the composition and distribution of the native flora and fauna in this area, with hardwood forests being converted into pastures for livestock grazing (Clevenger et al. 1990). In more recent years, woody vegetation increased in semi-natural open systems and agriculture expanded in the most suitable areas (García-Llamas et al. 2019).

Data collection

Brown bear presence data were collected in an area of approximately 3.500 km2, within the range of the western Cantabrian Mountains brown bear subpopulation range (Fig. 1). Bear presence data collection in the study area was done by FAPAS (Fondo para la Protección de los Animales Salvajes; Spain, by the same two observers throughout the whole period), under a long-term monitoring program through indirect methods (signs of presence, such as tracks, denning sites, scats and marked trees), by monitoring 97 transects every year, from 2000 to 2018 (Figure A.1). Sampling effort was not systematically recorded but has been increasing over the years, accompanying brown bear expansion—targeting more intensively the areas of known bear distribution and of likely expansion and the seasons of higher bear activity (e.g., there were more frequent surveys in spring than winter).

Fig. 1
figure 1

(Source: IUCN Red List of Threatened Species assessment data, Version 2022.1)

Location of the study area highlighting brown bear distribution and presence records in the Western Cantabrian mountains. The Cantabrian brown bear population is divided into western and eastern subpopulations.

A wide diversity of signs was consistently recorded throughout the years, totalizing 7179 presence signs found in 19 years. The number of signs ranged between 115—588 annually (averaging 378 ± 159 signs detected per year). Bear presence records comprised bear footprints (39.7% of the data); marked trees (32.5% of the data); scats (23.5% of the data); hive attacks (1.7% of the data); and denning sites (0.57% of the data). Many signs were found in combination, in the same location and date. In these cases, different signs were combined in a single presence point.

Variables were selected to be representative of three groups of predictors identified as highly influential in shaping the bear distribution, and were related to three main ecological drivers of presence: disturbance (Naves et al. 2003; Mateo-Sánchez et al. 2016); food resources (Clevenger et al. 1990; Mateo-Sánchez et al. 2016); and refuge (Naves et al. 2003; Mateo-Sánchez et al. 2016) (Table 1). Altitude was also considered a likely predictor of brown bear presence in all three groups of predictor variables, given that: (i) human settlements are often at lower altitudes; (ii) food resources are more often abundant at lower (when provided by human activities, such as agriculture) and intermediate altitudes (Posillico et al. 2004); and (iii) refuge (i.e., areas inaccessible to humans and/or natural areas rich in vegetation that provides cover) is often found at intermediate to higher altitudes. Thus, we considered that the preference for different altitudinal ranges would provide support to a more important role of each of the ecological drivers, depending on the resulting altitudinal values for which bears’ occurrence probability is higher, in case this predictor emerges as relevant. The same approach was used for the landscape composition, since it may be an important driver of habitat selection (Mateo Sánchez et al. 2014). All variables were defined according to the source terminology and the respective concepts are summarised in Table A.1.

Table 1 Main ecological drivers tested for shaping bear distribution, and the associated rationale

As presence data was collected throughout almost two decades, ecological modelling was performed using the environmental data that temporally better matched each presence data period, to overcome any bias linked to the interannual variation of those variables. Given the wide timeframe of data collection, to account for land cover variation and more accurately model bear presence, we grouped presence data by year periods that best represented the land cover changes over the years. As a result, for each set of years (2000–2010; 2011–2016; 2017–2018) different versions of the Corine Land Cover were used (2006, 2012 and 2018 versions, respectively). Similarly, for the population density, we used the 2006 version to characterize the first set of years (2000–2010), and the 2011 version to characterize the remaining set of years (2011–2016 and 2017–2018). For other variables, such as “Altitude” or “Distance to roads”, we used the most updated information available (Tables A.2 and A.3).

Data analysis

Prior to the model building, the selected variables were tested to assess multicollinearity. We considered that none of the variables was strongly correlated as the pairwise correlation Pearson coefficients were all lower than |0.7| (Dormann et al. 2007).

Due to the lack of standardization in data collection in time and space, we considered that the most robust approach for modelling bear presence was to use a presence-only method, based on a Maximum Entropy approach, through a simple general-purpose machine learning method (Phillips et al. 2006). This approach was implemented using the MAXENT software (Version 3.4.1) (Phillips et al. 2006), which models species geographic distribution with presence-only data and typically outperforms other methods based on predictive accuracy (Phillips et al. 2006; Merow et al. 2013). To further account for the sampling bias and reduce the spatial aggregation of detection points (Fourcade et al. 2014), the annual data was overlapped with a 100 m resolution grid (used as the sampling unit), and the cells with at least one bear sign were considered as a bear presence cell in a particular year. For each presence cell, the centroid coordinate was retrieved, which was used simultaneously to calculate the distance to the different landscape components used as configuration metrics in the models, and as the presence points used in the model analysis.

Analyses were two-folded. First, we analysed data per year and later we grouped the presence data into three consecutive and contiguous periods and replicated the analyses. Thus, nineteen models were generated (one run for each year of data collected). These were used to compare the evolution of the Cantabrian brown bear western subpopulation distribution over the 19 years of the study, its most important drivers, and to detail the variation within three multi-year periods. Second, three multi-year models were generated, corresponding to the previously grouped data: 2000–2010; 2011–2016; 2017–2018 (one run for each group). The annual models are included as supplementary information and we will base our main discussion on the multi-year trends.

For each generated model, MAXENT extracted 10,000 background points. This is large enough to represent the distribution of environmental conditions in the study area and assure increased predictive performance (Phillips and Dudík, 2008). Parameter settings were left to Maxent’s default (Table A.4), as Phillips and Dudík (2008) suggested these are well suited for a wide range of presence-only datasets. The evaluation of the models was based on 30-fold cross-validation and, hence, the fit of each model to the presence data distribution was assessed using the AUC (area under the ROC curve) (Merow et al. 2013). For each model, we weighted each variable contribution (i.e., a measure of the amount of model variation each variable explains) (Bradie and Leung 2017) and permutation importance (i.e., a measure of the dependence of the model on each variable) (Breiman 2001). These parameters were used to calculate the average, maximum, and minimum variable contribution over time, and respective permutation importance. We established a threshold to select the most relevant variables (i.e., the variables that contribute the most to explaining bear occurrence probability). The variables contributing, on average, more than 5% to the multi-year models, and more than 10% at least in one of these periods were used further for comparison and discussion.

Finally, three habitat suitability projections were generated in MAXENT (one for each multi-year model). Hence, habitat suitability was compared over time, by performing raster calculations between these three projections. The variation in habitat suitability was assessed for the entire 19-year period (2000–2018, as the variation between the first and last projection) and between the intermediate projection (2011–2016) and the two contiguous models.

Results

None of the model’s candidate covariables was correlated, and therefore all were used in the modelling procedure. All generated models produced consistently high AUC values (AUC > 0.7), indicating a high performance in discriminating presence points from background points (Manel et al. 2001). While the AUC value of the multi-year models was 0.97 for all three periods (AUC[2000–2010]) = 0.9693; AUC[2011–2016]) = 0.9676; AUC[2017–2018]) = 0.9712), the annual models varied between 0.75, in 2000, and 0.99, in 2002 (Table B.1). As the model produced for the year 2000 showed a relatively lower AUC value than that of all the other annual models (AUC > 0.97), this model was not included in the calculation of the most significant variables. Reporting of results and discussion will proceed based on the multi-year models’ results. Annual models may be consulted in the supplementary material (Appendix B).

Relevant landscape drivers

We identified eight environmental variables (broad-leaf forests, arable lands, bare rocks, inland wetlands, altitude, permanent crops, artificial areas, and burnt areas) that contributed: (i) on average, more than 5% to the multi-year models; and (ii) 10% or more at least in one of the three periods (9.6% and 9.9% in the case of the distance to permanent crops and altitude, respectively). Despite some variation across the 19-year period, five landscape features had a consistent role in explaining brown bear presence patterns (percent contribution always above 5% in all multi-year models): broad-leaf forests; arable lands; bare rocks; inland wetlands; and altitude (Tables 2 and A.5).

Table 2 Top variables average, maximum, and minimum percent contribution and permutation importance over the three multi-year models. (Variables are ranked by average percent contribution)

Brown bears were more often detected near broad-leaf forests and areas with bare rocks and at lower to intermediate altitudes. Conversely, they avoided arable lands, permanent crops, and burnt areas. In addition, two variables (inland wetlands and artificial areas) showed non-linear relations with bears’ presence probability: bears select intermediate distances to these landscape features (Fig. 2).

Fig. 2
figure 2

Top variables’ effects across the three multi-year models (broad-leaf forests, arable lands, bare rocks, inland wetlands, altitude, permanent crops, artificial areas, and burnt areas). The average of the effects over time is represented on the left of the respective effects plot, with a black line. The cloglog output on the y-axis gives the probability of occurrence between 0 and 1

Variables’ contribution over time

Overall, the distance to broadleaf forests is the variable that contributed the most to explaining bear presence probability (an average of 20%), except during the first 10 years of monitoring, when the distance to bare rocks was more important (18% during 2000–2010). The main changes from the 1st to the 2nd period include the contribution increase of the distance to broad leaf forests (+ 12%), but also the decrease of the contribution of the distance of artificial areas (− 7%), which seem to play a less important role over time. During this trend, an inversion of the effect of this variable occurred: bears shifted from selecting closer distances to artificial areas to occurring further from these areas. From the 2nd to 3rd period, the most significant changes include an increase in the distance to burnt areas contribution to the models (+ 10%) and a decrease in the distance to bare rocks (− 6%) (Fig. 3 and Table A.6).

Fig. 3
figure 3

Variation of the most influential variables over time (distance to broad-leaf forests, arable lands, bare rocks, inland wetlands, altitude, permanent crops, artificial areas, and burnt areas) across the three multi-year models

Predicted suitable areas for bear presence and changes in habitat suitability

The MAXENT output generated a prediction of the most suitable areas for bear occurrence in each of the three monitoring periods (Fig. 4), which were used to calculate the evolution in habitat suitability over time. From the first period (2000–2010) to the second (2011–2016), there was a general increase in the areas with suitable habitats. However, habitat suitability apparently decreased in the most recent years (2017–2018) – a result we should interpret with caution, as this period is relatively shorter and includes fewer presence records (Fig. 5).

Fig. 4
figure 4

MAXENT projection of bears’ habitat suitability for each of the three multi-year models produced. Darker areas represent better-predicted conditions. Number of presence records for each period: 2000–2010 (n = 3241); 2011–2016 (n = 3236); 2017–2018 (n = 702)

Fig. 5
figure 5

Evolution of bear habitat suitability over the 19-year period in the Cantabrian mountains. Raster calculation derived from the MAXENT projection for each multi-year model. The variation in habitat suitability was assessed for the entire 19-year period (2000–2018, as the variation between the first and last projection) and between the intermediate projection (2011–2016) and the two contiguous models

Discussion

Recovery of large carnivores throughout Europe was anchored on the change of conservation laws and policies, to facilitate coexistence and improve population status, in combination with conservation actions focused on habitat management (Chapron et al. 2014), which rely on solid knowledge about habitat use by these species. Here, taking advantage of a large dataset of presence records of an endangered brown bear population, we identified the most relevant landscape features for the western Cantabrian nuclei throughout a 19-year period. We highlighted variations in drivers’ importance that can help understand bear population dynamics since the early stages of the brown bear recovery in the Western Cantabrian region. All the models present high performance, suggesting they could effectively distinguish the presence records from the background points. Thus, we were able to provide relevant insights, derived from a long-term monitoring programme targeting brown bear conservation.

In line with previous studies, we confirmed that Cantabrian brown bears are adapted to human presence, balancing their dietary needs with the safety provided by the available habitat in the Western Cantabrian region (Lamamy et al. 2019; Zarzo-Arias et al. 2019; Pratzer et al. 2023). We were able to identify a handful of habitat features that had a major role in shaping brown bear distribution for the last two decades: broad-leaf forests, arable lands, bare rocks, inland waters and altitude. In earlier years of monitoring, bear presence in the close vicinity of artificial areas was very frequent and decreased over time, while in most recent years the burnt areas might have been an important constraint to brown bear distribution in the Cantabrian mountains, as will be discussed in more detail ahead.

Living in human-dominated areas might drive species to establish a delicate balance between finding refuge or food resources. According to our results, broad-leaf forests promote bears’ presence throughout the years, which might be linked to the species' resource needs (e.g., food and, to a smaller extent, refuge) during most of the year (Lamamy et al. 2019; Zarzo-Arias et al. 2019). In winter, some individuals might avoid hibernation and remain active during this cold season, a behaviour that can derive from the mild winters of the region that allow animals to continue using and finding food, in forested areas (Swenson et al. 2000). This is also confirmed by a total of 806 presence records (11% of the total sample size) encountered consistently during the 19 winter seasons—every year, frequent brown bear detections were recorded between December and February. Bare rocks offer important refuge areas since caves or natural cavities are the structures most used as den sites in the Cantabrian Mountains (Naves and Palomero 1993), which reinforces the detected importance of such areas for bears throughout the monitored period. Bare rocks are usually located in areas that are less accessible to humans and that have more often higher snow cover, fitting the necessary conditions for undisturbed hibernation periods (Evans et al. 2016; Chirichella et al. 2019; Lamamy et al. 2019; González-Bernardo et al. 2020). Den disturbance can lead to the premature ending of hibernation, which can exponentially increase cub mortality (Naves and Palomero 1993; Linnell et al. 2001; González-Bernardo et al. 2020).

However, our results also show that bears tend to prefer lower to intermediate altitudes, where conditions are more adequate for finding food resources, and human presence is more abundant, a pattern that contrasts with what was described, for example, in the Italian population (Posillico et al. 2004). These results suggest that habitat selection by bears in the Cantabrian mountains is dependent upon a complex dynamic between accessing natural food resources (in broad-leaved forests or, in earlier years, in the close surroundings of humanized areas—here represented by artificial areas—most important drivers of this population occurrence. These results confirm our initial hypothesis that the Cantabrian brown bears favour landscape features associated with refuge and food resources rather than avoiding human disturbance, in a landscape that has been shaped by humans for centuries.

Lower humidity and precipitation levels during the Cantabrian mountains’ summer period (Lamamy et al. 2019) might contribute to the selection of areas at intermediate distances to inland water areas by brown bears. However, unlike in other regions of the species’ distribution (Ansari and Ghoddousi 2018), our results suggest that the Cantabrian brown bears are not heavily constrained by the distance to water bodies. Moreover, wetlands may also be associated with important sources of food, as European brown bear populations, including the Cantabrian brown bear, have an omnivorous diet, dominated by plant material (e.g., berries and fruits) (Cicnjak et al. 1987; Clevenger et al. 1992; Naves et al. 2006).

Although they show this frugivorous behaviour, in the earlier monitoring years, our results show avoidance of large agricultural areas (i.e., permanent crops and arable lands) contrasting a higher occurrence near human settlements (i.e., artificial areas). While permanent crops and arable lands can provide important food resources (e.g., grains, grass, and fruits), these results are consistent with bears avoiding intensively managed agricultural areas while exploiting small crops and fruit trees, which are often located within the vicinity of settlements (Viñas 2010)—and not explicitly represented in our models due to their small size (though being associated to artificialized areas). This increased risk of exposure to humans in areas rich in food resources (Zajec et al. 2005; Martin et al. 2012; Lamamy et al. 2019) seems to rule the non-linear effect of artificialized areas (e.g., settlements) highlighted by our models’ results, since, even in later years, several presence records were registered in areas at close to intermediate distances to settlements. Regardless, artificial areas seemed to lose relevance over time, in brown bears' occurrence patterns, accompanied by the displacement out of these areas. This trend is consistent with the decrease in the dependence on orchards close to the villages over time. Not only the abundance of this food resource has decreased due to the abandonment of villages, but also the availability of natural food resources improved as natural forests recovered, both due to rural exodus (MacDonald et al. 2000). This confirms our hypothesis that the factors that most conditioned the presence of the brown bear in the region have varied over the last 19 years, in light of the inversion in the population trend—from decline to population expansion.

The contributions of permanent crops and inland wetlands have also decreased over time. In the case of permanent crops, this decrease was accompanied by the bear's occurrence optima starting to appear at smaller distances over time, with the opposite trend for inland wetlands. Both these variables occur only in the periphery of our presence records but given the current expansion of the population distribution range, we advise that, as bears get closer to these landscape features, this apparent avoidance pattern should be monitored in more detail.

We did not find enough evidence to support our initial hypothesis that brown bears in the study area tend to occur in areas more distant from humanized elements of the landscape. Particularly, human population density and distance to roads were not identified as relevant ecological drivers representative of disturbances, contrasting previous studies (Clevenger et al. 1990; Naves et al. 2003; Mateo-Sánchez et al. 2016). Additionally, given the previously discussed role of artificial areas, this scenario reinforces the hypothesis that large carnivore conservation should consider the complementary role of anthropic systems (e.g., agriculture patches instead of intensively managed agricultural areas), as long as the conditions for human-wildlife coexistence are guaranteed (López-Bao et al. 2015; Chapron and López-Bao 2016), such as the availability of refuge (e.g., bare rocks).

This analysis provides critical information to policymakers and managers to pursue effective conservation actions for this species, particularly for the Cantabrian mountains population. Namely, our results reinforce the importance of preserving bears’ native habitats (most importantly broadleaf forests). Future conservation actions must also address the challenge of preventing fire events, which has recently become a problem for this population, possibly due to the increase in intentionally burned areas for pasture and game management. This may become an even greater threat if burned areas encroach into brown bear’s distribution range, particularly into areas of reproduction. Our results show that bears appear not to avoid humanized elements of the landscape and occupy intermediate altitudes. Thus, we are confident that, instead of a generalized avoidance of human presence, bears might perceive only certain anthropogenic activities as disturbances and might have adapted their behaviour to coexistence. This view is supported by the avoidance of intensively managed agricultural areas. Therefore, we suggest that alternative proxies of disturbance—such as quantitative and/or spatial proxies to specific human activities—such as poaching or touristic pressure—should be integrated into future ecological modelling analyses. Additionally, using smaller scales and individual tracking, both temporally and spatially, is of utmost importance to gain relevant insights into the segregation of bears with human presence and activities at specific times of significant disturbance.

Human-dominated landscapes are highly dynamic, and therefore long-term studies are crucial, since different stages in the recovery of wildlife populations in social-ecological systems may require different habitat characteristics and management strategies. Therefore, a far-reaching approach, such as long-term monitoring, is mandatory to understand the dynamics of landscape change and the species’ response to those alterations.