Introduction

Inland waters are essential for supplying water resources, providing habitats, and supporting biodiversity (e.g., aquatic plants, fish, macroinvertebrates, and microbial communities)1, all of which contribute to ecosystem stability and water quality regulation. Global inland waters cover a total surface area of 3.62 × 106 km2, including rivers, lakes, reservoirs, and streams2, playing a vital role in the transport of substances within ecosystems. However, an increasing population and the development of economy have greatly exacerbated the deterioration in water quality, containing accumulation of heavy metals3. Excessive environmental pollution has caused a huge burden on inland water ecosystems due to their complexity, fragility, and limited ability of self-purification.

In the past years, as the most persistent pollution in aqueous environment, heavy metals have received growing attentions4,5,6,7,8, due to their solubility, toxicity, concentrations, and slow decomposition in natural environments3,6. Copper (Cu) and zinc (Zn) are the most common in nature, and high concentrations can also pose great risks, while cadmium (Cd), chromium (Cr) are classical heavy metals with high toxicity in the environment9. For example, previous study evidenced the lethal impact of Zn concentrations on the crustaceans Temora stylifera, and acute effect of Cu concentrations on the mollusks Corbicula fluminea10. Exceeding Cd can damage kidney through injuring proximal tubules and lead to osteoporosis by intervening with calcium metabolism in animals11.

Heavy metals originated from both anthropogenic activities and natural processes in aquatic environments. Anthropogenic sources, including industrial and agricultural activities, for example, mining, smelting, disposal of unreasonable wastewater, and the use of fertilizer as well as pesticides containing heavy metals, and fossil fuel combination emissions, contribute significantly to inland waters10,12. However, the function of some natural conditions could not be ignored. Atmospheric deposition, geologic weathering, and soil erosion are the partial reasons leading to the pollution by heavy metals in inland waters. Additionally, precipitation frequency and intensity can directly or indirectly affect heavy metal pollution levels. Increased rainfall may enhance the transport of heavy metals from anthropogenic sources to rivers and lakes, while simultaneously influencing their concentrations through processes such as water body dilution, altered surface runoff patterns, and enhanced soil erosion13,14,15. Additionally, changes in hydrometeorological factors, for example, sudden increases in flow or turbulence caused by heavy rainfall, may cause the resuspension of sediment heavy metals and the release of dissolved heavy metals16.

To date, huge amounts of studies are dedicated to pollutant levels, sources, and effects on aquatic organisms as well as humans. Furthermore, machine learning techniques have been widespread in predicting substances of global distribution17,18. Wei et al. have reported the global patterns of lead concentrations in inland waters8, whereas the other considerable heavy metals (Cu, Zn, Cd, Cr) should also be on the agenda. Therefore, here a database about Cu, Zn, Cd, and Cr concentrations from published literature before November 2023 in global inland waters was established. In the context of human activities and social development, our aims as follow: (1) to cognize the concentrations range of these four metals in global inland waters; (2) to quantify the effects of inland water ecosystem types, climatic seasons, monsoonal seasons, and land use types on the heavy metal pollution levels in inland waters; (3) to quantify the driving factors affecting the heavy metals; and (4) to predict the spatial distribution of heavy metal concentrations in global patterns.

Results

Distribution patterns of Cu, Zn, Cd, and Cr concentrations in inland water

Our database showed the abundant distribution of Cu, Zn, Cd, and Cr in inland waters across the globe with most studies in tropics and subtropics as well as a few in North America, Northern Europe and Australia (Fig. 1a). The density map of these four metals is shown in Fig. 1b, and concentrations in our database ranged from 0 to 183.00 × 103 μg L¹ (median: 8.38) for Cu, 0 to 276.05 × 103 μg L⁻¹(median: 30) for Zn, 0 to 8.87 × 103 μg L⁻¹ (median: 0.53) for Cd, and 0 to 384.00 × 103 μg L⁻¹ (median: 7.00) for Cr.

Fig. 1: Global distribution of study sites included in our database derived from 514 publications.
figure 1

a Locations of samples for heavy metals published in inland waters. b Density distribution of heavy metals after log transformation (including zero value and extreme value processing).

