Introduction

Interactions between sympatric species and intraguild competition can significantly affect the structure and function of ecological communities (Soulé et al. 2003; Ripple et al. 2014; Elbroch et al. 2015; Harvey et al. 2017). In competitive interactions, resources can be partitioned, and characters can be displaced, which may affect the dynamics of the species involved and the structure and function of ecological communities (Schoener 1974; Schluter and McPhail 1992). For a number of different taxa, separation of sympatric species in space or time is known to reduce the intensity of species interactions (e.g., Schuette et al. 2013; Karanth et al. 2017; Krohner and Ausband 2019; Li et al. 2022), hence enhancing coexistence and species richness (Vanak et al. 2013; Sladecek et al. 2017; Prat-Guitart et al. 2020). This information is important to the conservation and management of biological communities as anthropogenic disturbances and climate change intensifies (Li et al. 2019; Dai et al. 2020; Sévêque et al. 2020).

Humans, as the only predators of apex carnivores, have a profound ecological impact on the ecosystem (Ripple et al. 2014; Oriol-Cotterill et al. 2015). Anthropogenic disturbance poses a new hazard to social predators since it can alter group dynamics and endanger the survival of their young (Creel and Rotella 2010; Ausband et al. 2015). In human populated regions, social predators may restrict the size of their groups to avoid being detected (Oriol-Cotterill et al. 2015). In any habitat impacted by anthropogenic factors, humans have become the primary competition for wildlife species (Krohner and Ausband 2019).

Variations in wildlife diel activity patterns originate from competition, prey, predators, or other disruptions (Ayres et al. 1986; Olson et al. 1998; Laundré et al. 2001; Neale and Sacks 2001; Kronfeld-Schor and Dayan 2003). As a result, diel activities may provide insight into some of the underlying factors that ultimately determine life histories (Bunnell and Harestad 1990). This suggests that diel activities could be important in the establishment of threatened species conservation programs. The competing and resource-sharing strategies of sympatric species can be better understood with an understanding of their temporal and spatial activity patterns (Schoener 1974). Managers can conserve and manage natural ecosystems more effectively if they have a thorough understanding of how species niches differ and how they coexist (HilleRisLambers et al. 2012).

The study of species co-occurrence patterns is critical to understand the role of evolution, history, coexistence mechanisms, competition, and the environment in shaping community structure and assembly (Griffith et al. 2016). Patterns of co-occurrence among various species are an important component of ecological research (Letten et al. 2017; Croose et al. 2019; Carvalho and Cardoso 2020; Nickel et al. 2020; Farris et al. 2020). Interspecific interactions provide the basis for species coexistence, community structure and assembly, and the maintenance of genetic diversity (Griffith et al. 2016; Prat-Guitart et al. 2020). Even the earliest Clementsian and Gleasonian theories on the structure of plant communities can be interpreted in terms of species co-occurrence (Hoagland and Collins 1997). Positive, negative, or random associations exist between two species on a fundamental level. However pairwise approaches are designed to identify species pairs with positive, negative, or random associations (Sfenthourakis et al. 2006; Gotelli and Ulrich 2010; Veech 2013). Co-occurrence between two species can be quantified. The observed co-occurrence can be compared with the expected co-occurrence, which is the product of the co-occurrence probability of the two species multiplied by the number of sample locations (Griffith et al. 2016).

In the past decade, camera trapping has made it possible to systematically study activity patterns and niche overlap over time. One of the most common and straightforward approaches to analyze Asiatic black bear behavior over a wide range of environments and climates is the use of thermal infrared camera traps (Akbaba and Ayaş 2012). Recent research has examined whether overlapping activity patterns among species are indicative of competition or predation (Linkie and Ridout 2011; Carver et al. 2011; Ramesh et al. 2012; Ross et al. 2013; Azevedo et al. 2018; Havmøller et al. 2020; Kamler et al. 2020). In order to gain a better understanding of the diel activity patterns and coexistence of species, camera trap detections provided valuable data for both these aspects (Krohner and Ausband 2019; Zhang et al. 2019; Prat-Guitart et al. 2020; Zahoor et al. 2021; Li et al. 2022) (Table 1).

