Introduction

Habitat occupancy by species may be influenced by both natural environmental variability (Gaston 2003; Oldfather et al. 2020) and by human activities (Collins and Kays 2011; Loss et al. 2015; Hill et al. 2020). Detecting the relative influence of the different factors is critical for species conservation in changing environments (Brook et al. 2008), especially for populations persisting in areas highly susceptible to climate change and under increasing anthropogenic pressure, such as freshwater habitats (e.g. Cianfrani et al. 2018). Typically, species at the margin of their distribution ranges experience suboptimal conditions near their tolerance limits. In those areas, even small variations in the environment may have detrimental effects on species persistence (Mehlman 1997; Williams et al. 2003; Ovaskainen and Meerson 2010; Yackulic et al. 2011).

The Eurasian otter (Lutra lutra, simply the otter henceforth) in Northern Africa constitutes a model to analyse the natural and anthropogenic determinants of species occurrence in the arid limit of its range. The otter is a semi-aquatic mammalian carnivore that obtains all its food from aquatic systems (Clavero et al. 2003; Krawczyk et al. 2016). It shows a wide distribution, covering most of the Palearctic and part of the Indo-Malay biogeographic realms (Roos et al. 2015). Northern Africa constitutes the south-western bound of the global otter distribution, and includes some of the driest areas where the species occurs (Riesco et al. 2020).

In recent decades, the conservation status of the otter tended to diverge between Northern Africa and Europe. In most central and western European countries, the otter declined steadily between the 1950s and the 1980s, probably due to the effects of direct persecution and environmental pollutants such as PCBs, DDT and heavy metals (Mason and Macdonald 1986; Macdonald and Mason 1994; Conroy and Chanin 2002). Since then, otter trend reversed (Conroy and Chanin 2002), probably as a result of the implementation of environmental regulations and the reduction of direct persecution (Loy and Duplaix 2020). However, otter declines are still ongoing, or at least not fully reversed, in other European and Asian developing countries (Gorgadze 2011; Balestrieri et al. 2016; Jha et al. 2020) and in Northern Africa (Delibes et al. 2012; Riesco et al. 2020).

We studied the natural and anthropogenic factors associated with otter occurrence in Northern Africa, where aridity limits the availability of suitable habitats, and where pressures associated to rapid human development are increasing. We analysed environmental correlates of otter occurrence at the drainage (i.e. the area of land that collects the water that drains to a particular site) and local (i.e. surrounding area of a river stretch) scales. At both scales we specifically hypothesized that otter occurrence would be positively associated with increasing rainfall and terrain ruggedness and negatively influenced by agricultural, industrial and urban pressures. Our results are relevant to understand the conservation status of the otter in Northern Africa and to design management strategies for the recovery of the species.

Methods

Study area

Morocco includes an appropriate representation of the climatic, orographic and human distribution gradients found in Northern Africa (Franchimont 2001). While north and north-western areas feature a Mediterranean-type climate, southern and eastern areas are characterised by semi-arid or arid conditions. Annual rainfall is highly variable within the country, ranging from relatively high precipitation up to over 1000 mm per year in the major mountain ranges—Rift and the Atlas—to < 50 mm in semi-arid and arid areas. Human population and the main productive activities are also unequally distributed, with large cities (hosting 95% of the around 37 million country’s population) and industries occupying the fertile coastal plains to the west and north of the Atlas Mountains. By contrast, south and east of these mountains human population density is very low, and the main productive activities are pastoralism and subsistence agriculture.

Otter surveys