In addition, different seasonal classifications, ecosystem types, and land use types did impact on heavy metal concentrations in inland waters. Cu and Cr during dry season (Cu: 11.75, 95% CI: 5.13–26.30 μg L−1 and Cr: 8.71, 95% CI: 3.63–20.42 μg L−1) were significantly higher than those during wet season (Cu: 7.76, 95% CI: 0.14–0.97 μg L−1 and Cr: 5.13, 95% CI: 2.69–9.33 μg L−1) (Fig. 2 and Supplementary Table S2). The concentrations of heavy metals in inland waters were significantly higher during the pre-monsoon period compared to the monsoon and post-monsoon periods (Fig. 2 and Supplementary Table S2). Heavy metal concentrations showed no significant differences across ecosystems, except for Zn, which was significantly higher in rivers than in lakes (Fig. 2 and Supplementary Table S2). All land use types contributed to heavy metal emissions, with industry, agriculture, and residential areas having the dominant effects (Fig. 2 and Supplementary Table S2). Natural land was also an important source of heavy metals, especially Cu, Zn, and Cr (Fig. 2 and Supplementary Table S2). Additionally, the interaction of classification variables for the four metals showed seasonal dynamics, combined with ecosystem and land use types, collectively determining heavy metal concentrations in inland waters (marginal R2 of the interaction models > marginal R2 of the single models) (Supplementary Table S3). Industrial areas emitted significantly higher amounts of heavy metals (particularly Cu and Zn) into rivers compared to other land use types (Supplementary Table S3). Compared to the wet season, the concentrations of Cu and Cr in rivers during the dry season increased significantly by 94.98% (Supplementary Table S3). During the dry season, the concentrations of Cu and Cr in rivers were high and significantly higher than those in the reservoir by 272% and 316.87%, respectively (Supplementary Table S3). Additionally, during the dry season, the heavy metal contents in water bodies under various land use types were higher. Specifically, industrial areas accumulated Zn and Cd concentrations during the dry season were significantly higher than those during the wet season by 44.54% and 9.64%, respectively, whereas mixed land use accumulated Cu and Cr concentrations during the dry seasons by 28.82% and 139.88%, respectively. (Supplementary Table S3). Water pH showed a significantly negative correlation with heavy metal concentrations, except for Cr (Supplementary Fig. S2 and Table S4).

Fig. 2: Variations of heavy metal concentrations among different climatic seasons, monsoonal seasons, ecosystem types, and land use types.
figure 2

Black points indicate posterior means, and colored bands indicate 95% and 80% confidence interval. Unreported land use types are defined as undefined land, and multiple land refers to the combination of industry, residents, agriculture or tourist, and so on. Numbers in parentheses indicate the sample size at each level under the classification types.

Drivers of heavy metal concentrations in inland waters

Random Forest (RF) model revealed excellent performance in prediction of heavy metal concentrations in inland waters (R2: 0.85, 0.83, 0.87, and 0.89; RMSE: 0.34, 0.36, 0.22, and 0.32, respectively for Cu, Zn, Cd, and Cr) (Fig. 3b and Supplementary Table S9). To improve the interpretability of the RF model, we excluded mean annual precipitation (MAP) during the process of reducing factor collinearity, retaining actual evapotranspiration (AET). However, since MAP was a critical factor, we also discussed its role in subsequent analyses, given the high correlation between MAP and AET (Supplementary Fig. S15). According to relative variable importance from RF, we found that second treatment of wastewater treatment plants (WWTPs), MAT, AET, human development index (HDI), elevation, and land surface runoff basically drive the four heavy metal concentrations in global inland waters, but the degree of influence on different metals varies (Fig. 3a). Additionally, we also conducted linear relationships using Bayesian mixed-effects model and exhibited the faintly effects of river area, cropland, urban, pasture, and forest on the four metals to varying degrees (Supplementary Fig. S16). Partial dependence plots revealed the non-linear changing tendency between heavy metals and predictors (Supplementary Fig. S47).

Fig. 3: Predictor importance and relationships between the observed and predicted values of heavy metal concentrations.
figure 3

a The relative importance of predictors; b Comparison of predicted and observed concentrations of heavy metals in inland waters after log transformation. In regression plot (b), the dashed line indicates the 1:1 line, the blue line indicates the regression line between predicted and observed values, and the R2 represents the evaluation of random forest models. MAT mean annual temperature, AET actual evapotranspiration, LSR land surface runoff, HDI human development index, Primary primary treatment of wastewater treatment plants (WWTPs), Second secondary treatment of WWTPs, and Tertiary tertiary treatment of WWTPs.

Global patterns of heavy metal concentrations in inland waters

