Introduction

Climate change is one of the most important natural factors affecting biodiversity, agricultural production, and food security on a global scale1,2,3,4. Climate change is accepted by most scientists as a reality, with impacts to plant and animal species forecasted to be complex and dramatic5,6,7. Over the course of a few decades, climate change has rapidly altered the habitats of various species, leading to mass extinction, particularly among sensitive species. This is backed up by studies conducted by e.g. Chhogyel et al., IPCC, Muluneh, Walther, Ruizhi et al. and Khajoei Nasab et al.8,9,10,11,12,13. The basic mechanism about the impacts is that species actually need a number of conditions under which to grow and reproduce successfully, and these conditions are basically determined by abiotic factors, such as soil and climate14,15,16. As climate conditions shift, so too do species’ potential distributions: those areas of the landscape with conditions suitable for a species to persist. The species will become extinct in areas that are no longer suitable, and the extent to which it can migrate and colonize new areas of its potential distribution will define its real distribution17,18. Hence, it is crucial to forecast the impact of climate change on plant species, as it plays a critical role in alerting scientists to make informed decisions in the face of future crises. In other words, understanding how species will respond to climate change, including their distribution under future climate change scenarios, is vital for effective management and conservation of biodiversity, as pointed out by Beridze et al.19. Several new methods have been developed to explore species distribution patterns based on global warming scenarios20. Among them, “species distribution models” (SDMs), which estimate both present and future species distribution, have been extensively developed to investigate the impacts of climate change on species distribution and assess habitat suitability21. The maximum entropy model (MaxEnt), which has demonstrated superior performance compared to other models when dealing with limited sample sizes and presence-only data, as shown by Ahmadi et al., Khan et al., and Momeni Damaneh et al. has been widely used to assess ecological requirements, environmental responses, and habitat suitability of species22,23,24,25.

Iran, with an area of about 1.65 million square kilometers, is a large country located on the Iranian Plateau. It is the second richest country, after Turkey, in terms of plant diversity in the Middle East26. Traditional medicine has always been an essential part of Iranian culture and traditions, and many historical books describe Iranian traditional medicine as one of the oldest and richest alternative medicines27. Several medicinal plants, such as Thyme, are of great significance in traditional medicine and are found within Iran's meadows28. The Thymus genus, belonging to the Lamiaceae family, includes over 215 species worldwide and is represented in the Iranian flora by 18 species29,30,31. Thymus species are mainly concentrated in the western or northern highlands of Iran, such as West Azerbaijan, East Azerbaijan, Ardabil, Zanjan, Kurditan, Mazandaran, Golestan, Tehran, Hamadan, Markazi, and North Khorasan29,30. The Thymus genus is one of the most popular plants worldwide due to its volatile constituents. Essential oils of Thymus fedtschenkoi Ronniger, Thymus pubescens Boiss. & Kotschy ex Celak., and Thymus transcaucasicus Ronniger (Fig. 1), include high amounts of valuable phenolic compounds such as thymol and carvacrol32,33,34,35. Understanding how species will adapt to climate change and how they will be distributed in future climate change scenarios is crucial for effective biodiversity management and conservation36,37. Although SDMs have been widely used in Iran for various purposes e.g. investigating the future distribution of white mangroves38, mapping the habitat suitability of endemic and sub-endemic almond species in Iran39, modeling and predicting habitat suitability for Ferula gummosa40, mapping the current and future distributions of Onosma species endemic to Iran41, the effect of climate change on the ecological niches of Bromus tomentellus42, modeling the distribution of some medicinal plant species43, and modeling climate change effects on Zagros forests in Iran44, no previous study has investigated the impact of climate change on the future distribution of the three valuable Thymus species within Iran so far.

Figure 1
figure 1

Photographs of T. fedtschenkoi (A), T. pubescens (B) and T. transcaucasicus (C) in Iran.