We collected data on otter presences and absences in 270 sites distributed across 34 Moroccan river basins, visited between April 2011 and April 2013. This dataset includes 90 sites from a previous study (Delibes et al. 2012) together with 180 additional sites. The survey sites were selected a priori with the goal of covering as much of the country’s river network as feasible and being at least 30 km apart to uniformly surveying the whole region. We applied the standard otter survey method (Chanin 2003), which consists in sampling up to 600 m along the river shore searching for otter signs (spraints, anal scent gland secretions and tracks). River shores were inspected by at least two experienced surveyors in each survey. A site was coded as positive, and the survey was finished, as soon as an otter sign was found, while it was considered negative when the 600 m-long transect was completed without finding any sign. Otters use spraints and secretions for intraspecific communication placing them at conspicuous and predictable sites (e.g. prominent rocks, ledges, bridges, sand banks, etc.). Furthermore, otter activity concentrates on river shores, where tracks are frequently printed and easily detected. Therefore, the standard otter survey is a cost-effective and reliable method for presence-absence studies. The sensitivity and specificity of this protocol have shown to be very high (Kruuk et al. 1986; Mason and Macdonald 1987; Fusilo et al. 2007; Marcelli et al. 2012), especially when multiple and experienced surveyors are involved (Jeffress et al. 2011).

Spatial scales of analysis

River systems are structured in a nested hierarchical network (Fig. 1), in which ecological processes at any stretch within the network are tightly dependent upon upstream conditions and environmental pressures that may propagate across the drainage area (e.g. amount of rain, water abstraction, pollution, etc.). At the same time, otter occurrence at a particular site may be also influenced by the local ecological conditions and pressures. Therefore, we considered two spatial scales for the characterization of otter habitats: the drainage area (i.e., environmental features in the upper landscape draining to each catchment) and at the local-scale (i.e., a circular area surrounding each sampling site).

Fig. 1
figure 1

A schematic representation of the hierarchical hydrological units used in our analyses. Four catchments are represented. The drainage area for sampling point 1 is the same as the catchment (dashed). For sampling point 2, three catchments constitute the drainage area (all shaded areas). The outer boundary represents the river basin

Catchments characterize the immediate area of terrestrial influence on the aquatic environment and constitutes the basic unit in the hierarchical spatial structure of freshwater systems (e.g. the upstream–downstream gradient in river networks; Clavero et al. 2010; Linke et al. 2019). The drainage area is the land where precipitation accumulates and drains into one point in the river network. In our analyses, drainage areas are made up of the catchment where the sampling site was located together with all catchments upstream (Fig. 1). We delimited catchments using a digital elevation model at 3 arc-seconds resolution from the Radar Topography Mission (Rabus et al. 2003), applying the ARC Hydro Tools in Arc GIS 10.1. Then, we assigned the 270 transects to 205 catchments (mean area ± SD = 534 ± 340 km2) from 34 different river basins.

At the local scale, we defined a buffer area of 5-km diameter around each transect centre. This size was chosen since is likely that a large portion of the home range of an otter would fit within a 5-km river length (Erlinge 1967; Ó Néill et al. 2009) and therefore it represents the local conditions potentially affecting the home-range level of habitat selection.

Environmental predictors

We calculated two sets of variables—natural and anthropogenic—at the two spatial scales—drainage area and local buffers—for each sampled site. At the drainage area, natural variables were size of the drainage area, annual precipitation, and the precipitation coefficient of variation. We calculated size of the area (in km2) as the total area draining to each sampling site—i.e., where surface waters converge at the sampling site. This variable was log-transformed before any statistical analysis. Annual precipitation and coefficient of variation were compiled from the 1 × 1 km WorldClim database (Hijmans et al. 2005). We hypothesized that the probability of otter occurrence would increase with the total area, an indicator of the size of the aquatic system, and with precipitation, a measure of the availability of water, and it would decrease with increasing precipitation coefficient of variation due to increased instability of water availability. Anthropogenic variables included population density, night-time light intensity and crop percent cover. We used National demographic municipality statistics from 2004 (Haut Commissariat au Plan 2004) to calculate population density and converted this density to a gridded dataset with 1-km resolution. Night-time light intensity was extracted from DMPS/OLS satellite data from year 2010 using the annual average brightness of satellite-observed stable night-time lights at a spatial resolution of 30 arc-seconds (Elvidge et al. 2001). Night-time lights are generally associated with the prevalence of urban areas and economic activities (Doll et al. 2006) and they are often used as an indicator of pressures on biodiversity (Levin et al. 2020). Crop percent cover was calculated from the reclassification of the African subset of the GlobCover dataset (Arino et al. 2007) combining into one single category all crop types and mosaics between natural vegetation and crops, including: (i) irrigated and rainfed croplands and herbaceous crops; (ii) rainfed shrub or tree crops; (iii) mosaic croplands; and (iv) mosaics between cropland and grassland, shrubland or forest. We hypothesized that otter occurrence would be more frequent in drainage areas with lower human pressures (population density, nightlight intensity and crop cover).