We produced global pattern maps of Cu, Zn, Cd, and Cr concentrations based on RF model, which maps clearly captured their spatial differences (Fig. 4a–d). Our analysis revealed that the observations in the database were relatively evenly across latitudes with broad coverage (Fig. S18). We also explored latitudinal trends in heavy metal concentrations based on model predictions to identify overall trends (Fig. 4a–d). Overall, Asia and Africa are the most affected by pollution from heavy metals, followed by South America (Fig. 4). Pollution of heavy metals was predominantly distributed between 40°N and 20°S (Fig. 4). Specifically, with the similar tendency of Cu and Zn, the highest concentrations were predicted in South Asia (e.g., India, Nepal), West Asia (e.g., Iran), Africa (particularly the midportion, including the Niger and Nile River basins), and South America (Fig. 4a, b). For Cd and Cr with similar trends, the highest concentrations were predicted in Africa (especially the midportion) and South Asia (e.g., India, Nepal, and Iran) (Fig. 4c, d). Meantime, all the prediction uncertainties see Supplementary Fig. S8.

Fig. 4: Global map of heavy metal concentrations in inland waters.
figure 4

a Cu; b Zn; c Cd; d Cr (left: global distribution map; right: global latitudinal patterns, different color lines indicate the locally weighted regressions between latitude and four heavy metal concentrations in the predicted global map). The predicted value is the average value of the results of 100 iterations of model. Predicting heavy metal concentrations (μg L−1) after log transformation was reserved to draw the map, aiming to avoid skewed distribution. The spatial resolution of grid cells is 3 arcmin by 3 arcmin.

Analysis of dissolved heavy metals in inland waters

We comprised the total concentrations and dissolved concentrations of heavy metals and found the total concentrations higher than the dissolved concentrations for Cu and Zn (Supplementary Fig. S3 and Table S5). We conducted the same analysis for the dissolved heavy metals (Supplementary Fig. S914 and S17) and discovered that the performance of the dissolved heavy metals in comparison between seasons, ecosystem types, land use types, and pH was basically similar with the overall data (Supplementary Fig. S10 and Table S68). Although there were slight changes in the importance of rankings of the RF models, in which population counts showed stronger effects for dissolved Cu and Zn (Supplementary Fig. S12), the global predicted spatial distributions of dissolved heavy metal concentrations were consistent with those of the total data (Supplementary Fig. S1314).

Discussion

Difference of heavy metal concentrations in inland waters

The median concentrations of Cu, Zn, Cd, and Cr exceeded their respective background values in inland waters with 1, 10, 0.07, and 0.5 μg L−1, respectively19, suggesting combined natural and anthropogenic sources of heavy metals to inland waters. The concentrations of Cu, Zn, and Cr in inland waters exhibited a wider range (spanning six orders of magnitude) than those of Cd. On the one hand, although heavy metals are naturally occurring elements in the Earth’s crust, their concentrations vary significantly across different regions. Pollution of heavy metals and exposure largely originated from anthropogenic activities liking mining and smelting operations, industrial production and utilization, as well as domestic and agricultural use of metals and metal-containing compounds20. The Cu and Zn generally occurred in the most common rock-forming minerals, and Cr existed in rocks such as ilmenite and magnetite, whereas Cd is not very common in such rocks21, which is one of the reasons to led the difference between the four heavy metal concentrations. On the other hand, the wide range of uses for metals determines the amount of their artificial mining. For example, Cu and Zn are widely applied in many industrials, including automotive, aerospace, construction, electricity, energy, and mechanical engineering, thanks to excellent properties in physical, chemical, thermal, electrical, and isolating22. Enriching in ultramafic rocks, chromite is the primary commercial sources of Cr23, while Cd, a highly toxic heavy metal, is generally associated with ferrous and non-ferrous metal ores and mainly released to the surface environment through mining as well as milling activities24. Notably, although Cu and Zn are more abundant in Earth’s crust, Cr still exhibits a wide concentration range, suggesting that Cr emissions deserve greater attention. It is reported that Cr production has doubled decade since 1900, with by 1984 production reached 10.16 million metric tons, mainly used in metallurgical (67%), refractories (18%), and chemical (15%)23.

Drivers of heavy metal concentrations in global inland water

Anthropogenic activities (the dominant source of heavy metal emissions), together with natural factors such as climate (e.g., MAT, AET, precipitation), topography (e.g., elevation), and hydrology (e.g., surface runoff), collectively determine heavy metal concentrations in inland waters. Mining, coal combustion, effluent discharge, and waste disposal are the major industrial activities that contribute to the release of heavy metals into the environment21. As essential freshwater sources, rivers receive significant wastewater inputs, and their flow spreads heavy metal pollution through inland waters. Previous study indicated that mining and manufacturing were exposed to be pivotal factors of heavy metal concentrations in global rivers and lakes from 1970 to 20176. During the extraction of low-concentration metal ores, large amounts of waste rocks are generated, and heavy metals (such as Cu and Cd) in those rocks are dissolved by acid mine drainage, resulting in serious heavy metal pollution21. Additionally, Cu, Zn, and Cd contents discharged due to Cu mine or smelter plants are also significant12,25, and Cd is also one of the byproducts of Zn production26. Notably, high-temperature processes, such as coal and oil combustion in electric power stations and heat and industrial plants, gasoline combustion, roasting and smelting of ores in nonferrous metal smelters, and refuse incineration, directly release significant amounts of heavy metal contents into environmental systems, including atmospheric, aquatic, and terrestrial ecosystems27. Cd and Zn are common heavy metals in coal residues21. These pollutants, initially released into the atmosphere and deposited on land surfaces, are subsequently transported to inland waters through land surface runoff and wet and dry deposition.

