Raw cotton impurity content determination method based on hyperspectral imaging technology

Through hyperspectral imaging technology and qualitative judgment model, the problems of subjectivity and low efficiency in the determination of raw cotton impurity content are solved, and the rapid and accurate determination of raw cotton impurity content is achieved, especially in distinguishing transparent impurities from lower dense impurities. The detection effect is significantly improved.

CN118706783AInactive Publication Date: 2024-09-27ZHEJIANG SCI-TECH UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410661886.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-27
Publication Date
2024-09-27
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing technology has the problems of high subjectivity, low efficiency, and poor accuracy in the measurement of impurity content in raw cotton. It is especially difficult to distinguish transparent impurities that are similar in shape to raw cotton and detect impurities with a higher density in the lower layer.

Method used

Using hyperspectral imaging technology, by collecting and preprocessing hyperspectral images of raw cotton, a qualitative determination model based on impurities and cotton spectral curves is established, pixel data is extracted, and Gaussian function fitting and model optimization are used to quickly determine the impurity content of raw cotton. , accurate measurement.

Benefits of technology

It realizes efficient, fast and large-scale detection of impurity content in raw cotton, improves the accuracy and efficiency of detection, and can effectively distinguish between different impurities and raw cotton.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118706783A
    Figure CN118706783A
Patent Text Reader

Abstract

The invention discloses a raw cotton impurity content determination method based on a hyperspectral imaging technology, which comprises the following steps: 1) collecting a large amount of raw cotton bale samples, and carrying out impurity content calibration on the samples; 2) acquiring a hyperspectral image of the standby sample; (3) preprocessing the obtained hyperspectral data; 4) establishing a qualitative judgment model based on the impurity and cotton spectrum curve; (5) extracting each pixel point of the hyperspectral image processed in the steps (2) and (3); substituting into the judgment model in the step 4); and (6) collecting and processing the hyperspectral data of unknown samples through the steps (2) and (3), and compared with the prior art, the method can be used for efficiently and quickly detecting the samples to be detected on a large scale.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The invention relates to a method for determining the impurity content of raw cotton based on hyperspectral imaging technology. [Background technology]

[0002] The determination of impurity content in raw cotton is an important part of the textile industry and is used to evaluate the quality of raw cotton. As one of the main raw materials for textiles, the quality of raw cotton directly affects the appearance, feel and performance of finished textiles. Therefore, accurate determination of impurity content in raw cotton is of great significance to ensure the quality and market competitiveness of textiles.

[0003] The traditional method of determining the impurity content of raw cotton is through visual inspection and manual sorting, but this method has the problems of strong subjectivity, low efficiency and poor accuracy. At present, domestic testing institutions generally determine the impurity content of raw cotton in accordance with the "GB / T 6499-2022 Test Method for Impurity Content of Raw Cotton". It uses the principle of aerodynamics to separate raw cotton and impurities, and weighs the mass of both to calculate the impurity content. This technology is relatively mature, and its main drawback is that it takes a long time, and the final result is often questioned due to whether the sampling location is representative.

[0004] Some instruments and methods have been introduced into the determination of impurity content in raw cotton, which improves the accuracy and efficiency of the determination. Optical sensors can detect impurity particles in raw cotton by radiation sensing or image capture. By measuring the degree of scattering or absorption of light on the surface of particles, the size, shape and concentration of particles can be determined. This method is fast, non-contact and automated, and can achieve efficient determination of a large number of raw cotton samples. However, it is difficult to distinguish impurities that are similar in shape to raw cotton and transparent (such as ground film), and generally only the image information of the surface can be detected, while impurities with higher density such as sand, mud and stone usually exist in the lower layer.

[0005] Another commonly used determination method is chemical analysis. Chemical analysis can be used to detect chemical residues in raw cotton, such as pesticides and dyes. Common chemical analysis methods include liquid chromatography, gas chromatography, and mass spectrometry. These methods can accurately determine the content of chemical residues in raw cotton samples by separating and quantifying target compounds, but their detection objects are too limited. There are many types of impurities in raw cotton with similar components. Chemical analysis is difficult to distinguish between raw cotton and targets with similar chemical components such as seed cotton and broken seeds.