Table 1 Body size, diet habits, diel activity pattern and IUCN / National red list status of the Asiatic black bear and its sympatric species

Using camera trap data, the temporal overlap and co-occurrence of the Asiatic black bear (hereafter “bear”) and its sympatric species were assessed in the temperate zone of Pakistan’s Hindu Raj Mountain range. In the Hindu Raj Mountain range, there is no published information on mammalian activity and co-occurrence. To acquire a better knowledge of bear ecology and conservation in disturbed habitats, researchers must measure the impact of humans and other sympatric species on the diel activity and co-occurrence patterns of bears. Although no such study has ever been conducted in the Hindu Raj Mountain range, the findings of this study will serve as a foundation and provide baseline data, for future, in-depth research.

Materials and methods

Study area

This study was conducted in the Hindu Raj Mountain range (35°02′0″ N-35°60′0″ N; 72°10′0″E-72°55′15″ E) covering an area of 3025 km2. This region features moist temperate, dry temperate, subalpine, alpine, and snowcap zones between 1,235 to 5,954 m above sea level (a.s.l) (Figs. 1 and 2). The Hindu Raj Mountain range is connected with Himalayan and Hindukush Mountain ranges (Hildebrand et al. 2000). The average annual temperature is 10.84 °C, with a high of 32.1 °C and a low of -12.2 °C; yearly rainfall is 1029.63 mm (Working Plan for Kalam Forests, 1987 – 1988 to 2001 – 2002; Rahman et al. 2022). In the study area, forests serve as the primary source of fuelwood during harsh winters and of building materials. However, this dependency, coupled with uncontrolled grazing and increasing livestock population, significantly hampers forest regrowth, thereby degrading the ecosystem (Qasim et al. 2013).

Fig. 1
figure 1

The location of the study area is in the district of Swat in Khyber Pakhtunkhwa Province, northwestern Pakistan. The map insets show the locations of the study area in Swat district and Pakistan

Fig. 2
figure 2

Species captured along with bear at each camera trap station

Field survey

Camera trapping

In order to systematically explore the research area with camera traps, we used ArcGIS version 10.8 to create a map of the area (ESRI 2011; Kabir et al. 2017; Hameed et al. 2020). From October 2020 to December 2021, 81 camera trap sites with motion-sensitive thermal infrared cameras (ZopuCam, SL122C-2) were placed for 616 trap nights in the study area. Camera traps were set up in the locations where we suspected the presence of Asiatic black bears after conducting a preliminary surveys comprised of signs survey and group discussion with indigenous communities. Except for sites separated by roads, rivers, or nearly vertical cliffs, we set up a camera trapping station at least one kilometer apart. With the use of a Global Positioning System, we were able to record the altitude and coordinates of every camera trapping station. The cameras were positioned to avoid triggering by foreground foliage (Apps and McNutt 2018). We improvised in a few locations by placing the camera higher or lower than the typical height of 40 to 60 cm due to concerns about theft.

Data analysis

Species activity and overlap patterns

During data analysis process, only detections that happened within 30 min of the previous image at the same camera station were considered (Linkie and Ridout 2011). We determined the diel pattern and coefficient of overlapping, a quantitative measure ranging from 0 (no overlap) to 1 (identical activity patterns), by fitting a kernel density function to periods of observations of animals (Ridout and Linkie 2009). We used a von Mises kernel instead of the more common Gaussian kernel since it represents a circular distribution. For a spiky kernel density curve, we have chosen the default value of 1 for argument adjustment. For samples with fewer than 50 observations, we utilized Dhat1, the best non-parametric estimate of the overlapping coefficient, and when both samples were larger than 50, we used Dhat4 estimate. We performed 10,000 smoothed bootstrap estimations to obtain a 95 percent confidence interval (CI). The significance of two curves was determined using Watson's two-sample homogeneity test. The "overlap" package in R (R Core Team 2016) was used to conduct diel activity pattern and temporal overlap analysis (further details in the Supplementary Materials, Appendix 2) (Meredith and Ridout 2021).

The following formula was used to figure out the selection ratios for each species and each time period (Manly et al. 2007; Bu et al. 2016; Li et al. 2022).