At the local scale, natural variables were maximum elevation and ruggedness within the 5-km buffer. Both were calculated using the data from the Radar Topography Mission described above. We hypothesized that the probability of otter occurrence would increase with increasing terrain ruggedness since rougher terrain make access to river stretches more difficult for humans. We also hypothesised that otter occurrence would have a unimodal relationship with elevation (i.e. peaking at intermediate elevations), following results from studies in Mediterranean and arid areas (Clavero et al. 2010; Riesco et al. 2020). Local-scale human variables were population density, night-time light intensity and crop percent cover.

Modelling strategy

We specified a priori a set of nine different plausible models that resulted from the combinations of the different groups of factors involved in our hypotheses. i.e., anthropogenic and natural, at the two scales—drainage area and local buffers. Specifically, we tested if otter occurrence was associated to anthropogenic vs. natural factors observed at one or both scales, respectively, or by a combination of the different factors and scales (Table 1; Appendix Table A1). We fitted all models using Generalized Linear Mixed Models (GLMM; Bolker et al. 2009) by the Lapplace approximation, including the catchment nested within the drainage area as a random term to account for the non-independence of observations from sites within the same hydrological unit. The size of the drainage area and population density variables were log-transformed. In order to prevent collinearity effects, we excluded from a priori models variables with correlation rs > 0.50. After preliminary exploration of the models, we eliminated the variable from each pair that contributed the least to explain otter occurrence probability. Following these criteria, we excluded the population density and proportion of crops at the drainage area from models combining natural and human variables; and the local-scale intensity of nightlights from all models.

Table 1 Model selection results for the relationships between Eurasian otter occurrence and natural and anthropogenic variables at two scales. AICc = Akaike’s information criterion corrected for finite sample sizes

We ranked models using the second-order Akaike’s Information Criterion AICc and calculated their differences (ΔAICc) and the associated model selection probabilities (wi; Anderson 2008). In addition, we estimated Pseudo-R2 statistics as an indicator of the model’s goodness of fit, separating the marginal component (i.e. variability explained by the fixed factors; \({R}_{m}^{2}\)) and the conditional component (i.e. variability explained by both fixed and random factors; \({R}_{c}^{2}\); Nakagawa and Schielzeth 2013). Finally, we draw inference from the best approximating model by exploring the relative influence of each predictor in the model from the scaled parameter estimates and associated standard errors.

Results

Otter occurrence was detected in 141 out of 270 survey sites (52%; Fig. 2; Appendix 1 Table A2), along a wide range of environmental conditions. For example, otter occupied sites with annual precipitation ranging from 50 to 875 mm, elevations from sea level up to ca. 2300 m, and human population densities between 1.5 and 2700 inhabitants/km2.

Fig. 2
figure 2

The distribution of positive (black circles) and negative (white circles) otter surveys. Main rivers and tributaries are also shown. The grey scale of the map represents the mean annual precipitation

In general, models that included both natural and anthropogenic predictors and integrating the two scales of analysis performed better than models using one set of variables and/or one spatial scale (Table 1). In general, models reflecting the anthropogenic influence had a stronger support than natural ones at the scale of drainage areas, while the contrary happened at the local scale (although ruggedness may be a proxy for both human and natural effects; see the “Discussion” section). The best approximating model to describe otter occurrence in Morocco combined human and natural variables at both spatial scales. This model was clearly superior, resulting in ΔAICc > 15 units than the second competing model and wi > 0.99.

