AgricultureAgriculture

Precision Agriculture AI API: Crop Disease Detection and Yield Prediction

China Sinong. Microsoft FarmVibes.AI. CropGPT. 81% of large farms willing to adopt AI. SciRouter unifies crop disease, yield, and soil APIs.

SciRouter Team
April 11, 2026
12 min read

Agriculture is the slowest big industry to adopt AI, and also the one with the most to gain. Global food production has to increase by roughly 50 percent by 2050 to meet projected demand, against a backdrop of climate volatility, shrinking arable land, and tightening water supply. Precision agriculture, using satellites, sensors, and machine learning to make per-field decisions, is the most promising path to closing that gap.

A recent survey found that 81 percent of large farms are willing to adopt AI tools for crop management when the tools are affordable and integrate with existing workflows. The bottleneck is not appetite. It is availability of tools that do not require a dedicated data science team to operate.

SciRouter's agriculture API wraps the best open source models (Microsoft's FarmVibes, China's Sinong, CropGPT and others) into a single endpoint. Upload a field boundary or a photo of a diseased leaf, and the API returns actionable answers.

Note
Predictions from the API should be used as decision support, not as a replacement for agronomist judgment. Local soil conditions, management history, and weather microclimates all affect outcomes and are not fully captured by any model.

The open source agricultural AI stack

Agricultural AI was mostly proprietary until around 2023, when several major open source efforts launched in parallel:

  • FarmVibes.AI from Microsoft Research. An open source precision agriculture platform with pretrained workflows for yield estimation, weed detection, and crop type mapping. It unifies satellite, weather, drone, and soil sensor data.
  • Sinong from a Chinese research consortium. One of the largest public collections of crop disease datasets and pretrained models, released in 2024.
  • CropGPT and variants. Language-model wrappers that let farmers query agronomic knowledge bases in natural language.
  • Prithvi-EO (NASA and IBM). A foundation model for satellite imagery that fine-tunes well for crop-type mapping and anomaly detection.

Each of these is powerful but none of them are easy to self-host. The API wraps them with the same schema so you can swap between them or run them in parallel.

Crop disease detection

Disease detection is the most photogenic precision agriculture task and also one of the most useful. Early identification of wheat rust, potato late blight, tomato bacterial spot, or rice blast can prevent yield losses of 20 to 50 percent when caught in time. The classical approach involves an agronomist walking the field, which scales poorly. A smartphone camera plus a trained classifier scales dramatically better.

detect-disease.py
import httpx

API_KEY = "sk-sci-..."
BASE = "https://scirouter.ai/v1"

# Upload a photo of a suspicious leaf
with open("leaf.jpg", "rb") as f:
    response = httpx.post(
        f"{BASE}/agriculture/detect-disease",
        headers={"Authorization": f"Bearer {API_KEY}"},
        files={"image": ("leaf.jpg", f, "image/jpeg")},
        data={
            "crop": "tomato",
            "model": "sinong-v2",
            "return_severity": "true",
        },
        timeout=60,
    )

result = response.json()
print(f"Top disease: {result['top_prediction']['label']}")
print(f"Confidence: {result['top_prediction']['confidence']:.1%}")
print(f"Severity (0-3): {result['severity']}")
print(f"Recommended action: {result['advisory']}")

The call returns a disease label, severity score, and a short advisory generated from a curated agronomy knowledge base. For researchers, the raw model logits are also returned so you can evaluate uncertainty and ensemble across models.

Yield prediction from satellite time series

Yield prediction is a different kind of problem. Instead of a single photo, it uses a time series of satellite imagery over a growing season combined with weather data, soil properties, and historical yields. Modern models treat this as a multimodal time-series regression and can predict end-of-season yield to within 5 to 10 percent of actual for major grain crops.

The API takes a field boundary (GeoJSON), a crop type, and a growing season. It fetches Sentinel-2 and weather data automatically, runs a pretrained FarmVibes workflow, and returns an expected yield with an uncertainty interval.

  • Satellite inputs. Sentinel-2 optical for vegetation indices, Sentinel-1 SAR for biomass under clouds, MODIS for higher-frequency coarse-resolution data.
  • Weather inputs. ERA5 reanalysis and short-range forecasts for temperature, precipitation, radiation, and humidity.
  • Soil inputs. SoilGrids for texture, organic carbon, and nutrient proxies.

Weed detection and variable-rate spraying

Another high-impact application is weed detection from drone imagery to drive variable-rate herbicide application. Instead of spraying the entire field uniformly, targeted spraying reduces chemical use by 50 to 90 percent depending on weed pressure. FarmVibes includes pretrained weed classifiers, and the API exposes them for both orthomosaic imagery and real-time drone feeds.

