Agriculture AI Case study

Ensemble of Cubist Models for Soy Yield Prediction Using Soil Features and Remote Sensing Variables

Picking elite soybean varieties a season early with one Cubist decision-tree model per maturity band, using soil data and MODIS satellite imagery

Presented at KDD 2017, the 23rd Conference on Knowledge Discovery and Data Mining, Halifax, Nova Scotia. Authors: Tzvi Aviv (AvivInnovation) and Vanessa Lundsgaard-Nielsen (University of Toronto). Built for a Syngenta data challenge run with IdeaConnection and AI for Good; Syngenta provided the data and funding.

The Problem

Bringing a new soybean variety to market is slow. Seed companies test candidate lines over three stages of field trials, one growing season each, before deciding which are “elite”: varieties that reliably out-yield the commercial lines already on sale, across years and locations.

The process is also exposed to Type I errors: lines that look elite in one season and then fail to deliver in the next. The question for this work was whether machine learning on soil and satellite data could pick high-yielding variants earlier, and weed out the false positives.

Data

Syngenta supplied yields, soil and weather data for soybean variants grown across the US Midwest (Indiana, Nebraska, Illinois, Iowa and Minnesota), mostly in relative-maturity (RM) bands 2.0 to 3.5. We added publicly available remote-sensing data from NASA’s MODIS instruments for the 58 stage-three test locations in the class of 2014:

  • Vegetation (NDVI): smoothed, gap-filled NDVI for 2012–2015 from the NASA Stennis Time Series Product Tool, combining the Terra (MOD13Q1) and Aqua (MYD13Q1) satellites at 250 m and 8-day resolution. Per season and location we derived the peak value (NDVIMAX), the timing of the peak (MAXTIME) and the seasonal sum (SUMNDVI).
  • Land surface temperature (LST): day and night temperatures from MOD11A1 at 1 km and 8-day resolution, summarized as cumulative July and August daytime heat (JULYSUM, AUGSUM) and minimum May and July night temperatures (MAYMIN, JULYMIN).
Figure 1 from the paper. Left: soy yields by year at location 4370. Right: daytime and nighttime land surface temperature and NDVI at the same site, 2011–2015. The low-yield 2012 season lines up with high daytime temperatures and a weak NDVI peak.

Feature Selection

Correlation analysis kept the variables that tracked yield. Peak greenness (NDVIMAX) correlated positively with yield, while summer heat (JULYSUM, AUGSUM) correlated negatively, which fits soy’s known sensitivity to high temperatures. Among the soil variables, irrigation showed the strongest correlation with yield; all soil variables were kept even where they correlated with each other.

Figures 2 and 3 from the paper: correlations of the remote-sensing variables (left) and soil variables (right) with mean yield and with each other. Blue is positive, red is negative.

The final models used 21 predictors: variety, family, location (latitude, longitude, FIPS, area), irrigation, soil chemistry and texture (CEC, pH, organic matter, clay, silt, sand, available water capacity), plus the seven NDVI and temperature features.

Approach: Divide and Conquer by Maturity Band

Yields, weather and soil conditions differ a lot across maturity bands, so rather than one global model we trained one model per RM band: an ensemble of 15 regression models.

We compared Random Forest and Cubist decision-tree models in R. Random Forest had lower error on the training data, but scored worse on held-out data and on the challenge’s CodaLab leaderboard, a sign of overfitting. Cubist generalized better, and it also ranks variables by their contribution, which keeps each model interpretable.