The main objectives of the present study are related to the Thymus species found in Iran. The study aims to achieve the following goals: (1) Identify the most influential climatic and edaphic variables that affect the distribution of these species. (2) Predict the distribution of Thymus spp. under the current climatic and environmental conditions. (3) Estimate the currently suitable distribution areas of the mentioned species within Iran. (4) Forecast the potential distribution variations under proposed future climate change scenarios. (5) Identify species that are vulnerable to the effects of climate change and prioritize their conservation, providing valuable information for decision-makers involved in future conservation planning. By addressing these objectives, the study aims to offer crucial insights and guidance for conservation strategies. This will enable decision-makers to make informed choices concerning the preservation and management of these species in the face of climate change.

Materials and methods

Study area

The study area is situated within the geographic boundaries of Iran, covering a total surface area of 1.65 million square kilometers between 44°–64°E latitude and 25°–40°N longitude. Iran, the second-largest country in the Middle East, is located in the arid zone of Asia. It shares its borders with Armenia and the Republic of Azerbaijan to the northwest, Turkmenistan to the northeast, Afghanistan and Pakistan to the east, Turkey and Iraq to the west, and the Persian Gulf and the Gulf of Oman to the south. Iran is an important part of the orogenic belt that encompasses the Asian block, which includes the Zagros, Alborz, and other mountain chains, as well as Arabian-African units. The Zagros, Alborz, Kopet-Dagh, and various interior mountain chains are among the primary geomorphological units in Iran. Damavand peak is Iran’s highest point, towering 5670 m above sea level (m.a.s.l.). The average annual rainfall in Iran is approximately 250 mm, according to Jamshidi and Samani45.

Species occurrence data

We identified the presence points of Thymus spp. (Fig. 1) by gathering data from various sources, such as historical records available in the herbaria of HSBU, IRAN and TARI (the acronyms used in the study of Thiers) and literature review29,30,46 and www.gbif.org. We then verified all recorded points by conducting extensive fieldwork. As we did not have any reliable absence data for the species distribution, we relied solely on the presence data. Therefore, we generated a comprehensive distribution map that shows the occurrences of the three Thymus spp. in Iran, using all available records (Fig. 2).

Figure 2
figure 2

