Archive detail

How artificial intelligence detects nitrate hotspots

December 1, 2025 | Barbara Vonarburg

Eawag researchers are using machine learning to map nitrate pollution in Swiss groundwater. This allows gaps in the measurement network to be filled and the causes of excessive values to be identified. The study is part of a larger project analysing the nitrogen cycle in Switzerland.

Nitrate levels in groundwater exceed the limit of 25 milligrams per litre at 15 percent of all measuring points in Switzerland. In areas characterised by arable and vegetable farming, the concentrations are even above the threshold value at around 50 percent of the measuring points. However, these figures from the Federal Office for the Environment (FOEN) are localised values that only reflect the nitrate concentration at the respective groundwater catchment. What the situation looks like a few kilometres away was previously unknown. “With our approach based on artificial intelligence, we are closing the gaps between the various measuring points,” says Lenny Winkel, group leader in the Eawag Water Resources and Drinking Water department and professor at ETH Zurich. The aim is to identify the risk areas in which targeted samples should be taken and where measures may be necessary. The results have just been published in the journal Aqua & Gas.

High nitrate concentrations are potentially dangerous, especially for infants, as they can lead to a restricted oxygen supply. Whether there is a connection between the nitrate content in drinking water and the risk of cancer in adults has not yet been clearly established. Health concerns aside, nitrate is a useful indicator of overall water quality as it also reflects the presence of trace substances from agriculture, such as pesticides.

Recognising patterns in the wealth of data using AI

In an initial study, Winkel’s team relied on groundwater data collected at a total of 1,336 national and cantonal measuring sites, as well as data on environmental parameters such as land use, climate, soil, topography and geology. The researchers analysed these data sets using machine learning models, a form of artificial intelligence (AI). “In principle, we collect as much information as possible about a groundwater measuring point,” explains Winkel. “If we then have the same conditions at a different location, but lack a measurement, we can predict whether high or low nitrate levels are to be expected.”

Machine learning is needed to analyse the data because there are countless combinations of different factors that play a role. The models learn independently from which combinations certain conclusions can be drawn about the nitrate concentration in the groundwater. “We use AI for this, although its application in our study is strictly speaking a statistical method,” says Winkel. This means that a wealth of data is collected, which a computer analyses statistically in order to recognise patterns. The nitrate values and environmental parameters at the 1,336 measuring points serve as sample data which trains the computer algorithm to make predictions for locations where there are no measured values. The result of the model calculations: in around 35 percent of the Swiss Central Plateau, nitrate concentrations in groundwater are very likely to exceed the threshold value. A map with a resolution of 250 x 250 metres shows the risk areas (see figure).
 

What favours high nitrate concentrations?

But that’s not all. “We are now also trying to learn from the model which factors have a particular influence on nitrate pollution,” explains Winkel. In the technical terminology, this is referred to as interpretable machine learning. Unsurprisingly, it turns out that nitrate concentrations in groundwater are higher in areas with a lot of agriculture. However, other factors that have received little attention to date are also important. If it rains heavily in spring but hardly at all in summer, the concentration can be high. This is because the nitrate can be released from the fertiliser applied in spring, enter the groundwater and – if it is not diluted further – remain enriched. Rain in autumn, on the other hand, has a diluting effect because less fertiliser is applied at this time. The nitrate concentration can therefore fluctuate greatly over time.

The researchers also found, for example, that a high organic carbon content in the soil indicates a low nitrate concentration in the groundwater, regardless of the proportion of agricultural land. One explanation for this could be that a higher organic carbon content in the soil leads to higher denitrification rates, whereby more nitrate is converted to molecular nitrogen before it reaches the groundwater. Such information could help the authorities to check the water quality at the hotspots at the right time and initiate measures if necessary.
 

Environmental detectives at work

The prediction models for the nitrate contamination of groundwater are part of a larger ETH Domain project involving Eawag, EPFL, ETH Zurich, PSI and WSL. The joint initiative called ReCLEAN aims to comprehensively understand and quantify the nitrogen cycle in Switzerland. “Nitrogen is a fascinating element because it occurs everywhere on earth in different forms,” says Winkel (see figure).

Several of the different types of nitrogen cause major environmental problems that affect the climate, air quality, ecosystems and human health. “That’s why nitrogen is also a very relevant topic,“ explains Winkel. “We track down where, in what form and in what quantity the element is currently present. In that sense, we are a kind of environmental detective.“ The researchers want to find out how the different compounds are transformed and how the systems interact with each other. They are interested not only in how the situation in a particular area develops over time, but also in how a change in one area affects another. “It is therefore crucial that researchers from different disciplines work together to gain an understanding beyond a specific area,” says Winkel.
 

Cover picture: In areas with a lot of agriculture, nitrate concentrations in groundwater are higher. However, other factors that have been largely overlooked to date can also contribute to high nitrate concentrations. (Photo: BauernZeitung)
 

Original publications

Extbase Variable Dump
array(3 items)
   publications => '35883,34119' (11 chars)
   libraryUrl => '' (0 chars)
   layout => '0' (1 chars)