According to scaled estimates of the best model (Table 2), we found strong positive associations between otter occurrence and the annual precipitation and the size of the drainage area, and a strong negative association with night-time lights intensity. The influence of night-light intensity and precipitation were independent, since sites with otters tended to have lower light intensities than sites without otters for any value along the annual precipitation gradient of our dataset (Fig. 3). The effect of the precipitation coefficient of variation in the drainage areas was weak. At the local scale, site elevation had a very strong quadratic influence on otter occurrence, followed by ruggedness (Table 2). The positive association between otter occurrence and the local population density was weak and resulted in high estimate uncertainty. Figure 4 illustrates the most important associations resulting from the selected model.

Table 2 Results of the selected GLMM describing variability in otter occurrence in Morocco, combining both human and natural variables recorded at two scales. Scaled estimates for all fixed effects were calculated after centering the variables by the mean and scaling by the standard deviation. N=270; groups: Catchments = 204; river basins = 34
Fig. 3
figure 3

The relationship between the average precipitation (mm) and night-lights intensity at the drainage area in positive otter sites (black dots, solid line) and in negative sites (white dots, dashed line). Sites with otter: \(y=-0.79+9\times {10}^{-4}\); without otter: \(y=-0.45+9\times {10}^{-4}\). Anova test for the difference between intercepts: F = 19.6; P < 0.001

Fig. 4
figure 4

Natural and anthropogenic factors influencing otter occurrence at the drainage area and local scales. Fitted probabilities ± SE are represented for the most influential variables according to the best approximating model. Each prediction represents the full range of variation of the predictor observed in our study, while keeping the rest of predictors constant at the average value observed in otter positive sites

Discussion

Otter distribution at the arid limit of its distribution range was influenced by both natural and anthropogenic factors. The species was more likely to occur in less humanized, more humid and more rugged environments at intermediate elevations.

The anthropogenic influence on otter the distribution, revealed from the intensity of night lights, should warn on the potential consequences of ongoing accelerated changes in Morocco, if mitigation measures are not put in place. The development of roads, urban areas and industrialization have all increased rapidly in recent years as a consequence of the socioeconomic change experienced by the country. Between 1961 and 2012 the population in Morocco has grown by 256% (Abécassis 2009; World Bank 2014). Agriculture has developed extensively during the last quarter of the twentieth century with agricultural lands covering 68.5% of the country by the mid-2010s, a figure that was 55% in the 1960s (World Bank 2014). The spread of agriculture has also increased the pressure on freshwater ecosystems through growing water withdrawals, river regulation and pollution (Kettle et al. 2011; El Alami and Fattah 2020), including increases in pollutants such as PCBs, DDT and mercury (Berkat and Tazi 2006; Benbakhta et al. 2014).

We did not detect the expected direct negative relationship between the distribution of agricultural land and otter presence. In our dataset, the detrimental effects of agriculture could have been masked by the relationship between agriculture and rainfall (rs = 0.82), the latter being also a major direct driver of otter occurrence. In any case, water-demanding agriculture may still seriously imperil otter and other freshwater-dependent species in Morocco. As observed in Southern Europe during previous decades, the expansion of intensive agriculture is often followed by increases in the amount of pollutants dumped into freshwater ecosystems, severe changes in river hydrology, and a reduction of fish availability (Reid et al. 2019). However, there may be a significant time-lag between the incidence of those impacts and their detection through presence-absence surveys, because these do not allow recording changes in population abundance that may precede local extinctions (Ceballos et al. 2017).