The physical geographic environment constitutes an interconnected system with mutually interacting components28. The contributions of land surface runoff and precipitation to heavy metals in surface waters are interdependent. The mechanism by which precipitation influences the concentrations of heavy metals in the water bodies involves a complex combination of factors, including land use types, rainfall intensity, ecosystem types, and sampling frequency. Primarily, urban, mining, and agricultural areas containing high levels of heavy metals can easily discharge these metals into adjacent aquatic ecosystems through runoff during rainfall, especially heavy rain29,30,31. Increases in the amount or intensity of precipitation can enhance dissolution of metal carbonates and metal sulfides in sediments, which can then promote the release of heavy metals32, and may also improve the water volume, resulting in dilution of heavy metal concentrations3. First post-drought rain concentrates metals, while prolonged flow dilutes them, increasing export potential33. Additionally, precipitation alters the soil structure and leaches heavy metals from soil34, promoting their migration into adjacent water, especially during heavy rainfall events. Notably, the snow or ice covers with higher heavy metal concentrations may serve as an additional pathway for heavy metals input to freshwater ecosystems35,36. The acidification of the environment is also a factor in climate change. For example, acid rain would promote average annual leaching fluxes of Cu, Zn, and Cd in mine tailing37 and increase their solubility in the sediments and soils38,39, then aggravating their concentrations in the inland waters. Under lower pH conditions, the increased competition between metal ions and protons (H+) for binding sites on organic ligands and mineral surfaces leads to the dissociation of metal complexes, thereby releasing free metal ions into the aqueous solution40. Indeed, our study also indicated the strong negative relationship between pH and Cu, Zn, and Cd concentrations in inland waters, except Cr. Owing to the complex forms of Cr in waters, mainly including Cr(III) and Cr(VI), it can easily transform between these forms under changes in pH and redox conditions41.

Climate change accelerates the leach and load of heavy metals in surface resources due to increased runoff42, with rainfall being the main driving factor. Land surface runoff was considered as a significant source of heavy metals from land to waters15,43, mainly including urban runoff and agriculture runoff. Urban runoff is easy to takes away untreated heavy metals from land to aquatic environments, resulting from the rising imperviousness and intensive land use. The thin water layer near the soil or building material surface transfers dissolved metals to runoff, rapidly carrying pollutants away from the catchment44. Taka et al. indicated that the annual Cu and Zn loads in major studied urbanized catchments were 86 times than that to the rural site45. Research indicated that roads with more than 5000 vehicles per day are more likely to overflow with heavy metal pollution than highways46. The rising use of Zn in safety fences and galvanized car parts for corrosion prevention is a key anthropogenic source of Zn pollution in runoff46. In addition, runoff enhanced by melting thoroughly excavated heavy metal concentrations in the waters. Westerlund et al. found that particle sizes and total suspended solids during the melt period showed a strong correlation with total concentrations of heavy metals, whereas this relationship was less significant during the rain period47. Previous studies calculated the Cu and Zn concentrations in leaching water from agricultural soils in the Netherlands and found that surface water concentrations of Cu and Zn often exceeded critical values48. However, a recent study indicated that 14–17% of cropland is influenced by toxic metal pollution in global49. In cropland in most countries, the sources of heavy metals include natural sources, mining, smelting, agrochemicals and sewage sludge applications, and livestock manure uses50. For example, the main concerns of Cu, Zn, Cd, and Cr also occur in the use of sewage sludge for soil managements21.

