PLANT PHYSIOLOGYBioinformaticsPeer-reviewed journal article
GridFree: A Python Package of Image Analysis for Interactive Grain Counting and Measuring
Abstract
Grain characteristics, including kernel length, kernel width, and thousand kernel weight, are critical component traits for grain yield. Manual measurements and counting are expensive, forming the bottleneck for dissecting the genetic architecture of these traits toward ultimate yield improvement. High-throughput phenotyping methods have been developed by analyzing images of kernels. However, segmenting kernels from the image background and noise artifacts or from other kernels positioned in close proximity remain challenges. In this study, we developed a software package, named GridFree, to overcome these challenges. GridFree uses an unsupervised machine learning approach, K-Means, to segment kernels from the background by using principal component analysis on both raw image channels and their color indices. GridFree incorporates users experiences as a dynamic criterion to set thresholds for a divide-and-combine strategy that effectively segments adjacent kernels. When adjacent multiple kernels are incorrectly segmented as a single object, they form an outlier on the distribution plot of kernel area, length, and width. GridFree uses the dynamic threshold settings for splitting and merging. In addition to counting, GridFree measures kernel length, width, and area with the option of scaling with a reference object. Evaluations against existing software programs demonstrated that GridFree had the smallest error on counting seeds for multiple crops, including alfalfa, canola, lentil, wheat, chickpea, and soybean. GridFree was implemented in Python with a friendly graphical user interface to allow users to easily visualize the outcomes and make decisions, which ultimately eliminates time-consuming and repetitive manual labor. GridFree is freely available at the GridFree website (https://zzlab.net/GridFree).
- assay: imaging
- research focus: benchmarking
- research focus: software / tool
- approach: machine learning (classical)
- Citations
- 22
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- SeedMeasure: an efficient approach and open-source program to quantify seed size
Benjamin Jeffrey Sims, Allison Gaudinier, Benjamin K. Blackman·bioRxiv·Jun 29, 2026
- Machine learnt image processing to predict weight and size of rice kernels
S. K. Singh, S. K. Vidyarthi, R. Tiwari·bioRxiv·Sep 1, 2019
- DeepCorn: A Semi-Supervised Deep Learning Method for High-Throughput Image-Based Corn Kernel Counting and Yield Estimation
Saeed Khaki, Hieu Pham, … Lizhi Wang·Knowledge-Based SystemsPeer-reviewed·Apr 1, 2021
- Automation of Leaf Counting in Maize and Sorghum Using Deep Learning
C. Miao, A. Guo, … J. C. Schnable·bioRxiv·Dec 19, 2020
- Samplify: A versatile tool for image-based segmentation and annotation of seed abortion phenotypes
Heinrich Bente, Ronja Lea Jennifer Müller, … Claudia Köhler·New PhytologistPeer-reviewed·Feb 15, 2026
- SeedExtractor: an open-source GUI for seed image analysis