GridFree: a python package of imageanalysis for interactive grain counting and measuring

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

[1]  Christian Klukas,et al.  Integrated Analysis Platform: An Open-Source Information System for High-Throughput Plant Phenotyping1[C][W][OPEN] , 2014, Plant Physiology.

[2]  Genlou Sun,et al.  Dissecting the Genetic Basis of Grain Size and Weight in Barley (Hordeum vulgare L.) by QTL and Comparative Genetic Analyses , 2019, Front. Plant Sci..

[3]  Yong He,et al.  Combining UAV-Based Vegetation Indices and Image Classification to Estimate Flower Number in Oilseed Rape , 2018, Remote. Sens..

[4]  Suowei Wu,et al.  The Genetic Basis of Natural Variation in Kernel Size and Related Traits Using a Four-Way Cross Population in Maize , 2016, PloS one.

[5]  M. Nawaz,et al.  Effect of Plant Density, Boron Nutrition and Growth Regulation on Seed Mass, Emergence and Offspring Growth Plasticity in Cotton , 2018, Scientific Reports.

[6]  M. Yano,et al.  SmartGrain: High-Throughput Phenotyping Software for Measuring Seed Shape through Image Analysis1[C][W][OA] , 2012, Plant Physiology.

[7]  Li Yang,et al.  Variation in allelic frequencies at loci associated with kernel weight and their effects on kernel weight-related traits in winter wheat , 2019, The Crop Journal.

[8]  M. McMullen,et al.  Genetic Analysis of Kernel Traits in Maize-Teosinte Introgression Populations , 2016, G3: Genes, Genomes, Genetics.

[9]  Alison B. Smith,et al.  GrainScan: a low cost, fast method for grain size and colour measurements , 2014, Plant Methods.

[10]  Huihui Li,et al.  Genetic dissection on rice grain shape by the two-dimensional image analysis in one japonica × indica population consisting of recombinant inbred lines , 2015, Theoretical and Applied Genetics.

[11]  H. Sebastian Seung,et al.  Trainable Weka Segmentation: a machine learning tool for microscopy pixel classification , 2017, Bioinform..

[12]  J. Tiihonen,et al.  Amygdala-orbitofrontal structural and functional connectivity in females with anxiety disorders, with and without a history of conduct disorder , 2018, Scientific Reports.

[13]  L. Xiong,et al.  Plant phenomics and high-throughput phenotyping: accelerating rice functional genomics using multidisciplinary technologies. , 2013, Current opinion in plant biology.

[14]  Zohaib Mussadiq,et al.  Evaluation and comparison of open source program solutions for automatic seed counting on digital images , 2015, Comput. Electron. Agric..

[15]  Zhiwu Zhang,et al.  GRID: A Python Package for Field Plot Phenotyping Using Aerial Images , 2020, Remote. Sens..

[16]  A. Linnemann,et al.  RICE‐EATING QUALITY AMONG CONSUMERS IN DIFFERENT RICE GRAIN PREFERENCE COUNTRIES , 2008 .

[17]  P. Gupta,et al.  Genetic and molecular basis of grain size and grain number and its relevance to grain productivity in higher plants. , 2006, Genome.

[18]  Simon Griffiths,et al.  A Genetic Framework for Grain Size and Shape Variation in Wheat[C][W] , 2010, Plant Cell.

[19]  G. Najafian,et al.  Association between Grain Size and Shape and Quality Traits, and Path Analysis of Thousand Grain Weight in Iranian Bread Wheat Landraces from Different Geographic Regions , 2016 .

[20]  I. Bancroft,et al.  Root morphology and seed and leaf ionomic traits in a Brassica napus L. diversity panel show wide phenotypic variation and are characteristic of crop habit , 2016, BMC Plant Biology.

[21]  Lei Zhou,et al.  GainTKW: A Measurement System of Thousand Kernel Weight Based on the Android Platform , 2018, Agronomy.

[22]  Runzhi Li,et al.  QTL analysis of wheat kernel traits, and genetic effects of qKW-6A on kernel width , 2019, Euphytica.

[23]  Mikhail Genaev,et al.  Evaluation of the SeedCounter, A Mobile Application for Grain Phenotyping , 2017, Front. Plant Sci..

[24]  P. Bagnaresi,et al.  Genomic Regions From an Iranian Landrace Increase Kernel Size in Durum Wheat , 2019, Front. Plant Sci..

[25]  D. Roger THE GENETIC BASIS OF NATURAL VARIATION , 2022 .

[26]  N. Otsu A threshold selection method from gray level histograms , 1979 .

[27]  M. Jordan,et al.  Relationship between QTL for grain shape, grain weight, test weight, milling yield, and plant height in the spring wheat cross RL4452/‘AC Domain’ , 2018, PloS one.

[28]  J. Anderson,et al.  Quantitative Trait Loci Associated with Kernel Traits in a Soft × Hard Wheat Cross , 1999 .

[29]  D. Mackill,et al.  Quantitative trait locus analysis for rice panicle and grain characteristics , 1998, Theoretical and Applied Genetics.

[30]  Ke Gao,et al.  Museed: A mobile image analysis application for plant seed morphometry , 2017, 2017 IEEE International Conference on Image Processing (ICIP).