Method and system for rapid identification of wheat variety purity

Through image recognition technology and deep convolutional neural network method, wheat grain image features are extracted and Euclidean distance is calculated, which solves the problems of low efficiency and high cost of existing wheat variety identification methods, and achieves fast and accurate variety purity identification.

CN113011296BActive Publication Date: 2024-09-24INST OF AGRO FOOD SCI & TECH CHINESE ACADEMY OF AGRI SCI +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110251724.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-08
Publication Date
2024-09-24
Estimated Expiration
2041-03-08

AI Technical Summary

Technical Problem

Existing wheat variety identification methods have problems such as low efficiency, high cost, complex operation and strong subjectivity, making it difficult to achieve rapid, accurate and batch analysis.

Method used

Image recognition technology is used to extract wheat grain image features through deep convolutional neural network method, establish a feature set, and use Euclidean distance calculation to quickly identify the purity of wheat varieties, achieving fast, economical and practical variety identification.

Benefits of technology

It achieves rapid and accurate identification of wheat variety purity, reduces operational complexity and cost, and improves identification efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113011296B
    Figure CN113011296B
Patent Text Reader

Abstract

The invention discloses a method for quickly identifying the purity of wheat varieties, comprising the following steps: collecting wheat grain images of known varieties; extracting image information of the wheat grain images of known varieties; extracting image features of the wheat grains of known varieties from the image information of the wheat grain images of known varieties; establishing a feature set of wheat grains of known varieties according to the image features of the wheat grains of known varieties; collecting wheat grain images of several wheat grains of unknown varieties; extracting image information of the wheat grain images of unknown varieties; extracting image features of each wheat grain of unknown varieties from the image information of the wheat grain images of unknown varieties; and calculating and determining whether each wheat grain of unknown varieties belongs to a known variety according to the image features of each wheat grain of unknown varieties and the feature set of wheat grains of known varieties. The method of the invention is simple, convenient, highly operable, and has a high accuracy rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of agricultural product detection and research, and more specifically, to a method and system for rapidly identifying the purity of wheat varieties. Background Art

[0002] Wheat is the third largest grain crop in my country, and its yield is related to the national economy and people's livelihood. The purity of wheat seeds is directly related to the yield and processing quality of wheat. If wheat seeds are mixed with adulteration, it will greatly damage the interests of the country and farmers. Therefore, the identification of wheat varieties is of great significance to grain production and processing.

[0003] At present, the methods for wheat variety identification include: chemical identification, morphological identification, protein electrophoresis fingerprint identification, DNA fingerprint identification, near-infrared spectroscopy, etc. In most cases, chemical identification can only classify seeds into several categories and then be used in combination with other methods, and the scope of application of such methods is relatively narrow; the morphological characteristics of varieties identified by morphological methods are very limited, and these traits are only applicable to the identification of samples with obvious differences between varieties; protein electrophoresis fingerprint identification and DNA fingerprint identification have high identification accuracy, but the time required is very long, and the identification process is cumbersome, with high technical requirements for operators, high cost, and not suitable for batch analysis and non-destructive online monitoring of samples; the stability of near-infrared spectroscopy and hyperspectral identification needs to be improved. At present, the morphological identification method is mainly used in production, which mainly relies on human senses for comprehensive evaluation from the aspects of appearance and color. It has the disadvantages of cumbersome methods, strong subjectivity, and low efficiency, which increases the uncertainty of wheat variety classification. Therefore, a fast, effective and stable wheat variety identification method is needed. Summary of the invention

[0004] An object of the present invention is to solve at least the above problems and to provide at least the advantages which will be described hereinafter.

[0005] Another object of the present invention is to provide a method and system for quickly identifying the purity of wheat varieties, which is based on image recognition technology and realizes variety purity discrimination by extracting characteristic part information of samples for modeling. The method is simple, convenient, highly operable, and has the advantages of being fast, economical, and practical.

[0006] In order to achieve these purposes and other advantages according to the present invention, a method for quickly identifying the purity of wheat varieties is provided, which comprises the following steps:

[0007] Collect images of wheat grains of known varieties;

[0008] Extract image information of wheat grain images of known varieties;

[0009] Extracting image features of wheat grains of known varieties from image information of wheat grain images of known varieties; establishing a feature set of wheat grains of known varieties based on the image features of wheat grains of known varieties;

[0010] Collect wheat grain images of several wheat grains of unknown variety;