Distribution map (presence data) of the Thymus spp. in Iran using Arc-map 10.8.1 software (URL: https://www.arcgis.com/index.html).

Environmental variables

Based on literature reviews and expert opinion30,47,48,49,50, we have identified three categories of datasets, namely bioclimatic, topographic, and edaphic, which consist of 9 environmental variables that may affect the distribution of Thymus spp. (Table 1). We have also assessed the collinearity among these variables using Pearson's correlation coefficient (r), as suggested by previous researchers24,51,52,53. If two variables showed a high correlation (r >|0.70|), we excluded one of them to mitigate collinearity25.

Table 1 Environmental variables related to the distribution of the Thymus spp. in Iran.

The distribution modeling procedure

MaxEnt is a Java application that models the present and future habitat suitability of species using species distribution modeling (SDM). It does so with a limited number of records, which are the locations where the species has been found, and environmental variables. The application estimates the distribution or the geographic range of a species by finding the distribution with the maximum entropy, which means it is closest to being geographically uniform, subject to constraints derived from the environmental conditions at the occurrence locations. These constraints are defined in terms of features, which are environmental variables such as temperature, and simple functions of those variables such as quadratic terms. The mean of each feature should match the sample mean. This formulation is equivalent to maximizing the likelihood of a parametric exponential distribution51.

MaxEnt version 1.0–3 was used in the R programming environment version 4.3.1 through the "dismo" package version 1.3–9 for modeling purposes (https://rspatial.org/raster/sdm/; Ref.54. The evaluation of models was carried out using tenfold cross-validation to estimate errors and ensure consistency. The data were randomly divided into ten parts, out of which nine were used for model fitting while the remaining part was used for evaluation. The trained MaxEnt model's sensitivity and specificity were used to define the proper threshold for predicting the model's output. To predict the future and current suitability, a single MaxEnt model was used with the entire dataset being refitted.

Model evaluation

In order to evaluate how accurate our model results were, we used a measure called the area under the curve (AUC) of the receiver operating characteristic (ROC) curve. This measure is independent of threshold selection, making it a powerful tool for assessing model performance. The AUC score ranges from 0 to 1.0, with a score of 0.5 indicating random prediction performance and a score of 1.0 indicating perfect performance. Scores below 0.50 indicate that the model is performing worse than random. To determine the primary environmental variables that had an impact on the potential distribution of the studied species under current climate conditions, we used the Jackknife test. We also calculated the percent contribution (PC) of each environmental variable to understand which variables had the biggest impact on potential species distribution. Finally, we used permutation importance (PI) to determine how dependent the model was on each variable.

Forecasting future distribution

We utilized projected future climate variables for 2050 (averaged for 2041–2060) and 2070 (averaged for 2061–2080) and the average of 16 general circulation models (GCMs) to represent potential distributions of Thymus spp. We considered semi-optimistic (RCP4.5) and pessimistic (RCP8.5) greenhouse gas emission scenarios. RCP4.5 is a moderate greenhouse gas emission scenario, while RCP8.5 is the maximum greenhouse gas emission scenario. The higher the greenhouse gas emissions, the higher the global temperatures and the more pronounced the effects of climate change55. We standardized the environmental parameters to a common spatial resolution of 30 s of latitude/longitude (approximately 1 km2 at ground level)56. We used ArcGIS software (Ver 10.2) to create suitability maps for present and future climate scenarios for each species.

Results

Evaluations of the model and its importance to variables under current climatic condition

The study analyzed the modeling performance for three different species: T. fedtschenkoi, T. pubescens, and T. transcaucasicus. The AUC results revealed that T. transcaucasicus had the highest modeling performance (0.975), followed by T. fedtschenkoi (0.960) and T. pubescens (0.940) (figures not shown). Based on the Pearson’s correlation test, all three species were retained for modeling, and 9 variables were selected for each (Table 2). The importance of these variables varied significantly among the species. For T. fedtschenkoi, the most important variables were elevation (33.8%) and precipitation of the driest month (26.2%) (Fig. 3 panels F and C; Table 2). For T. pubescens, elevation (47.9%), solar (18.1%), and precipitation of the warmest quarter (10.8%) were the most restrictive environmental variables (Fig. 3 panels F and I; Table 2). Soil organic carbon content (34.6%), precipitation of the driest month (29.7%), and elevation (18.1%) were the most significant factors for T. transcaucasicus. Furthermore, some variables were unique to each species, while others were shared. Precipitation seasonality (bio15) was unique to T. pubescens, while mean diurnal range (bio2) was unique to T. transcaucasicus (Fig. 3 panels D and 2A; Table 2). Mean temperature of the driest quarter (bio9), precipitation of the warmest quarter (bio18), soil organic carbon content, elevation, slope percentage, and solar variables were shared by all three species. It is important to note that some variables were excluded from certain species to avoid collinearity and because their percent contribution varied among the species (Fig. 3). These findings can have significant implications for predicting the distribution and habitat suitability of these species in the future.

Table 2 Percent contribution (PC) and permutation importance (PI) of the environmental variables of the Thymus spp.
Figure 3
figure 3figure 3

Selected environmental variables for modeling of the Thymus spp. using Arc-map 10.8.1 software (URL: https://www.arcgis.com/index.html) Abbreviations are described in Table 1.

Predicted current potential distribution

The MaxEnt projections and current distribution of all species were found to be well-matched in Fig. 3. According to the MaxEnt modeling, the mountains of northwest and north Iran, including West Azarbaijan, Eest Azarbaijan, Ardabil, Qazvin, Zanjan, Tehran, Alborz, Gilan, Mazandaran Golestan and North Khorasan Provinces, are the current most suitable habitats for T. fedtschenkoi (Fig. 4A). For T. pubescens (Fig. 4B), the mountains of west and northwest and north of Iran, including West Azarbaijan, Eest Azarbaijan, Ardabil, Qazvin, Zanjan, Tehran, Gilan, Mazandran, Golestan, Kordestan, Kermanshah, Lorestan, Esfahan, Hamadan and Markazi Provinces, are the most suitable habitats. Similarly, the most suitable habitats for T. transcaucasicus are mountains in the northwest and north of the country, including West Azarbaijan, Eest Azarbaijan, Ardabil, Zanjan, Tehran, Gilan, Mazandaran, Golestan and North Khorasan Provinces. It is worth noting that the current potential distribution of the three species is significantly larger than their actual occurrence, as shown in Fig. 4.

Figure 4
figure 4

Map for potential current habitat suitability of the Thymus spp according to occurrence records in Iran. using R programming environment version 4.3.1 (URL: https://cran.r-project.org/bin/windows/base/).

Predicted future potential distribution

It is evident that each species goes through a gradual transition in time zones and habitats, as shown in Figs. 5, 6. Based on different scenarios, three Thymus species are projected to experience negative changes in their range by 2050 and 2070. Figure 5 displays the future potential distribution map of T. fedschenkoi under semi-optimistic (RCP4.5) and pessimistic (RCP8.5) scenarios for the years 2050 and 2070. Although the percentage of loss varies (Table 3), T. pubescens, T. transcaucasicus, and T. fedtschenkoi will encounter the most significant losses under the RCP8.5 scenarios, with reductions exceeding − 29%, − 21%, and − 14%, respectively.

Figure 5
figure 5

The future potential distribution map of Thymus fedschenkoi in 2050 (average for 2041–2060) and 2070 (average for 2061–2080) under semi-optimistic (RCP4.5) and pessimistic (RCP8.5) scenarios. using R programming environment version 4.3.1 (URL: https://cran.r-project.org/bin/windows/base/).

Figure 6
figure 6

The future potential distribution map of Thymus transcaucasicus in 2050 (average for 2041–2060) and 2070 (average for 2061–2080) under semi-optimistic (RCP4.5) and pessimistic (RCP8.5) scenarios. using R programming environment version 4.3.1 (URL: https://cran.r-project.org/bin/windows/base/).

Table 3 Percentage of the gain, loss, and range change of the Thymus spp. under semi-optimistic (RCP4.5) and pessimistic (RCP8.5) climate change scenarios of 2050 (average for 2041–2060) and 2070 (average for 2061–2080).

These species will be most affected in the regions of Kordestan and Kermanshah provinces, as shown in Figs. 5, 6. For T. pubescens, the distribution range will also decline in lower altitude parts of Isfahan, Lorestan, Golestan, and North Khorasan provinces. Similarly, for T. transcaucasicus, the range will decline in Kordestan East Azerbaijan, Ardabil, Zanjan, and North Khorasan Provinces (Fig. 7).

Figure 7
figure 7

The future potential distribution map of Thymus pubescense in 2050 (average for 2041–2060) and 2070 (average for 2061–2080) under semi-optimistic (RCP4.5) and pessimistic (RCP8.5) scenarios. using R programming environment version 4.3.1 (URL: https://cran.r-project.org/bin/windows/base/).

Discussion

Environmental variables affecting the distribution of Thymus spp

It is important to understand the environmental factors that influence the distribution of a species from an ecological perspective57,58. By conducting a jackknife test and analyzing the variables used in the model, we were able to identify the main environmental factors affecting the distribution of three species of Thymus plants. Our predictions showed that the variables that played the biggest role in determining the suitable habitat for each species were as follows: For T. fedschenkoi, altitude, precipitation of the driest month (bio14), solar radiation, and slope percentage were the most influential variables. For T. pubescens, altitude, solar radiation, and precipitation of the warmest quarter (bio18) were the most important variables. For T. transcaucasicus, soil organic carbon content (Ocr), precipitation of the driest month (bio14), and altitude were the most significant factors affecting its distribution. These findings can be further explored in Table 3 and Fig. 3.

According to McCutchan and Fox and Joly et al. an increase in elevation results in a linear decrease in temperature, which has a significant impact on the distribution of living organisms59,60. Our study found that three species are distributed in the slopes of the mountainous regions in the Caspian Sea, and Iraniano-Turanian regions, particularly in well-drained soils31. Slope percentage plays a vital role in regulating the spatial arrangement of soil nutrients, soil stability61,62, water availability, heat, and sunlight63. It creates diverse microclimates with unique soil properties, especially in mountainous regions like Iran24,64,65. Plant distribution patterns in mountainous areas are influenced by slope percentage, which is recognized as a key topographic factor66. In a study conducted in the west and northwest of Iran, it was found that the first species grows in loamy clay-loam soils and requires more precipitation than the second species that grows in sandy-loam soils48. Altitude and slope percentage are important ecological variables in the distribution of Thymus species including the ones mentioned in this study49,67,68.

Corticchiato et al. stated that various factors influence the distribution of Thymus species in eastern regions of Spain, including climate, altitude, soil type, soil texture, organic matter (Ocr), and calcium content of soil69. Boira and Blanquer also noted that elevation, soil texture, and climate affect the development of T. piperella in Spain70. Esfanjani et al. found that pH, elevation, precipitation, and temperature variation are the most important environmental factors that affect the distribution of T. kotschyanus71. The study (Fig. 3; Table 2) suggests that high elevation and low to moderate seasonal precipitation (bio15) are the major factors influencing the distribution range of T. pubescens. On the other hand, T. fedschenkoi requires summer precipitation (bio14) as well as elevation and slope percentage (as topographic factors). For T. transcaucasicus, the amount of soil organic carbon (Ocr) has a greater impact on its distribution than altitude. Precipitation (bio14) is also a significant factor for this species, while elevation has less influence.

Predict current distribution potential of the Thymus spp.

The MaxEnt model is a widely used tool in various fields, including ecology, conservation biology, evolutionary biology, and invasive species management. A study conducted in Iran was the first to investigate the impact of global climate change on the geographical range and suitable habitat of three popular Thymus plants, using MaxEnt modeling. This is a crucial step towards devising an effective conservation strategy for these plants. Thymus spp. is commonly used for medicinal purposes, including carminative, digestive, antispasmodic, anti-inflammatory, and expectorant effects. The accuracy of the MaxEnt model used in this study was found to be very high, according to the AUC > 0.9 for all species. This indicates that the model's performance was excellent. The MaxEnt model has also been used in other national-scale studies, such as those conducted in Iran, Tunisia, China, and East Asia, to predict potential distributions in various plant species.

The MaxEnt model results have identified the current highly suitable habitats for T. fedschenkoi mostly located in the northwest and north of the country, as shown in Fig. 3, panel A. These regions are distinguished by an elevation of 1400–3500 m, precipitation of driest month more than 10 mm, and high slope percentage greater than 20%. Autecology studies of T. fedschenkoi, conducted by Ghelichnia at an altitude of Mazandaran province in Iran, have revealed that the suitable distribution altitude range of the mentioned species was from sea level to 1400 m.a.s.l. Our findings are in line with the mentioned studies. The mentioned species is distributed in areas with moderate to high slopes, and the precipitation of the driest month (bio14) plays a crucial role in the dispersion of this species32.

Based on the suitable habitat modeling, T. pubescens is found in the west, north, and northeast regions of the country (as shown in Fig. 3B). Despite this, the actual range of the species does not include the northeast region. These areas are characterized by low solar radiation (< 6000 kJ m–2 day–1), high slope percentage (> 30%), and an altitude of more than 1500 m.a.s.l. The research on this species revealed that it grows well in rocky slopes of the Irano-Turanian and Hyrcanian mountains, where it can reach elevations of up to 3000 m. These mountains have calcareous sandy loam soils and a cold, dry climate. According to Fig. 3, regions with high summer rainfall are not suitable for this species. Therefore, areas like the Caspian Sea coast, which have low elevation and high summer precipitation, are not suitable for this species' dispersal. On the other hand, the MaxEnt model results show that the majority of the country's current suitable habitats for T. transcaucasicus are located in the northwest, north, and northeast regions (as displayed in Fig. 3C). These regions are characterized by low soil organic carbon content, high rainfall in the driest month, and an altitude of less than 2000 m.a.s.l. This species is more moisture friendly and can grow at lower elevations than T. pubescens72. Therefore, it is expected to find this species in highland areas near the Caspian Sea and its absence in lower latitudes with lower precipitation.

Predicted potential distribution of the Thymus spp on the future

There is mounting evidence that the average global temperature is increasing and precipitation is decreasing, partly due to the rise in greenhouse gas emissions73. The research and assessments conducted on climate change predict that if the concentration of CO2 doubles by 2100, the average temperature in Iran will rise by 1.5–4.5 °C. The adverse effects of climate change include changes in precipitation and temperature patterns, water resources, sea levels and coastal zones, agriculture and food production, forestry, drought frequency and intensity, and human health74. Climate change has also affected the distribution of various species, although the effects vary depending on the species41,62. Mountainous plant communities around the world have been found to be diverse75,76. As a result, species are shifting their spatial distribution to higher elevations to take advantage of higher precipitation and cooler temperatures, resulting in better-adapted plant growth. Previous research, particularly in mountain ecosystems in Iran and around the world, has also shown an upward shift in plant community distribution under climate change scenarios43,76,77. The MaxEnt model indicates that the suitable habitats for the three Thymus species will decrease in 2050 and 2070 under semi-optimistic (RCP4.5) and pessimistic (RCP8.5) scenarios (Table 3). T. pubescens and T. fedtschenkoi experienced the highest (29.89%) and lowest (14.60%) decreases in distribution under RCP8.5–2070, respectively.

Thymus species have a limited ecological niche and do not prefer marginal habitats49. The studied species lose their habitats in the foothills, particularly in lower latitudes, but the highland habitats remain suitable. According to the modeling results, among the mentioned species, only T. transcaucasicus acquires narrow new habitats on the northern slopes in the south of the Caspian Sea in the future. This species requires moderate to high precipitation of the driest month (bio14) (Fig. 3C). Based on studies by Sharifi Ashoorabadi et al. the highest germination percentage of thyme seeds occurs at temperatures ranging from − 4 to 4 degrees. However, at temperatures ranging from − 8 to more than 4, the germination ratio decreases significantly78. Furthermore, studies have shown that high humidity reduces the percentage of seed germination, especially when combined with high temperatures. Thymus species are most common in cool to moderate annual temperatures in elevated areas79. So, climate changes have a negative effect on the distribution range of thyme by having a negative impact on seed germination. The results of this study showed that the adaptation level of real and prediction maps differs regarding the habitat of plant species. The methods based on the presence of plant species have good predictive power and a wide range of ecological nests. These methods are influenced by: (1) the nature of the modeling method, (2) the modeling algorithm, and (3) the characteristics of plant species, including the geographical range of distribution and the range of plant species tolerance to environmental conditions.

Research limitations

It is important to acknowledge that our study has several limitations. Firstly, the set of 9 environmental variables selected may not cover all the factors that affect the geographic distribution of Thymus spp. Other factors such as species interactions, overgrazing, land use change and distance from streams can also play a crucial role in determining the distribution of Thymus species. Land use changes can also increase the extent of unsuitable habitats. Despite our study indicating that T. pubescense has a wide distribution area, much of the suitable area may disappear due to human activities. Therefore, it is essential to conduct further research to verify the impact of human activities on the adaptation of Thymus spp. to future climates. It is also important to note that species distribution models rely on observed species occurrence data to estimate the environmental conditions suitable for that species. However, it is crucial to understand that the predicted suitable habitat area from the model may not always perfectly match the actual habitat where the species is found. This discrepancy can occur due to uncertainties and internal assumptions within the species distribution models. Therefore, further research is necessary to improve the accuracy of predictions by taking into account these factors.

Conclusion

Thymus oils and extracts are widely used in the pharmaceutical, perfume, and cosmetic industries, as well as in the food industry to enhance and protect food products. A recent study used the MaxEnt modeling technique to identify suitable areas for three Thymus species and to investigate the impact of climate change on these plants in Iran. The study found that both climate change scenarios (RCP4.5 and RCP8.5) indicate a decrease in suitable areas for these species. This highlights the urgent need for conservation efforts to protect these species, particularly T. pubescense, which is projected to lose a significant portion of its habitat in the future. To safeguard these valuable species, continuous monitoring efforts are crucial, and the establishment of new protected areas should be considered based on the projected suitable distribution areas for these species in the future. Taking proactive conservation measures now will be essential to preserve plants and their habitats in the face of changing climatic conditions.