[0006] In addition, in recent years, some technologies based on infrared spectroscopy and machine learning have been applied to the determination of impurity content in raw cotton. By training models and analyzing the spectral data of raw cotton samples, fast and accurate impurity detection and classification can be achieved. Infrared spectroscopy technology has a high accuracy rate in identifying the types of substances, but in the actual application scenario of raw cotton impurity content determination, impurities and raw cotton usually overlap and the batch size is large, so it cannot be well applied. [Summary of the invention]

[0007] The purpose of the present invention is to solve the problems in the prior art and to propose a method for determining the impurity content of raw cotton based on hyperspectral imaging technology, which can perform efficient and rapid large-scale detection of test samples.

[0008] To achieve the above object, the present invention proposes a method for determining the impurity content of raw cotton based on hyperspectral imaging technology, comprising the following steps:

[0009] 1) Collect a large number of raw cotton bale samples and calibrate the impurity content of the samples;

[0010] 2) Collecting hyperspectral images of spare samples;

[0011] 3) Preprocessing the acquired hyperspectral data;

[0012] 4) Establishment of a qualitative judgment model based on impurities and cotton spectral curves;

[0013] 5) extracting each pixel of the hyperspectral image after steps 2) and 3); bringing into the determination model in step 4); after determination, the number of pixels marked as cotton information is a, the number of non-cotton information pixels is b, then the total number of pixels is a+b, and the proportion of non-cotton information pixels to all pixels is b / (a+b); performing the above processing on the hyperspectral image of the cotton bale corresponding to each impurity content label; if the proportion of non-cotton information pixels to all pixels is b / (a+b), the corresponding true impurity content label is c, performing Gaussian function fitting on the data between the two, and after model optimization, obtaining the final impurity content determination method;

[0014] 6) The hyperspectral data of the unknown sample is collected and processed in steps 2) and 3), and each pixel data is extracted and input into the model obtained in step 4), and the proportion of non-cotton information pixels to all pixels is counted, and then substituted into the fitting function obtained in step 5) to obtain its impurity content information.

[0015] Preferably, in step 1), the quartering method is adopted, two cotton bale samples are extracted from each raw cotton bale sample, one of which is used as a calibration sample and the other is used as a spare sample, the total mass m of the calibration sample is accurately weighed by a balance, the raw cotton and impurities of the calibration sample are separated by manual or machine stripping, the mass m0 of the impurities is weighed by a balance, and the impurity content is calculated using the following formula:

[0016]

[0017] In the formula, Z represents the impurity content, m represents the total mass of the calibration sample, and m0 represents the mass of the impurities;

[0018] After calibrating the impurity content of each raw cotton bale sample, give its corresponding spare sample a label with the same impurity content.

[0019] Preferably, the cotton bale sample is 50±1g.

[0020] Preferably, in step 2), the spare sample is placed in a short-wave infrared hyperspectral imaging system to obtain its hyperspectral image, and a corresponding impurity content label is given to each hyperspectral image. The principle is transmission grating push-scan imaging. The hyperspectral imaging system has a spectral range of 1000-2500nm, a spectral resolution of 10nm, and the collected images have 256 bands.

[0021] Preferably, in step 3), the hyperspectral data is firstly corrected by black and white plates according to the following formula:

[0022]

[0023] Where: R0 is the hyperspectral image after reflectance correction; R is the original hyperspectral image; R white is the whiteboard data; R dark The blackboard data is obtained by collecting the hyperspectral image of a standard whiteboard, and its reflectivity is 100%; the blackboard data is obtained by covering the camera lens, and its reflectivity is considered to be 0%.

[0024] Preferably, the hyperspectral data is processed using MSC to remove spectral baseline errors and offsets caused by external factors.

[0025] Preferably, in step 4), impurities and cotton are manually separated, hyperspectral data of the impurities and cotton are extracted separately, and spectral characteristic curve data are extracted to establish a qualitative judgment model based on the spectral curves of impurities and cotton.