Soil moisture and irrigation

For irrigated agriculture, knowing the soil moisture state of each part of a field enables precise water application. SMAP satellite data provides global soil moisture at a coarse resolution, and downscaling workflows (using Sentinel-1 SAR and weather data) can bring that to field scale. The API exposes downscaled soil moisture as one of its standard outputs.

Tip
For water-limited regions, combining a yield prediction with a soil moisture forecast lets you set optimal irrigation schedules that trade off yield against water use. The API makes it easy to run that combined analysis per field.

Insurance and risk assessment

Parametric crop insurance pays out based on objective indices (temperature days, rainfall thresholds, NDVI deficits) rather than traditional loss adjustment. This is much faster to settle and less prone to fraud, but it needs reliable remote sensing to work. The API provides the underlying measurements (NDVI, EVI, rainfall aggregates) that feed parametric insurance contracts.

CropGPT and natural language access

One of the most interesting recent developments is CropGPT-style natural language wrappers. A farmer can ask “why does my north field look worse than my south field this week?” and get a grounded answer that pulls from recent satellite imagery, weather history, and agronomic knowledge bases. The API exposes a chat endpoint that combines retrieval over the same data used by the other endpoints.

This is the kind of interface that makes precision agriculture actually usable for people who are not GIS analysts. Farmers, extension workers, and advisors can get answers without opening a mapping application.

Who is using the agriculture API

  • Agricultural extension services in developing markets where per-field AI advice would otherwise be cost-prohibitive.
  • Insurance underwriters building parametric products.
  • Cooperatives aggregating many small farms and providing agronomy as a service.
  • University researchers studying climate impacts on crop production.
  • NGOs running early-warning systems for food security in at-risk regions.

Getting started

The quickest path is Agriculture Lab, which provides a web interface for drawing field boundaries, uploading leaf photos, and running the various workflows. It is designed for agronomists and researchers who do not want to write code but need to move faster than a desktop GIS allows.

For production integrations (farm management systems, insurance platforms, advisory apps), the REST API and Python SDK are the right surface. The API is stable, versioned, and covered by the same SLA as the rest of SciRouter.

Open Agriculture Lab →

Frequently Asked Questions

What is FarmVibes.AI?

FarmVibes.AI is Microsoft Research's open source toolkit for precision agriculture. It combines satellite imagery, weather data, soil sensors, and drone imagery into a unified platform and ships with pretrained workflows for crop type classification, yield estimation, and weed detection. Because it is open source, researchers can extend it, and the SciRouter API wraps its workflows so teams do not have to operate the underlying infrastructure themselves.

What is Sinong and why does it matter?

Sinong is a large open source agricultural AI project launched in China in 2024 that provides pretrained models for crop disease diagnosis, yield prediction, and pest identification across multiple crops and regions. It is one of the largest publicly available crop disease datasets and a landmark for open agricultural AI. The SciRouter API exposes its disease classifiers alongside Western counterparts so users can pick whichever performs better on their region and crop.

How accurate is AI-based crop disease detection today?

For well-studied crops like wheat, corn, rice, tomato, and potato, top models achieve 95 percent plus accuracy on curated test sets. In the field, accuracy is usually lower because of variable lighting, cluttered backgrounds, and early-stage symptoms that are visually subtle. A reasonable real-world expectation is 85 to 92 percent accuracy on clear images of common diseases, with significant drops for rare or novel pathogens.

What data does yield prediction require?

Yield prediction models typically combine satellite time series (Sentinel-2 NDVI, EVI, SAR), weather data (temperature, precipitation, radiation), soil properties, and historical yield records. The API handles the data fetching automatically when you supply a field boundary and a growing season. For farms with proprietary sensors or drone data, those can be uploaded and merged with the public inputs.

Can I integrate the API with a farm management system?

Yes. The API returns structured JSON and GeoJSON that plug into most farm management systems (FMS) and farm record keepers. Common integrations include Climate FieldView, John Deere Operations Center, and open source FMIS platforms. Webhook notifications on new predictions let you build an alert pipeline without polling.

How is the API different from a consumer plant identification app?

Consumer apps like Pl@ntNet and iNaturalist are excellent for species identification but are not tuned for diagnosing diseases at production scale. The precision agriculture API focuses on agronomic tasks: distinguishing disease severity, quantifying field-level impact, and integrating with satellite time series for yield forecasting. It is designed for ag research, advisory services, and insurance, not for home gardeners.

Run this yourself — no GPU, no install

Free for researchers. Pick a tool, paste your input, see results in seconds.