[0011] Extract image information of wheat grain images of unknown varieties;

[0012] Extracting image features of each unknown variety of wheat grain from image information of the unknown variety of wheat grain image;

[0013] The Euclidean distance between the image features of each unknown variety of wheat grain and the feature set of the known variety of wheat grain is calculated. If the Euclidean distance between the image features of a certain unknown variety of wheat grain and the feature set of the known variety of wheat grain is less than a preset threshold, it is determined that the unknown variety of wheat grain actually belongs to the known variety, otherwise it does not belong to the known variety;

[0014] Calculate the ratio of the number of wheat grains of known varieties among a number of wheat grains of unknown varieties to the total number of wheat grains of unknown varieties.

[0015] Preferably, the background color of the collected wheat grain images of known varieties and / or the collected wheat grain images of several wheat grains of unknown varieties is black.

[0016] Preferably, the method for extracting image information of wheat grain images of known varieties and / or extracting image information of wheat grain images of unknown varieties is a binarization method.

[0017] Preferably, the method for extracting image features of wheat grains of known varieties from image information of wheat grains of known varieties and / or extracting image features of each unknown variety of wheat grain from image information of wheat grains of unknown varieties is a deep convolutional neural network method.

[0018] The present invention also provides a system for quickly identifying the purity of wheat varieties, comprising:

[0019] An image acquisition module, which is used to acquire images of wheat grains of known varieties and / or to acquire images of several wheat grains of unknown varieties;

[0020] An image information extraction module, which is used to extract image information of wheat grain images of known varieties and / or extract image information of wheat grain images of unknown varieties;

[0021] An image feature extraction module, which is used to extract image features of wheat grains of known varieties from image information of wheat grains of known varieties and / or to extract image features of each wheat grain of unknown varieties from image information of wheat grains of unknown varieties;

[0022] A database module, which is used to establish a feature set of wheat grains of known varieties according to image features of wheat grains of known varieties;

[0023] A discrimination module is used to calculate the Euclidean distance between the image features of each unknown variety of wheat grain and the feature set of the known variety of wheat grain. If the Euclidean distance between the image features of a certain unknown variety of wheat grain and the feature set of the known variety of wheat grain is less than a preset threshold, it is determined that the unknown variety of wheat grain actually belongs to the known variety, otherwise it does not belong to the known variety;

[0024] The purity calculation module is used to calculate the ratio of the number of wheat grains of known varieties among a number of wheat grains of unknown varieties to the total number of wheat grains of unknown varieties.

[0025] Preferably, it also includes:

[0026] A sampling plate, wherein one side of the sampling plate is a black frosted surface and a plurality of wheat grain embedding grooves are evenly spaced on the surface, so that the background color of the wheat grain images of known varieties and / or the wheat grain images of a plurality of wheat grains of unknown varieties collected by the image acquisition module is black.

[0027] Preferably, the method by which the image information extraction module extracts image information of wheat grain images of known varieties and / or extracts image information of wheat grain images of unknown varieties is a binarization method.

[0028] Preferably, the method by which the image feature extraction module extracts image features of wheat grains of known varieties from image information of wheat grains of known varieties and / or extracts image features of each unknown variety of wheat grain from image information of wheat grains of unknown varieties is a deep convolutional neural network method.

[0029] The present invention has at least the following beneficial effects: the method of the present invention is based on image recognition technology, and realizes variety purity discrimination by extracting characteristic part information of the sample and adopting deep convolutional neural network method for modeling. The method is simple, convenient, highly operable, highly accurate, and has the advantages of being fast, economical, and practical.

[0030] Other advantages, objectives and features of the present invention will be embodied in part through the following description, and in part will be understood by those skilled in the art through study and practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 is a flow chart of the method of the present invention;

[0032] Figure 2 The wheat grain images of the wheat grains of known varieties collected in the present invention;

[0033] Figure 3 This is an image obtained by processing the wheat grain image of a known variety using the binarization method in the present invention. DETAILED DESCRIPTION

[0034] The present invention is further described in detail below in conjunction with the accompanying drawings so that those skilled in the art can implement the invention with reference to the description.

[0035] It should be noted that the experimental methods described in the following embodiments are conventional methods unless otherwise specified, and the reagents and materials are commercially available unless otherwise specified; in the description of the present invention, the terms "lateral", "longitudinal", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.

