Machine learning in agriculture allows farmers to use lavish amounts of data about climate change, crop and soil conditions, and other environmental variables to make informed decisions about plant and animal treatment.