High / medium quality Low quality (r < 0.5) Too few trials to model 0 0.25 0.5 0.75 1 RM 2.0 · Medium quality · r = 0.48, RMSE 8.9 bu/ac · 115 trials Top variables: organic matter, AUGSUM, area, JULYSUM 2.0 115 RM 2.1 · High quality · r = 0.85, RMSE 4.14 bu/ac · 257 trials Top variables: SUMNDVI, JULYSUM, NDVIMAX, MAYMIN 0.85 2.1 257 RM 2.2 · Medium quality · r = 0.64, RMSE 7.28 bu/ac · 211 trials Top variables: NDVIMAX, JULYSUM, MAYMIN, AUGSUM 2.2 211 RM 2.3: 57 trials, too few to fit a model 2.3 57 RM 2.4 · Low quality · r = 0.43, RMSE 9.47 bu/ac · 198 trials Top variables: sand, silt, JULYSUM, NDVIMAX 2.4 198 RM 2.5 · Medium quality · r = 0.76, RMSE 5.18 bu/ac · 358 trials Top variables: JULYSUM, clay, NDVIMAX, longitude 2.5 358 RM 2.6 · Medium quality · r = 0.56, RMSE 7.05 bu/ac · 190 trials Top variables: MAYMIN, JULYSUM, SUMNDVI, longitude 2.6 190 RM 2.7 · Medium quality · r = 0.76, RMSE 4.94 bu/ac · 426 trials Top variables: clay, pH, SUMNDVI, irrigation 2.7 426 RM 2.8 · Medium quality · r = 0.76, RMSE 5.11 bu/ac · 402 trials Top variables: clay, pH, irrigation, CEC 2.8 402 RM 2.9 · Low quality · r = 0.29, RMSE 8.79 bu/ac · 143 trials Top variables: irrigation, CEC, MAYMIN, JULYMIN 2.9 143 RM 3.0 · Medium quality · r = 0.71, RMSE 6.39 bu/ac · 395 trials Top variables: MAYMIN, JULYSUM, irrigation, CEC 3.0 395 RM 3.1 · Low quality · r = 0.23, RMSE 11.08 bu/ac · 105 trials Top variables: latitude, SUMNDVI, FIPS, JULYMIN 3.1 105 RM 3.2 · High quality · r = 0.84, RMSE 4.9 bu/ac · 310 trials Top variables: irrigation, sand, MAXTIME, AUGSUM 0.84 3.2 310 RM 3.3: 0 trials, too few to fit a model 3.3 0 RM 3.4 · High quality · r = 0.85, RMSE 4.64 bu/ac · 442 trials Top variables: JULYSUM, CEC, sand, organic matter 0.85 3.4 442 RM 3.5 · Medium quality · r = 0.75, RMSE 6.23 bu/ac · 256 trials Top variables: CEC, JULYSUM, NDVIMAX, MAYMIN 3.5 256 RM 3.6 · Low quality · r = 0.30, RMSE 9.45 bu/ac · 161 trials Top variables: JULYSUM, AWC, latitude, JULYMIN 3.6 161 RM n Relative maturity band · number of training trials Correlation with training yields (r)
Model quality by maturity band (Table 3 in the paper). Three models reached r ≈ 0.85 and eight were medium quality. The four weak models (red) were trained on the smallest datasets, about 114 trials on average, so the paper recommends more field data for those bands. Hover a bar for its RMSE and top variables.

The most important variables changed from band to band (soil texture in one, July heat or NDVI in another), which supported the decision to model each band separately. Grouping bands into wider zones lowered internal RMSE to about 4 bu/ac, but scored worse on the leaderboard than the per-band models.

Validation: Weeding Out False Elites

To test whether the approach reduces Type I errors, we applied it to the class of 2013 to predict their 2014 yields, then compared predictions with what the fields actually produced.

Kept as elite Dropped (gain < 2.5 bu/ac) 56 56 58 58 60 60 62 62 64 64 66 66 perfect prediction V156516 (RM 2.1) · predicted 58.2, actual 60.2 bu/ac · gain over check +4.0 · kept V156786 (RM 2.1) · predicted 58.2, actual 60.6 bu/ac · gain over check +4.0 · kept V156783 (RM 2.4) · predicted 58.8, actual 58.8 bu/ac · gain over check +2.0 · dropped V156565 (RM 2.5) · predicted 63.1, actual 62.8 bu/ac · gain over check +5.1 · kept V156806 (RM 2.6) · predicted 63.2, actual 64.1 bu/ac · gain over check +3.0 · kept V152079 (RM 2.7) · predicted 62.3, actual 62.8 bu/ac · gain over check +2.5 · kept V156574 (RM 2.7) · predicted 62.6, actual 62.1 bu/ac · gain over check +2.8 · kept V156807 (RM 2.7) · predicted 62.6, actual 61.4 bu/ac · gain over check +2.8 · kept V156553 (RM 2.9) · predicted 62.4, actual 61.7 bu/ac · gain over check +1.7 · dropped V152053 (RM 3.0) · predicted 60.7, actual 60.0 bu/ac · gain over check +1.5 · dropped V156642 (RM 3.0) · predicted 58.8, actual 56.5 bu/ac · gain over check -0.4 · dropped V156763 (RM 3.2) · predicted 61.5, actual 61.4 bu/ac · gain over check +1.3 · dropped V156797 (RM 3.2) · predicted 61.5, actual 62.0 bu/ac · gain over check +1.3 · dropped V152061 (RM 3.4) · predicted 63.6, actual 63.2 bu/ac · gain over check +2.6 · kept V156774 (RM 3.5) · predicted 65.1, actual 65.7 bu/ac · gain over check +5.4 · kept Predicted 2014 yield (bu/ac) Actual 2014 yield (bu/ac) RMSE (BU/AC) 1.16 CORRELATION 0.84 LINES DROPPED 6 of 15 as not consistently elite
Predicted vs actual 2014 yields for the class of 2013 (Table 2 in the paper). With the same 2.5 bu/ac gain over matched check lines as the cutoff, the models removed six lines from the elite list because their yields weren't consistent enough. Hover a point for the variety.