[0036] Whenever a batch of wheat seeds is provided, the seed provider only knows that they are wheat seeds of a certain known variety. However, in fact, the batch of wheat seeds may be mixed with several other varieties of wheat grains, resulting in impure wheat seeds of the variety, but we do not know the specific purity. Therefore, the present invention provides a method for quickly identifying the purity of wheat varieties, such as Figure 1 As shown, it includes the following steps:

[0037] S1, collecting images of wheat grains of known varieties;

[0038] Here, the known variety refers to a wheat variety that has been accurately named and formally approved. When collecting images of wheat grains of the known variety, it is best to use a batch of wheat grains of the known variety with a purity of more than 99.9%. The amount of a batch can be 3,000 to 10,000 grains;

[0039] When performing this step, multiple wheat grains of the known variety are placed on a black background plate, so that the wheat grain image with a black background can be captured, which is convenient for subsequent image processing. Here, the black background plate can use a sampling plate, one side of the sampling plate is a black frosted surface and a number of wheat grain embedding grooves are evenly spaced on the surface. When collecting the wheat grain image, the sampling plate is fixed, and the image of the black frosted surface of the sampling plate is captured using a camera device that is positioned opposite to the sampling plate and fixed. The camera pixel of the camera device described here is required to be above 12 million pixels.

[0040] S2, extracting image information of wheat grain images of known varieties;

[0041] Here, the method for extracting image information of the known variety of wheat grain image can be a binarization method. Since the color of wheat grains in the image is roughly white, and the background color of the known variety of wheat grain image is black, the binarization method can be used to quickly find the wheat grain area in the known variety of wheat grain image.

[0042] S3, extracting image features of wheat grains of known varieties from image information of wheat grains of known varieties;

[0043] Here, the method for extracting the image features of the known variety of wheat grains from the image information of the known variety of wheat grains image may be a deep convolutional neural network method;

[0044] S4, establishing a feature set of wheat grains of known varieties according to image features of wheat grains of known varieties;

[0045] S5, collecting wheat grain images of a plurality of wheat grains of unknown varieties;

[0046] Here, since the wheat grains of a certain variety claimed by the wheat grain provider may be mixed with several other varieties of wheat grains, we do not actually know the variety of each grain in this batch of wheat grains, so in fact each wheat grain is of an unknown variety.

[0047] The process of collecting images of several wheat grains of unknown varieties here is basically the same as the process of collecting images of wheat grains of known varieties mentioned above. This batch of wheat grains of unknown varieties can collect 100 to 500 wheat grain images.

[0048] S6, extracting image information of the unknown variety wheat grain image;

[0049] Here, the method for converting the image information of the unknown variety of wheat grain image can also be binarization method.

[0050] S7, extracting the image features of each unknown variety of wheat grain from the image information of the unknown variety of wheat grain image;

[0051] Here, the method for extracting the image features of each unknown variety of wheat grain from the image information of the unknown variety of wheat grain image can be a deep convolutional neural network method.

[0052] S8, calculating the Euclidean distance between the image feature of each unknown variety wheat grain and the feature set of the known variety wheat grain. If the Euclidean distance between the image feature of the variety wheat grain at a certain position and the feature set of the known variety wheat grain is less than a preset threshold, it is determined that the unknown variety wheat grain actually belongs to the known variety, otherwise it does not belong to the known variety.

[0053] Different preset thresholds are set for different known wheat varieties.

[0054] In this step, the image features of each wheat grain in the image of the unknown variety of wheat grain are compared with the feature set of the known variety of wheat grains, so as to determine whether each wheat grain in the image of the unknown variety of wheat grains belongs to a known variety, and then the number of wheat grains that actually belong to the known variety and the number of wheat grains that do not belong to the known variety can be counted.

[0055] S9. Calculate the purity of the wheat grains of the unknown variety. The ratio of the number of wheat grains of the known variety to the total number of wheat grains of the unknown variety is the purity of the wheat grains of the unknown variety. Here, the purity result is expressed in percentage.

[0056] The above method can first collect images of wheat grains of a known variety and extract a feature set, or can first collect images of wheat grains of multiple different varieties and extract feature sets respectively. As long as the wheat seed variety to be measured for purity provided by the seed provider is among the multiple wheat varieties in the pre-collected feature set, the seed purity can be measured.

[0057] The following is a specific example to further explain the above method.

[0058] <Preparation of grain samples of different wheat varieties>

