Detection system and method for detecting pineapple internal decay based on transmission spectroscopy
Collect internal and surface data of pineapples through transmission spectroscopy technology, calculate the maturity coefficient and rottenness evaluation coefficient, and judge the maturity and rottenness of pineapples. This solves the problems of maturity judgment deviation and inaccurate detection results in the existing technology, and achieves high efficiency. Accurate pineapple rot detection.
Patent Information
- Application Number
- CN202410749372.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-06-12
AI Technical Summary
Existing pineapple rot detection methods have problems with maturity judgment bias and inaccurate detection results. Especially in large-scale production environments, it is difficult to effectively determine the internal rot of pineapples.
Transmission spectroscopy technology is used to collect multiple sets of data inside and on the surface of pineapples. Through the calculation of maturity coefficient, rot evaluation coefficient and rot variance, the maturity and rot status of pineapples are judged, and a system and system for detecting internal rot of pineapples based on transmission spectrum are provided. method.
It improves the accuracy and effect of judging internal rot in pineapples, reduces the cost of testing standards, avoids deviations in testing results, and is suitable for large-scale production environments.
Smart Images

Figure CN118329847B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of pineapple detection, and in particular to a detection system and method for detecting internal rot of pineapples based on transmission spectroscopy. Background Art
[0002] Pineapple is a popular tropical fruit with rich nutritional value. However, pineapple is easily invaded by microorganisms during storage and transportation, causing internal decay, which in turn affects the quality and taste of the fruit. Traditional decay detection methods usually rely on manual cutting and inspection, which not only destroys the fruit, but is also time-consuming and labor-intensive. Therefore, it is particularly important to develop a non-destructive, efficient and accurate detection method.
[0003] In the prior art, optical detection technology and electronic nose technology are generally used to detect the internal decay of pineapples. The optical detection technology analyzes the transmission of light inside the pineapple, because the reflectance spectrum focuses on the reflection of light on the surface of the pineapple. The optical method can provide information about the maturity and possible decay of the pineapple, because ripe or rotten fruit appears differently from healthy fruit in the spectrum. The electronic nose technology uses sensors to detect volatile organic compounds released by pineapples. Different degrees of decay will change the composition of the chemicals released by the fruit. The electronic nose can detect these changes to assess the internal decay.
[0004] However, there are still the following shortcomings: since the maturity of pineapples is affected by many factors, including the growth environment, variety characteristics and picking time, when the same detection standard is used to measure whether the internal flesh of the pineapple is rotten, the detection result will be biased. It is impractical to establish a detection standard for each pineapple to determine whether the internal flesh of the pineapple is rotten in a large-scale production and processing environment. Therefore, a detection system and method based on transmission spectroscopy technology is designed to detect the inside of the pineapple, determine the maturity of the pineapple, and then conduct a secondary detection on pineapples with high maturity to further determine whether the inside of the pineapple is rotten.
[0005] The above information disclosed in this Background section is only for enhancement of understanding of the background of the present disclosure and therefore it may contain information that does not constitute the prior art that is already known to one of ordinary skill in the art. Summary of the invention
[0006] The object of the present invention is to provide a detection system and method for detecting the internal decay of pineapples based on transmission spectroscopy, so as to solve the problems raised in the above-mentioned background technology.
[0007] To achieve the above object, the present invention provides the following technical solutions:
[0008] A detection system for detecting the internal decay of pineapples based on transmission spectroscopy, comprising:
[0009] A spectrum acquisition module, used for acquiring multiple sets of pineapple internal spectrum data at different angles by transmission, wherein the pineapple internal spectrum data includes water content data, sugar content data and pH value data;
[0010] The first data processing module is used to perform data processing and correlation analysis on the internal spectrum data of the pineapple at different angles, generate the maturity coefficient of the pineapple corresponding to each angle, compare the maturity coefficient of the pineapple with the threshold of the maturity coefficient, and screen out the pineapple that meets the maturity requirement;
[0011] A data acquisition module is used to collect spectral data of the pineapple surface by transmission, and the spectral data of the pineapple surface includes grain density and color uniformity;
[0012] The second data processing module is used to process and perform correlation analysis on the moisture content data, sugar content data, pH value data, grain density, and color uniformity of the pineapples collected from multiple groups of different angles, and generate decay evaluation coefficients of the pineapples at multiple angles;
[0013] A data analysis module is used to process the decay evaluation coefficients of the pineapple interior from multiple angles to generate the decay variance of the pineapple interior;
[0014] The judgment module is used to judge the internal decay condition of the pineapple according to the interval range of the decay variance inside the pineapple.
[0015] Furthermore, data processing and correlation analysis are performed on the internal spectrum data of the pineapple at different angles to generate the maturity coefficient of the pineapple corresponding to each angle, based on the following formula:
[0016] ;
[0017] in, is the maturity coefficient of pineapple, is the moisture content data, For sugar content data, The pH data.
[0018] Furthermore, the moisture content data, sugar content data, pH value data, grain density, and color uniformity of the pineapples collected from multiple groups at different angles were processed and correlated to generate the internal decay evaluation coefficients of the pineapples at multiple angles, based on the following formula:
[0019] ;
[0020] in, For the The decay evaluation coefficient of the angle, is the moisture content data, is the mean moisture content, is the standard deviation of moisture content, For sugar content data, is the mean value of sugar content data, is the standard deviation of the sugar content data, is the pH value data, is the weight coefficient of pH value data, is the attenuation coefficient, is the texture density, is the weight coefficient of texture density, is the weight coefficient of color uniformity, For color uniformity.
[0021] Furthermore, the decay evaluation coefficients of the pineapple interior at multiple angles were processed to generate the decay variance of the pineapple interior, based on the following formula:
[0022] ;
[0023] ;
[0024] in, is the average of the decay evaluation coefficients at multiple angles, is the number of detection angles, is the variance of the decay evaluation coefficient at multiple angles.
[0025] Furthermore, according to the range of decay variance, the process of judging the internal decay of pineapple is as follows:
[0026] The decay variance The range of is set to [0,10].
[0027] when , indicating that the internal conditions of the pineapple from multiple angles are consistent, the flesh quality is the same, and there is no rot;
[0028] when , indicating that the internal conditions of the pineapple from multiple angles are inconsistent and there are rotten areas.
[0029] A method for detecting the internal rot of a pineapple based on transmission spectrum, the method is applied to any of the above-mentioned detection systems for detecting the internal rot of a pineapple based on transmission spectrum, characterized in that the specific steps include:
[0030] S1. Collect multiple groups of pineapple internal spectral data at different angles by transmission method, wherein the pineapple internal spectral data includes water content data, sugar content data and pH value data;
[0031] S2. Performing data processing and correlation analysis on the internal spectrum data of the pineapple at different angles, generating the maturity coefficient of the pineapple corresponding to each angle, comparing the maturity coefficient of the pineapple with the threshold of the maturity coefficient, and screening out the pineapple that meets the maturity requirement;
[0032] S3. Collecting spectral data of the pineapple surface by transmission method, the spectral data of the pineapple surface includes grain density and color uniformity;
[0033] S4. The moisture content data, sugar content data, pH value data, grain density, and color uniformity of the pineapple collected from multiple groups at different angles are processed and correlated to generate the decay evaluation coefficient of the pineapple inside at multiple angles;
[0034] S5. Processing the decay evaluation coefficients of the pineapple interior at multiple angles to generate the decay variance of the pineapple interior;
[0035] S6. Determine the internal decay condition of the pineapple according to the interval range of the decay variance inside the pineapple.
[0036] Compared with the prior art, the present invention has the following beneficial effects:
[0037] The present invention collects multiple groups of pineapple internal spectrum data at different angles in a transmission manner, wherein the pineapple internal spectrum data includes water content data, sugar content data and pH value data, performs data processing and correlation analysis on the pineapple internal spectrum data at different angles, generates a maturity coefficient of the pineapple corresponding to each angle, compares the maturity coefficient of the pineapple with a threshold value of the maturity coefficient, and screens out pineapples that meet maturity requirements;
[0038] The moisture content data, sugar content data, pH value data, grain density, and color uniformity of the pineapple collected at multiple angles are processed and correlation analyzed to generate the internal rot evaluation coefficients of the pineapple at multiple angles. The internal rot evaluation coefficients of the pineapple at multiple angles are processed to generate the internal rot variance of the pineapple. The internal rot condition of the pineapple is judged according to the interval range of the internal rot variance of the pineapple.
[0039] Therefore, through the cooperation between multiple modules, the maturity of the pineapple is first determined, and then the pineapples with high maturity are subjected to secondary inspection. The decay evaluation coefficient and decay variance obtained from multiple angles are used to determine the internal decay of the pineapple, thereby improving the accuracy and effect of determining the internal decay of the pineapple, and reducing the cost of developing detection standards for different pineapples. At the same time, it avoids the problem of using the same detection standard to measure whether the internal flesh of the pineapple is rotten, which leads to deviations in the detection results. In addition, in a large-scale production and processing environment, a detection standard is established for each pineapple to detect whether the internal flesh of the pineapple is rotten. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 It is a block diagram of the module composition of the present invention;
[0041] Figure 2 It is a schematic diagram of the overall method flow of the present invention. DETAILED DESCRIPTION
[0042] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments.
[0043] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the present invention should be understood by people with ordinary skills in the field to which the present invention belongs. The words "first", "second" and similar words used in the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0044] Example:
[0045] See also Figure 1 , the present invention provides a technical solution:
[0046] A detection system for detecting the internal decay of pineapples based on transmission spectroscopy, comprising:
[0047] A spectrum acquisition module, used for acquiring multiple sets of pineapple internal spectrum data at different angles by transmission, wherein the pineapple internal spectrum data includes water content data, sugar content data and pH value data;
[0048] The first data processing module is used to perform data processing and correlation analysis on the internal spectrum data of the pineapple at different angles, generate the maturity coefficient of the pineapple corresponding to each angle, compare the maturity coefficient of the pineapple with the threshold of the maturity coefficient, and screen out the pineapple that meets the maturity requirement;
[0049] A data acquisition module is used to collect spectral data of the pineapple surface by transmission, and the spectral data of the pineapple surface includes grain density and color uniformity;
[0050] The second data processing module is used to process and perform correlation analysis on the moisture content data, sugar content data, pH value data, grain density, and color uniformity of the pineapples collected from multiple groups of different angles, and generate decay evaluation coefficients of the pineapples at multiple angles;
[0051] A data analysis module is used to process the decay evaluation coefficients of the pineapple interior from multiple angles to generate the decay variance of the pineapple interior;
[0052] The judgment module is used to judge the internal decay condition of the pineapple according to the interval range of the decay variance inside the pineapple.
[0053] In this embodiment, the transmission method can use a near-infrared spectrometer, and a transmission spectrum detection device is arranged in a ring around the pineapple. Multiple transmission spectrum detection devices can be arranged at the same angle.
[0054] Near-infrared spectrometer is suitable for detecting the internal components of pineapple, such as moisture content data, sugar content data and pH value data. Its working principle is to analyze the chemical composition of the sample by detecting the absorption and reflection of the near-infrared band by the substance. The near-infrared spectrometer can quickly and non-destructively obtain the spectral information inside the pineapple, which is suitable for online real-time monitoring. It can also cover different parts of the pineapple surface through multi-position settings to improve the comprehensiveness and accuracy of the detection.
[0055] When the moisture content, sugar content and pH value of the pineapple reach certain values, it means that the maturity of the pineapple has reached the requirements. The following are the specific reasons:
[0056] Moisture content data: Ripe pineapples usually have a moderate moisture content. Pineapples with higher moisture content tend to be juicier, have a more refreshing taste, and have better eating quality. The increase in moisture content may be due to the accumulation of water in the water storage organs inside the pineapple cells, which indicates that the pineapple has matured.
[0057] Sugar content data: Ripe pineapples usually have a higher sugar content because sugar is one of the main products of the fruit ripening process. The increase in sugar content means that the starch and other carbohydrates inside the pineapple are gradually converted into sugar substances, which is one of the typical characteristics of the ripening process. Pineapples with high sugar content usually taste sweeter and have a better taste.
[0058] pH data: Ripe pineapples usually have a higher pH because the content of organic acids decreases during the ripening process.
[0059] To sum up, when the moisture content data, sugar content data and pH value data of the pineapple reach a certain value, it indicates that the maturity of the pineapple has reached the requirements. The above indicators can be used to judge the maturity of the pineapple.
[0060] When the moisture content, sugar content, pH value, grain density, and color uniformity of the pineapple all reach certain values, it means that the pineapple has rotted inside. The following are the specific reasons:
[0061] Moisture content data: During the decay process of pineapples, the moisture content tends to increase significantly, because decay can cause the cell structure of the pineapple to be destroyed and the intracellular fluid to seep out, causing the pineapple tissue to soften and increase water loss.
[0062] Sugar content data: Rotten pineapples often result in a decrease in sugar content because microorganisms break down the sugars in the pineapple, resulting in a decrease in sugar content.
[0063] pH data: As microorganisms multiply, the accumulation of organic acids will cause the pH to decrease, making the environment more acidic. This change not only affects the taste but also promotes the decay process.
[0064] Grain density: Rotten pineapples may show an increase in the density of grains on the skin. This is due to changes in the structure of the peel and flesh, resulting in an uneven surface.
[0065] Color uniformity: When pineapples rot, the color uniformity will decrease and spots of brown, black or other colors may appear. This is because cell destruction and pigment degradation lead to color changes.
[0066] To sum up, when the moisture content data, sugar content data, pH value data, grain density and color uniformity of a pineapple all reach certain values, it usually means that the inside of the pineapple may have rotted. Too high or too low moisture content, significantly reduced sugar content, increased acidity in pH data, increased grain density and uneven color changes are all specific manifestations of rot. These changes combined can be used as important indicators to detect the degree of pineapple rot.
[0067] In this embodiment, pineapple samples of different maturity were set up, and a total of 30 pineapples of different growth cycles were selected. These pineapples came from different planting environments to ensure the representativeness and extensiveness of the data.
[0068] Before the experiment, all pineapple samples were first subjected to basic physical tests, including appearance color, hardness, etc., to preliminarily assess their maturity; then, the moisture content data, sugar content data and pH value data of each pineapple sample were measured using a near-infrared spectrometer. The near-infrared spectrometer is a fast and non-destructive technology for measuring the moisture content data, sugar content data and pH value data of pineapple samples. The following is the specific process of measurement using a near-infrared spectrometer:
[0069] Preparation
[0070] Before starting the measurement, the near-infrared spectrometer needs to be calibrated to ensure accurate data. The calibration process usually involves using standard samples of known composition to adjust the spectrometer settings. For this experiment, pineapples of different maturity should be selected as standard samples, and their moisture content data, sugar content data, and pH value data should be measured respectively to establish a reference database.
[0071] Sample preparation
[0072] The pineapple samples should be left at room temperature to eliminate the effects of any temperature changes caused by transportation or storage. The samples should be clean, free of disease and mechanical damage. Each pineapple should be gently wiped with a soft cloth before measurement to remove any external impurities.
[0073] Measurement process
[0074] The probe of the near-infrared spectrometer is usually placed on the surface of the pineapple fruit. The device emits near-infrared light, which penetrates the pineapple skin and is partially absorbed by the flesh. The absorbed spectral data reflects the moisture content data, sugar content data and pH value data of the pineapple in the sample, because each molecule specifically absorbs light of a specific wavelength.
[0075] Among them, the near-infrared spectrometer emits near-infrared light with a wavelength range of 800-2500 nanometers to the sample and detects the intensity of the reflected or transmitted light. Different chemical components have specific absorption characteristics for near-infrared light of different wavelengths, and these characteristics can be used for quantitative analysis.
[0076] Moisture content measurement
[0077] Absorption characteristics: Water molecules have specific absorption peaks in the near-infrared range, usually around 1400 nanometers and 1900 nanometers, which correspond to the vibration and bending modes of water molecules.
[0078] Quantitative analysis: By measuring the absorbance at these specific wavelengths, the moisture content in the sample can be estimated. Partial least squares regression is usually used to establish a relationship model between moisture content and absorbance, through which the moisture content data of pineapples can be obtained.
[0079] Sugar content measurement
[0080] Absorption characteristics: Sugar compounds (such as glucose, fructose and sucrose) also have specific absorption peaks in the near-infrared range. These absorption peaks are mainly related to the vibration modes of CH, OH and CO bonds in the molecules, usually in the range of 1100-2500 nm.
[0081] Quantitative analysis: By measuring the absorbance at these specific wavelengths, combined with chemometric methods, the sugar content in the sample can be estimated. Multivariate regression models are usually used to establish the relationship between sugar content and absorbance.
[0082] pH Measurement
[0083] Indirect measurement: pH itself has no direct NIR absorption feature, but it affects the concentration and structure of other components in the sample (such as organic acids), and these changes can be indirectly detected by NIR spectroscopy.
[0084] Quantitative analysis: By comprehensively analyzing the overall spectral characteristics of the sample and combining it with a large number of reference samples with known pH values, a complex calibration model is established to predict the pH value of unknown samples. A multivariate regression analysis model is usually used to obtain the pH value data of pineapple.
[0085] The working principle of collecting the texture density and color uniformity of the pineapple surface by transmission is as follows:
[0086] In the transmission spectroscopy measurement, the light emitted by the light source passes through the pineapple sample. The detector is located on the other side of the sample and records the intensity and spectral characteristics of the transmitted light. By analyzing the changes in the transmission spectrum, the sample surface information can be obtained.
[0087] Measuring principle of grain density
[0088] The texture of the pineapple skin causes changes in the scattering and absorption of light. High-density texture causes more light scattering and reduces the intensity of transmitted light, while low-density texture scatters less light.
[0089] The pineapple skin was scanned using a spectrometer to obtain transmission spectrum data at different wavelengths, the transmission spectrum intensity distribution was recorded, and the relationship between the transmission spectrum characteristics and grain density was established through a model.
[0090] The intensity of the transmission spectrum in the high-density texture area will be lower, while the intensity of the transmission spectrum in the low-density texture area will be higher. A high-resolution spectral imager is used to image the pineapple skin, obtain spectral image data, analyze the intensity changes in the spectral image, and perform edge detection and texture analysis through image processing technology.
[0091] The pineapple skin is imaged using a spectral imager to obtain a two-dimensional spectral image I (x, y, ), where (x,y) are image coordinates, is the wavelength, and the texture density is analyzed by the intensity changes at different wavelengths in the spectral image;
[0092] Transmission spectroscopy analysis
[0093] Assuming the transmitted light intensity ( The relationship between ) and the texture density G(x,y) can be expressed as follows:
[0094] ;
[0095] in, is the incident light intensity, is the attenuation coefficient related to the texture density.
[0096] By experimentally measuring the ( ), the fitting result is and the relationship between G(x,y).
[0097] Edge detection is performed on the spectral image. The Sobel operator, Canny edge detection and other algorithms are used to obtain the edge information of the epidermal lines. The gray-level co-occurrence matrix is used to quantify the density characteristics of the lines. According to the edge detection results, the edge length or number per unit area is calculated as an indicator of the line density.
[0098] Edge Detection:
[0099] Use Sobel operator to calculate image gradient
[0100] ;
[0101] ;
[0102] in, is the gradient amplitude, For The rate of change of brightness in a direction, For The rate at which brightness changes in a direction.
[0103] Canny edge detection:
[0104] Dual threshold detection: Determine edges and non-edges.
[0105] High threshold: If the gradient magnitude of a pixel exceeds the high threshold, the pixel is considered an "edge" pixel.
[0106] Low threshold: If the gradient magnitude of a pixel is lower than the low threshold, the pixel is considered a "non-edge" pixel.
[0107] The resulting binary edge image contains only edge pixels, and the other pixel values are 0.
[0108] Texture Analysis:
[0109] Gray Level Co-occurrence Matrix
[0110] ;
[0111] ;
[0112] The elements represent the distance and angle The gray level is The pixel and gray level are The number of times the pixels appear simultaneously, is the Dirac function, when When it is 0, its value is 1, otherwise it is 0. (x, y) is the pixel coordinate in the image, and I(x,y) is the grayscale value of the pixel located at (x,y). This means that only when (I(x,y)=i) and (I =j), the summation term will be included in the statistics. is the distance parameter, is the angle parameter.
[0113] For each pixel (x, y) in the image, calculate the point , if (I(x,y)=i) and (I(x',y')=j) are satisfied, then the corresponding position of the matrix P(i,j) is increased by 1.
[0114] Count edge pixels in a binary edge image. For example, if the image size is , the total number of edge pixels is E.
[0115] Edge pixel density per unit area:
[0116] ;
[0117] The texture density is the edge pixel density per unit area.
[0118] Color uniformity measurement principle
[0119] Color uniformity reflects the distribution of epidermal color, which also affects the light transmission characteristics. The specific principles are as follows:
[0120] Epidermis of different colors have different light absorption characteristics. A surface with uniform color will show consistent spectral absorption characteristics throughout the entire transmission spectrum, while a surface with uneven color will result in different absorption peaks or absorption bands in the spectrum. Color uniformity can be measured by analyzing the stability of the transmission spectrum. If the transmission spectrum shows consistent absorption characteristics over the entire surface, it indicates that the color is uniform; if the spectral characteristics vary greatly, it indicates that the color is uneven. Multispectral or hyperspectral imaging technology is then used to capture the distribution of transmitted light intensity of the sample at multiple wavelengths, and these spectral images are analyzed to quantify color uniformity.
[0121] The specific steps are as follows:
[0122] Use spectral imaging equipment to obtain the transmitted light intensity image of the sample at different wavelengths. Assume that we have obtained the transmitted light intensity images of M wavelengths. , where (k = 1, 2, ..., M).
[0123] For each wavelength , calculate the average transmitted light intensity of all pixels on the sample surface and standard deviation , the formula is as follows:
[0124] ;
[0125] ;
[0126] in, and are the number of rows and columns of the image, respectively. is the wavelength after normalization The transmitted light intensity of the pixel at coordinate (x, y).
[0127] Calculate the standard deviation of the coefficient of variation at all wavelengths:
[0128] ;
[0129] ;
[0130] in, is the standard deviation of the coefficient of variation at all wavelengths, is the average value of the coefficient of variation at all wavelengths, is the standard deviation of the coefficient of variation at all wavelengths, is the number of wavelengths contained in the spectral image.
[0131] By analyzing the standard deviation of the coefficient of variation at different wavelengths , color uniformity can be quantified if Small, indicating that the spectral characteristics are stable and the color is uniform; if Larger values indicate larger changes in spectral characteristics and uneven colors.
[0132] On the basis of the above embodiment, data processing and correlation analysis are performed on the internal spectrum data of the pineapple at different angles to generate the maturity coefficient of the pineapple corresponding to each angle, based on the following formula:
[0133] ;
[0134] in, is the maturity coefficient of pineapple, is the moisture content data, For sugar content data, The pH data.
[0135] According to the functional relationship between the pineapple maturity coefficient and the moisture content data, sugar content data, and pH value data, a data table is established. The table content is as follows:
[0136] Table 1 Pineapple maturity coefficient and moisture content data, sugar content data, pH value data
[0137]
[0138] Maturity coefficient The value range is ,That Indicates immaturity. Not fully mature. Indicates full maturity, while the maturity coefficient gradually increases as maturity increases.
[0139] From the above data table, we can see that the maturity coefficient R and the moisture content of pineapple , Sugar content data , pH value data There is a significant correlation between them. The lower the value of the maturity coefficient R, the lower the maturity of the pineapple, which is specifically manifested in higher moisture content data, lower sugar content data, and higher pH value data. During the ripening process of pineapple, the fruit will gradually lose water, while the accumulation of sugar will increase, and the conversion of acidic substances will cause the pH value to decrease.
[0140] The process of comparing the maturity coefficient of the pineapple with the threshold value of the maturity coefficient of the pineapple and screening out the pineapples that meet the maturity requirements is as follows:
[0141] Select 5 groups of pineapple samples and establish a table of pineapple maturity coefficient and maturity coefficient threshold. The table content is as follows:
[0142] Table 2 Maturity coefficient and threshold data of pineapple
[0143]
[0144] According to the above table, when the maturity coefficient threshold YZ is set to 92, the maturity coefficients R of the five groups of samples are all greater than the maturity coefficient threshold YZ, indicating that the pineapples in the five groups of samples are all ripe; however, when the threshold is raised to 93, only the maturity coefficients of samples 1 and 3 are higher than the maturity coefficient threshold YZ, indicating that only the pineapples in samples 1 and 3 are ripe; when the threshold is raised to 94, only the maturity coefficient R of sample 1 is greater than the maturity coefficient threshold YZ, indicating that only the pineapples in sample 1 are ripe.
[0145] Therefore, as the threshold increases, the number of samples judged as mature decreases. This shows that the setting of the maturity coefficient is relatively sensitive, and different thresholds may significantly affect the judgment of pineapple maturity.
[0146] The maturity coefficient threshold Set it to 95 and select the pineapple in sample 1 as the sample for the next step of analysis.
[0147] On the basis of the above embodiment, data processing and correlation analysis are performed on multiple groups of pineapple moisture content data, sugar content data, pH value data, grain density, and color uniformity collected from different angles to generate pineapple internal decay evaluation coefficients at multiple angles, based on the following formula:
[0148] ;
[0149] in, For the The decay evaluation coefficient of the angle, is the moisture content data, is the mean moisture content, is the standard deviation of moisture content, For sugar content data, is the mean value of sugar content data, is the standard deviation of the sugar content data, is the pH value data, is the weight coefficient of pH value data, is the attenuation coefficient, is the texture density, is the weight coefficient of texture density, is the weight coefficient of color uniformity, For color uniformity.
[0150] Moisture content data and sugar content data The change will affect the decay evaluation coefficient by standardizing and squaring, and the moisture content data and sugar content data The increase of will increase the value of the corresponding item, thus affecting the decay evaluation coefficient .
[0151] pH The decay evaluation coefficient is affected by the exponential decay function. The higher the pH value, the lower the value, which in turn reduces the decay evaluation coefficient. .
[0152] Texture density The decay evaluation coefficient is affected by the logarithmic function. The increase in texture density will increase the value of the logarithmic term, thereby reducing the decay evaluation coefficient. .
[0153] Color uniformity The decay evaluation coefficient is affected by the cosine function. The increase in color uniformity will adjust the value of the denominator through the cosine function, causing the decay evaluation coefficient to change. .
[0154] On the basis of the above embodiment, the decay evaluation coefficients of the pineapple interior at multiple angles are processed to generate the decay variance of the pineapple interior, and the formula is as follows:
[0155] ;
[0156] ;
[0157] in, is the average of the decay evaluation coefficients at multiple angles, is the number of detection angles, is the variance of the decay evaluation coefficient at multiple angles.
[0158] On the basis of the above embodiment, according to the interval range of the decay variance, the process of judging the internal decay of the pineapple is as follows:
[0159] Set the decay variance (V) range to [0,10],
[0160] when , indicating that the internal conditions of the pineapple from multiple angles are consistent, the flesh quality is the same, and there is no rot;
[0161] when , indicating that the internal conditions of the pineapple from multiple angles are inconsistent and there are rotten areas.
[0162] The principle of judging the internal decay of pineapples based on the size of the decay variance inside the pineapple:
[0163] First, when the variance is small, it indicates that the decay degree of the pineapple flesh detected from multiple angles is very close, which means that the decay condition of the pineapple is similar when observed from different angles;
[0164] Second, the pineapple is a whole fruit, and its interior may be relatively evenly affected by environmental factors and the decay process. Therefore, if the decay conditions observed at different angles are very close, it can be reasonably inferred that the decay conditions of the flesh inside the entire pineapple are also similar.
[0165] Third, a smaller variance indicates that the data points deviate less from the mean. Therefore, when the variance of the decay evaluation coefficient is very small, it means that the decay conditions at different angles are very small, that is, the decay conditions of the pineapple flesh at different positions are similar.
[0166] Based on the above description, if the variance of the internal decay of the pineapple at different angles is small, it can be reasonably inferred that there is no decay inside the pineapple; conversely, if the variance of the internal decay of the pineapple at different angles is large, it can be reasonably inferred that there is decay inside the pineapple.
[0167] In the formula , , and The specific value of is generally determined by those skilled in the art according to actual conditions. The essence of this formula is a comprehensive analysis by weighted summation. The technicians in this field collect multiple groups of sample data, set corresponding preset proportional coefficients for each group of sample data, substitute the preset proportional coefficients and the collected sample data into the formula, observe the accuracy of the model output and the rationality of the results through repeated experiments and parameter adjustments, gradually adjust these factor coefficients, and compare the performance and effect of the model under different parameter settings to find the optimal coefficient combination, screen the calculated factor coefficients and take the average, and obtain , , and The value of .
[0168] In addition, the size of the preset factor coefficient is to quantify each parameter to obtain a specific value. In order to facilitate subsequent comparison, the size of the coefficient depends on the amount of sample data and the preset proportional coefficient initially set by technical personnel in this field for each set of sample data. It is not unique as long as it does not affect the proportional relationship between the parameter and the quantized value.
[0169] See also Figure 2 , the present invention also provides a technical solution:
[0170] A method for detecting the internal rot of a pineapple based on transmission spectroscopy, the method being applied to any of the above-mentioned detection systems for detecting the internal rot of a pineapple based on transmission spectroscopy, and the specific steps comprising:
[0171] S1. Collect multiple groups of pineapple internal spectral data at different angles by transmission method, wherein the pineapple internal spectral data includes water content data, sugar content data and pH value data;
[0172] S2. Performing data processing and correlation analysis on the internal spectrum data of the pineapple at different angles, generating the maturity coefficient of the pineapple corresponding to each angle, comparing the maturity coefficient of the pineapple with the threshold of the maturity coefficient, and screening out the pineapple that meets the maturity requirement;
[0173] S3. Collecting spectral data of the pineapple surface by transmission method, the spectral data of the pineapple surface includes grain density and color uniformity;
[0174] S4. The moisture content data, sugar content data, pH value data, grain density, and color uniformity of the pineapple collected from multiple groups at different angles are processed and correlated to generate the decay evaluation coefficient of the pineapple inside at multiple angles;
[0175] S5. Processing the decay evaluation coefficients of the pineapple interior at multiple angles to generate the decay variance of the pineapple interior;
[0176] S6. Determine the internal decay condition of the pineapple according to the interval range of the decay variance inside the pineapple.
[0177] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters in the formula are set by technicians in this field according to actual conditions.
[0178] The above embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination thereof. When implemented by software, the above embodiments may be implemented in whole or in part in the form of a computer program product. Those skilled in the art may appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein may be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed by hardware or software methods depends on the specific application and design constraints of the technical solution.
[0179] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0180] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. A detection system for detecting the internal decay of pineapples based on transmission spectroscopy, characterized in that: include: A spectrum acquisition module, used for acquiring multiple sets of pineapple internal spectrum data at different angles by transmission, wherein the pineapple internal spectrum data includes water content data, sugar content data and pH value data; The first data processing module is used to perform data processing and correlation analysis on the internal spectrum data of the pineapple at different angles, generate the maturity coefficient of the pineapple corresponding to each angle, compare the maturity coefficient of the pineapple with the threshold of the maturity coefficient, and screen out the pineapple that meets the maturity requirement; A data acquisition module is used to collect spectral data of the pineapple surface by transmission, and the spectral data of the pineapple surface includes grain density and color uniformity; The second data processing module is used to process and perform correlation analysis on the moisture content data, sugar content data, pH value data, grain density, and color uniformity of the pineapples collected from multiple groups of different angles, and generate decay evaluation coefficients of the pineapples at multiple angles; A data analysis module is used to process the decay evaluation coefficients of the pineapple interior from multiple angles to generate the decay variance of the pineapple interior; A judgment module is used to judge the internal decay of the pineapple according to the interval range of the decay variance inside the pineapple; Data processing and correlation analysis are performed on the internal spectrum data of pineapples at different angles to generate the maturity coefficient of the pineapples corresponding to each angle. The formula is as follows: in, is the maturity coefficient of pineapple, is the moisture content data, For sugar content data, is pH value data; The moisture content data, sugar content data, pH value data, grain density, and color uniformity of pineapples collected from multiple groups at different angles were processed and correlated to generate the internal decay evaluation coefficients of pineapples at multiple angles. The formula is as follows: in, For the The decay evaluation coefficient of the angle, is the moisture content data, is the mean moisture content, is the standard deviation of moisture content, For sugar content data, is the mean value of sugar content data, is the standard deviation of the sugar content data, is the pH value data, is the weight coefficient of pH value data, is the attenuation coefficient, is the texture density, is the weight coefficient of texture density, is the weight coefficient of color uniformity, is color uniformity; The decay evaluation coefficients of the pineapple interior at multiple angles were processed to generate the decay variance of the pineapple interior, based on the following formula: in, is the average of the decay evaluation coefficients at multiple angles, is the number of detection angles, is the variance of decay evaluation coefficients at multiple angles; According to the range of decay variance, the process of judging the internal decay of pineapple is as follows: The decay variance The range of is set to [0,10]. when , indicating that the internal conditions of the pineapple from multiple angles are consistent, the flesh quality is the same, and there is no rot; when , indicating that the internal conditions of the pineapple from multiple angles are inconsistent and there are rotten areas.
2. A method for detecting the internal rot of a pineapple based on transmission spectrum, the method being applied to the detection system for detecting the internal rot of a pineapple based on transmission spectrum according to claim 1, characterized in that: The specific steps include: S1. Collect multiple groups of pineapple internal spectral data at different angles by transmission method, wherein the pineapple internal spectral data includes water content data, sugar content data and pH value data; S2. Performing data processing and correlation analysis on the internal spectrum data of the pineapple at different angles, generating the maturity coefficient of the pineapple corresponding to each angle, comparing the maturity coefficient of the pineapple with the threshold of the maturity coefficient, and screening out the pineapple that meets the maturity requirement; S3. Collecting spectral data of the pineapple surface by transmission method, the spectral data of the pineapple surface includes grain density and color uniformity; S4. The moisture content data, sugar content data, pH value data, grain density, and color uniformity of the pineapple collected from multiple groups at different angles are processed and correlated to generate the decay evaluation coefficient of the pineapple inside at multiple angles; S5. Processing the decay evaluation coefficients of the pineapple interior at multiple angles to generate the decay variance of the pineapple interior; S6. Determine the internal decay condition of the pineapple according to the interval range of the decay variance inside the pineapple.