[0026] Beneficial effects of the present invention: The present invention collects a large number of hyperspectral images of cotton bales with different impurity contents, and uses a model training method to establish a qualitative discriminant analysis model based on the spectral curves of impurities and cotton. The established judgment model is used to perform discriminant analysis on each pixel point of the hyperspectral images of cotton bales with different impurity contents, and the percentage of non-cotton pixels in the total pixel points is counted. The percentage is fitted with the actual corresponding impurity content to obtain the final raw cotton impurity content determination method. Compared with the prior art, the present invention can efficiently and quickly perform large-scale detection of samples to be tested.

[0027] The features and advantages of the present invention will be described in detail through embodiments in conjunction with the accompanying drawings.

Brief Description of the Drawings

[0028] Figure 1 This is an operation flow chart of a method for determining impurity content in raw cotton based on hyperspectral imaging technology of the present invention;

[0029] Figure 2 It is a schematic diagram of the impurities screened out;

[0030] Figure 3 This is an example of the spectral curve of raw cotton and impurities. [Specific implementation method]

[0031] See also Figure 1 , Figure 2 and Figure 3 The present invention provides a method for determining the impurity content of raw cotton based on hyperspectral imaging technology, comprising the following steps:

[0032] 1) Collect a large number of raw cotton bale samples and calibrate the impurity content of the samples;

[0033] Use the quartering method to extract two cotton bale samples from each raw cotton bale sample. The cotton bale sample is 50±1g. One of them is used as the calibration sample and the other is used as the spare sample. Use a balance to accurately weigh the total mass m of the calibration sample. Use manual or machine stripping methods to separate the raw cotton and impurities of the calibration sample. Use a balance to weigh the mass m0 of the impurities and use the following formula to calculate the impurity content:

[0034]

[0035] In the formula, Z represents the impurity content, m represents the total mass of the calibration sample, and m0 represents the mass of the impurities;

[0036] After calibrating the impurity content of each raw cotton bale sample, give its corresponding spare sample a label with the same impurity content.

[0037] 2) Collecting hyperspectral images of spare samples;

[0038] The spare sample was placed in a short-wave infrared hyperspectral imaging system (JiangSu Dualix Spectral Image Technology Co. Ltd, China) to obtain its hyperspectral image, and a corresponding impurity content label was given to each hyperspectral image. The principle is transmission grating push-broom imaging, which consists of a short-wave infrared hyperspectral camera (Image-λ-N25E-HS), a detector (high-performance InGaAs), a dome light source (400W), an electrically controlled mobile platform, Spec View data acquisition control software, etc. The hyperspectral imaging system has a spectral range of 1000-2500nm, a spectral resolution of 10nm, and the collected images have 256 bands.

[0039] 3) Preprocessing the acquired hyperspectral data;

[0040] First, the hyperspectral data is corrected for black and white plates according to the following formula:

[0041]

[0042] Where: R0 is the hyperspectral image after reflectance correction; R is the original hyperspectral image; R white is the whiteboard data; R dark The blackboard data is obtained by collecting the hyperspectral image of a standard whiteboard, and its reflectivity is 100%; the blackboard data is obtained by covering the camera lens, and its reflectivity is considered to be 0%.

[0043] MSC is used to process hyperspectral data to remove spectral baseline errors and offsets caused by external factors.

[0044] 4) Establishment of a qualitative judgment model based on impurities and cotton spectral curves;

[0045] Impurities and cotton are manually separated, and hyperspectral data of impurities and cotton are extracted separately. The spectral characteristic curve data is extracted to establish a qualitative judgment model based on the spectral curves of impurities and cotton.

[0046] 5) extracting each pixel of the hyperspectral image after steps 2) and 3); bringing into the determination model in step 4); after determination, the number of pixels marked as cotton information is a, the number of non-cotton information pixels is b, then the total number of pixels is a+b, and the proportion of non-cotton information pixels to all pixels is b / (a+b); performing the above processing on the hyperspectral image of the cotton bale corresponding to each impurity content label; if the proportion of non-cotton information pixels to all pixels is b / (a+b), the corresponding true impurity content label is c, performing Gaussian function fitting on the data between the two, and after model optimization, obtaining the final impurity content determination method;

