AI in Environmental Monitoring: What Actually Runs
Where machine learning really monitors land, forests, rivers, fire and wildlife, which public data feeds it, and a working USGS river-flow check in Python.
Most of the AI doing real environmental monitoring is not an agent. It is a trained model inside a fixed pipeline: a network that labels every 10 metre pixel of a new satellite scene, a set of decision trees that flags forest loss, or an object detector that sorts camera-trap photos. These systems are open about how they work because they were published as peer-reviewed papers or official data products. This guide walks through the ones we could verify, notes where language-model agents honestly fit, and ends with a small working tool built on the US Geological Survey’s water data API.
At a glance
| System | Run by | What the model does | Source |
|---|---|---|---|
| Dynamic World | Google and World Resources Institute | Deep network labels land cover on each new Sentinel-2 image | Scientific Data paper |
| GLAD Landsat alerts | University of Maryland, for Global Forest Watch | Bagged decision trees flag tropical forest disturbance weekly | Environ. Res. Lett. 2016 |
| RADD alerts | Wageningen University and partners | Probabilistic change detection on Sentinel-1 radar | Environ. Res. Lett. 2021 |
| Flood Hub forecasts | Nearing et al. (operational at Flood Hub) | LSTM networks forecast river flow, including ungauged basins | Nature 2024 |
| MegaDetector | Open source (MIT) | Finds animals, people and vehicles in camera-trap images | GitHub |
| FIRMS | NASA | Serves active fire detections from MODIS and VIIRS | NASA Earthdata |
Land cover in near real time: Dynamic World
Most global land cover maps come out once a year, often well after the imagery was taken. The Dynamic World team set out to classify land cover continuously instead, producing a new 10 m map whenever Sentinel-2 delivers a usable scene. The model is a fully convolutional neural network trained with semi-supervised learning. Its labels came from two groups of human annotators: 25 people with remote sensing or photo-interpretation experience marked up roughly 4,000 image tiles, and 45 non-experts marked up about 20,000 more. A separate set of 409 tiles was held back for testing.
In the Earth Engine catalog the collection is GOOGLE/DYNAMICWORLD/V1, produced jointly by Google and the World Resources Institute. Each image carries a probability for each of nine classes plus a label band, and it shares its name with the Sentinel-2 scene it came from. Two practical notes from the catalog and the paper:
- Only fairly clear Sentinel-2 scenes are processed, so you get maps roughly half as often as the satellites revisit. Clouds and their shadows are masked out.
- The catalog suggests thresholding the top class probability when you need pixels that confidently belong to a class. Treat the label band as a best guess, not ground truth.
The underlying satellites matter too. The Copernicus mission page describes Sentinel-2 as twin satellites flying 180 degrees apart, each with a 13-band multispectral instrument (four bands at 10 m) and a 290 km swath, revisiting the equator every five days.
Forest loss alerts
The World Resources Institute’s Global Forest Watch platform distributes near real-time forest disturbance alerts. Two of them have open methods papers.
GLAD Landsat alerts. Hansen and colleagues built a weekly alert for humid tropical forest using Landsat 7 and 8, first piloted in Peru, the Republic of Congo and Kalimantan in Indonesia. Each new Landsat observation, plus metrics from earlier images, goes through bagged decision trees that classify forest cover loss. The design goal was a conservative alert: the authors wanted to avoid false alarms, and the Peru validation found high user’s accuracy with somewhat lower producer’s accuracy, so it misses more than it invents.
RADD alerts. Optical satellites struggle in places that are cloudy most of the year. Reiche and colleagues used Sentinel-1 radar, which sees through cloud, to detect disturbance in the Congo Basin every 6 to 12 days at 10 m. Their detector is a probabilistic algorithm, and the radar scenes were accessed through Google Earth Engine. The paper is frank about errors: most false detections came from non-forest swamp and savannah left in the forest baseline map, and from seasonal flooding in swamp forest that changes the radar signal.
Flood forecasting where there are no gauges
River models usually need long gauge records to calibrate, and most of the world’s watersheds have none. Nearing and colleagues trained long short-term memory (LSTM) networks on public data across 5,680 streamflow gauges and tested them on gauges and time periods left out of training. They report that the AI model’s forecasts at five days ahead were as reliable as, or better than, same-day nowcasts from GloFAS, the Copernicus global flood system. The operational version produces 7-day forecasts in more than 80 countries, free and without registration, at Flood Hub. A research version of the model is in the open-source NeuralHydrology repository.
Wildlife: sorting camera-trap images
Camera traps produce huge numbers of empty frames. MegaDetector is an MIT-licensed model that finds animals, people and vehicles in those images, which also makes it a fast way to throw out blanks. It does not name species; its README points to Google’s SpeciesNet as a companion classifier. The README also contains a section addressed to AI agents, linking a “run-megadetector skill” for agents asked to process a user’s images. That is a fair picture of where agents fit today: orchestrating a well-tested model on someone’s files rather than replacing it. For the general vision workflow, see our guide to building image recognition systems.
Fire: detection feeds, not chatbots
NASA’s Fire Information for Resource Management System (FIRMS) delivers active fire hotspots from MODIS (1 km pixels) and VIIRS (375 m pixels). NASA says global data arrive within three hours of the satellite pass, and some US and Canada detections much faster. Each hotspot marks the centre of a pixel that the detection algorithm flagged as containing fire. If you want this feed in your own code, the area API takes a source, a bounding box and a range of 1 to 5 days, and needs a free MAP_KEY. Note that Suomi NPP has stopped delivering new data, so use the NOAA-20 or NOAA-21 VIIRS sources.
Where language-model agents fit
None of the systems above is an autonomous agent. An agent becomes useful one layer up: it calls these feeds as tools, compares a reading with its history, and writes a short note a person can act on. The rule of thumb is that the model doing the measuring should be the published one, and the agent should only fetch, compare and explain. Our agent frameworks hub lists frameworks for wiring tools into an agent, and data and research tools covers the data side. For a parallel example in farming, see AI in agriculture.
Some sources need credentials. OpenAQ, the open air quality platform, now expects an API key in the X-API-Key header and denies requests without one. The USGS water API below does not.
Working example: is this river running high?
The USGS Water Data OGC APIs serve continuous sensor readings, daily values and monitoring location metadata as GeoJSON. Keys come from api.data.gov and only raise your rate limit, so the script below runs with no key. It pulls the last 30 days of daily mean discharge (parameter 00060, statistic 00003) for the Potomac River at Little Falls, takes the median as a baseline, fetches the newest sensor reading, and raises a flag if the river is running at more than twice that baseline. It uses only the Python standard library.
import datetime as dt
import json
import statistics
import urllib.parse
import urllib.request
BASE = "https://api.waterdata.usgs.gov/ogcapi/v1/collections"
SITE = "USGS-01646500" # Potomac River near Washington DC (Little Falls)
DISCHARGE = "00060" # parameter code for discharge, ft3/s
def get_items(collection, **params):
params.update({"f": "json", "limit": 1000})
url = f"{BASE}/{collection}/items?" + urllib.parse.urlencode(params)
with urllib.request.urlopen(url, timeout=60) as resp:
return json.load(resp)["features"]
# Daily mean discharge (statistic 00003) for the last 30 days
start = (dt.date.today() - dt.timedelta(days=30)).isoformat()
daily = get_items("daily", monitoring_location_id=SITE,
parameter_code=DISCHARGE, statistic_id="00003",
datetime=f"{start}/..")
baseline = statistics.median(float(f["properties"]["value"]) for f in daily)
# Most recent sensor reading
latest = get_items("latest-continuous", monitoring_location_id=SITE,
parameter_code=DISCHARGE)[0]["properties"]
now = float(latest["value"])
print(f"30-day median of daily means: {baseline:,.0f} ft3/s ({len(daily)} days)")
print(f"Latest reading {latest['time']}: {now:,.0f} ft3/s ({latest['approval_status']})")
if now > 2 * baseline:
print("ALERT: flow is more than double the recent median")
else:
print("No alert")
When we ran it on 8 November 2026 it printed a 30-day median of 3,365 cubic feet per second, a latest reading of 2,030 marked Provisional, and no alert.
Things to know before you build on it:
- Use explicit dates. The docs describe ISO 8601 durations such as
P7Dfor thedatetimefilter, but in our test the v1 endpoints rejected them with HTTP 400. A start date followed by/..worked. - Recent data is provisional. Readings carry an approval status, and USGS may revise them later. Do not treat a single provisional spike as fact.
- The old service is closing. The legacy waterservices.usgs.gov site will be shut down on 22 February 2027, with deliberate slowdowns and outages from January 2027. New code should target api.waterdata.usgs.gov.
- The threshold is a placeholder. Doubling the recent median is a simple rule for illustration, not a flood warning.
To hand this to an agent, wrap the function as a single tool that takes a site ID and returns the baseline, latest value and status, and let the model explain the result in plain language.
What we could not verify
The earlier version of this page quoted accuracy and cost-saving percentages credited to Stanford, McKinsey and Google, plus an expert quote we could not trace to any person or publication. It also linked unrelated software as environmental tools. We found no primary sources for any of that, so it is gone.
Written by AI Agents Directory
Editorial team
Facts in this guide are checked against official documentation and repositories, which are linked in the article.