This non-liner relationship between MAT and heavy metal concentrations in inland waters could be explained in diverse ways, directly or indirectly. Elevated temperatures enhance evapotranspiration, leading to water volume reduction and consequent heavy metal concentrations, while the extent of this process varies in different freshwater ecosystems. Unlike lakes and reservoirs, flow velocity of rivers will regulate water temperatures51, then affecting evapotranspiration. Additionally, rising temperatures exert significant influence on gas solubility, precipitation reactions, sorption reactions, and biological activity52, then influencing the heavy metal concentrations. Primarily, rising temperature will decrease the solubility of O2 (which influences redox potential) and CO2 (which influences pH), then may impact the process of oxidation in mine33. Decreasing dissolved oxygen also changes the heavy metal concentrations in water. Zn was released from sediments under anoxic condition, but re-adsorbed by iron or manganese oxides when oxygenated53. Additionally, higher temperature would fasten the release rate of dissolved heavy metal concentrations from freshwater sediments54, because the desorption process is enhanced with rising temperature, increasing the ion release rate38. Temperature can also influence heavy metal concentrations in aquatic environments by regulating phytoplankton growth. The dynamics of Cu, Zn, and Cd in reservoir systems are strongly regulated by algal-derived organic matter, as phytoplankton can absorb and assimilate these metals from the aquatic environment, and when the algae die, they settle into the sediments along with the associated heavy metals55, which are then easily ingested by benthic invertebrates56. Notably, increased temperatures promote heavy metals to overflow from mining areas. The leaching of Cu and Cr from tailing in arctic region enhances with the rise temperature, because of accelerating in sulfide oxidation, chemical reactivity, and solubility of heavy metals57.

Noteworthily, natural processes under climate change, such as weathering, also contribute to the input of some heavy metals into natural water bodies. Studies indicated that climate change enhances the mobilization of natural metal sources in a high mountain catchment58. Rock weathering is dominantly regulated by critical climatic and topographic factors, particularly temperature and runoff. By analyzing globally distributed basalt watersheds, a previous study revealed that temperature, runoff, and elevation collectively govern chemical weathering rates, thereby modulating heavy metal accumulation patterns59. Heavy metals in waters with higher elevation are more likely associated with geographical background of catchment (e.g., lithological characteristics) and with soil weathering and leaching processes. Watersheds with steep river slopes in higher elevations will accelerate physical erosion and promote chemical weathering59. Todd et al. (2012) found that climate-driven permafrost thaw and falling groundwater levels increased dissolved Zn and ecologically concerning metals by 100–400% (400–2000 μg L−1) in an undisturbed alpine watershed over 30 years60. Among them, the decline in groundwater levels has caused more underground sulfide-containing rocks to be exposed to the air, enhancing oxidation process and elevating dissolved metal concentrations60.

HDI serves as a proxy for national development. In general, the higher the HDI, the lower the heavy metal concentrations, which involves latent environmental governance capabilities of country, including critical infrastructure such as related management policies. Indeed, inadequate management of heavy metals constitutes another major driver of contamination by heavy metals in inland water bodies. Study shows that as a vital metal of industrial society, the use of Zn increased unprecedentedly between 2000 and 2010, while waste management became the highest losses of Zn to the environment61. Higher HDI means superior education, economy, and health62, where areas that people will introduce policies to decrease the related emissions of heavy metals to a certain extent. For example, in order to control contamination level of Cd, the United Nations Economic Commission for Europe endorsed the Aarhus Protocol on the Heavy metals63, and Sweden limited the maximum Cd concentrations of 100 mg kg−1 in phosphatic fertilizers as well as imposed a tax on it between 5 and 100 mg kg−16. Conversely, although Indian Standard enacted the maximum limitation for total chromium in water supplies is 0.05 mg L−164, the huge population and unreasonable sanitary conditions are contributed to a certain heavy metal pollution. A lot of religious activities, for example, idol immersion, have led to significant increases in pollution of Zn and Cr in River Hooghly in India65. Compared to HDI, the stronger correlation of population counts with dissolved Cu or Zn concentrations underscored the predominant role of direct anthropogenic activities in inland water pollution, particularly in areas with intense human activities. Additionally, WWTPs were also considered as a potential source of heavy metals in inland waters. A previous study showed that a considerable amount of Cu, Zn, Cd, and Cr were removed in sewage sludge from municipal and industrial wastewater treatment plants66. Wastewater treatment rates among countries decrease with average income67, indicating that countries with lower economic development have relatively backward heavy metal control. Notably, our model showed that the secondary treatment in WWTPs can reduce the discharge of heavy metals into inland waters to a certain extent (Supplementary Fig. S47). Although tertiary treatment has a stronger removal effect on pollution, whereas, its penetration rate is currently low in most countries68. Therefore, secondary treatment should be established as the minimum global standard for heavy metal removal in WWTPs, offering optimal cost-benefit efficiency, particularly for low-income countries.

Global patterns of heavy metal concentrations in inland waters

