A global animal nutrition group asked Mobian to build an AI verification module that screens farm sustainability assessments before a human verifier reviews them.
Agriculture
Sustainability
AI Verification
Enterprise IT Solutions
<60 secend-to-end processing of an assessment, against 15–30 min by hand
30–100deterministic rules per assessment type
~$0.50cost to process one assessment
16assessment types routed through the pipeline from the first release
The client
Context
The client runs a platform where assessors collect farm data for sustainability and carbon footprint reports. Two expert verifiers check about 1,400 assessments a year, at 15–30 minutes each. Many contain errors that pass form validation but do not add up across fields. The client needed a system that finds these errors first, so verifiers spend their time on judgment, not arithmetic.
The challenge
What stood in the way
Unwritten rulesthe verification logic lived in the heads of two experts and had to be documented before any code was written.
Large, sparse dataone raw assessment export can reach 21 MB, with thousands of fields and most of them empty.
Cross-field errorsthe problems are stock that does not reconcile or periods that do not fit the species, not single wrong values.
Many assessment types16 species and farming systems, each with its own logic, and new ones had to plug in without rework.
Trust and audit trailthe AI may advise but not decide, and every flag has to name the rule and the field that raised it.
What we built
The solution
Mobian turned the verifiers' knowledge into versioned rule catalogs and built a pipeline that returns a traffic-light verdict and memo for every assessment.
Discovery and rule catalogs
Interviewssessions with the verifiers turned unwritten practice into documented rule sets per species.
Rule formateach rule lists its input fields, green, yellow and red thresholds, and what to do when a field is blank.
Review loopthe client's experts confirmed every rule in working sessions before it went into code.
Assessment minifier
Reduces a multi-megabyte raw export to a compact, typed model of tens to hundreds of kilobytes that keeps only filled fields.
Verification pipeline
Routingevery assessment type is classified, gets the common checks, and supported species also get their own rule set.
Deterministic rules engine30 to 100 checks per assessment type, common checks plus a set for each species; the same input always gives the same verdict.
Verdicta red, yellow or green signal and a memo grouped by section, sent back to the client's platform through a REST callback.
Advisory AI screening
An LLM review explains the findings in plain language and never changes the traffic light.
Built-in evaluations check that the AI summary matches the rule results and cites only real checks.
OpenAI is the primary model and Anthropic is the fallback, so one provider outage does not stop the review.
Audit trail and observability
Every run, verdict and delivery status is stored in a database and can be read back through the API.
Each AI step is traced in a self-hosted Langfuse instance inside the client's own cloud, so assessment data stays there.
Technologies & architecture
Backend: Python, FastAPI, Pydantic, SQLAlchemy, PostgreSQL with pgvector, Alembic
AI orchestration: LangGraph, LangChain, OpenAI and Anthropic models, LangSmith evaluations, Langfuse tracing
Infrastructure: Docker on Microsoft Azure, REST integration with the client's .NET platform
Quality: unit and integration test suite, strict type checking with mypy, ruff and pre-commit hooks
Timeline
How the delivery went
1 month
Discovery: interviews with the verifiers and the infrastructure team, then rule sets for beef, dairy and broiler.
2 months
Data contract with the client's platform and the assessment minifier.
1 month
Core pipeline: intake, routing across all 16 assessment types, AI screening and tracing.
6 weeks
Deterministic rules engine with common, beef and layer checks, run live on real assessments.