$$wi\;=\;oi/\pi i$$

where wi is the selection ratio for the period in question, oi is the proportion of independent detections in the relevant period, and πi is the proportion of length in the relevant period to the total length of all the periods. If wi > 1, the time period is preferentially preferred, but if wi < 1 the time period is avoided. At last, we analyzed hourly temperature variations using data gleaned from the bear photos to see if there was a temperature threshold for bear activity.

Species co-occurrence patterns

We assessed how many sampling sites had two species co-occurring using the probabilistic model of species co-occurrence (Veech 2013; Pulver et al. 2016; Watabe et al. 2022). We used pairwise techniques to determine if species pairs reflect positive, negative, or random associations (Sfenthourakis et al. 2006; Gotelli and Ulrich 2010; Veech 2013). In this study, we compared observed and expected co-occurrence. The probabilistic model uses combinatorics to ascertain whether the observed frequency of co-occurrence is significantly large and greater than expected (positive association), significantly lower and less than expected (negative association), or not significantly different and relatively close to expected (random association) (Veech 2013). Effect sizes were determined from the difference of the expected and observed co-occurrence rates, as described in the probabilistic co-occurrence study by Veech (2013). In R (R Core Team 2016), the "co-occur" package was used to do co-occurrence analyses (further details in the Supplementary Materials, Appendix 2) (Griffith et al. 2016).

Exploratory regression analysis

Exploratory Regression Analysis was conducted using ArcGIS 10.8, employing the Exploratory Regression tool to identify significant predictors of Asiatic black bear encounter rates at presence points (ESRI 2011; Fenglin et al. 2023). This tool is particularly useful for examining potential relationships while diagnosing issues of multicollinearity and ensuring that the assumptions of normality and homoscedasticity are met.

Digital elevation models (DEMs) provide data on altitude, aspect, slope, and roughness. These rasters were sourced from Open Topography, ensuring high-resolution and accurate topographic information (NASA Shuttle Radar Topography Mission (SRTM) 2013). Forest cover data was obtained from the Global Forest Change project, which provides insights into the extent and changes in forest cover over time (Hansen et al. 2013). Euclidean Distance to Built Areas was calculated using a raster developed from Esri's Land Use Land Cover data, identifying the proximity of each camera trap location to the nearest built environment (Karra et al. 2021). Initially included in the study, bioclimatic variables from the CHELSA dataset were considered for their potential influence on bear habitats (Karger et al. 2017). However, due to high multicollinearity observed in the preliminary models, these variables were excluded from the final analysis (Feng and Tong 2017).

Models were iteratively built and refined. The final selection of variables and model configuration were determined based on optimal values for Adjusted R-Squared, AICc, and other statistical criteria that ensure a robust model. Initial models included a wide range of variables (bioclimatic, sympatric species encounter rates, and topographic variables). Through a process of model evaluation and refinement, variables causing multicollinearity were identified and excluded. This iterative process helped in pinpointing the most relevant explanatory variables without overstating the effects due to collinear variables.

Adjusted R-Squared was used to determine the explanatory power of the models, with higher values indicating better explanatory capabilities (Sheng et al. 2017; Sá et al. 2011). Akaike Information Criterion corrected (AICc), a key criterion for model comparison, with lower values indicating a model with a better fit (Akaike 1981). Variance Inflation Factor (VIF) was used to detect the presence of multicollinearity among explanatory variables. Variables with VIF values exceeding 7.5 were scrutinized and, if necessary, removed from the model (Sheng et al. 2017; Sá et al. 2011). The Jarque-Bera (JB) test for normality of residuals and Koenker (BP) statistic for homoscedasticity were used to validate the model fit (Sheng et al. 2017; Sá et al. 2011). Global Moran’s I was conducted to assess spatial autocorrelation in the exploratory regression model.

This approach ensures that the findings are grounded in empirical data and statistically sound, providing a solid foundation for conservation and management strategies in the region (Sheng et al. 2017; Sá et al. 2011) (further details in the Supplementary Materials, Appendix 1).

Non-metric multidimensional scaling (NMDS)