On the whole, our predictions are similar to the global prediction of lead concentrations in inland waters8. Past studies identified continent-specific heavy metal pollution sources: Africa (waste discharge and rock weathering), North America (fertilizers, pesticides, and rock weathering), Europe (mining, manufacturing, and waste discharge), and Asia and South America (mining, manufacturing, rock weathering)6. In Africa, rapid population growth and high urbanization rates have led to recent urban expansion without proper planning or adequate waste disposal facilities69. Additionally, mining in sub-Saharan Africa has caused heavy metal pollution, as increasing mining, fugitive dust, toxic waste dumping and burning, and factories in residential areas, and lacking proper regulations of mineral-rich areas70. For example, Nairobi’s 30-acre landfill (more than 2000 tons per day) pollutes East Africa, while West Africa’s oil industry (pipeline leaks, spills, and sabotage) causes heavy metal contamination69. Previous studies showed that South Asian rivers, despite accounting for only about 9% of global river discharge, contribute disproportionately to dissolved heavy metal fluxes (e.g., 15 ± 1% of global Cu)71. As a country with the second largest population and rapid industrialization and urbanization, vehicular emissions and industrial emissions are the major sources of heavy metal pollution ambient air in Indian72, then entry aquatic waters by dry or wet deposition. Mining and related industries, as well as excessive use of pesticides in agricultural land resulted in the increase of heavy metal concentrations in Iranian water resources73. In Nepal, industrial activities and traffic areas contributed a considerable part of the source of heavy metals74.

Anthropogenic activities, increase temperature, change of rainfall pattern (containing increased rainfall intensify and frequent extreme rainfall), strengthened evapotranspiration, and improved runoff will promote the heavy metal pollution of related regions to varying degrees. Low-latitude regions are more vulnerable to change of temperature and precipitation, where intensified physical erosion and chemical weathering, along with increased land surface runoff, have resulted in elevated levels of heavy metal contamination. These areas demand greater attention from the management and control of heavy metal emissions. Notably, most of South America and Africa are located in a tropical rainforest climate75, which is more susceptible to changes in temperatures and precipitation, lead to higher heavy metal concentrations in aquatic environments from anthropogenic and natural sources.

Limitations and prospects

Although our study successfully captured global concentration ranges of Cu, Zn, Cd and Cr in inland waters, found that the concentrations of these metals in inland waters showed high model explanation under the interaction among different categories (seasonal types, land use types, and ecosystem types), conformed the main drivers of these metals in the waters, and understood the global patterns of concentrations of these metals, several limitations remain. The less distribution of observations of heavy metals, especially in the Americas, Russia, and Australia, may influence our accuracy of global prediction of heavy metals. The sampling data of different years in the database may cause the prediction model to deviate from the actual situation to a certain extent. The difference of Zn concentrations between rivers and lakes may have some impact on the accuracy of global prediction of Zn concentrations. Additionally, the significant difference between total concentrations and dissolved concentrations of heavy metals (Cu and Zn) may contribute to underestimating the global map of predicting concentrations (total) in inland water.

More attention from Cu, Zn, Cd, and Cr pollution in inland waters should be reinforced and several measures should be implemented. Above all, corresponding measures are formulated according to the sources of heavy metals in different regions, for instance, regions of industrials, agricultures, mixed land, or intensive traffic areas. Besides, the interaction suggests that different ecosystem types may need to be addressed seasonally. Industrial discharge controls should be prioritized during dry seasons for riverine systems to compensate for reduced dilution capacity. The mixed land combing several heavy metal sources should be better managed during the dry season. Before wet season, the management measures should be held in high regard, owing to the predicting importance of land surface runoff. Additionally, regions like Africa (midportion) and South Asia (e.g., India and Nepal) should prioritize monitoring pollution of heavy metals in water bodies, since climate (e.g., temperature, rainfall) may exacerbate release of heavy metals from both human activities and natural sources.

Heavy metal pollution in the waters should be alleviated. Introducing specific aquatic phytoremediation plants has been shown to have the potential to minimize the heavy metal concentrations from surface waters, for example, Cu, Zn, Cd in the contaminated water could be remedied by Miscanthus sp. Geodae-Uksae 176. Nanosized metal oxides are widely served as highly efficient adsorbents for heavy metals from water or wastewater, thanks to its fast kinetics, high capacity, and better adsorption properties for heavy metals in waters77. It is recommended that secondary treatment be the minimum standard for urban sewage treatment plants. Microalgae supplementation significantly enhances heavy metal removal efficiency in sterilized secondary effluent, achieving 81.7–94.1% reduction for copper and zinc within 10 days78. Their rapid biosorption capacity (observable within 6 h post-inoculation) makes them particularly suitable for wastewater treatment plants requiring quick heavy metal mitigation. Besides, sediments, another important heavy metal pollution sink and source, are necessary to explore heavy metal pollution of the global patterns, and more data reporting is crucial to additionally accurate predict the heavy metal pollution.

