Automated Call for Action: RAG-Based Environmental Law Enforcement Screening System

Matas Jurkevicius, Yen-Chia HsuarXiv 2026

Imagine you’re an environmental inspector. It’s been a long day, and your inbox is overflowing with sensor readings, weather reports, and angry emails from citizens about a "rotten egg" smell near the local steel plant. To actually do anything about it, you have to manually map those complaints to specific wind patterns, check them against air quality monitors, and then dive into a 50-page legal permit to see which specific rule was broken.

It’s a classic "needle in a haystack" problem, but the haystack is made of legalese and the needle is invisible gas. This paper introduces a prototype system designed to be the ultimate "legal clerk" for these inspectors, using AI to automate the tedious parts of environmental law enforcement.

TL;DR

Researchers built a Retrieval-Augmented Generation (RAG) system that connects industrial "emission events" to real-world sensor data and complex legal permits. By combining a physics-based wind model with an LLM, the system can automatically flag potential violations and recommend investigations, effectively turning raw data into actionable legal reports.

What Problem Does This Paper Address?

Environmental law enforcement suffers from a "capacity gap." There is simply too much data—from air quality sensors to citizen complaints—for human inspectors to process in real-time. Furthermore, enforcement decisions must be legally bulletproof to survive appeals.

The challenge is twofold:

  1. Evidence Assembly: How do you prove that a specific spike in sulfur dioxide at a sensor 2km away was actually caused by a specific factory incident three hours ago?
  2. Legal Grounding: How do you ensure an AI doesn't "hallucinate" a violation or cite a permit condition that belongs to a completely different factory?

Methods

The authors developed a three-stage pipeline:

  1. Evidence Aggregation (The "Puff" Model): Instead of just feeding raw data to an LLM, they used a simple atmospheric dispersion model. It treats an emission as a "puff" of smoke and tracks its trajectory based on wind speed and direction. This allows the system to "align" an event with the specific sensors and neighborhoods it actually reached.
  2. Retrieval (The Search): They used a RAG architecture to find relevant permit conditions. Because the permits are in Dutch and the evidence summaries are in English, they employed a multilingual embedding model.
  3. Plant-Aware Re-ranking: This is a key innovation. In industrial zones, factories often sit side-by-side (like the KGF1 and KGF2 plants studied here). Standard AI search often confuses them. The authors added a "plant filter" to ensure the AI only looks at the rules applicable to the specific chimney that leaked.
Table 1. Retrieval variants. 𝑘is the number of conditions given to the generator. The pool is the number of conditions that the re-ranker scores.
  1. Generation: Finally, an LLM (from the GPT-5 family) writes a report summarizing the event, assessing its severity, and recommending whether a formal investigation is needed.

Datasets

The study focused on a high-stakes real-world case: the Tata Steel coke plants in the IJmuiden region of the Netherlands.

  • Pollution Events: 707 incidents reported by the factory in 2025.
  • Citizen Complaints: 813 reports from local residents.
  • Air Quality & Weather: Hourly data from the RIVM (National Institute for Public Health) and KNMI (Royal Netherlands Meteorological Institute).
  • Permit Corpus: 42 active permit conditions for the two coke plants, manually labeled by the authors to ensure ground truth.

Key Insights and Ideas

  • The "Wrong Plant" Trap: Without specific filtering, the AI cited the wrong factory's permit conditions 58% of the time. This highlights a major risk in using "off-the-shelf" RAG for legal work where precision is everything.
  • The Invisible Citizen: Interestingly, removing citizen complaints from the data had almost no effect on the AI’s final recommendation. Why? Because the permits themselves don't mention complaints. The AI, being a "good clerk," only cares about what’s in the law. This suggests we need better legal frameworks to integrate community voices into automated systems.
  • Air Quality is King: In "ablation" tests (where researchers systematically removed pieces of data), removing air quality sensor data caused the biggest drop in the system's performance. It’s the "hardest" evidence the LLM relies on.

Key Results

  • Zeroing in on Accuracy: By implementing "plant-aware re-ranking," the researchers reduced the "wrong-plant citation rate" from 58.1% to 0%.
  • Model Performance: The "mini" version of the model (GPT-5-mini) performed nearly as well as the full-sized GPT-5.1, suggesting that for specialized tasks like this, you don't always need the biggest, most expensive "brain."
  • Investigation Leads: The system successfully generated "Period Reports" that could distinguish between routine incidents and those requiring a "Yes" for formal investigation.

Limitations and Future Work

The authors are refreshingly honest about the hurdles:

  • Ambient vs. Source: The system uses "ambient" air data (what's in the neighborhood), but permits often regulate "stack" emissions (what's coming directly out of the chimney). Proving one caused the other is still a scientific challenge.
  • Language Nuances: The cross-encoder used for re-ranking was trained on English, but the permits are Dutch. While it worked, a native Dutch model might be even sharper.
  • The Human in the Loop: The goal isn't to replace inspectors but to support them. Future work will focus on how to best present this AI-generated evidence so a human expert can make the final, legally binding call.

Summary updated

BibTeX
@misc{jurkevicius2026automated,
  author = {Matas Jurkevicius and Yen-Chia Hsu},
  title = {{Automated Call for Action: RAG-Based Environmental Law Enforcement Screening System}},
  year = {2026},
  eprint = {2611.30423},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.30423},
}
Figure