Non-metric Multidimensional Scaling (NMDS) was employed to explore the ecological distances between species based on their presence and absence data (Steenweg et al. 2023). The Jaccard dissimilarity index was used as the distance measure for NMDS, appropriate for binary data as it emphasizes the proportion of shared presence between species pairs relative to the total presence across species pairs (de Abreu Pestana et al. 2023).

The “vegdist” function from the “vegan” package in R was used to compute the Jaccard dissimilarity matrix among all pairs of species (Oksanen et al. 2007; R Core Team 2016). Subsequently, the “metaMDS” function from the same package was applied to perform the NMDS analysis with a configuration set to two dimensions and a maximum of 100 tries for a stable solution. The number of dimensions was chosen to balance the complexity of interpretation with the fidelity of representation of the dissimilarities among species.

The stress value, a measure of the goodness of fit of the NMDS configuration, was annotated on the plot to quantify the representation accuracy (further details in the Supplementary Materials, Appendix 2) (Dexter et al. 2018).

Results

Our surveys accumulated 428 independent detections of 14 different mammal species throughout 616 trap nights (Fig. 3). The analysis omitted the species (Persian leopard, Giant flying squirrel, Jungle cat, Indian pika) with ten or fewer independent detections, but included the calculated overlap of the Leopard cat (6) and Yellow-throated marten (4) with bear.

Fig. 3
figure 3

A camera trap acquired photo of the Asiatic black bear and the Indian crested porcupine at the same time and location in the research area

Diel activity pattern

Bears do not hibernate in the southern portion of our study region, which is situated at a lower altitude and accumulates less snow in winters than the northern portion. Bear hibernation patterns also vary with the ruggedness of landscapes and the amount and depth of snowfall (Moll et al. 2021). Diel activity patterns of bears varied considerably between periods (crepuscular, diurnal, nocturnal) (X2 = 55.98, df = 2, p-value < 0.001).

Based on the selection ratios formula and kernel density analysis (Table 2, Fig. 4), the bear and the Asiatic jackal had a bimodal activity pattern with peaks during the crepuscular period (wi = 2.10 and 5.11, respectively) and the nocturnal period (wi = 1.54 and 0.99, respectively), and low levels of activity during the day (wi = 0.28 and 0.44). Independent crepuscular bear detections occurred primarily after sunset rather than before daybreak. The activity patterns of the red fox, Indian crested porcupine, stone marten, and the grey wolf all exhibited a higher degree of nocturnal activity (wi = 1.97, 2.2, 1.76, and 2.23 respectively) than crepuscular (wi = 1.35, 0.71, 0.62, and 0.00 respectively) or diurnal (wi = 0.19, 0.00, 0.54, and 0.20 respectively). During a 24-h period, feral dogs displayed cathemeral behavior with multiple activity peaks, including crepuscular (wi = 1.60), diurnal (wi = 1.54), and nocturnal (wi = 0.56). Rhesus monkeys and humans were most active during the diurnal (wi = 1.87 and 2.03 respectively) and crepuscular hours (wi = 1.86 and 1.81 respectively) and had minimal nocturnal activity (wi = 0.20 and 0.04 respectively).

Table 2 Summary of the number of independent detections n (selection ratio: wi) and Chi-square test results for diurnal, nocturnal, and crepuscular time periods for bear and sympatric species in the Hindu Raj mountain range
Fig. 4
figure 4

Independent detections and selection ratio of Asiatic black bear and other sympatric species across crepuscular, diurnal, and nocturnal periods

Activity pattern overlap