[0059] Grain samples of five wheat varieties were collected, the specific sample names were Xinong 511, Xinmai 26, Xinong 979, Zhengmai 366, and Zhongmai 578, with a variety purity of 99%. They were cleaned, de-impurated, and air-dried before use, and the samples were numbered 1-5.

[0060] <Collect sample image>

[0061] When collecting wheat grain sample images of a certain variety, place all the grain samples of the wheat variety on the black frosted sampling plate. The direction and orientation of the wheat grain samples do not need to be fixed and can be placed randomly. The specific sample placement method is shown in Figure 2 The instrument used to collect sample images is a 12-megapixel camera.

[0062] Images were collected for wheat grain samples of five varieties.

[0063] <Extracting sample image information>

[0064] Directly use the binarization method to extract the seed area. The extraction results are shown in Figure 3 .

[0065] <Sample Image Feature Extraction>

[0066] The deep convolutional neural network method was used to extract the features of wheat grain samples. 3,000 grains of each wheat variety numbered 1-5 were randomly selected, and the features of each variety were extracted to establish a feature database.

[0067] <Blind Sample Test>

[0068] The samples numbered 1-5 were mixed with grain samples of other wheat varieties to artificially form samples of unknown varieties with different purities for blind sample testing.

[0069] Collect unknown sample images; extract unknown sample image information; extract unknown sample image characteristic information; calculate the purity of the target varieties respectively, and the specific test results are shown in Table 1. It can be seen from Table 1 that the error between the predicted purity and the actual purity is between ±5%, and the prediction accuracy is high.

[0070] Table 1 Blind sample test results

[0071] Sample No. Target product number Target varieties Actual purity (%) Predicted purity (%) error(%) 1-1 1 Northwest A&F University 511 85 85 0 1-2 1 Northwest A&F University 511 75 77 -2 2-1 2 Xinmai 26 90 86 4 2-2 2 Xinmai 26 80 85 -5 3-1 3 Northwest A&F University 979 85 86 -1 3-2 3 Northwest A&F University 979 70 71 -1 4-1 4 Zhengmai 366 60 65 -5 4-2 4 Zhengmai 366 80 83 -3 5-1 5 Zhongmai 578 85 83 2 5-2 5 Zhongmai 578 75 74 1

[0072] The present invention also provides a system for quickly identifying the purity of wheat varieties, comprising:

[0073] An image acquisition module, which is used to acquire images of wheat grains of known varieties and / or to acquire images of several wheat grains of unknown varieties;

[0074] An image information extraction module, which is used to extract image information of wheat grain images of known varieties and / or extract image information of wheat grain images of unknown varieties;

[0075] An image feature extraction module, which is used to extract image features of wheat grains of known varieties from image information of wheat grains of known varieties and / or to extract image features of each wheat grain of unknown varieties from image information of wheat grains of unknown varieties;

[0076] A database module, which is used to establish a feature set of wheat grains of known varieties according to image features of wheat grains of known varieties;

[0077] A discrimination module is used to calculate the Euclidean distance between the image features of each unknown variety of wheat grain and the feature set of the known variety of wheat grain. If the Euclidean distance between the image features of a certain unknown variety of wheat grain and the feature set of the known variety of wheat grain is less than a preset threshold, it is determined that the unknown variety of wheat grain actually belongs to the known variety, otherwise it does not belong to the known variety;

[0078] The purity calculation module is used to calculate the ratio of the number of wheat grains of known varieties among a number of wheat grains of unknown varieties to the total number of wheat grains of unknown varieties.

[0079] The system for rapidly identifying the purity of wheat varieties in this embodiment uses the aforementioned method for rapidly identifying the purity of wheat varieties to perform identification and calculation on the purity of wheat varieties.

[0080] In another embodiment, it also includes:

[0081] A sampling plate, wherein one side of the sampling plate is a black frosted surface and a plurality of wheat grain embedding grooves are evenly spaced on the surface, so that the background color of the wheat grain images of known varieties and / or the wheat grain images of a plurality of wheat grains of unknown varieties collected by the image acquisition module is black.

[0082] In another embodiment, the method by which the image information extraction module extracts the image information of the known variety of wheat grain images and / or extracts the image information of the unknown variety of wheat grain images is a binarization method.

[0083] In another embodiment, the method by which the image feature extraction module extracts image features of wheat grains of known varieties from image information of wheat grains of known varieties and / or extracts image features of each unknown variety of wheat grain from image information of wheat grains of unknown varieties is a deep convolutional neural network method.

