- Open Access
A model for genuineness detection in genetically and phenotypically similar maize variety seeds based on hyperspectral imaging and machine learning
Plant Methods volume 18, Article number: 81 (2022)
Variety genuineness and purity are essential indices of maize seed quality that affect yield. However, detection methods for variety genuineness are time-consuming, expensive, require extensive training, or destroy the seeds in the process. Here, we present an accurate, high-throughput, cost-effective, and non-destructive method for screening variety genuineness that uses seed phenotype data with machine learning to distinguish between genetically and phenotypically similar seed varieties. Specifically, we obtained image data of seed morphology and hyperspectral reflectance for Jingke 968 and nine other closely-related varieties (non-Jingke 968). We then compared the robustness of three common machine learning algorithms in distinguishing these varieties based on the phenotypic imaging data.
Our results showed that hyperspectral imaging (HSI) combined with a multilayer perceptron (MLP) or support vector machine (SVM) model could distinguish Jingke 968 from varieties that differed by as few as two loci, with a 99% or higher accuracy, while machine vision imaging provided ~ 90% accuracy. Through model validation and updating with varieties not included in the training data, we developed a genuineness detection model for Jingke 968 that effectively discriminated between genetically similar and distant varieties.
This strategy has potential for wide adoption in large-scale variety genuineness detection operations for internal quality control or governmental regulatory agencies, or for accelerating the breeding of new varieties. Besides, it could easily be extended to other target varieties and other crops.
Maize (Zea mays L.) is one of the most widely consumed crops worldwide, and represents a major source of food, livestock feed, and industrial raw materials [1, 2]. However, the recent, remarkable expansion of maize varieties has accompanied varietal infringement with inferior seeds or imitation varieties [3, 4]. In addition, lax control in seed production and processing has led to adulteration of commercial varieties and a decline in seed purity, for which had been reported that every 1% reduction in seed purity would reduce maize yield by 3.7–5% [5, 6]. Detection of variety genuineness and purity is therefore critically important to farmers and seed producers alike. Routine methods such as screening seedling morphology, isoenzyme electrophoresis, or simple sequence repeat (SSR) detection have advantages of high accuracy and reliability. Still, they also have disadvantages, such as being time-consuming, requiring highly specialized training, or being destructive to seeds [3, 7,8,9]. Exploring new appropriate strategies is urgently needed to meet current demands for accurate, high-throughput, cost-effective, and non-destructive detection of maize variety genuineness.
Machine vision is the most common and quickly adopted method for non-destructive testing of seed quality. It can classify seeds with different qualities by combining machine vision (typically RGB images) with machine learning algorithms that analyze the differences between seeds' phenotypic features (i.e., shape, color, and texture) [10,11,12,13,14,15,16]. However, this method is limited in distinguishing seeds from genetically and phenotypically similar lines. Fortunately, high-throughput phenotyping—hyperspectral imaging (HSI) may overcome this issue, which incorporates much spectral and spatial information simultaneously. This method can effectively differentiate and classify target objects or predict crop traits by detecting subtle differences in chemical composition and distribution [17,18,19,20]. Moreover, considerable evidence indicates that spectral characteristics are genotype-specific and can be used to distinguish plant genotypes , suggesting the feasibility of identifying crop varieties by hyperspectral imaging [17, 22,23,24,25,26].
Both machine vision and HSI obtain large phenotypic datasets, which require efficient data processing and statistical analysis, leading to machine learning algorithms to handle image analysis. The most common machine learning algorithms, random forest (RF) and support vector machine (SVM), have been successfully applied to a range of classification tasks [27,28,29,30,31,32]. In addition, multi-layer perceptron (MLP) has been broadly used for modeling and prediction in agricultural programs due to their high computational efficiency and accuracy [32,33,34,35].
Previous studies reported successful non-destructive genuineness detection for target maize variety against regular commercial corn hybrids using machine vision with deep learning algorithms . However, our further research found that this method was powerless against those genetically and phenotypically similar varieties. By combining RGB images and the VGG16 network, the established model was used to detect nine other genetically similar maize varieties of Jingke 968. The result indicated that except for variety Jingke 665 and Jingke 968A with higher recognition accuracy, most of the remaining seven varieties were incorrectly identified as Jingke 968. Then the overall recognition accuracy was as low as 34.4% (Fig. 1).
Hyperspectral image processing combined with machine learning algorithms has been used to classify the varieties of maize seeds according to differences in their chemical composition [26, 36,37,38]. More details for those varieties of classification tasks are shown in Table 1. Despite the success of this approach, these methods could only classify a limited variety of maize seeds, whereas discriminating between a large number of varieties not used in the training set presented a challenge to the performance of these applications. Moreover, none of these studies applied HSI to detecting maize variety genuineness. Consequently, we would turn this multivariate discriminant analysis-based classification method into a binary classification problem, that is, the detection of target variety and non-target varieties. The established model will still be effective for varieties other than the training set, and can identify and classify them as non-target varieties. Therefore, the variety genuineness detection model can still be carried out to maintain the high purity of the target variety.
Here, we focused on Jingke 968, a predominant maize variety cultivated in China with high yield, desirable seed traits, multiple disease resistance, and wide environmental adaptability. Due to the high demand for Jingke 968 seeds, screening for genuineness and purity represents a problematic and potentially labor-intensive task that requires accuracy in discriminating similar phenotypes, efficiency in handling high seed volume, and cost-effectiveness relative to methods using expensive consumables .
To this end, we explored models that could work in common hybrids while also efficiently eliminating varieties genetically similar to that of the target variety. This strategy could also facilitate breeding programs for new varieties and resolve problems of variety adulteration. We obtained RGB and hyperspectral images from Jingke 968 (abbreviation: JK 968) and genetically similar non-Jingke 968 (abbreviation: non-JK 968) varieties and tested three machine learning algorithms for their ability to distinguish between varieties using only information extracted from these two image types. The specific objectives were as follows: (1) to establish a high-performance genuineness detection model for distinguishing genetically similar maize varieties based on seed phenotype with machine learning; (2) to compare machine vision and hyperspectral imaging for seed phenotype data collection to determine which imaging method is most appropriate for genuineness detection; (3) to compare the accuracy of different variety genuineness detection models for varieties not included in training data; (4) to establish a method for updating models to improve their ability to distinguish varieties not included in training data.
Less efficient models for detection of variety genuineness based on machine vision
In order to develop a reliable high-throughput method for sorting the target seed variety from maize seeds of other genetically and phenotypically similar varieties, we first tested phenotypic RGB images with different modeling algorithms to evaluate their ability to distinguish image data of these two categories of maize kernels. As shown in Fig. 2, there is variability in seed appearance within and among JK968 seed lots, such as different sized JK 968-9 and smaller kernels in JK 968-2. Conversely, several genetically similar non-JK 968 varieties have a remarkably similar appearance to the target JK 968 variety (e.g., JK 968D, JK 968C, JK 9683, JK 968G, JK 9688, and JK 970). These similar varieties are thus indistinguishable purely through visual inspection. To identify differences between varieties, we then extracted 54 features, including shape, color, and texture features, from the germ and non-germ surfaces in the RGB image data of 315 JK 968 and 315 non-JK 968 maize seeds. Figure 3 plots the probability density distributions of these features from the germ surfaces of seeds. These features primarily overlapped between the two categories, indicating that some of these features were not informative for distinguishing JK 968 from non-JK 968. More sophisticated analytical methods may be necessary to sort them accurately. Furthermore, this confounding feature overlap was evident too in the probability density distribution plots of image data from non-germ seed surfaces (Additional file 1: Figure S1).
Using these features, we assembled three datasets that included imaging data from germ surfaces, non-germ surfaces, and a mixture of the two. Then these three datasets were used as inputs for the RF, SVM, and MLP network models and established genuineness detection models for JK 968 against genetically similar varieties (Fig. 4). No significant differences were found in their detection performance, regardless of whether the data used in the input variables were obtained from the germ surface, the non-germ surface, or a mixture. However, we noted that the accuracy of the SVM and MLP models were both better than that of RF, although the overall accuracy remained low (i.e., ~ 90% accuracy for better models). These results thus indicated that machine vision image data alone was insufficient to establish an accurate and reliable model for genuineness detection for maize seeds, especially among highly genetically and phenotypically similar varieties.
High-accuracy detection of variety genuineness by modeling HSI data
In order to improve the accuracy of genuineness detection for Jingke 968 seeds, we then explored whether VIS/NIR hyperspectral imaging could detect the subtle differences in spectral reflectance related to differences in chemical composition between varieties. After filtering out the noise signal, 756 variables between 400 and 1000 nm were retained as full wavelengths for use in subsequent analyses. The raw spectra of each maize seed's germ and non-germ surfaces are shown in Fig. 5a, b. The spectral reflectance for all maize seeds was less than 0.8, and the different varieties showed similar levels of variability within lots (Fig. 5c, d). However, some spectral curves differed between JK 968 and non-JK 968 seeds (about 700–1000 nm), while the spectral curves for the remaining wavelengths showed substantial overlap between varieties (especially 400–600 nm). This result thus showed that distinguishing between these genetically similar varieties with spectral data still presented difficulties for accuracy and efficiency.
We subsequently used the RF, SVM, and MLP algorithms to establish discriminant analysis models based on the 756 spectral bands of the germ surfaces, non-germ surfaces, and a mixture of the two. The results of test sets for each model showed apparent differences in accuracy between models, with the SVM and MLP models (both with the accuracy of mixture data-based model over 99%) performing significantly better than the RF model (accuracy lower than 90%) (Fig. 6). Notably, the MLP and SVM models showed comparably high accuracy in distinguishing varieties, with overall accuracy reaching approximately 100% in test sets. Similarly, we identified no significant differences in detection accuracy among the germ surface, the non-germ surface, or mixed dataset inputs.
To reduce the computational burden, the wavelength selection algorithm, SPA, was applied to select the most informative spectral features (i.e., wavelengths) (Table 2). For the germ surface, the non-germ surface, and the mixed data set, 9, 11, and 10 wavelengths were selected. Then, these characteristic wavelengths were used to build detection models with the RF, SVM, and MLP algorithms (Fig. 7). Comparisons between algorithms revealed that SVM and MLP-based models showed consistently high accuracy, stabilizing at ~ 99%, with no significant differences in performance between germ surface, the non-germ surface, and mixed data inputs. Based on these results, both SVM and MLP with mixed seed surface data were selected as the best models for detecting genuineness, regardless of whether input data included full spectra or only characteristic wavelengths.
Verification and update of the selected genuineness detection model based on HSI
In order to test the practicability and generalization of the SVM or MLP-based HSI mixed surface data models, we chose several common maize hybrids not used for model training to verify their performance. To this end, seventy JK 968 grains from two seed lots and 350 seeds from ten non-JK 968 common maize hybrids were selected for genuineness detection using either full spectra or ten effective wavelengths. As shown in Fig. 8, the results showed greater than 98% detection accuracy for JK 968 using either full spectra or ten features. However, among the ten non-JK 968 varieties not used for modeling training, the identification accuracy was higher for some (e.g., DY 830 and ND 87) but extremely low for others (e.g., LP 208, XY 335, LS 988, and others). Subsequently, we updated the MLP-mixed HSI model through an active learning strategy. The spectral information from varieties with recognition accuracy lower than 60% was added to the training data.
First, LP 208 was chosen for model updating. Then, the updated model was used to discriminate JK 968 seeds from those of the nine remaining non-JK 968 varieties. The results showed that the recognition accuracies for XY 335, LS 988, LP 275, ZD 958, QL 368, LP 602, and ZD 1002 were improved by 5.7, 2.9, 8.8, 40, 20, 20, and 14.3%, respectively, following the first update, while the DY 830 and ND 87 detection remained at 100% (Fig. 8). Next, XY 335 and LS 988 were randomly selected from the varieties with recognition accuracy that remained lower than 60% after the first update. Their mixed HSI surface data were added to the training data for the second and third model updates, respectively. Detection assays indicated that recognition accuracy again substantially improved for the other varieties, especially in the model based on full HSI spectra. Ultimately, the average recognition accuracy of the full spectrum model was improved to 99.7%, while the model's accuracy of using characteristic wavelengths increased to 93.0%, showing improvements of 36.6% and 45.1% over that of the original model, respectively. The model based on the SVM algorithm presented almost the same pattern (Fig. 9), for the average recognition accuracy of the full spectrum model was increased from 59.3 to 99.4%, and that using characteristic wavelengths raised from 58.8 to 90.5%, with improvements of 40.1% and 31.7% over that of the original model, respectively.
Taken together, these results indicated that the SVM or MLP-based genuineness detection model using full HSI spectra could exhibit the highest performance. They could distinguish between highly phenotypically similar seeds from genetically close cultivars. Still, they could also be extended (through relatively simple updates) to recognize common hybrids not included in training data with over 99% accuracy.
In recent years, infringement and adulteration of maize varieties have been a frequent occurrence, influencing the grain yield. Therefore, it is essential to detect the variety genuineness and purity. Given some shortcomings of traditional detection methods, we intended to explore an appropriate modeling strategy based on seed phenotype and machine learning, to meet the urgently current needs for accurate, high-throughput, cost-effective, and non-destructive detection of maize variety genuineness.
It is well known that seeds of the same variety may exhibit phenotypic differences due to storage conditions, cultivation year, and environmental conditions, which can confound the recognition of target varieties and further affect the model’s accuracy . Therefore, we collected as many seed lots of target varieties as possible to ensure the generalizability of the models tested here. Moreover, it is challenging to detect only one specific side of seeds. To address these issues, we analyzed separate and mixed data from the germ and non-germ surfaces and found no significant difference in recognition accuracy. Hence, phenotypic data can be obtained randomly from any seed surface, improving the operation time and efficiency, consistent with the conclusion of Tu et al. . When tested with genetically similar varieties, machine vision combined with machine learning algorithms showed apparently low accuracy, and failed to meet the variety genuineness and purity testing requirements. We also tested the method of Tu et al. , which directly used the seed images as input for the VGG16 network to distinguish between JK 968 and non-JK 968 seeds. Unfortunately, the detection accuracy was as low as 60% due to the highly similar seed morphology in RGB images between the target JK 968 and several genetically similar varieties.
Hyperspectral imaging, which can reflect subtle differences in the chemical composition of seeds from genetically similar varieties, was then used to establish a highly accurate detection model for variety genuineness. Differences in spectral information among different varieties at the same wavelength were similar in this study to those in previous reports [18, 37]. In particular, the reflectance values were not the same between different varieties, although the spectral curves of these different varieties showed the same trend . For maize seeds, the absorbance of the spectra at 400–500 nm is proportional to protein content, whereas the absorption peak between 500 and 750 nm is mainly attributable to the abundance of starches, oils, and other chemical compounds . The peak near 980 nm was shown to be the central absorption wavelength for the second overtone of O–H stretching, caused by the presence of water and carbohydrates . The presence of similarities or differences in starch content, carbohydrates, and other components thus form a reliable basis for using hyperspectral imaging to distinguish different maize varieties [2, 37].
However, it should be noted that HSI spectra frequently overlap due to similarities in the composition of the seed epidermis. To resolve this issue, it was necessary to establish discriminant analysis models that fully exploit the available spectral variables to classify target seeds from those of other varieties. Besides, it is widely known that the similarities among varieties will affect classifiers’ performance . In this study, the genuineness detection model based on SVM or MLP with full HSI wavelength data showed accuracy as high as 99% in sorting complex samples, including several JK 968 seed lots from different conditions and seeds of several other varieties genetically similar to JK 968. This accuracy reflects the advantages of hyperspectral data compared to that obtained by machine vision. The main advantage of RGB is a lower cost instrument system and faster image acquisition, compared with HSI. However, HSI offers hundreds or thousands of spectral bands rather than the reflectance in 3 spectral regions (Red, Green, and Blue), and thus contains more information on samples to improve discrimination performance [43, 44]. It should also be noted that real-time detection of maize seeds using full wavelength data remains challenging, owing to limitations in the speed of HSI data acquisition and processing . Therefore, building a robust model based on a small number of characteristic features is necessary to reduce the related costs and prediction time . After selecting a limited set of characteristic wavelengths using the SPA algorithm, HSI-based models still performed better than machine vision-based models by detecting informative peaks that indicate differences in starch, protein, water, and other components.
When tested with untrained samples, a well-established model with reliable performance is still expected to lose its effectiveness. To accommodate these samples, model updating is essential. We found that the addition of several untested varieties with low recognition accuracy to the training data greatly enhanced model performance in recognizing other untested varieties. Expanding the samples used to train the original model with seeds from the lowest accuracy samples can enable rapid updating of the model. It resulted in improved stability and adaptability (and consistently high performance) in recognizing a more comprehensive range of seed lots or varieties than in the original training data. We also found that with an increase in common hybrid varieties, the performance of the SVM or MLP model using full wavelength data performed significantly better than that using characteristic feature wavelengths. As shown in the study of Yang et al. , the prediction accuracy of sugarbeet seeds SVM model based on 16 characteristic wavelengths reduced by 3.18% than that of full wavelength. This difference in performance could be related to the selection of feature wavelengths from the original training data, which could overlook informative wavelengths needed to discern other varieties [24, 47]. Consequently, whether to use an algorithm such as SPA to select characteristic wavelengths should consider the actual application situation, which depends on the processing power of the computer, as well as the trade-off between the accuracy, rapidity, and generalization of the detection model. After all, the high-performance computer may significantly increase the related budgets.
Previous studies have researched the non-destructive identification of seed varieties based on hyperspectral imaging and machine learning or deep learning [4, 9, 17, 18, 24,25,26, 48, 49]. Although there might be a certain distance from the actual application due to a limited number of varieties in the training set, the successes of these studies guide the seed variety genuineness detection to ensure seed purity. These studies show that the SVM and deep learning models are effective algorithms for processing large phenotypic spectral datasets. Even though the convolutional neural network (CNN) performs slightly better than the SVM in some cases, their overall performances are very close . So, we chose the traditional machine learning algorithms (SVM, MLP, and RF) and got detection accuracy above 99% (SVM and MLP) that can be widely adopted, especially in resource-limited agricultural settings. Usually, the discrimination result declined with the increase in the number of seed varieties. When seed varieties increased from two to four, the final discrimination accuracy of the SVM model dropped from 95.67 to 92.56% . Consequently, we would turn this multivariate discriminant analysis-based classification method into a binary classification problem: the detection of target variety and non-target varieties. It can effectively deal with more varieties within or outside the training dataset, meanwhile maintaining high accuracy.
This novel strategy for rapidly detecting maize variety genuineness, which combines seed phenotype with machine learning algorithms, thus provided encouraging results for discriminating seeds from complex samples with highly similar varieties. RGB imaging coupled with deep learning enabled the detection of Jingke 968 genuineness in samples containing other normal corn hybrids, but phenotypically and genetically distant (that is, relatively easy) . Furthermore, this current study shows the capacity for distinguishing Jingke 968 seeds in complex samples containing highly genetically similar varieties (i.e., varieties differing at only two loci) by integrating HSI data with SVM and MLP modeling. In addition, our research group is currently advancing this method by developing an intelligent and automatic variety genuineness detection system. It is currently in the testing stage and is expected to be used in the high-throughput online seed detection and selection system.
In conclusion, limitations in the current methods for detecting variety genuineness have prevented automation and high-throughput identification of seed purity. This study represents, to our knowledge, the first description of a method for variety genuineness detection based on SVM or MLP modeling with hyperspectral imaging data. Our results indicate that this method is a rapid, highly accurate, and non-destructive tool for sorting seeds of a specific variety from those of other, highly genetically similar varieties. In particular, this model showed as high as 99% accuracy in discriminating between seeds from maize varieties differing at only 2–10 out of 40 SSR detection loci. In addition, genuineness detection using full wavelength data provided the highest accuracy of the models tested here, in samples containing genetically similar seeds or common hybrids not used in the training samples.
Moreover, the model shows extensive adaptability, and can be updated to accommodate varieties outside of the original training set through an active learning strategy. Based on its advantages of high accuracy and non-destructive imaging, this approach could have a wide range of applications in seed purity testing, seed genotyping, and intellectual property protection, as well as ensuring that the expected varieties are indeed deployed in the field. This approach can also be broadly applied to other crops for phenotypic correlation analyses to accelerate plant breeding programs via non-destructive testing.
There were two maize seed groups, ‘JK 968’ and ‘non-JK 968’. For the JK 968 category, the target variety Jingke 968 contained nine seed lots from different years and producing areas, provided by several seed companies. The details of Jingke 968 seed lots were showed in Additional file 1: Table S1. Nine genetically and phenotypically similar non-target varieties, provided by Maize Research Center, Beijing Academy of Agriculture and Forestry Sciences, the breeding institution of maize variety 'Jingke 968', were considered non-JK 968 category. According to the SSR-based detection standard in China, they differ from Jingke 968 variety at as few as two to ten loci in 40 detection loci. Because these precious breeding materials were in limited quantities, and to solve the imbalance problem of samples, thirty-five maize seeds were selected from each Jingke 968 seed lot or non-Jingke 968 variety, so there were 315 seeds in each category. The details are shown in Table 3. Subsequently, Fig. 2 shows an overview of different maize varieties by scanned seed images.
Furthermore, seventy JK 968 grains and 350 seeds from ten common maize hybrids (non-JK 968) were randomly selected, from seed lots that did not participate in the model training, to verify the JK 968 genuineness detection model. The details for those seeds are shown in Table 4. All seeds were dried to about 10.0% of moisture content and stored at room temperature (25 ℃, RH 30%).
RGB image acquisition and feature extraction
For all seed samples imaged directly, no preconditioning is required. In the machine vision part, the scanner (Microtek scanmaker i360) with a CCD camera was used to obtain scanned images from maize seeds’ germ and non-germ surfaces. Tagged image file format (TIFF) images for the R, G, and B color channels were saved, measuring 2297 × 3381 pixels (h × w), and with a resolution of 300 dpi. To simplify the operation process and improve the efficiency of obtaining images, we scan hundreds of seeds simultaneously, but to ensure that the seed samples do not touch each other.
Six hundred thirty images of germ and non-germ surfaces were obtained from seeds in both the JK 968 and non-JK 968 categories. A total of 54 color, shape, and texture features for a single seed were extracted using Phenoseed (a software program developed by our lab and Nanjing AgriBrain Big Data Technology Co, Ltd.). The dataset of two categories was randomly divided into the training set and test set at the ratio of 3:1, to build a model with excellent generalization and robustness .
Hyperspectral reflectance data collection
In the hyperspectral imaging portion, we focused on the visible (VIS) and near-infrared (NIR) spectral reflectance bands. Each maize seed’s hyperspectral image was collected using a proto-type VIS/NIR hyperspectral imaging system with the wavelength range of 311–1090 nm, installed at the Beijing Key Laboratory of Crop Genetic Improvement, China Agricultural University. A detailed description of the whole system and parameters was available in the article of Zhang et al. . All the hyperspectral image calibration and reflectance data extraction were then implemented by the HSI Analyzer software (Isuzu Optics Corp, Hsinchu, Taiwan, China).
Since the reflectance bands at both ends of the hyperspectral reflectance spectrum are significantly impacted by stochastic noise, 311–400 nm and 1000–1090 nm were removed from the original data. The process of spectral reflectance extraction is presented in Additional file 1: Figure S2. Every spectral curve represents the average reflectance of one maize seed. Consequently, 765 reflectance data between 400 and 1000 nm of each seed were considered input variables in further analysis. The ratio of the training set and test set was also set to 3:1.
There are high-dimensional data and much redundant information in the hyperspectral image. Dimensionality reduction and finding characteristic wavelengths are effective methods for hyperspectral data processing . Therefore, applying the variable selection method to the analysis and processing of hyperspectral data is meaningful. One common way to select variables is the successive projections algorithm (SPA) approach, selecting several typical characteristic wavelengths that predict the output, without mathematical transformations on the raw reflectance data . As a forward selection method, SPA is based on the principle of root mean square error (RMSE) minimization [46, 51]. It selects the variable with the lowest collinearity and redundancy. This study chose SPA to select a few sensitive wavelengths with smaller RMSE as characteristic wavelengths, through multiple linear regression analysis of full wavelength for maize seeds.
As shown in Fig. 10, random forest (RF), support vector machine (SVM), and multi-layer perceptron (MLP) were chosen and used for detecting seed genuineness of maize variety JK968, which were the most commonly used algorithms in previous studies [21, 52,53,54,55,56]. RF uses the decision tree as the base classifier to resample the same data set and establish multiple similar base classifiers. The classification prediction results of these base classifiers with slight differences can output the overall classification results by using integration methods such as averaging or voting . This study used the RBF kernel to construct a nonlinear SVM model in the spectral analysis [17, 51]. It carried out the five-fold cross-validation operation and grid search program to calculate optimal penalty coefficient c and the kernel parameter g. The searching range was both set to − 10 to 10 with the step of 0.2. For the MLP network, we selected the sigmoid transfer function in the hidden layer and adopted the softmax activation function for the output layer, to achieve a binary classification task of variety genuineness.
Model verify and update
It was proved that updating the training set was an effective method for model updating, improving the performance of developed models . To increase the generalization of the genuineness detection model, we would update the model through an active learning strategy. The spectral information from varieties with recognition accuracy lower than 60% was added to the training data. Then, the updated model was used to detect the remaining external verification samples. The next variety with low recognition accuracy would be added to the training set for another update until the overall detection accuracy for external verification was improved to about 99%. Several varieties with reliable labeled as representative samples were extended to the original training set to increase the representativeness of the training set, which thus could significantly improve the model performance, reducing time and cost consumption.
The SPA pretreatment, RF modeling, and SVM modeling were realized in Matlab (R2019a, The MathWorks, Inc.). The MLP modeling process was implemented efficiently in IBM SPSS Statistics 25. Training set and test set data were randomly split for every training with a ratio of 3:1. All the relevant parameters in each machine learning algorithm are optimized according to the input variables. The accuracy of the test set (the average of ten runs for each model) was selected as the evaluation indicator of the qualitative model. The OriginPro 2021 software and the ggplot 2 packages in the R 3.6.1 were used to visualize the results.
Tenaillon MI, Charcosset A. A European perspective on maize history. Comptes Rendus Biol. 2011. https://doi.org/10.1016/j.crvi.2010.12.015.
Guo D, Zhu Q, Huang M, Guo Y, Qin J. Model updating for the classification of different varieties of maize seeds from different years by hyperspectral imaging coupled with a pre-labeling method. Comput Electron Agric. 2017. https://doi.org/10.1016/j.compag.2017.08.015.
Tu K, Wen S, Cheng Y, Zhang T, Pan T, Wang J, et al. A non-destructive and highly efficient model for detecting the genuineness of maize variety ‘JINGKE 968’ using machine vision combined with deep learning. Comput Electron Agric. 2021. https://doi.org/10.1016/j.compag.2021.106002.
Zhou Q, Huang W, Tian X, Yang Y, Liang D. Identification of the variety of maize seeds based on hyperspectral images coupled with convolutional neural networks and subregional voting. J Sci Food Agric. 2021. https://doi.org/10.1002/jsfa.11095.
Zhang X. Two methods of maize hybrids seed purity rapid identification. China Seed Ind. 2009. https://doi.org/10.1007/978-3-642-18354-6_73.
Ren X, Yi H, Liu F, Xu L, Liu W, Ge J, et al. Analysis of identification of maize seed purity by rapid multiple SSR. Mol Plant Breed. 2022;20:880–6.
Cui Y, Xu L, An D, Liu Z, Gu J, Li S, et al. Identification of maize seed varieties based on near infrared reflectance spectroscopy and chemometrics. Int J Agric Biol Eng. 2018. https://doi.org/10.25165/j.ijabe.20181102.2815.
Qiu G, Lü E, Wang N, Lu H, Wang F, Zeng F. Cultivar classification of single sweet corn seed using fourier transform near-infrared spectroscopy combined with discriminant analysis. Appl Sci. 2019. https://doi.org/10.3390/app9081530.
Sun H, Zhang L, Li H, Rao Z, Ji H. Nondestructive identification of barley seeds varieties using hyperspectral data from two sides of barley seeds. J Food Process Eng. 2021. https://doi.org/10.1111/jfpe.13769.
Granitto PM, Verdes PF, Ceccatto HA. Large-scale investigation of weed seed identification by machine vision. Comput Electron Agric. 2005. https://doi.org/10.1016/j.compag.2004.10.003.
Huang KY, Cheng JF. A novel auto-sorting system for Chinese cabbage seeds. Sensors. 2017. https://doi.org/10.3390/s17040886.
Tu KL, Li LJ, Yang LM, Wang JH, Sun Q. Selection for high quality pepper seeds by machine vision and classifiers. J Integr Agric. 2018. https://doi.org/10.1016/S2095-3119(18)62031-3.
Huang S, Fan X, Sun L, Shen Y, Suo X. Research on classification method of maize seed defect based on machine vision. J Sensors. 2019. https://doi.org/10.1155/2019/2716975.
Yu L, Shi J, Huang C, Duan L, Wu D, Fu D, et al. An integrated rice panicle phenotyping method based on X-ray and RGB scanning and deep learning. Crop J. 2021. https://doi.org/10.1016/j.cj.2020.06.009.
Genze N, Bharti R, Grieb M, Schultheiss SJ, Grimm DG. Accurate machine learning-based germination detection, prediction and quality assessment of three grain crops. Plant Methods. 2020. https://doi.org/10.1186/s13007-020-00699-x.
Zhao G, Quan L, Li H, Feng H, Li S, Zhang S, et al. Real-time recognition system of soybean seed full-surface defects based on deep learning. Comput Electron Agric. 2021. https://doi.org/10.1016/j.compag.2021.106230.
Wu N, Zhang Y, Na R, Mi C, Zhu S, He Y, et al. Variety identification of oat seeds using hyperspectral imaging: investigating the representation ability of deep convolutional neural network. RSC Adv. 2019. https://doi.org/10.1039/C8RA10335F.
Zhou Q, Huang W, Fan S, Zhao F, Liang D, Tian X. Non-destructive discrimination of the variety of sweet maize seeds based on hyperspectral image coupled with wavelength selection algorithm. Infrared Phys Technol. 2020. https://doi.org/10.1016/j.infrared.2020.103418.
Song P, Wang J, Guo X, Yang W, Zhao C. High-throughput phenotyping: breaking through the bottleneck in future crop breeding. Crop J. 2021. https://doi.org/10.1016/j.cj.2021.03.015.
Zhang JN, Feng XP, Wu QG, Yang GF, Tao MZ, Yang Y, et al. Rice bacterial blight resistant cultivar selection based on visible/near-infrared spectrum and deep learning. Plant Methods. 2022. https://doi.org/10.1186/s13007-022-00882-2.
Yoosefzadeh-Najafabadi M, Earl HJ, Tulpan D, Sulik J, Eskandari M. Application of machine learning algorithms in plant breeding: predicting yield from hyperspectral reflectance in soybean. Front Plant Sci. 2021. https://doi.org/10.3389/fpls.2020.624273.
Mendoza F, Lu R, Ariana D, Cen H, Bailey B. Integrated spectral and image analysis of hyperspectral scattering data for prediction of apple fruit firmness and soluble solids content. Postharvest Biol Technol. 2011. https://doi.org/10.1016/j.postharvbio.2011.05.009.
Zhu S, Chao M, Zhang J, Xu X, Song P, Zhang J, et al. Identification of soybean seed varieties based on hyperspectral imaging technology. Sensors. 2019. https://doi.org/10.3390/s19235225.
Zhu S, Zhou L, Gao P, Bao Y, He Y, Feng L. Near-infrared hyperspectral imaging combined with deep learning to identify cotton seed varieties. Molecules. 2019. https://doi.org/10.3390/molecules24183268.
Zhu S, Zhang J, Chao M, Xu X, Song P, Zhang J, et al. A rapid and highly efficient method for the identification of soybean seed varieties: hyperspectral images combined with transfer learning. Molecules. 2020. https://doi.org/10.3390/molecules25010152.
Bai X, Zhang C, Xiao Q, He Y, Bao Y. Application of near-infrared hyperspectral imaging to identify a variety of silage maize seeds and common maize seeds. RSC Adv. 2020. https://doi.org/10.1039/C9RA11047J.
Lepetit V, Lagger P, Fua P. Randomized trees for real-time keypoint recognition. San Diego: 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition, CVPR 2005; 2005.
Auria L, Moro RA. Support vector machines (SVM) as a technique for solvency analysis. SSRN Electron J. 2011. https://doi.org/10.2139/ssrn.1424949.
Mokry FB, Higa RH, de Alvarenga Mudadu M, Oliveira de Lima A, Meirelles SLC, Barbosa da Silva MVG, et al. Genome-wide association study for backfat thickness in Canchim beef cattle using Random Forest approach. BMC Genet. 2013. https://doi.org/10.1186/1471-2156-14-47.
Su Q, Lu W, Du D, Chen F, Niu B, Chou KC. Prediction of the aquatic toxicity of aromatic compounds to tetrahymena pyriformis through support vector regression. Oncotarget. 2017. https://doi.org/10.18632/oncotarget.17210.
Bu R, Xiong J, Chen S, Zheng Z, Guo W, Yang Z, et al. A shadow detection and removal method for fruit recognition in natural environments. Precision Agric. 2020. https://doi.org/10.1007/s11119-019-09695-1.
Hesami M, Naderi R, Tohidfar M, Yoosefzadeh-Najafabadi M. Development of support vector machine-based model and comparative analysis with artificial neural network for modeling the plant tissue culture procedures: effect of plant growth regulators on somatic embryogenesis of chrysanthemum, as a case study. Plant Methods. 2020. https://doi.org/10.1186/s13007-020-00655-9.
Chen JC, Wang YM. Comparing activation functions in modeling shoreline variation using multilayer perceptron neural network. Water. 2020. https://doi.org/10.3390/w12051281.
Geetha MCS, Elizabeth SI. Forecasting the crop yield production in trichy district using fuzzy C-means algorithm and multilayer perceptron (MLP). Int J Knowl Syst Sci. 2020. https://doi.org/10.4018/IJKSS.2020070105.
Parsaeian M, Shahabi M, Hassanpour H. The integration of image processing and artificial neural network to estimate four fatty acid contents of sesame oil. LWT. 2020. https://doi.org/10.1016/j.lwt.2020.109476.
Yang X, Hong H, You Z, Cheng F. Spectral and image integrated analysis of hyperspectral data for waxy corn seed variety classification. Sensors. 2015. https://doi.org/10.3390/s150715578.
Xia C, Yang S, Huang M, Zhu Q, Guo Y, Qin J. Maize seed classification using hyperspectral image coupled with multi-linear discriminant analysis. Infrared Phys Technol. 2019. https://doi.org/10.1016/j.infrared.2019.103077.
Shao Q, Chen Y, Yang S, Zhao Y, Li J. Identification of maize seed varieties based on random forest and hyperspectral technique. Geogr Geoinf Sci. 2019;35:34–9.
Feng B, Xu L, Wang F, Yu R, Yi H, Liu W, et al. Determination of primers for purity identification of maize variety Jingke 968. Mol Plant Breed. 2017;15:4688–94.
Nie P, Zhang J, Feng X, Yu C, He Y. Classification of hybrid seeds using near-infrared hyperspectral imaging technology combined with deep learning. Sensors Actuators B. 2019. https://doi.org/10.1016/j.snb.2019.126630.
Drochioiu G, Ciobanu CI, Bancila S, Ion L, Petre BA, Andries C, et al. Ultrasound-based protein determination in maize seeds. Ultrason Sonochemistry. 2016. https://doi.org/10.1016/j.ultsonch.2015.09.007.
Wang L, Sun DW, Pu H, Zhu Z. Application of hyperspectral imaging to discriminate the variety of maize seeds. Food Anal Methods. 2016. https://doi.org/10.1007/s12161-015-0160-4.
Fabiyi SD, Vu H, Tachtatzis C, Murray P, Harle D, Dao TK, et al. Varietal classification of rice seeds using RGB and hyperspectral images. IEEE Access. 2020;8:22493–505.
Taghizadeh M, Gowen AA, O’Donnell CP. Comparison of hyperspectral imaging with conventional RGB imaging for quality evaluation of Agaricus bisporus mushrooms. Biosys Eng. 2011;108:191–4.
Rahman A, Faqeerzada MA, Cho BK. Hyperspectral imaging for predicting the allicin and soluble solid content of garlic with variable selection algorithms and chemometric models. J Sci Food Agric. 2018. https://doi.org/10.1002/jsfa.9006.
Yang J, Sun L, Xing W, Feng G, Bai H, Wang J. Hyperspectral prediction of sugarbeet seed germination based on gauss kernel SVM. Spectrochim Acta. 2021. https://doi.org/10.1016/j.saa.2021.119585.
Zhang T, Fan S, Xiang Y, Zhang S, Wang J, Sun Q. Non-destructive analysis of germination percentage, germination energy and simple vigour index on wheat seeds during storage by Vis/NIR and SWIR hyperspectral imaging. Spectrochim Acta. 2020. https://doi.org/10.1016/j.saa.2020.118488.
Li H, Zhang L, Sun H, Rao Z, Ji H. Identification of soybean varieties based on hyperspectral imaging technology and one-dimensional convolutional neural network. J Food Process Eng. 2021. https://doi.org/10.1111/jfpe.13767.
Jin B, Zhang C, Jia L, Tang Q, Gao L, Zhao G, et al. Identification of rice seed varieties based on near-infrared hyperspectral imaging technology combined with deep learning. ACS Omega. 2022. https://doi.org/10.1021/acsomega.1c04102.
Yang Y, Chen JP, He Y, Liu F, Feng XP, Zhang JN. Assessment of the vigor of rice seeds by near-infrared hyperspectral imaging combined with transfer learning. RSC Adv. 2020;10:44149–58.
Wang J, Sun L, Feng G, Bai H, Yang J, Gai Z, et al. Intelligent detection of hard seeds of snap bean based on hyperspectral imaging. Spectrochim Acta Part A Mol Biomol Spectrosc. 2022. https://doi.org/10.1016/j.saa.2022.121169.
Filippi AM, Jensen JR. Fuzzy learning vector quantization for hyperspectral coastal vegetation classification. Remote Sens Environ. 2006. https://doi.org/10.1016/j.rse.2005.11.007.
Chen L, Huang JF, Wang FM, Tang YL. Comparison between back propagation neural network and regression models for the estimation of pigment content in rice leaves and panicles using hyperspectral data. Int J Remote Sens. 2007. https://doi.org/10.1080/01431160601024242.
de Castro AI, Jurado-Expósito M, Gómez-Casero MT, López-Granados F. Applying neural networks to hyperspectral and multispectral field data for discrimination of cruciferous weeds in winter crops. Sci World J. 2012. https://doi.org/10.1100/2012/630390.
Zhang N, Pan Y, Feng H, Zhao X, Yang X, Ding C, et al. Development of Fusarium head blight classification index using hyperspectral microscopy images of winter wheat spikelets. Biosyst Eng. 2019. https://doi.org/10.1016/j.biosystemseng.2019.06.008.
Lin G, Tang Y, Zou X, Cheng J, Xiong J. Fruit detection in natural environment using partial shape matching and probabilistic Hough transform. Precision Agric. 2020. https://doi.org/10.1007/s11119-019-09662-w.
This work was supported by the National Key Research and Development Project of the 13th 5-year Plan (CN) (Grant Number 2018YFD0100903).
Ethics approval and consent to participate
Consent for publication
The authors declare that they have no competing interests.
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Additional file 1:
Figure S1. The probability density distributions of 54 features for JK 968 and non-JK 968, extracted from the non-germ surface. Figure S2. Spectral reflectance extraction. Step a Visual hyperspectral of the maize seeds from the HSI Analyzer software. Step b a binary mask, which only contains seeds with zero values for background, was acquired by threshold segmentation. Step c: the true regions of maize seeds from the image of 765 bands (400–100 nm) were segmented by the binary mask. Step d the mean spectral features of each maize seed were extracted in 765 bands to characterize the seeds. Table S1. The details of different Jingke 968 seed lots.
Additional file 2:
The training data of hyperspectral imaging.
Additional file 3:
The training data of machine vision.
Additional file 4:
Machine learning code.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/. The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated in a credit line to the data.
About this article
Cite this article
Tu, K., Wen, S., Cheng, Y. et al. A model for genuineness detection in genetically and phenotypically similar maize variety seeds based on hyperspectral imaging and machine learning. Plant Methods 18, 81 (2022). https://doi.org/10.1186/s13007-022-00918-7
- Maize seed
- Non-destructive testing
- Varietal purity