Bears exhibited considerable distinct diel activity patterns compared to those of their sympatric species (P < 0.001). Bear with red fox had the greatest temporal overlap (Δ4 = 0.78, 95% CI = 0.68 – 0.89) followed by stone marten (Δ1 = 0.76, 95% CI = 0.64 – 0.87), Indian crested porcupine (Δ1 = 0.74, 95% CI = 0.62 – 0.85), Asiatic jackal (Δ1 = 0.73, 95% CI = 0.59 – 0.87), feral dog (Δ1 = 0.53, 95% CI = 0.41 – 0.66), and grey wolf (Δ1 = 0.40, 95% CI = 0.22 – 0.55). Bear and rhesus monkey had the lowest temporal overlap (Δ1 = 0.38, 95% CI = 0.27 – 0.50). Bears avoided the human activity and rarely overlapped with humans (Δ4 = 0.29, 95% CI = 0.19 – 0.39). We only collected six and four independent detections of leopard cat and Yellow throated marten, respectively, for which we estimated activity overlap with bear, leopard cat (Δ1 = 0.76, 95% CI = 0.40 – 1.03, 0.001 < P < 0.01) and yellow throated marten (Δ1 = 0.53, 95% CI = 0.22 – 0.84, P < 0.001). The bear activity after snowfall remained almost identical to before snowfall, but it was primarily photographed during the daytime after the snowfall (Δ1 = 0.82, 95% CI = 0.68 – 0.97). This might have occurred because of fewer disturbances following the snowfall, when locals rarely visit the bear habitat. The maximum temperature recorded by camera traps for bear activity was 29 ℃, and the lowest was -5 ℃, while the mean maximum and mean minimum was 12.85 ℃ and -0.90 ℃ respectively (Figs. 5 and 7).

Fig. 5
figure 5

ak Kernel density estimations (Y axis) are plotted against time (X axis) and the overlap is illustrated by a shaded grey area. Sunrise and sunset times are depicted by the dashed vertical lines on the X axis, and midnight is located at the 0 o'clock position. The lines at the bottom of the graphs represent the number of independent detections for each species. l Minimum and maximum temperatures recorded for all independent Asiatic black bear detections are grouped by hour of the day

Species co-occurrence patterns

Bear had six significant positive, three random and zero negative associations with its sympatric species (Tables 3 and 4, Figs. 6 and 7).

Table 3 A summary of probabilistic co-occurrence analysis of the bear with its sympatric species
Table 4 Summary of the Probability of co-occurrence and co-efficient of overlap of bears with its sympatric species in the Hindu Raj mounatin range
Fig. 6
figure 6

The plot shows probabilistic co-occurrence model determined positive and random associations for the bear and its sympatric species

Fig. 7
figure 7

Asiatic black bear co-occurrence and temporal overlap with other sympatric species in the Hindu Raj Mountain range. The expected co-occurrence was < 1 for the Yellow throated marten pair with the bear and was not included in the co-occurrence analysis

There were no negative associations found with the Asiatic black bear; however, there were 66.67 and 33.33 percent of positive and random associations, respectively.

In addition, a co-occurrence analysis was conducted to assess the effect sizes (practical significance), which are the differences between the expected and observed co-occurrence rates (Fig. 8). To standardize their values, these differences were divided by the total number of sampling sites (81) in our dataset. In standardized form, these values range from -1 to 1, with positive values indicating positive associations and negative values indicating negative associations.

Fig. 8
figure 8

Heat map of the effect sizes for all species pairs with the Asiatic black bear

Results from the exploratory regression analysis

Initial models that included bioclimatic variables and additional species such as the leopard cat and Aasiatic jackal were found to suffer from high multicollinearity, which obscured the individual effects of explanatory variables. Through systematic removal and retesting, it was determined that excluding these variables improved the clarity and performance of the models. Exploratory regression analysis using the final selected variables in different combinations from 2 to 12 variables resulted in 34 models in several variables demonstrating varying degrees of significance and impact on bear encounter rates (further details in the Supplementary Materials, Appendix 1). Feral dog and rhesus monkey were significant 42.06% and 24.62% of the time, respectively, both showing a 100% positive effect on bear detections. Stone marten, appearing significant in 19.20% of cases, mostly affects detections positively (94.33%) with a small negative component (5.67%). Euclidean distance to villages is significant 15.93% of the time, predominantly negatively impacting detections (78.02%). Altitude, significant in 14.07% of cases, has a wholly negative influence. Forest cover and red fox, though less frequently significant at 2.20% and 0.88% respectively, generally had a positive association with bear, with forest cover having a minor negative impact (8.94%) and red fox almost entirely positive (98.83%). Indian crested porcupine and grey wolf show minimal significance but a balanced impact between negative and positive influences. Variables like human, roughness, and aspect, despite having no overall significance, display mixed effects, slightly favoring positive over negative impacts in detections (Fig. 9). This analysis captures the diverse roles these variables play in influencing bear detection probabilities, highlighting the complex interactions within their habitat. The final model included stone marten, feral dog, rhesus monkey and altitude as explanatory variables, and achieved an Adjusted R-Squared of 0.43, indicating that approximately 43% of the variability in Asiatic black bear detections could be explained by these variables. The AICc of the best model was 23.02, suggesting a balance between model complexity and explanatory power (further details in the Supplementary Materials, Appendix 1).

