News Release

Counting heads: how deep learning can simplify tedious agricultural tasks

Scientists show how machine learning models can be used to automatically detect the heads of sorghum plants in drone images to derive agricultural metrics

Peer-Reviewed Publication

Nanjing Agricultural University The Academy of Science

The selective breeding of grain crops is one of the main reasons why domesticated plants produce such excellent yields. Selecting the best candidates for breeding is, however, a remarkably complex task. On one hand, it requires a skilled breeder with trained eyes to assess plant resistance to disease and pests, crop growth, and other factors. On the other hand, it also requires precise tool-assisted measurements such as grain size, mass, and quality.

Although all these standard measures are useful, none of them takes into account the number of panicles or ‘heads’ per plant. Head density is closely related to crop yield in most cases, and it could easily be a staple characteristic to measure in breeding programs. However, estimating the number of heads per plant and per unit area is very time consuming and requires tedious manual work.

To address this issue, many researchers have developed machine learning models that can automatically detect individual heads on grain crops in images taken either at ground level or by drones. While these models are aimed at simplifying the otherwise manual counting process in the field, the reality is that they are usually trained in limited testing conditions and focus exclusively on head detection without providing more metrics. In other words, using these models outside of the context in which they were developed and trained can be difficult, tedious, and even yield poor results.

Against this backdrop, a research team including Professor Scott Chapman from The University of Queensland, Australia, sought to promote deep-learning models for head counting by providing a detailed pipeline outlining their use. As explained in their paper, which was recently published in Plant Phenomics, this pipeline covers most of the quirks and challenges that one could find when using these models. “We took various real-world variables into consideration, including data preparation, model validation, inference, and how to derive yield-specific metrics,” explains Prof. Chapman, “We aimed to outline a practical and end-to-end pipeline for head detection in sorghum.

There are two variants to the proposed pipeline, which are demonstrated by way of two independent illustrative experiments. In the first one, the researchers show how one should proceed if one needed to prepare training, testing, and validation datasets for a given machine learning model from scratch. This is usually the case when publicly available datasets are not suitable for the target field, which can happen, for example, when one is dealing with a different stage in plant development than the available datasets.

In the second experiment, the team showcases the steps required to use various pre-trained deep-learning models for sorghum head detection and/or counting. They demonstrate how the detection results (that is, the output of models that only outline sorghum heads on a set of given images) can be ‘stitched together’ into larger mosaic images. This enables one to observe and analyze large areas more easily and calculate important metrics, such as head density per tilling row or per square meter. “Our pipeline produces a high-resolution head density map that can be used for the diagnosis of agronomic variability within a field without relying on commercial software,” highlights Prof. Chapman.

Overall, this study will be useful to researchers and people involved in the agricultural industry alike. Not only it explains how deep learning models can be leveraged to assess grain crops more efficiently, but it also helps unlock new functionalities for camera-equipped drones in agriculture. Worth noting, the proposed pipeline could be adapted to other plants besides sorghum, as Prof. Chapman remarks: “Although we demonstrated our pipeline in a sorghum field, it can be generalized to other grain species. In future works, we intend to test our pipeline on tasks involving other grain types, such as wheat and maize yield estimation.”

Let us hope this work help us bridge the field of agriculture with machine learning to improve crop breeding and, thus, secure better food supplies.




Chrisbin James1, Yanyang Gu2, Andries Potgieter3, Etienne David4, Simon Madec4, Wei Guo5, Frédéric Baret6, Anders Eriksson2, and Scott Chapman1


1School of Agriculture and Food Sciences, The University of Queensland

2School of Information Technology and Electrical Engineering, The University of Queensland

3Queensland Alliance for Agriculture and Food Innovation, The University of Queensland

4Arvalis, Institut du Végétal

5Graduate School of Agricultural and Life Sciences, The University of Tokyo

6Institut National de la Recherche Agronomique

Disclaimer: AAAS and EurekAlert! are not responsible for the accuracy of news releases posted to EurekAlert! by contributing institutions or for the use of any information through the EurekAlert system.