Areas with low latitude, which are more vulnerable to climate change, should be intensified policies related to management and control of heavy metal emissions with their local governments. Anthropogenic activities constitute the primary source of heavy metal emissions, whereas climate change (particularly through temperature and precipitation changes) exacerbates heavy metal mobilization from both anthropogenic and natural sources into global inland waters. Further research should intend to explore how the increased temperature concretely enhances the heavy metal concentrations in global inland waters, and we also hope our research is useful for future studies.

Conclusion

In the context of human activities and social development, our study concentrated on (1) analyzing the differences in heavy metal concentrations across freshwater ecosystems, seasons, and land use types; (2) identifying the key drivers affecting heavy metal distributions in global inland waters; and (3) predicting the global spatial patterns of heavy metal concentrations. The results affirmed the combined sources from nature and anthropogenic activities. Anthropogenic activities dominated heavy metal discharge, while climate factors (e.g., temperature, precipitation, and evapotranspiration) further exacerbate heavy metal concentrations in global inland waters from anthropogenic sources and natural processes through land surface runoff. The secondary treatment of wastewater treatment plants (WWTPs) reduces the concentrations of heavy metals in sewage to a certain extent.

Additionally, RF model was used to predict the Cu, Zn, Cd, and Cr concentrations in global patterns and found that the concentrations were predominantly distributed between 40°N and 20°S. The models predicted higher concentrations of Cu and Zn in regions including South Asia, West Asia, Africa (especially in midportion), and South America, while higher levels of Cd and Cr were projected primarily in Africa and South Asia. A series of measures should be implemented to address heavy metal pollution in inland waters. Secondary treatment should be established as the minimum global standard for heavy metal removal in WWTPs, particularly for low-income countries. In addition to managing heavy metal emissions from urban, transportation, industrial, and agricultural sources, region- and season-specific control strategies should be adopted. For instance, enhanced monitoring and regulation of heavy metal emissions should be enforced in urban areas, transportation networks, and industrial zones during the dry season, when pollutant accumulation tends to be more severe. We hope this study will facilitate future research to thoroughly investigate how climate variability influences heavy metal concentrations in global inland waters.

Materials and methods

Data sources and processing

We searched for data from peer-reviewed publications from Web of Science and China National Knowledge Infrastructure (CNKI) using following keywords: (“heavy metal OR copper OR zinc OR cadmium OR chromium”) AND (river OR stream OR fluvial OR lake OR water* OR inland water). Several criteria were chosen to meet eligible data: (i) at least one of the four heavy metals was reported in inland waters; (ii) the study samples must be in inland waters, including rivers (or describe as streams), lakes, reservoirs, ponds and so on, whereas we excluded estuaries owing to considerable effects from seawater; (iii) surface water samples were collected under national conditions and excluded groundwater; (iv) concentrations are uniformly converted into μg L−1. We acquired data from text, digitized graphs, tables, and supplementary materials. According to these criteria, we obtained 3301, 3213, 2875, and 2184 observations of Cu, Zn, Cd, and Cr in inland waters, respectively, with a total of 514 articles (Fig. 1a and Supplementary Notes S2). After collecting surface water, the water samples were directly subjected to digestion processes to determine the total concentrations of heavy metals, or the water samples were directly filtered at 0.45 μm membrane to determine the dissolved concentrations of heavy metals. All the heavy metal concentrations of collecting data were divided into three forms: total concentration, dissolved concentration, and unreported category. Additionally, to enable cross-regional comparisons, we divided the sampling season into two categories according to the seasons and sampling time mentioned in the publications based on precipitation: climatic season (dry and wet season) and monsoonal season (pre-monsoon, monsoon, and post-monsoon). We also divide ecosystems into rivers, lakes, and reservoirs to explore the differences in heavy metal concentrations among ecosystem types. Land use types were categorized into industrial, agricultural, residential, touristic, natural, multiple, and undefined. Here, “natural” indicated undisturbed areas, “multiple” referred to mixed-use zones (e.g., industrial-agricultural-residential), and “undefined” covered cases with missing land use data in the literature.

Statistical modeling

All data were executed in R version 4.4.279. The overall process is shown in the supplementary file (Supplementary Fig. S1). We employed Bayesian mixed-effects models to examine differences in heavy metal concentrations across different divisions and used Random Forest (RF) models to predict spatial patterns of heavy metal concentrations in global inland waters. In Bayesian mixed-effects models, non-detects (zeros) were replaced with 10% of the minimum value, and extreme values (>99.5 threshold percentile) were winsorized, with the heavy metal concentrations distribution in Fig. 1b. We then performed log10 transformation to fit a Gaussian distribution. In RF models, the log10 transformation was directly applied to the model training to retain the true extreme values.