Fig. 9
figure 9

The percentage of significance in all models with final selected explanatory variables, and their negative and positive on Asiatic black bear presence, as determined through exploratory regression analysis

The Variance Inflation Factor (VIF) values were substantially reduced in the final models, with all remaining variables showing VIFs well below the threshold of 7.5, indicating minimal multicollinearity. The final models passed the Jarque-Bera test for normality of residuals, suggesting that the error terms were normally distributed, which is a critical assumption for the validity of regression analyses. The Koenker (BP) test results were also within acceptable limits, indicating that the models did not suffer from heteroscedasticity, and the error variance was constant across different levels of the independent variables. Global Moran's I result indicated no significant spatial autocorrelation in the residuals of the final models. This suggests that the models adequately captured the spatial structure of the data, and any spatial pattern in the bear detections was effectively explained by the models without leaving spatial dependencies unaccounted for.

NMDS ordination

This analysis illustrates how closely the two species are co-occurring based on the extent of their spatial patterns. The notion of interspecific interactions provides the foundation for analyzing whether two species' spatial patterns overlap. The greater the degree of overlap, the more likely it is that the species inhabit the same niche. We used NMDS to evaluate the similarity of Asiatic black bear spatial distribution with sympatric species. The species ordinated close to bear have comparatively similar spatial patterns to bear and vice versa (Fig. 10).

Fig. 10
figure 10

Species which have a similar co-occurrence pattern to that of Asiatic black bear are ordinated near to Asiatic black bear

Discussion

This study demonstrates for the first time how the bear shares the habitat with humans and other sympatric species, providing crucial information for the bear's conservation efforts in the Hindu Raj mountain range. In subtropical and temperate habitats, the bear has long been considered an "umbrella species," meaning that conserving its habitat will also maintain sufficient habitat for co-occurring species (Fleishman et al. 2000; Seddon and Leech 2008; Yamamoto et al. 2012).

Bears followed a fairly comparable diurnal activity pattern before and after the onset of snowfall, but the majority of daylight photographs were captured after the onset of snowfall. The reduced activity of humans (forest product collectors, grazers, etc.) following a snowstorm may be an additional reason, as they are less likely to enter the forest. Overall bears showed a bimodal diel pattern with activity peaks just after the sunset and in the night hours. This may be because most of the capture events in our study were recorded in autumn and winter, and autumn food sources like Quercus species acorns are densely present, making nighttime foraging easier for bears. In autumn, both Asiatic and American black bears become more active at night (Reid et al. 1991; Garshelis and Pelton 1980). Nighttime activity has been attributed to increased foraging to prepare for winter denning (Nelson et al. 1983) or the avoidance of diurnal disturbances or threats by humans (e.g., hunters) (Swanson 1990; Bridges et al. 2004). It is thought to be primarily nocturnal, although daylight sightings have been documented (Zahoor et al. 2021).

Our data analysis suggest that bears are adjusting their temporal activity patterns, increasing nocturnal activities to avoid human presence while still occupying the same areas. Similar avoidance behaviors have been observed in other large carnivores in Nepal (Carter et al. 2015). Our exploratory regression analysis shows that in most locations, bear detections increase with proximity to anthropogenic features, likely due to the scarcity of natural food resources and the easy availability of anthropogenic sources. Conversely, in some areas, bear detection rates decrease as the distance from these anthropogenic features increases, which may be attributed to the availability of abundant natural food sources. In northern Pakistan and the autonomous state of Azad and Jammu Kashmir, bears frequently inhabit dense temperate forests at altitudes ranging from 1,500 m to 3,000 m above sea level, though they also intermittently occupy human-modified habitats at lower altitudes (Abbas et al. 2015; Awan et al. 2021; Ahmad et al. 2022). In areas where bears are heavily disturbed by human activities or rely on human food sources, they exhibit more nocturnal behavior and stay close to anthropogenic features (Ayres et al. 1986; Beckmann and Berger 2003; Matthews et al. 2006: Schwartz et al. 2010).

