A device and method for detecting impurity content of seeds based on hyperspectral
Through the combination of hyperspectral camera and light source processing system combined with neural network technology, the real-time monitoring and accuracy of crop grain miscellaneous rate detection in the existing technology is solved, and efficient and accurate miscellaneous rate detection is achieved, which is suitable for the detection of different crops.
Patent Information
- Application Number
- CN202210876239.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-25
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2042-07-25
AI Technical Summary
The existing crop grain miscellaneous rate detection device is difficult to monitor miscellaneous rate in real time, and the measurement error is large, so the empty shell cannot be effectively eliminated, resulting in inaccurate detection results.
The hyperspectral camera and light source processing system are used to calculate the grain content miscibility through the absorption and reflectivity differences of incident and reflected light, and the reflectivity interval is corrected using neural network, combining partitions and absorbing coating to ensure detection accuracy and accuracy.
Real-time monitoring of grain miscellaneousness during crop harvesting is achieved, the detection accuracy and efficiency are improved, the miscellaneousness can be accurately judged and harvested parameters can be adjusted, and subsequent processing costs are reduced.
Smart Images

Figure CN115165772B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of agricultural machinery harvesting, and in particular to a device and a method for detecting impurity content of grains based on a hyperspectral spectrum. Background Art
[0002] The detection of impurity content in crop grains of combine harvesters helps drivers understand the impurity content of crop grains in real time, and helps farmers judge the quality of harvest by the size of the impurity content, thereby adjusting the operating speed and working parameters of the cleaning device. Excessively high impurity content leads to an increase in the workload of subsequent grain processing and increases the processing cost of grain.
[0003] In the existing crop seed impurity detection devices and methods, most of them use industrial cameras in combination with image recognition to detect the impurity content of seeds. This method cannot exclude empty shells, resulting in measurement errors. The image needs to be segmented during measurement, which is a lot of work. When the device is sampling, it is mostly a single sampling. After the sample is released, the next sampling test is performed. This will inevitably cause incomplete sample release and accumulation, resulting in large errors in the test results. Summary of the invention
[0004] In view of the deficiencies in the prior art, the present invention provides a device and method for detecting the impurity content of grains based on a hyperspectral spectrum, which can realize real-time sampling and monitoring of the impurity content of grains during crop harvesting, and calculate the impurity content according to the different absorption rates and reflectivity of the light source between the grains and the impurities, thereby improving the detection accuracy, helping the driver to understand the impurity content of the grains in real time, and helping the operator to judge the harvest quality by the size of the impurity content, thereby adjusting the operating speed and the working parameters of the cleaning device to improve the harvest quality.
[0005] The present invention achieves the above technical objectives through the following technical means.
[0006] A device for detecting impurity content of grains based on hyperspectral, comprising a hyperspectral camera, a light source processing system and a light source;
[0007] The hyperspectral camera and the light source are located near a conveying device, and the conveying device is used to convey grains. A detection area is provided on the conveying device, and the light source is used to generate incident light, and the incident light is aimed at the detection area. The hyperspectral camera is used to collect reflected light reflected by the grains. The light source processing system determines the intensity of the reflected light according to the collected reflected light of the grains, and the light source processing system determines the reflectivity according to the reflected light intensity and the incident light intensity. The light source processing system determines the impurity content of the grains within the detection period according to the determined reflectivity and the reflectivity of the pure grains.
[0008] Furthermore, at least one sampler is installed on the conveying device, and the sampler is conveyed synchronously with the conveying device; when the sampler enters the detection area, the light source processing system controls the hyperspectral camera to collect reflected light reflected by the grains in the sampler.
[0009] Furthermore, a partition is provided above the conveying device, dividing the detection device into a material receiving area and a monitoring area; the input end of the conveying device is located in the material receiving area, the output end of the conveying device is located in the monitoring area, and the hyperspectral camera, light source processing system and light source are located in the monitoring area; a gap is provided between the partition and the conveyed grains on the conveying device, so as to distribute the grains entering the monitoring area in sequence.
[0010] Furthermore, a light-absorbing coating is provided on the wall surface located in the monitoring area; and the partition is made of non-metallic material.
[0011] Furthermore, the incident light intensity generated by the light source is l f The light source processing system determines the reflected light intensity as l according to the reflected light collected from the grains. z , the reflectivity α is l z / l f .
[0012] A detection method based on a hyperspectral seed impurity detection device comprises the following steps:
[0013] Determine the reflectance interval (α min , α max );
[0014] The hyperspectral camera collects the reflected light reflected by the i-th sampled grain, and the light source processing system determines the intensity l of the i-th sampled reflected light. zi and the incident light intensity l for the i-th sampling fi ;
[0015] The light source processing system is based on the reflected light intensity l of the i-th sampling zi and the incident light intensity l of the i-th sampling fi , and the reflectivity α of the i-th sampling is obtained i ; N is the total number of sampling times, the sampling period is T, i∈[1,N];
[0016] When α i When ≥0.9, the reflected light of the i-th sampling is not absorbed by the grains or impurities, and the invalid sampling times d = d + 1;
[0017] When α i <0.9, if interval, then the number of impurities j = j + 1, the number of sampling times i = i + 1; if α i ∈(α min , αmax ) interval, then the sampling number i=i+1;
[0018] When i>N, the light source processing system calculates the impurity content m=j / (Nd)×100%.
[0019] Further, the reflectance interval (α min , α max ) specifically:
[0020] The hyperspectral camera is used to collect the spectral wavelength of pure grains to obtain the wavelength range of pure grain reflected light (λ min ,λ max ), assuming that the wavelength of the incident light is λ 0 , the initial reflectivity range of pure grains (α' min , α' max ) can be characterized as
[0021] The initial reflectivity interval is corrected by the neural network:
[0022] The initial reflectivity interval is divided into four intervals: and
[0023] The neural network predicts that the distribution probability of pure grain light source reflectance falling into four intervals is A, B, C and D respectively;
[0024] Modify α' using A and B min , and get the corrected α min for:
[0025]
[0026] Correcting α' with C and D max , and get the corrected α max for:
[0027]
[0028] Furthermore, the impurity rate is transmitted to the display through the RS485 communication system in the light source processing system for display and storage.
[0029] The beneficial effects of the present invention are:
[0030] 1. The device and method for detecting impurity content in grains based on hyperspectral light described in the present invention can realize real-time sampling and monitoring of impurity content in grains when crops are harvested, and calculate the impurity content based on the different light source absorption and reflectivity of grains and impurities, thereby improving the monitoring accuracy.
[0031] 2. The device and method for detecting impurity content of grains based on hyperspectral conditions described in the present invention divide the detection device into a receiving area and a monitoring area by a partition. On the one hand, this can prevent scattered light from other light sources in the receiving area from affecting the reflected light collected by the hyperspectral camera. On the other hand, a gap is provided between the bottom of the partition and the conveyed grains on the conveying device, so that the partition can be used as a scraper to convert disordered or accumulated grains on the conveying device into a set of grains arranged in a certain thickness, so that the grains entering the monitoring area are distributed in order, thereby achieving more accurate detection.
[0032] 3. The kernel impurity detection device and detection method based on hyperspectral in the present invention can obtain a relatively accurate pure kernel reflectivity interval (α min , α max ).
[0033] 4. The device and method for detecting impurities in grains based on hyperspectral light described in the present invention determine whether there are impurities in the grains by reflectivity. The present invention is applicable to the detection of impurities in grains of different crops, and does not require the measurement of moisture content, because pure grains with different moisture contents will have a determined reflectivity range before detection, and the reflectivity range will be corrected according to the reflectivity distribution probability, and empty shells can be automatically classified as impurities during measurement, further improving detection efficiency and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. The drawings in the description are some embodiments of the present invention. For ordinary technicians in this field, it is obvious that other drawings can be obtained based on these drawings without paying any creative work.
[0035] Figure 1 This is a schematic diagram of the device for detecting impurity content in grains based on hyperspectral information according to the present invention.
[0036] Figure 2 This is a control principle diagram of the device for detecting impurity content in grains based on hyperspectral information according to the present invention.
[0037] Figure 3 This is a flow chart of the detection method of the device for detecting impurity content in grains based on hyperspectral information according to the present invention.
[0038] In the figure:
[0039] 101- unloading grain stirring; 102- pulley; 103- sampler; 104- conveyor belt; 105- hyperspectral camera; 106- light source processing system; 107- halogen lamp. DETAILED DESCRIPTION
[0040] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments, but the protection scope of the present invention is not limited thereto.
[0041] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0042] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "axial", "radial", "vertical", "horizontal", "inner", "outer" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying 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 limiting the present invention. In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0043] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0044] like Figure 1As shown, the device for detecting the impurity content of grains based on hyperspectral according to the present invention comprises a hyperspectral camera 105, a light source processing system 106, a halogen lamp 107 and a display; the hyperspectral camera 105 and the light source are located near the conveying device, one end of the conveying device is connected to the unloading grain stirring 101, the conveying device comprises a pulley 102 and a conveyor belt 104, and the conveyor belt 104 conveys the grains from the outlet of the unloading grain stirring 101 to the grain receiving bag. The conveying device is provided with a detection area, the halogen lamp 107 is used to generate incident light, and the incident light is aimed at the detection area; the hyperspectral camera 105 is used to collect reflected light reflected by the grains; the light source processing system 106 determines the intensity of reflected light according to the reflected light collected from the grains, the light source processing system 106 determines the reflectivity according to the intensity of reflected light and the intensity of incident light, and the light source processing system 106 determines the impurity content of grains within the detection period according to the determined reflectivity and the reflectivity of pure grains. The display is used to display the impurity content of grains within the period.
[0045] At least one sampler 103 is installed on the conveying device, and the sampler 103 is installed on the conveyor belt 104 and is conveyed synchronously with the conveying device; when the sampler 103 enters the detection area, the light source processing system 106 controls the hyperspectral camera 105 to collect the reflected light reflected by the grains in the sampler 103. In the embodiment, four samplers 103 are installed on the conveyor belt 104, and the samplers 103 move to the detection area in sequence, and the hyperspectral camera 105 collects the reflected light reflected by the grains on the sampler 103. After the sampler 103 rotates to the bottom with the pulley 102, the grains in the sampler 103 will automatically fall into the grain receiving bag, avoiding the waste of grains. A sensor can also be installed on the conveying device to identify whether the sampler 103 has entered the detection area, or directly use image recognition technology to determine whether the sampler 103 has entered the detection area.
[0046] The device for detecting impurity content of grains based on hyperspectral light of the present invention does not need to install the sampler 103 on the conveyor belt 104 , and only needs to set the interval time to detect the grains on the conveyor belt 104 that enter the detection area in each cycle.
[0047] A partition is provided above the conveying device, dividing the detection device into a receiving area and a monitoring area; the input end of the conveying device is located in the receiving area, the output end of the conveying device is located in the monitoring area, and the hyperspectral camera 105, the light source processing system 106 and the light source are located in the monitoring area; a light-absorbing coating is provided on the wall surface in the monitoring area; the purpose of providing the partition is to prevent the scattered light generated by other light sources in the receiving area from affecting the reflected light collected by the hyperspectral camera 105, which results in inaccurate reflected light intensity collected by the hyperspectral camera 105. Another more important purpose of providing the partition is to solve the problem that the grains may be piled up on the conveyor belt 104 or on the sampler 103 because the grain unloading and stirring 101 conveys the grains to the conveyor belt 104, which may cause the debris to be hidden under the piled grains and cannot be identified; and after the piled grains reach the monitoring area, the serious height difference on the surface makes it impossible for all the reflected light to enter the collection area of the hyperspectral camera 105. Therefore, a gap is provided between the bottom of the partition and the conveyed grains on the conveyor belt 104. The gap can generally be the thickness of 2-4 layers of grains, so that the accumulated grains become a grain layer of a certain height after passing through the partition, that is, it can be considered that the grains entering the monitoring area are distributed in order. To prevent the bottom of the partition from causing damage to the surface of the grains, resulting in an increase in the breakage rate, the partition is made of non-metallic material.
[0048] After the incident light is absorbed by the grains or impurities, the reflected light intensity will be different. The spectral information of each pixel in the reflected spectrum is extracted. The hyperspectral feature extraction is performed through data dimension reduction and feature extraction. Based on the differences in the absorption and reflection of the spectrum by different crops, the light intensity after being absorbed and reflected by the crop grains or impurities is obtained. The incident light intensity generated by the light source is l f The light source processing system 106 determines the reflected light intensity as l according to the reflected light collected from the grains. z , the reflectivity α is l z / l f .
[0049] Figure 2 As shown, in the device for detecting impurity content of grains based on hyperspectral conditions of the present invention, the conveying device conveys the grains to the detection area, the hyperspectral camera 105 collects the reflected spectrum information of the grains, the light source processing system 106 converts the reflectivity and impurity content, and finally transmits the detected impurity content and other information to the display through the RS485 communication system.
[0050] Figure 3 As shown, the detection method of the seed impurity rate detection device based on the hyperspectral spectrum of the present invention comprises the following steps:
[0051] Determine the reflectance interval (α min , α max ), specifically:
[0052] The hyperspectral camera 105 collects the spectral wavelength of pure grains to obtain the wavelength range (λ min ,λ max ), assuming that the wavelength of the incident light is λ 0 , the initial reflectivity range of pure grains (α' min , α' max ) can be characterized as
[0053] The initial reflectivity interval is corrected by the neural network:
[0054] The initial reflectivity interval is divided into four intervals: and
[0055] The neural network predicts that the distribution probability of pure grain light source reflectance falling into four intervals is A, B, C and D respectively;
[0056] Modify α' using A and B min , and get the corrected α min for:
[0057]
[0058] Correcting α' with C and D max , and get the corrected α max for:
[0059]
[0060] The hyperspectral camera 105 collects the reflected light reflected by the i-th sampled grain, and the light source processing system 106 determines the intensity l of the reflected light of the i-th sample. zi and the incident light intensity l for the i-th sampling fi ;
[0061] The light source processing system 106 calculates the reflected light intensity l of the i-th sampling. zi and the incident light intensity l of the i-th sampling fi , and the reflectivity α of the i-th sampling is obtained i ; N is the total number of sampling times, the sampling period is T, i∈[1,N];
[0062] When α i When ≥0.9, the reflected light of the i-th sampling is not absorbed by the grains or impurities, and the invalid sampling times d = d + 1;
[0063] When α i <0.9, if interval, then the number of impurities j = j + 1, the number of sampling times i = i + 1; if α i ∈α min , α max interval, then the sampling times i=i+1;
[0064] When i>N, the light source processing system 106 calculates the impurity content m=j / (Nd)×100%.
[0065] After the sampling test is completed, it is determined whether to perform the next sampling test. If the sampling continues, the pulley continues to move. If the sampling is completed, the pulley stops moving.
[0066] The invention uses a hyperspectral camera to monitor the impurity content of crop seeds, which improves the monitoring accuracy and can sample and monitor crop seeds in real time. The seeds are transported to the hyperspectral system through a pulley for monitoring, and then the monitored seeds are automatically dropped into a sample receiving bag to avoid loss, thereby improving the monitoring efficiency of impurities. Whether there are impurities is determined by converting the intensity of the reflected light source into reflectivity.
[0067] It should be understood that although this specification is described according to various embodiments, not every embodiment contains only one independent technical solution. This narrative method of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation methods that can be understood by those skilled in the art.
[0068] The series of detailed descriptions listed above are only specific descriptions of feasible embodiments of the present invention. They are not intended to limit the scope of protection of the present invention. All equivalent embodiments or changes that do not deviate from the technical spirit of the present invention should be included in the scope of protection of the present invention.
Claims
1. A detection method for a seed impurity detection device based on a hyperspectral spectrum, the seed impurity detection device based on a hyperspectral spectrum comprising a hyperspectral camera (105), a light source processing system (106) and a light source; the hyperspectral camera (105) and the light source are located near a conveying device, the conveying device is used to convey the seeds; a detection area is provided on the conveying device, the light source is used to generate incident light, the incident light is aimed at the detection area; the hyperspectral camera (105) is used to collect reflected light reflected by the seeds; the light source processing system (106) determines the intensity of the reflected light according to the collected reflected light of the seeds, the light source processing system (106) determines the reflectivity according to the reflected light intensity and the incident light intensity, and the light source processing system (106) determines the seed impurity within the detection period according to the determined reflectivity and the reflectivity of the pure seeds; characterized in that The steps include: Determine the reflectance interval (α min , α max ), specifically: The hyperspectral camera (105) collects the spectral wavelength of pure grains to obtain the wavelength range (λ min ,λ max ), assuming that the wavelength of the incident light is λ0, the initial reflectivity range of the pure grain (α' min , α' max ) can be characterized as The initial reflectivity interval is corrected by the neural network: The initial reflectivity interval is divided into four intervals: The neural network predicts that the distribution probability of pure grain light source reflectance falling into four intervals is A, B, C and D respectively; Modify α' using A and B min , and get the corrected α min for: Correcting α' with C and D max , and get the corrected α max for: The reflected light reflected by the i-th sampled grain is collected by the hyperspectral camera (105), and the intensity l of the reflected light sampled by the i-th sample is determined by the light source processing system (106). zi and the incident light intensity l for the i-th sampling fi ; The light source processing system (106) processes the reflected light intensity l according to the i-th sampling. zi and the incident light intensity l of the i-th sampling fi , and the reflectivity α of the i-th sampling is obtained i ; N is the total number of sampling times, the sampling period is T, i∈[1,N]; When α i When ≥0.9, the reflected light of the i-th sampling is not absorbed by the grains or impurities, and the invalid sampling times d = d + 1; When α i <0.9, if interval, then the number of impurities j = j + 1, the number of sampling times i = i + 1; if α i ∈(α min, α max ) interval, then the sampling number i=i+1; When i>N, the light source processing system (106) calculates the impurity content m=j / (Nd)×100%.
2. The detection method based on the hyperspectral seed impurity detection device according to claim 1, characterized in that: At least one sampler (103) is installed on the conveying device, and the sampler (103) is conveyed synchronously with the conveying device; when the sampler (103) enters the detection area, the light source processing system (106) controls the hyperspectral camera (105) to collect reflected light reflected by the grains in the sampler (103).
3. The detection method based on the hyperspectral seed impurity detection device according to claim 1, characterized in that: A partition is provided above the conveying device to divide the detection device into a material receiving area and a detection area; the input end of the conveying device is located in the material receiving area, the output end of the conveying device is located in the detection area, and the hyperspectral camera (105), the light source processing system (106) and the light source are located in the detection area; a gap is provided between the partition and the conveyed grains on the conveying device to allow the grains entering the monitoring area to be distributed in sequence.
4. The detection method based on the hyperspectral seed impurity detection device according to claim 3 is characterized in that: A light-absorbing coating is arranged on the wall surface of the detection area; and the partition is made of non-metallic material.
5. The detection method based on the hyperspectral seed impurity detection device according to claim 1, characterized in that: The incident light intensity generated by the light source is l f The light source processing system (106) determines the reflected light intensity as l according to the reflected light collected from the grains. z , the reflectivity α is l z / l f .