We conducted a series of analysis for heavy metal concentrations (including three forms). Above all, we conducted Bayesian mixed-effects models in the brms package in R80 to evaluate the difference between four heavy metals and the effects of season division, land use types, and ecosystem types on heavy mental concentrations in inland water. Meanwhile, we also conducted interaction models between classification variables for each heavy metal. We fitted and generated each model with random effects of study identity and sampling year to eliminate unnecessary interference. We fitted each model using 4 parallel chains of 10,000 iterations with a total of 36,000 poster samples. For Cu, Zn, Cd, and Cr concentrations with Gaussian distribution in the brms package80. We specified information Cauchy priors (μ = 0, σ = 1) for the random effects and normal priors (μ = 0, σ = 1) for fixed effects. We evaluated the trace plots and the Gelman-Rubin statistic, which was <1.1, to ensure convergence. We revealed posterior mean and 95% and 80% credible intervals (CI). We also calculated the conditional R2 (variance explained by fixed and random factors) and marginal R2 (variance explained by random factors). Next, we will start the RF model and prediction.

Variable selection

Predicting the four heavy metal concentrations in global inland waters basing machine learning is another considerable purpose of this article. When starting RF modeling, we first need to select predictors. This study resampled all variables in EPSG:4326 (World Geodetic System 1984) at 0.05° grid resolution. When selecting potential influencing factors, we considered: (1) anthropogenic activities and natural conditions associated with heavy metal sources, and (2) key hydrological processes that may affect metal transport and transformation. These factors were identified through a comprehensive review of published global datasets. Consequently, we selected 24 potentially impacted predictors (including 4 hydrology predictors, 3 physiography predictors, 3 climate predictors, 4 landcover predictors, 2 soils-geology predictors, and 8 anthropogenic predictors) that were extracted from the HydroSHEDS data81(https://www.hydrosheds.org) and wastewater treatment68 (Table S1). To avoid collinearity, we eliminated predictors with low contributions one by one until the variance inflation factors (VIFs) of all predictors were less than five, and there were 21 remaining predictors for the heavy metals. Notably, precipitation was excluded in this process, due to the high correlation with act evapotranspiration (Supplementary Fig. S15). Given precipitation was considered as a significant diver, we also discussed precipitation in detail in the Discussion.

Predicting model

We conducted RF regression model based on randomForest package82 to modeling for heavy metal concentrations in inland waters. The train function from the R package “caret” was used to optimize the model parameters of the four machine learning models83. We used repeated random 10-fold cross-validation for RF models of four heavy metals, respectively. The process was trained 10 times, each time using 90% of the data for training and leaving the remaining 10% for validation. Finally, we selected the best parameters to fit the RF model. Root-mean-square error (RMSE) and R2_Accuracy is committed to quantify model predictive performance and accuracy. R2_Accuracy is regarded as the amount of variation explained by the model, and its calculation formula is as follows:

$${R}^{2}{\_}{{{\rm{Accuracy}}}}=(1-{{{\rm{SSE}}}}/{{{\rm{SST}}}})$$

where SSE is the sum of the square error between observation and prediction, and SST is the total sum of squares. A model produced the lowest RMSE and highest R2_Accuracy, which could be identified as the best model with the highest predictive power. All the results of models see Supplementary Table S9.

Based on the optimal RF model, we evaluated the importance of predictors using the “caret” package83. The normalized variable importance scores, scaled between 0% and 100%, revealed the relative influence of each predictor on the model’s outcomes. Additionally, we also used the Bayesian mixed-effects model (linear model) to assist in verifying the impact of predictors on the dependent variable (Supplementary Figs. S1617). The important results obtained by the two models are basically the same.

Global prediction and coefficient of variation

We extracted data related to the predictors of heavy metals for the global scale, excluding glaciers and deserts. These data were performed predicted global spatial distribution of the four metals based on their, respectively, optimal models, which prediction process was conducted 100 iterations randomly. Afterwards, we generated 100 global maps associated with heavy metals, and by averaging the outcomes across these 100 iterations, we derived the per-pixel mean values and standard deviations. Subsequently, we computed the coefficient of variation, defined as the ratio of the standard deviation to the mean value.

Sensitive analysis

According to Bayesian mixed-effects models, we conducted a comparison between the total concentrations and dissolved concentrations of Cu, Zn, Cd, and Cr in the database, and we found that there is significance between total concentrations and dissolved concentrations of Cu and Zn (Supplementary Fig. S3 and Table S5). Then we performed all the analyzing processes based on dissolved Cu and Zn concentrations to further discussion.