During autumn and winter, bears migrate to lower altitude Oak forests to feed on acorns and raid agricultural crops, resulting in significant geographical overlap with human populations (Ahmad et al. 2022). As generalists regarding habitat and diet, Asiatic black bears can adapt to various environmental conditions, including proximity to human settlements (Escobar et al. 2015). Altitude consistently shows a negative effect on bear activity, with bears preferring Oak forest habitats at lower altitudes. Forest cover remains a significant predictor of bear detections, underscoring that Asiatic black bears primarily inhabit forested areas and rarely venture into open spaces or meadows (Ahmad et al. 2022).

Camera trapping surveys in our study area have captured images of solitary feral dogs and packs of two to six dogs, which pose potential threats to large carnivores like bears. Our analysis indicates a greater likelihood of co-occurrence between feral dogs and bears than expected, with significant associations suggesting a serious threat, especially to bear cubs. Feral dogs impact native wildlife through direct predation (Gatti et al. 2018; Khattak et al. 2021; Zamora-Nasca et al. 2021), competition for resources (Young et al. 2011; Vanak and Gompper 2009; Hughes and Macdonald 2013), and the spread of diseases such as canine distemper virus (CDV), which has significantly affected wildlife populations globally (Furtado et al. 2016; Czupryna et al. 2016; Wang et al. 2022; Terio and Craft 2013; Roelke-Parker et al. 1996; Mulia et al. 2021; Gordon et al. 2015; Timm et al. 2009). Notably, there is comparatively less overlap in the nocturnal activities of bears and dogs, which may reduce direct encounters. The frequent visits of dogs to bear habitats may also be influenced by the fact that in our study area, bear detections increase as the distance to anthropogenic features decreases. To adapt, bears tend to be mostly nocturnal, whereas dogs in our study area are primarily active during the day. Given their widespread presence and role as apex predators in areas lacking natural predators, feral dogs require effective management strategies to mitigate their negative impacts on ecosystem health (Vanak and Gompper 2009; Vanak et al. 2013; Zanin et al. 2019; Zapata-Ríos and Branch 2018; Tiwari et al. 2019; Khattak et al. 2021).

Our results show that bears and the Indian crested porcupine have a higher frequency of co-occurrence and a higher temporal overlap. The Indian crested porcupine is predominantly nocturnal, with a unimodal activity pattern. Both species are known to extensively feed on Quercus acorns and damage crops across their distribution range (Naeem Awan et al. 2016; Ali et al. 2017; Hafeez et al. 2011; Waseem et al. 2020; Ashraf et al. 2021; Khan et al. 2021; Ahmad et al. 2022). In Pakistan, Indian crested porcupines are considered pests due to their substantial crop and plantation damage (Khan et al. 2000; Ashraf et al. 2021; Akhtar et al. 2021; Khan et al. 2021; Mushtaq et al. 2013). People's perceptions of individual species may be influenced by the behavior of other species in ecosystems where multiple species cause damage (Farhadinia et al. 2017). While this phenomenon is sometimes disregarded in conservation efforts, it is of critical importance in maintaining public acceptance of threatened mammals (Farhadinia et al. 2017). Similarly, rhesus monkeys, which are active primarily during the day and consume large amounts of Quercus acorns in the fall, are more feared than bears for their crop damage. This species, although of least concern according to the IUCN, causes significant damage in orchards and agricultural areas, exacerbating local resentment towards wildlife (Pirta et al. 1997; Ahmad et al. 2022; Saraswat et al. 2015; Anand et al. 2018; Koirala et al. 2021).

