Legacy Archive (2018): Originally written in Chinese on doubixie.com and translated into English for this edition. All archive posts · Home

Predicting Village-Scale Corn Yields with LSTM

Original Chinese title: 用LSTM预测村尺度玉米产量

Predicting County Level Corn Yields Using Deep Long Short Term Memory Models
Full paper: https://arxiv.org/abs/1805.12044
Trains an LSTM across a province-scale region using village-level corn yield data and hourly weather station data to estimate yields, validated against USDA survey data. A few interesting points are noted below.

  • Back in 1964, the USDA began forecasting U.S. corn yields based on field survey data. Various methods have been used along the way, including remote sensing, yet as of fall 2017, forecasts were still based on survey data.
  • There are already quite a few commercial yield-forecasting companies.
  • In 2008, among the 7 factors affecting corn yield (The Seven Wonders of the Corn Yield World), weather factors dominated—and among them, rain, temperature, wind, and humidity are decisive.
  • Temperature has a nonlinear effect on corn yield. That was a paper published in Nature, and it’s where my initial understanding of temperature effects started.
  • The paper applies a preprocessing step to the yield data: it collected 1980–2016 Iowa state corn yield data, where part of each year’s yield increase comes from genetic gain. Following prior research, the authors de-trended the data to remove a 1.5% annual growth effect.
  • The weather data comes from weather stations (purchased =.=), with one station per 19×19 mile grid cell.
  • Growing Degree Days (GDDs), a metric used by domain experts—as I understand it, it’s basically active accumulated temperature: the mean of the day’s maximum and minimum temperatures minus the base temperature required for corn growth.
    Formula 1
  • The growing season runs from April to October: at an hourly time series scale that gives t=5136, whereas at a daily scale t=214. Since the paper only had 3,267 training samples, t=5136 would mean far too many parameters, so they used daily data instead. However, if actual phenology/growth-stage data were available here, t would probably be much smaller, making hourly resolution feasible.
  • The baseline threw in all available variables, and the model’s predictions flattened into a straight line. The reason given in the paper is that those variables are not independent.
  • Training used Keras. Once you have an idea, prototyping with a high-level API is seriously efficient. The red line is ground truth and the black line is the prediction—the tuned 2013 model looks quite solid.
  • In the results section, the paper used the 2013 model and predicted 2014 and 2015 very well, but in 2016 the model’s predictions were systematically lower than the actual values. There’s a great shift in thinking here: instead of immediately wondering whether something is wrong with the model, consider whether something different happened that year (indicating that the weather events in 2016 were not represented in the historical data). When a model holds across many years and diverges in one specific year, it’s worth asking whether that year represents an extreme case.
  • Because the USDA releases yield forecast reports in August, September, October, and November, the paper concludes by comparing results across that timeline. The performance is indeed quite good—even though neither is exact, overall it’s more accurate than the survey data.