[0047] 6) The hyperspectral data of the unknown sample is collected and processed in steps 2) and 3), and each pixel data is extracted and input into the model obtained in step 4), and the proportion of non-cotton information pixels to all pixels is counted, and then substituted into the fitting function obtained in step 5) to obtain its impurity content information.

[0048] The above embodiments are intended to illustrate the present invention, not to limit the present invention. Any solution that is a simple transformation of the present invention belongs to the protection scope of the present invention.

Claims

1. A method for determining the impurity content of raw cotton based on hyperspectral imaging technology, characterized in that: The following steps are involved: 1) Collect a large number of raw cotton bale samples and calibrate the impurity content of the samples; 2) Collecting hyperspectral images of spare samples; 3) Preprocessing the acquired hyperspectral data; 4) Establishment of a qualitative judgment model based on impurities and cotton spectral curves; 5) extracting each pixel of the hyperspectral image after steps 2) and 3); bringing into the determination model in step 4); after determination, the number of pixels marked as cotton information is a, the number of non-cotton information pixels is b, then the total number of pixels is a+b, and the proportion of non-cotton information pixels to all pixels is b / (a+b); performing the above processing on the hyperspectral image of the cotton bale corresponding to each impurity content label; if the proportion of non-cotton information pixels to all pixels is b / (a+b), the corresponding true impurity content label is c, performing Gaussian function fitting on the data between the two, and after model optimization, obtaining the final impurity content determination method; 6) The hyperspectral data of the unknown sample is collected and processed in steps 2) and 3), and each pixel data is extracted and input into the model obtained in step 4), and the proportion of non-cotton information pixels to all pixels is counted, and then substituted into the fitting function obtained in step 5) to obtain its impurity content information.

2. The method for determining the impurity content of raw cotton based on hyperspectral imaging technology according to claim 1, characterized in that: In the step 1), the quartering method is adopted to extract two cotton bale samples from each raw cotton bale sample, one of which is used as a calibration sample and the other as a spare sample. The total mass m of the calibration sample is accurately weighed by a balance, and the raw cotton and impurities of the calibration sample are separated by manual or machine stripping. The mass m0 of the impurities is weighed by a balance, and the impurity content is calculated by the following formula: Where Z represents the impurity content, m represents the total mass of the calibration sample, and m0 represents the mass of impurities. After the impurity content of each raw cotton bale sample is calibrated, the corresponding spare sample is marked with the same impurity content label.

3. The method for determining the impurity content of raw cotton based on hyperspectral imaging technology according to claim 2, characterized in that: The cotton bale sample is 50±1g.

4. The method for determining the impurity content of raw cotton based on hyperspectral imaging technology according to claim 1, characterized in that: In the step 2), the spare sample is placed in a short-wave infrared hyperspectral imaging system to obtain its hyperspectral image, and a corresponding impurity content label is given to each hyperspectral image. The principle is transmission grating push-scan imaging. The spectral range of the hyperspectral imaging system is 1000-2500nm, the spectral resolution is 10nm, and the collected image has 256 bands.

5. The method for determining the impurity content of raw cotton based on hyperspectral imaging technology according to claim 1, characterized in that: In step 3), the hyperspectral data is firstly corrected for black and white plates according to the following formula: Where: R0 is the hyperspectral image after reflectance correction; R is the original hyperspectral image; R white is the whiteboard data; R dark The blackboard data is obtained by collecting the hyperspectral image of a standard whiteboard, and its reflectivity is 100%; the blackboard data is obtained by covering the camera lens, and its reflectivity is considered to be 0%.

6. The method for determining the impurity content of raw cotton based on hyperspectral imaging technology according to claim 5, characterized in that: The hyperspectral data are processed by MSC to remove spectral baseline errors and offsets caused by external factors.

7. A method for determining impurity content in raw cotton based on hyperspectral imaging technology according to any one of claims 1 to 6, characterized in that: In the step 4), impurities and cotton are manually separated, and hyperspectral data of the impurities and cotton are extracted separately, and spectral characteristic curve data are extracted to establish a qualitative judgment model based on the spectral curves of impurities and cotton.