Martens, like bears, are generalist omnivores that primarily consume the same foods (Serafini and Lovari 1993; Padial et al. 2002; Monterroso et al. 2014; Grassman et al. 2005; Ali et al. 2017; Ding et al. 2022). Our study found a very high temporal overlap between stone martens and bears, suggesting spatial adaptations that allow coexistence. However, the research did not show any significant or random associations between bears and stone martens at the sample sites. But our analysis of co-occurrence effect sizes indicated that bears and stone martens generally avoid each other in space.

For yellow-throated martens, our limited sample revealed that their association with bears appears random. Like other martens, yellow-throated martens can adapt to changes in food availability, which supports their extensive biogeographic range (Ben-David et al. 1997; Rodel and Stubbe 2006; Zhou et al. 2011). Nonetheless, more detailed and prolonged studies involving diet, activity patterns, and spatial usage are necessary to gain a clearer understanding of how yellow-throated martens coexist within this ecosystem.

After bears, red foxes were the second most frequently recorded species in our camera trap surveys. Temporal overlap analysis indicated that bears had the highest overlap with red foxes and a significant, though lesser, overlap with Asiatic jackals. Our effect size estimations and probabilistic co-occurrence analysis revealed that red foxes have a considerably positive relationship with bears, co-occurring more frequently than expected. They also displayed a random association with Asiatic jackals. The likely reasons for this co-occurrence with bears could be the scavenging opportunities provided by bear prey, as observed in our camera trapping survey, or to avoid predation from larger predators like wolves and leopards. Recent research suggests that the presence of top predators can benefit mesocarnivores by increasing their scavenging opportunities and offering protection from other predators, though this hypothesis warrants further exploration (Sivy et al. 2017; Moll et al. 2021).

Grey wolves and bears exhibit significant spatial and temporal separation, likely because wolves prefer higher altitudes in subalpine and alpine meadows and are specialist carnivores, while bears are omnivores inhabiting temperate forests. During their active seasons in autumn and winter, bears frequent Quercus forests to consume acorns and raid nearby maize crops and Diospyros lotus (Din et al. 2013; Rehman et al. 2021; Werhahn et al. 2018; Ahmad et al. 2022).

Although our sample size for leopard cats is small, results suggest a significant temporal overlap with bears but with a wider confidence interval, with leopard cats most active just before sunrise, a period of lower bear activity. Despite this, leopard cats have a significant positive relationship with bears, co-occurring more frequently than expected, as shown by probabilistic co-occurrence analysis and effect size calculations. However, NMDS ordination indicates significant spatial dissimilarity between the two species, suggesting that leopard cats might share space with bears but avoid temporal interaction as they have high temporal overlap, but their peak activity times are different. While bears have a broad omnivorous diet, leopard cats are specialized carnivores primarily preying on murids. Both species prefer dense cover and habitats below the tree line (Bashir et al. 2014; Ali et al. 2017; Escobar et al. 2015; Ahmad et al. 2022).

Conclusion

The Asiatic black bear serves as a focal point for conservation in the Hindu Raj Mountain range, acting as an umbrella species whose habitat requirements encompass those of many sympatric species. This study provides detailed insights into the adaptable nature of the Asiatic black bear, explaining varied levels of spatial and temporal overlap with sympatric species in the study area. The bears' increased nocturnal activity, particularly in areas with higher human activity and easier access to anthropogenic food sources, underscores their ability to adapt to changing environmental conditions. This adaptation, however, also brings them into closer contact with humans and other species such as feral dogs, which poses additional risks including increased potential for conflict, retaliatory killings, and disease transmission. This research highlights the importance of habitat features such as forest cover and altitude, especially the Oak forests located at lower altitude close to human settlements which significantly influence bear detections. These environmental variables are crucial for designing effective conservation measures, ensuring the preservation of habitat that supports not only the Asiatic black bear but also the broader biodiversity of the region. While the research provides valuable insights into bear ecology and interspecies relationships, it did not include an analysis of food availability. Future studies should incorporate food availability assessments, prey-predator dynamics, and other niche dimensions not included in this study to enhance our understanding of bear ecology and inform conservation efforts. Continuing such detailed ecological investigations is crucial for the sustainable management and conservation of Asiatic black bears and the ecological balance of their temperate habitats.