Build the data foundation first

Collect only inputs that can change a farm decision.

Every input needs a reason, a source, a consistent unit, and a link to a model or cost calculation. The table below is the prototype data contract.

Farmer input and data-source matrix

Manual fields should stay short; fetch or prefill where a reliable source exists.

CategoryInputWhy it is neededCapture methodExpected type / unit
SoilSoil pHControls nutrient availability and crop suitability.Manual soil test or lab datasetDecimal pH (0–14)
SoilN, P, K and organic matterExplains yield response and fertilizer need.Soil lab / SoilGrids proxymg/kg, %, or categorical band
SoilTexture and drainageAffects water holding, disease pressure, and irrigation need.Soil survey / manualCategory: clay, loam, sand; drainage class
CropCrop, variety, planting dateSets the crop-specific yield and disease baseline.ManualCategory + date (YYYY-MM-DD)
CropField area and historic yieldScales per-hectare estimates and grounds the model in local performance.Manual farm recordsHectares; tonnes/hectare
CropGrowth stage and planting densityDetermines which inputs and disease actions are still practical.ManualStage category; plants/hectare
WeatherRainfall, temperature, humidityMajor drivers of crop growth, water stress, and disease.Automatic weather API / historical datasetmm; °C; % RH
WeatherForecast heat, frost, wind, droughtChanges near-term yield loss and spray or irrigation decisions.Automatic forecast APIProbability or continuous forecast values
Disease & pestObserved symptoms or leaf imageSupports disease or pest classification and targeted action.Manual scouting / image modelCategory, severity 0–100%, JPEG/PNG
Disease & pestTrap counts and prior outbreaksImproves pest risk beyond a single observation.Manual farm log / regional advisory dataCount; binary or categorical history
Inputs & costsFertilizer rate and unit costA direct variable cost; rate may also affect expected yield.Manual invoices / supplier feedkg/hectare; currency/hectare
Inputs & costsPesticide and weedicide costDirect variable cost; can prevent losses only when an actual risk is present.Manual invoices / supplier feedCurrency/hectare; product/category
Inputs & costsLabor, fuel, irrigation, equipmentOften determines whether a seemingly high-yield plan is profitable.Manual farm recordsCurrency/hectare or hours/hectare
MarketLocal spot price and buyer/marketSets the selling-price assumption for revenue.Automatic market feed + manual buyer quoteCurrency/tonne; market ID
MarketExpected harvest date and price volatilityPrice at harvest can differ from today’s price.Historical price dataset / manual estimateDate; % standard deviation or risk band
OtherTransport, storage, commissionsRevenue is not fully realized until produce reaches the buyer.Manual farm recordsCurrency/tonne or currency/hectare
OtherCredit cost, insurance, and farmer risk preferenceImportant for a realistic decision, but not always a yield driver.ManualCurrency; low/medium/high

Freely available hackathon datasets

Use them to create baselines and enrich farm records—not to imply field-level certainty.

FAOSTAT crops and livestock products

Use: Country-level production, yield, and price trends for initial baselines and feature exploration.

Watch: Too aggregated for field-level predictions; use it for context, not as ground truth for one farm.

USDA NASS Quick Stats and USDA AMS Market News

Use: US crop production, yield, and market-price data where the prototype targets US regions.

Watch: Coverage and commodity definitions vary; align units and geography before joining.

NASA POWER / Open-Meteo historical weather

Use: Temperature, rainfall, radiation, humidity, and wind features by date and location.

Watch: Weather-grid resolution may not match a microclimate or a farm weather station.

ISRIC SoilGrids

Use: Global gridded soil properties such as pH, texture fractions, organic carbon, and bulk density.

Watch: Use as a prior when a soil test is unavailable; it does not replace a current lab sample.

PlantVillage disease image dataset

Use: Starter image data for a leaf-disease classifier or a disease-risk proof of concept.

Watch: Images are often cleaner than farmer photos, so field accuracy can be much lower.

Farm records collected for the pilot

Use: The most valuable training rows: field, season, crop, input rates, costs, yield, price, and observed losses.

Watch: A hackathon should use a small, consistent sample and clearly label models as prototype estimates.

A simple training table

One row per field-season is enough to start: field ID, crop, planting and harvest dates, soil values, weather summaries, input rates and costs, disease observations, yield, realized price, transport/storage cost, and realized profit. Use a time-based split so future seasons are held out for testing.

Data checks before modeling

Normalize all cost and yield values to the same area and currency unit, record the date each price was known, remove data leakage from post-harvest variables, and keep missing-value flags. A clean baseline table is more valuable than a complicated model with mismatched data.

Fieldwise is a transparent planning prototype. Confirm local agronomy, regulations, buyer terms, and live prices before spending.
⚡Built with GenMB