Results: 15 Elite Varieties

Elite varieties were defined as those predicted to yield at least 2.5 bu/ac more than the median commercial (“check”) variety in the same maturity band. Applied to the class of 2014 at the 58 test locations, the ensemble picked 15 elite varieties for 2015.

Commercial check (median, same RM) Predicted 2015 yield 54 56 58 60 62 64 66 GAIN V140364 RM 2.0 V140364 (RM 2.0) · predicted 60.9 vs check 55.1 bu/ac · +5.8 bu/ac (10.5%) +5.8 V140393 RM 2.1 V140393 (RM 2.1) · predicted 56.9 vs check 54.2 bu/ac · +2.8 bu/ac (5.2%) +2.8 V111237 RM 2.2 V111237 (RM 2.2) · predicted 60.5 vs check 55.9 bu/ac · +4.6 bu/ac (8.2%) +4.6 V114553 RM 2.5 V114553 (RM 2.5) · predicted 60.7 vs check 58.0 bu/ac · +2.7 bu/ac (4.7%) +2.7 V114655 RM 2.5 V114655 (RM 2.5) · predicted 61.3 vs check 58.0 bu/ac · +3.3 bu/ac (5.7%) +3.3 V114569 RM 2.6 V114569 (RM 2.6) · predicted 62.9 vs check 60.2 bu/ac · +2.6 bu/ac (4.3%) +2.6 V114530 RM 2.7 V114530 (RM 2.7) · predicted 62.3 vs check 59.8 bu/ac · +2.6 bu/ac (4.3%) +2.6 V114564 RM 2.8 V114564 (RM 2.8) · predicted 63.8 vs check 60.9 bu/ac · +2.9 bu/ac (4.8%) +2.9 V114585 RM 2.8 V114585 (RM 2.8) · predicted 63.6 vs check 60.9 bu/ac · +2.7 bu/ac (4.4%) +2.7 V152312 RM 2.8 V152312 (RM 2.8) · predicted 63.5 vs check 60.9 bu/ac · +2.6 bu/ac (4.3%) +2.6 V114565 RM 3.0 V114565 (RM 3.0) · predicted 62.1 vs check 59.3 bu/ac · +2.9 bu/ac (4.9%) +2.9 V114589 RM 3.1 V114589 (RM 3.1) · predicted 62.8 vs check 59.5 bu/ac · +3.3 bu/ac (5.5%) +3.3 V152320 RM 3.1 V152320 (RM 3.1) · predicted 64.1 vs check 59.5 bu/ac · +4.6 bu/ac (7.7%) +4.6 V152324 RM 3.5 V152324 (RM 3.5) · predicted 62.9 vs check 59.7 bu/ac · +3.1 bu/ac (5.2%) +3.1 V152415 RM 3.5 V152415 (RM 3.5) · predicted 62.4 vs check 59.7 bu/ac · +2.7 bu/ac (4.5%) +2.7 Yield (bu/ac)
Predicted 2015 yields of the 15 elite varieties against the commercial check in the same band (Table 1 in the paper). Gains range from 2.6 to 5.8 bu/ac.

The paper estimates the method could raise commercial soy yields by about 5% and shorten the time it takes to develop a commercial variety. On the CodaLab leaderboard the submission scored 0.99 accuracy, 0.45 F-measure and 0.47 Matthews correlation coefficient.

What Came Next

The paper proposed two extensions: adding more remote-sensing variables, and forecasting each location’s NDVI and temperature curves forward so that yields could be predicted for seasons that haven’t happened yet. The same ingredients, satellite NDVI and temperature features feeding yield models, carried forward into Farm360Ai at DaganTech.

Stack

  • Modeling: Cubist and randomForest packages in R
  • Remote sensing: NASA MODIS NDVI (MOD13Q1, MYD13Q1, via the Stennis Time Series Product Tool) and land surface temperature (MOD11A1)
  • Evaluation: CodaLab challenge leaderboard; back-testing on the class of 2013