[0084] Although the embodiments of the present invention have been disclosed as above, they are not limited to the applications listed in the specification and the implementation modes, and they can be fully applied to various fields suitable for the present invention. For those familiar with the art, additional modifications can be easily implemented. Therefore, without departing from the general concept defined by the claims and the scope of equivalents, the present invention is not limited to the specific details and the illustrations shown and described herein.

Claims

1. A method for rapidly identifying the purity of wheat varieties, characterized in that: The following steps are involved: Collecting images of wheat grains of a known variety, when collecting, placing a plurality of wheat grains of the known variety on a sampling plate, one side of the sampling plate being a black frosted surface and the surface being evenly spaced with a plurality of wheat grain embedding grooves, the wheat grains being placed in the wheat grain embedding grooves, fixing the sampling plate, and using a camera device that is positioned opposite to and fixed to the sampling plate to capture an image of the black frosted surface of the sampling plate, the camera pixel of the camera device being above 12 million pixels; Extract image information of wheat grain images of known varieties; Extracting image features of wheat grains of known varieties from image information of wheat grain images of known varieties; establishing a feature set of wheat grains of known varieties based on the image features of wheat grains of known varieties; Collect wheat grain images of several wheat grains of unknown variety; Extract image information of wheat grain images of unknown varieties; Extracting image features of each unknown variety of wheat grain from image information of the unknown variety of wheat grain image; The Euclidean distance between the image features of each unknown variety of wheat grain and the feature set of the known variety of wheat grain is calculated. If the Euclidean distance between the image features of a certain unknown variety of wheat grain and the feature set of the known variety of wheat grain is less than a preset threshold, it is determined that the unknown variety of wheat grain actually belongs to the known variety, otherwise it does not belong to the known variety; Calculate the ratio of the number of wheat grains of known varieties among several wheat grains of unknown varieties to the total number of wheat grains of unknown varieties. This ratio is the purity of the unknown wheat variety. The background color of the collected wheat grain images of known varieties and / or the collected wheat grain images of several wheat grains of unknown varieties is black; The method for extracting image information of a known variety of wheat grain image and / or extracting image information of an unknown variety of wheat grain image is a binarization method; The method for extracting image features of wheat grains of known varieties from image information of wheat grains of known varieties and / or extracting image features of each wheat grain of unknown varieties from image information of wheat grains of unknown varieties is a deep convolutional neural network method.

2. A system for executing the method for rapidly identifying the purity of wheat varieties as claimed in claim 1, characterized in that: include: An image acquisition module, which is used to acquire images of wheat grains of known varieties and / or to acquire images of several wheat grains of unknown varieties; An image information extraction module, which is used to extract image information of wheat grain images of known varieties and / or extract image information of wheat grain images of unknown varieties; An image feature extraction module, which is used to extract image features of wheat grains of known varieties from image information of wheat grains of known varieties and / or to extract image features of each wheat grain of unknown varieties from image information of wheat grains of unknown varieties; A database module, which is used to establish a feature set of wheat grains of known varieties according to image features of wheat grains of known varieties; A discrimination module is used to calculate the Euclidean distance between the image features of each unknown variety of wheat grain and the feature set of the known variety of wheat grain. If the Euclidean distance between the image features of a certain unknown variety of wheat grain and the feature set of the known variety of wheat grain is less than a preset threshold, it is determined that the unknown variety of wheat grain actually belongs to the known variety, otherwise it does not belong to the known variety; The purity calculation module is used to calculate the ratio of the number of wheat grains of known varieties among a number of wheat grains of unknown varieties to the total number of wheat grains of unknown varieties.

3. The system according to claim 2, characterized in that Also includes: A sampling plate, wherein one side of the sampling plate is a black frosted surface and a plurality of wheat grain embedding grooves are evenly spaced on the surface, so that the background color of the wheat grain images of known varieties and / or the wheat grain images of a plurality of wheat grains of unknown varieties collected by the image acquisition module is black.

4. The system according to claim 3, characterized in that The method by which the image information extraction module extracts image information of wheat grain images of known varieties and / or extracts image information of wheat grain images of unknown varieties is a binarization method.

5. The system according to claim 2, characterized in that The method by which the image feature extraction module extracts image features of wheat grains of known varieties from image information of wheat grains of known varieties and / or extracts image features of each wheat grain of unknown varieties from image information of wheat grains of unknown varieties is a deep convolutional neural network method.