As in our study area, precipitation has been identified as a climatic predictor of otter presence in Europe at a continental scale (Cianfrani et al. 2011), and particularly in the Mediterranean climate region (Prenda et al. 2001; Clavero et al. 2010), where high and unpredictable seasonal and inter-annual precipitation variability influences the structure and functioning of freshwater ecosystems (Gasith and Resh 1999). Rainfall seems to be decreasing and is predicted to further decline in Morocco due to global climate change (Filahi et al. 2017; Driouech et al. 2020). Therefore, some habitats where otter still occurs may soon become unsuitable due to aridification.

As in the case of precipitation, the positive relationship between the size of the drainage area and otter occurrence may also be reflecting the large water availability of major river systems. Large drainage basins generate more productive riverine environments than small watercourses, allowing the occurrence of rich and diverse aquatic communities, and buffer environmental variability, reducing the probability of local extinctions (Eadie et al. 1986; Watters 1992; Carl et al. 2021). Species-area patterns described for relevant otter prey in river systems, particularly fish, have been proposed to drive area-related variation in otter trophic ecology (e.g. Clavero et al. 2008) and arguably are the mechanism explaining the positive effect of drainage area on otter occurrence found in our results.

Otters were more likely to occur at intermediate altitudes. The scarcity or lack of prey in the oligotrophic high mountain aquatic systems explains the species absence at high altitudes (Barbosa et al. 2003; Clavero et al. 2010). However, the scarcity of trophic resources does not seem a plausible explanation for the low prevalence of the otter at low altitudes in Morocco. In European rivers, otters have often been found also at lower reaches down to the sea level (Heggberget and Moseid 1994; Clavero et al. 2006; Parry et al. 2011), and the same was occasionally recorded in our surveys. The frequent absence of otters at low elevations in Morocco may be explained by the intermittency of waters of the downstream reaches in small and medium-sized rivers, making these rivers saltier and prone to drought during the summer (Riesco et al. 2020). However, otters were also very rare in lower reaches of most large rivers despite they maintaining permanent water flows and having abundant fish populations (Azeroual et al. 2000; Nouiri et al. 2007). Here, the pattern resembles the one reported in Southern Europe during the 1980s when the species was mainly confined to mountainous areas (Elliot 1983; Delibes 1990). We argue that the demographic, industrial and agricultural development of Morocco have altered freshwater systems (Mehdaoui et al. 2000; Tahiri et al. 2005; El Morhit et al. 2009), and that this degradation is magnified in lowlands due to the directional interconnectivity of the freshwater systems. Moreover, lowlands are usually more urbanised and altered than hilly and mountain areas.

Otters were found more frequently in areas with high local ruggedness. We treated ruggedness as a natural predictor, but this variable could be related to both natural and human influences on the species occurrence. On the one hand, terrain roughness may be a proxy for the availability of refuge, which favours otter occurrence (Prenda and Granado-Lorencio 1996; Marcelli and Fusillo 2009). But, on the other hand, ruggedness may also indicate the intensity of human presence, since it is related to the accessibility of people to the river. Higher ruggedness could thus reduce direct otter persecution and competition between otter and people for resources such as water, fish and riparian vegetation (El Alami et al. 2020).

Conclusions

Morocco and other countries in Northern Africa are immersed in a rapid process of development that leads to socio-economic growth and improvement in the quality of life of their people. These processes, if they occur without effective conservation planning, can generate an undesired degradation of ecosystems and loss of biodiversity, especially affecting freshwater biodiversity in semiarid and arid regions. We have shown that human pressures directly limit otter distribution in Morocco, with an impact on species occurrence comparable to that of precipitation. With increasing levels of urbanization and industrialization in a rapidly developing country, our results suggest a serious and widespread threat to otter populations in Northern Africa, where aridity conditions already impose a sharp constraint on the natural distribution of wetlands. However, the persistence of the species in some agriculture-dominated lands detected in this study also point out to opportunities for reconciling conservation in human-dominated landscapes, as has already occurred in Europe. An increased protection of the species and sustainable management of rivers, including precluding the use of pesticides that imperil freshwater ecosystems, have already shown to be effective in reversing the decline of otters and associated freshwater ecological communities in other countries.