All projects

Agriculture

OneSoil

AI-powered precision agriculture and field intelligence platform

Built the satellite data pipelines, field-boundary and crop models with their MLOps, and the LangChain AI Agronomist with agronomy RAG behind OneSoil, a precision-agriculture platform for farmers and agronomists.

OneSoil: AI-powered precision agriculture and field intelligence

1 / 5
OneSoil: AI-powered precision agriculture and field intelligence

OneSoil: AI-powered precision agriculture and field intelligence

0.75–0.85

Field-boundary interior IoU

70–90%

Detected fields accepted without edits

85–95%

Crop classification accuracy

99% or more

Farms with daily review before 06:00

Stack

PyTorch (SegFormer)Temporal Transformers / LightGBMRay Serve on GKEGoogle Earth EngineGDAL / RasterioPostgreSQL / PostGISBigQueryLangChain + OpenAI GPT-5.1pgvectorVue / Nuxt + MapLibreFlutterDjango + FastAPI

Overview

OneSoil is a precision-agriculture platform for farmers, agronomists and agribusinesses. It turns satellite, weather, soil and machinery data into field decisions: it detects field boundaries and anomalies, builds productivity zones and variable-rate maps, ranks the fields that need attention each day, and answers follow-up questions.

The central idea: Facts come from analytics services, agricultural constraints from a rules engine, and reasoning and explanation from the LLM.

The problem

Farmers generate large amounts of data, from satellite imagery to yield maps, but it is fragmented across systems and hard to analyze together.

  • Unexplained symptoms: a low-vegetation patch alone does not say what caused it or what to do.
  • From insight to action: NDVI maps do not become prescriptions a machine can execute on their own.
  • Scale: at regional or national scale, field datasets can reach millions of polygons.

My role

I worked at OneSoil as an AI engineer and built the engineering in three main areas: the satellite and geospatial pipelines that feed the models, the field ML models and their MLOps, and the AI Agronomist. Product direction and partner relationships belong to OneSoil's product and business teams. OneSoil's GIS annotators and agronomists label the training data and write the reference answers for evaluation, using the tools and pipelines I built.

What I built

Satellite and geospatial pipelines

  • STAC-based ingestion of Sentinel-1, Sentinel-2, Landsat and PlanetScope, with history filtered in Google Earth Engine and cached.
  • Processing from cloud and shadow masking through vegetation indices, field statistics, time series and anomaly detection.

Field ML models and MLOps

  • Two-stage field-boundary detection: a fine-tuned SegFormer predicts interiors and boundaries, then a refinement network draws edges on a 2.5 m grid.
  • Crop classification with a temporal Transformer over optical, radar and weather features, and LightGBM as baseline and fallback.
  • Serving on Ray Serve on GKE L4 Spot GPUs, with a per-region IoU gate, canary rollout and automatic rollback.

AI Agronomist

  • A LangChain tool-calling agent over a pinned GPT-5.1 snapshot whose typed tools run under the user's tenant scope, so it cannot invent farm statistics.
  • A daily ranked field review, a detailed field analysis every 7 days, and a chat mode for follow-up questions.
  • An agronomy RAG layer in pgvector with metadata filters by crop, geography, date and source, plus LangSmith tracing and evals.

Results

  • Field boundaries: interior IoU of 0.75–0.85 on held-out regions with large fields.
  • Accepted detections: 70–90% of detected fields accepted without edits.
  • Crop classification: 85–95% accuracy.
  • On-demand detection: 1–5 seconds per field when the imagery is already cached.
  • Daily review: ready before 06:00 local time for 99% or more of farms.
  • AI Agronomist quality: faithfulness and tool-call accuracy of about 0.9 or higher on the evaluation set.

Tech stack

LayerTechnologies
Frontend and mobileVue 3, Nuxt, TypeScript, MapLibre GL JS, deck.gl, Flutter, Drift (SQLite)
BackendPython, Django, Django REST Framework, FastAPI, Celery, RabbitMQ, Redis
DataPostgreSQL + PostGIS, pgvector, BigQuery, Cloud Storage (COG, Zarr, GeoParquet)
MLPyTorch, Hugging Face Transformers (SegFormer), PyTorch Lightning, LightGBM, Ray Serve, Weights & Biases, Label Studio
GeospatialGoogle Earth Engine, GDAL, Rasterio, GeoPandas, TiTiler, Martin, PMTiles, STAC / pgSTAC
Generative AIOpenAI GPT-5.1, text-embedding-3-small, LangChain, LangSmith
InfrastructureGKE, Terraform, Helm, Argo CD, Argo Workflows, Cloud Build, Pub/Sub

Related case studies