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.
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.
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.
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