Extbase Variable Dump
array(2 items)
   0 => Snowflake\Publications\Domain\Model\Publicationprototypepersistent entity (uid=35883, pid=124)
      originalId => protected35883 (integer)
      authors => protected'Covatti, G.; Winkel, L. H. E.; Li, K.-Y.; Podgorski
         , J.; Berg, M.
' (100 chars) title => protected'Nitrat im Grundwasser der Schweiz. Flächendeckende Vorhersage mit maschinel
         lem Lernen
' (86 chars) journal => protected'Aqua & Gas' (10 chars) year => protected2025 (integer) volume => protected105 (integer) issue => protected'12' (2 chars) startpage => protected'40' (2 chars) otherpage => protected'46' (2 chars) categories => protected'' (0 chars) description => protected'Die KI-gestützte Nitratkartierung im Grundwasser ist ein vielversprechendes
          Instrument, um schweizweit belastete Gebiete zu identifizieren. Zur Kartier
         ung wurde eine Random-Forest-Modellierung auf Basis geografischer Variablen
         und mehr als 1000 Grundwassermessstellen verwendet. Die Modellierung ergab,
         dass die Dichte der Ackerflächen die Nitratkonzentrationen massgeblich beei
         nflusst, gefolgt vom jahreszeitlichen Niederschlagsmuster und Bodeneigenscha
         ften.
' (461 chars) serialnumber => protected'2235-5197' (9 chars) doi => protected'' (0 chars) uid => protected35883 (integer) _localizedUid => protected35883 (integer)modified _languageUid => protectedNULL _versionedUid => protected35883 (integer)modified pid => protected124 (integer)
1 => Snowflake\Publications\Domain\Model\Publicationprototypepersistent entity (uid=34119, pid=124) originalId => protected34119 (integer) authors => protected'Covatti, G.; Li, K.-Y.; Podgorski, J.; Winkel, L. H
         . E.; Berg, M.
' (100 chars) title => protected'Nitrate contamination in groundwater across Switzerland: spatial prediction
         and data-driven assessment of anthropogenic and environmental drivers
' (145 chars) journal => protected'Science of the Total Environment' (32 chars) year => protected2025 (integer) volume => protected973 (integer) issue => protected'' (0 chars) startpage => protected'179121 (11 pp.)' (15 chars) otherpage => protected'' (0 chars) categories => protected'nitrate leaching; groundwater contamination; drinking water resource; fertil
         izer; groundwater management; random forest modelling
' (129 chars) description => protected'Excessive nitrate in groundwater, which is primarily caused by anthropogenic
          activities, is a worldwide problem. Consequently, Goal 6 of the UN Sustaina
         ble Development Goals lists nitrate as one of the key indicators of groundwa
         ter quality. However, in most countries, the nationwide occurrence of nitrat
         e is unknown, as the monitoring networks only represent small points in spac
         e. To bridge this gap, machine learning modelling that predicts nitrate conc
         entrations at a high spatial resolution is a promising tool to identify high
         -risk areas. Here, we use random forest machine learning to predict nitrate
         concentrations across Switzerland based on 1336 monitoring sites. The model
         revealed that approximately 35 % of the Swiss Plateau, Switzerland's most p
         opulous region, has a high probability of exceeding the Swiss guideline valu
         e of 25 mg/l for groundwater nitrate. We also investigated the individual i
         mportance and influence of anthropogenic and environmental variables associa
         ted with high nitrate concentrations by combining SHapley Additive exPlanati
         ons with expert knowledge of physical and geochemical processes. In addition
          to well-known influences of anthropogenic features (e.g. land use), we foun
         d that other environmental features including high springtime precipitation,
          low summertime precipitation, low soil organic carbon content, low river de
         nsity and greater distance to large rivers, were indicative of high nitrate
         concentrations. These features directly relate to large-scale nitrate transp
         ort and attenuation processes (denitrification and dilution), but have recei
         ved sparse attention in nitrate risk assessment and mitigation measures. The
         refore, the approach and results of our study can be useful for nitrate stud
         ies around the world.
' (1769 chars) serialnumber => protected'0048-9697' (9 chars) doi => protected'10.1016/j.scitotenv.2025.179121' (31 chars) uid => protected34119 (integer) _localizedUid => protected34119 (integer)modified _languageUid => protectedNULL _versionedUid => protected34119 (integer)modified pid => protected124 (integer)
Covatti, G.; Winkel, L. H. E.; Li, K.-Y.; Podgorski, J.; Berg, M. (2025) Nitrat im Grundwasser der Schweiz. Flächendeckende Vorhersage mit maschinellem Lernen, Aqua & Gas, 105(12), 40-46, Institutional Repository
Covatti, G.; Li, K.-Y.; Podgorski, J.; Winkel, L. H. E.; Berg, M. (2025) Nitrate contamination in groundwater across Switzerland: spatial prediction and data-driven assessment of anthropogenic and environmental drivers, Science of the Total Environment, 973, 179121 (11 pp.), doi:10.1016/j.scitotenv.2025.179121, Institutional Repository