Tea quality detection device and method based on spectral imaging
Through spectral imaging technology, various spectral signals of tea are obtained and processed, which solves the problem of lack of comprehensiveness and subjectivity in tea quality assessment in the existing technology, and achieves multi-dimensional assessment and accuracy improvement of tea quality.
Patent Information
- Application Number
- CN202410564775.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-09
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-05-09
AI Technical Summary
Existing spectroscopic technology lacks comprehensiveness and comprehensiveness in tea quality assessment, cannot completely reflect the overall quality of tea, and is subjective and operationally complex.
A tea quality detection device based on spectral imaging is used to obtain the Raman spectrum, infrared spectrum and visible spectrum signals of tea, combined with image reconstruction and signal extraction processing, to achieve a comprehensive and accurate assessment of tea quality.
It achieves multi-dimensional and comprehensive assessment of tea quality, improves the accuracy and reliability of assessment, reduces external interference, and provides a scientific and reliable quality assessment method.
Smart Images

Figure CN118190835B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of tea quality detection, and in particular relates to a tea quality detection device and method based on spectral imaging. Background Art
[0002] As a traditional drink, tea has a wide range of consumer groups and market demand around the world. As people's awareness of quality of life and health improves, their requirements for tea quality are also getting higher and higher. However, the quality of tea is affected by many factors, such as the planting environment, picking technology, processing technology, etc. Therefore, how to accurately and quickly evaluate the quality of tea has become an important challenge in the field of tea production and trade.
[0003] Traditional tea quality assessment methods mainly rely on chemical analysis and manual tasting, which have some limitations. First, chemical analysis requires cumbersome experimental operations and professional equipment, which is time-consuming, labor-intensive and costly. Secondly, although manual tasting can intuitively evaluate the taste and aroma of tea, it is greatly affected by human subjective factors and does not have the ability to process quickly and in large quantities. Therefore, traditional methods have certain limitations in practical applications. In response to the problems of traditional methods, spectral technology has been widely used in tea quality assessment in recent years. Spectroscopic technology can quickly and accurately evaluate the quality of tea by analyzing the spectral signals in tea leaves. It has the advantages of simple operation, non-destructiveness and high sensitivity. However, the existing spectral technology still has some problems and challenges in tea quality assessment.
[0004] First, the existing spectral technology in tea quality assessment often only analyzes specific components or indicators, and lacks a comprehensive method for evaluating tea quality. For example, some technologies can only evaluate the content of chemical components in tea, but cannot accurately evaluate the appearance quality; other technologies can only judge the appearance quality of tea, but cannot accurately measure the content of chemical components. This leads to the lack of comprehensiveness and comprehensiveness of tea quality assessment results, and cannot fully reflect the overall quality level of tea. Secondly, the existing spectral technology has a certain degree of subjectivity and operability in tea quality assessment. Since different technologies rely on different spectral signals and analysis methods, the evaluation results of tea quality may be subjective and different. In addition, some technologies require complex data processing and analysis processes, and the operation is relatively cumbersome, requiring certain professional knowledge and skills. Summary of the invention
[0005] The main purpose of the present invention is to provide a tea quality detection device and method based on spectral imaging. The present invention realizes a comprehensive and accurate evaluation of tea quality through spectral imaging technology. It has the advantages of simple operation, rapidity, accuracy, and non-destructiveness, and can provide a more scientific and reliable quality evaluation method for tea production and trade.
[0006] In order to solve the above problems, the technical solution of the present invention is achieved as follows:
[0007] A tea quality detection device based on spectral imaging, the device comprises: a spectral image acquisition part, a spectral extraction part, a spectral analysis part and a tea quality judgment part; the spectral image acquisition part is used to acquire a spectral image of tea leaves; the spectral extraction part is used to extract Raman spectral signals, infrared spectral signals and visible spectral signals from the spectral image respectively; the spectral analysis part is used to determine whether the content of a first mass component in the tea leaves is abnormal according to the Raman spectral signal, and obtain a first judgment result; determine whether the content of a second mass component in the tea leaves is abnormal according to the infrared spectral signal, and obtain a second judgment result; determine whether the appearance of the tea leaves is abnormal according to the visible spectral signal, and obtain a third judgment result; the tea quality judgment part is used to determine the quality of the tea leaves according to the first judgment result, the second judgment result and the third judgment result, and obtain a tea quality detection result.
[0008] Furthermore, the first quality components include: tea polyphenols, catechins and caffeine; the second quality components include: water, protein and amino acids; the appearance quality value includes: tea transparency and tea clarity.
[0009] Furthermore, the spectral image acquisition part includes: a plurality of identical spectrometers and image reconstruction devices; each spectrometer acquires tea spectral images under different angles, lighting conditions and wavelengths; the reconstruction device is used to perform image registration on all tea spectral images to ensure that they are aligned in the same coordinate system, and then perform super-resolution reconstruction to synthesize all tea spectral images into one spectral image.
[0010] Furthermore, in the spectrum extraction part, the process of respectively extracting Raman spectrum signals, infrared spectrum signals and visible spectrum signals from the spectrum image specifically includes: eliminating the scattered signal of the spectrum image, removing the background noise of the spectrum image, smoothing filtering and baseline correction of the spectrum image; identifying Raman peaks in the spectrum image; deconvolving the spectrum image based on the Raman peaks to obtain Raman spectrum signals from the spectrum image; converting the spectrum image into the frequency domain to obtain a frequency domain spectrum image; extracting the infrared spectrum signal from the frequency domain spectrum image based on the frequency range of the infrared spectrum signal; extracting the visible spectrum signal from the frequency domain spectrum image based on the frequency range of the visible light spectrum signal.
[0011] Furthermore, based on the Raman peak, the spectrum image is deconvoluted, and the method for obtaining the Raman spectrum signal from the spectrum image includes: converting the spectrum image into the frequency domain to obtain the frequency domain spectrum image ; Assume the frequency of each Raman peak is , the intensity is ; The response function of each spectrometer is ; The Raman spectrum signal is calculated by the following formula :
[0012] ;
[0013] in, For location The wave number of the Raman peak at ; is the filter function; is the frequency; is the Dirac function; is the number of Raman peaks.
[0014] Furthermore, the filter function Use the following formula to express it:
[0015] ;
[0016] in, is the noise power spectral density of Gaussian noise, is the power spectral density of the Raman spectrum signal; is the wavelength; is temperature; is the Boltzmann constant; is the speed of light; is Planck's constant.
[0017] Further, according to the Raman spectrum signal, whether the content of the first mass component in the tea leaves is abnormal or not, the method for obtaining the first judgment result includes: calculating the signal extreme value of the Raman spectrum signal to obtain the Raman extreme value point; judging the category of the extreme value point according to the wave number and vibration mode of each extreme value point, specifically including: if the wave number of the extreme value point is If the wave number of the extreme point is within If the extreme point is within the range of , the extreme point is judged to be the extreme point corresponding to caffeine; for the extreme points corresponding to tea polyphenols and catechins, if the signal within the set radius range with the extreme point as the center has CO stretching vibration, the extreme point is judged to be tea polyphenols; if the signal within the set radius range with the extreme point as the center has COC stretching vibration, the extreme point is judged to be catechins; according to the category of each extreme point, the amplitude of the extreme point is calculated and compared with the preset standard amplitude range corresponding to the extreme point of each category; if it is within the standard amplitude range, it is judged that the content of the corresponding component in the tea meets the standard; otherwise, it is judged that the content of the corresponding component in the tea is abnormal, and the first judgment result is obtained.
[0018] Further, according to the infrared spectrum signal, the method for determining whether the content of the second mass component in the tea leaves is abnormal and obtaining the second judgment result includes: selecting a wave number of The characteristic peak corresponding to the stretching vibration peak is taken as the amino acid characteristic peak or protein characteristic peak; the wave number is selected as The OH stretching vibration peak is taken as the moisture characteristic peak; for the amino acid characteristic peak or the protein characteristic peak, if it is in the amide II band, it is determined to be an amino acid characteristic peak, otherwise, it is determined to be a protein characteristic peak; the peak value of each characteristic peak is compared with the preset standard peak range corresponding to each characteristic peak, if it is within the standard peak range, it is determined that the content of the corresponding component in the tea meets the standard, otherwise, it is determined that the content of the corresponding component in the tea is abnormal, and the second judgment result is obtained.
[0019] Furthermore, the method for determining whether the appearance of the tea leaves is abnormal based on the visible spectrum signal to obtain a third judgment result includes: obtaining the transmittance and refractive index of the visible spectrum signal based on the visible spectrum signal; if the transmittance and refractive index are both within their respective corresponding set standard value ranges, then the transparency and clarity of the tea leaves are determined to meet the standards; otherwise, then the transparency and clarity of the tea leaves are determined to be abnormal, and the third judgment result is obtained.
[0020] Furthermore, the tea quality judgment part judges the tea quality according to the first judgment result, the second judgment result and the third judgment result, and the method for obtaining the tea quality detection result includes: if the first judgment result, the second judgment result and the third judgment result all meet the standards, the tea quality is judged to be excellent; if any one of the first judgment result, the second judgment result or the third judgment result is abnormal, the tea quality is judged to be good; if any two or more of the first judgment result, the second judgment result or the third judgment result are abnormal, the tea quality is judged to be poor.
[0021] The tea quality detection device and method based on spectral imaging of the present invention have the following beneficial effects: first, the present invention adopts spectral imaging technology to obtain the spectral image of tea, thereby realizing a comprehensive evaluation of tea quality. Traditional tea quality detection methods are often limited to the analysis of specific components or indicators, and cannot comprehensively consider multiple aspects of tea. The present invention uses the spectral image acquisition part to simultaneously obtain multiple spectral signals such as Raman spectrum, infrared spectrum and visible spectrum of tea, thereby realizing a comprehensive and multi-dimensional evaluation of tea quality, making the evaluation result more comprehensive and accurate. Secondly, the present invention uses the spectral extraction part to extract and process the tea spectral image, thereby further improving the accuracy and reliability of quality evaluation. The spectral extraction part can not only eliminate the scattered signal and background noise of the spectral image, but also identify the characteristic peaks in the spectrum, and extract multiple signals such as Raman spectrum, infrared spectrum and visible spectrum based on this. This signal extraction and processing process can effectively reduce external interference, improve the quality of the signal, and provide reliable data support for subsequent quality analysis and judgment. In addition, the present invention also uses the spectral analysis part to use corresponding analysis methods for quality evaluation for different spectral signals, thereby further improving the accuracy and reliability of the evaluation. The spectral analysis part analyzes the chemical composition, moisture content and appearance quality of tea leaves based on Raman, infrared and visible spectrum signals, thus achieving a comprehensive and multi-faceted evaluation of tea quality. This analysis method can make full use of the characteristics of different spectral signals and provide a more scientific and reliable basis for quality evaluation. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A schematic diagram of the structure of a tea quality detection device and method based on spectral imaging provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0023] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0024] Example 1: Reference Figure 1A tea quality detection device based on spectral imaging, the device comprises: a spectral image acquisition part, a spectral extraction part, a spectral analysis part and a tea quality judgment part; the spectral image acquisition part is used to acquire a spectral image of tea leaves; the spectral extraction part is used to extract Raman spectral signals, infrared spectral signals and visible spectral signals from the spectral image respectively; the spectral analysis part is used to determine whether the content of a first mass component in the tea leaves is abnormal according to the Raman spectral signal, and obtain a first judgment result; determine whether the content of a second mass component in the tea leaves is abnormal according to the infrared spectral signal, and obtain a second judgment result; determine whether the appearance of the tea leaves is abnormal according to the visible spectral signal, and obtain a third judgment result; the tea quality judgment part is used to judge the quality of the tea leaves according to the first judgment result, the second judgment result and the third judgment result, and obtain a tea quality detection result.
[0025] Specifically, the spectral image acquisition part uses optical imaging technology to illuminate and image the tea leaves through a specific light source and optical system. When the light source irradiates the surface of the tea leaves, part of the light is reflected, scattered or absorbed by the surface of the tea leaves. These reflected, scattered or absorbed lights carry characteristic information of the tea leaves, such as chemical composition, structural characteristics, etc. The optical system collects these lights and converts them into images through optical imaging technology. In the optical imaging process, the spectral image acquisition part uses a variety of optical elements, such as lenses, gratings, filters, etc., to achieve separation and imaging of light of different wavelengths. By adjusting the parameters of the optical elements, the spectral images of the tea leaves under different wavelengths can be selectively obtained, thereby obtaining multi-spectral information of the tea leaves. The role of the spectral image acquisition part is not only to obtain the spectral image of the tea leaves, but more importantly, to provide basic data for subsequent spectral analysis. The spectral image of the tea leaves is the basis of spectral analysis. It contains the reflection or absorption characteristics of the tea leaves under different wavelengths of light and is an important basis for analyzing the quality of the tea leaves. By processing and analyzing the spectral image of the tea leaves, the spectral signals of the tea leaves, such as Raman spectral signals, infrared spectral signals and visible spectral signals, can be extracted, and then the quality of the tea leaves can be evaluated and judged.
[0026] The spectrum extraction part uses digital signal processing technology and spectrum analysis algorithm to process and analyze the acquired tea spectrum image, and extracts the spectrum signals in different wavelength ranges. Specifically, the spectrum extraction part first preprocesses the tea spectrum image, including denoising, background correction and other operations to improve the quality and accuracy of the spectrum signal. Then, the target spectrum signal in the spectrum image is separated and extracted from the stray light signal by using technical means such as digital filters and optical filters. In the spectrum extraction process, according to the needs of tea quality detection, the spectrum extraction part can selectively extract the spectrum information in different wavelength ranges such as Raman spectrum signal, infrared spectrum signal and visible spectrum signal. Raman spectrum signal mainly reflects the molecular vibration information in tea, which can be used to analyze the chemical composition of tea; infrared spectrum signal mainly reflects the molecular bond vibration information in tea, which can be used to analyze the structural characteristics of tea; visible spectrum signal mainly reflects the absorption and reflection characteristics of tea in the visible light range, which can be used to analyze the appearance characteristics of tea. The role of the spectrum extraction part is not only to extract the target spectrum signal in the tea spectrum image, but more importantly, it provides an effective data basis for subsequent spectrum analysis and tea quality assessment. The extracted spectral signal contains the characteristic information of tea leaves under different wavelengths of light, which can intuitively reflect the chemical composition, structural characteristics and appearance characteristics of tea leaves, providing an important basis for the accurate evaluation and judgment of tea quality.
[0027] The spectral analysis part uses the principle of optical spectroscopy and chemical analysis technology to deeply analyze and process different spectral signals extracted from the spectral image. According to the needs of tea quality detection, the spectral analysis part can selectively analyze the spectral information in different wavelength ranges such as Raman spectral signals, infrared spectral signals and visible spectral signals. In the process of spectral analysis, different analysis methods and techniques can be used for different spectral signals. For example, for Raman spectral signals, Raman spectroscopy technology can be used for analysis, and the chemical composition and content of tea can be determined by comparing the tea spectrum with the spectral information in the standard library; for infrared spectral signals, infrared spectroscopy technology can be used for analysis, and the structural characteristics and molecular composition of tea can be inferred by measuring the absorption peak position and intensity at different wave numbers; for visible spectral signals, spectral analysis technology can be used for analysis, and the appearance characteristics and quality of tea can be judged by analyzing the shape and characteristics of the spectral curve. The role of the spectral analysis part is to convert the spectral signals extracted from the spectral image into useful information, and to comprehensively evaluate and judge the quality of tea. Through spectral analysis, various chemical components and structural characteristics in tea can be obtained, the quality of tea can be understood, and an important basis for the accurate evaluation of tea quality can be provided.
[0028] The tea quality judgment part comprehensively analyzes and processes the tea quality information obtained by spectral analysis, and judges the quality of tea according to the pre-set quality evaluation standards and algorithms. It mainly includes the following judgment contents: First quality component judgment: Analyze the content of the first quality component in tea according to the Raman spectrum signal, such as tea polyphenols, caffeine, etc. By comparing with the preset tea quality standard, judge whether the content of the first quality component in tea meets the quality requirements, and thus obtain the first judgment result. Second quality component judgment: Analyze the content of the second quality component in tea according to the infrared spectrum signal, such as amino acids, phenolic substances, etc. Similarly, by comparing with the quality standard, judge whether the content of the second quality component in tea meets the requirements, and obtain the second judgment result. Appearance judgment: Analyze the appearance characteristics of tea, such as color, shape, size, etc. according to the visible spectrum signal, judge whether the appearance of tea meets the quality requirements, and obtain the third judgment result. Comprehensive judgment: According to the first, second, and third judgment results, as well as other relevant information, such as tea origin, processing technology, etc., comprehensively evaluate the overall quality of tea. According to the set evaluation standards and algorithms, the quality of tea is comprehensively evaluated, and the final tea quality test results are given.
[0029] Example 2: The first mass components include: tea polyphenols, catechins and caffeine; the second mass components include: water, protein and amino acids; the appearance quality value includes: tea transparency and tea clarity.
[0030] Specifically, tea polyphenols are one of the important components of tea, and play a key role in the flavor, color and antioxidant properties of tea. Its content directly affects the taste and quality of tea. Catechins are a special phenolic substance in tea, which has health benefits such as antioxidant and anti-inflammatory, and is also one of the important indicators of tea quality. Caffeine is an alkaloid in tea, which has an excitatory effect and has a certain effect on the aroma and taste of tea. Water is an important component of tea, and its content directly affects the degree of drying and preservation of tea. Protein is one of the nutrients in tea, which has a certain effect on the taste and taste of tea. Amino acids are the basic building blocks of protein, and their content reflects the freshness and quality of tea. Tea transparency refers to the clarity and transparency of tea water, which is closely related to the processing technology and quality of tea. The higher the transparency, the better the quality of tea in general. Tea clarity refers to the clarity and dispersion of tea in water, which is related to the shape, size and impurities of tea. Tea with high clarity is generally of better quality.
[0031] Embodiment 3: The spectral image acquisition part comprises: a plurality of identical spectrometers and an image reconstruction device; each spectrometer acquires a spectral image of tea leaves under different angles, lighting conditions and wavelengths; the reconstruction device is used to perform image registration on all the spectral images of tea leaves to ensure that they are aligned in the same coordinate system, and then perform super-resolution reconstruction to synthesize all the spectral images of tea leaves into one spectral image.
[0032] Specifically, a spectrometer is a device for obtaining a spectral image of tea leaves, which can measure the intensity of light of different wavelengths and convert it into a digital signal. The design of using multiple identical spectrometers in Example 3 is to obtain the spectral information of tea leaves from different angles, lighting conditions and wavelengths to increase the diversity and richness of the spectral image of tea leaves. By setting different angles and lighting conditions, each spectrometer can capture different features of the surface of tea leaves, such as reflected light, scattered light, etc., so as to obtain more comprehensive spectral information of tea leaves. The main function of the image reconstruction device is to perform image registration and reconstruction on the spectral images of tea leaves obtained by multiple spectrometers to generate a high-quality synthetic spectral image. Image registration is the process of aligning multiple spectral images in the same coordinate system, and ensuring the positional consistency between them by eliminating the image offset and deformation caused by different angles and lighting conditions. Image reconstruction uses super-resolution reconstruction technology to process the registered tea spectral image to improve the spatial resolution and image quality of the image. This technology can synthesize a high-resolution image from multiple low-resolution images, thereby obtaining a clearer and more detailed tea spectral image.
[0033] First, consider the process of feature matching. Suppose there are two images and , and their feature points are and ,in and are the number of feature points in the two images respectively. The goal of feature matching is to find the optimal correspondence so that the geometric transformation between the two images is minimized. This process can be achieved by maximizing the similarity measure between feature points, for example, using normalized cross-correlation as the similarity measure function:
[0034] ;
[0035] in, and There are two images, and are the feature points in the two images respectively, and is the offset between feature points, and is the average grayscale of the area around the feature point, and is the standard deviation of the area around the feature point. Next, use gradient descent or other optimization algorithms to solve the optimal offset and , to achieve image registration; are the horizontal and vertical coordinates in the image respectively.
[0036] In super-resolution reconstruction, we hope to synthesize a high-resolution image from multiple low-resolution images. This process can be achieved by minimizing the loss function of the image, which can be expressed as:
[0037] ;
[0038] in, is the reconstructed high-resolution image, corresponding to the spectral image; It is A low-resolution image, corresponding to the tea spectrum image, is the number of images, Represents a downsampling operation; and is a regularization parameter used to balance the influence of the data fitting term and the regularization term, and its value range is 0.5 to 0.9. represents the gradient operator, represents the Laplace operator, which is used to represent the first and second order derivatives of the image respectively; is the second-order L2 norm. These terms are added to the loss function to introduce smoothness constraints and protect image details and textures. Gradient descent or other optimization algorithms can be used to minimize the loss function to obtain the optimal reconstruction result. In this process, regularization terms or other prior information can also be added to improve the quality and stability of the reconstruction result.
[0039] Embodiment 4: The spectrum extraction part, the process of respectively extracting Raman spectrum signals, infrared spectrum signals and visible spectrum signals from the spectrum image specifically includes: eliminating the scattered signal of the spectrum image, removing the background noise of the spectrum image, smoothing filtering and baseline correction of the spectrum image; identifying Raman peaks in the spectrum image; deconvolving the spectrum image based on the Raman peaks to obtain Raman spectrum signals from the spectrum image; converting the spectrum image into the frequency domain to obtain a frequency domain spectrum image; extracting the infrared spectrum signal from the frequency domain spectrum image based on the frequency range of the infrared spectrum signal; extracting the visible spectrum signal from the frequency domain spectrum image based on the frequency range of the visible light spectrum signal.
[0040] Specifically, in the spectral image, due to the scattering effect of the sample, a scattering signal that is unrelated to the spectral signal may be generated. In order to accurately extract the target spectral signal, the scattering signal needs to be eliminated or reduced. Common methods include polynomial fitting, wavelet denoising, etc. There may be background noise introduced from factors such as instruments and environment in the spectral image. In order to improve the signal-to-noise ratio, the spectral image needs to be de-noised. De-noising can be performed by methods such as average filtering and median filtering. The signal in the spectral image may be affected by instrument noise or signal drift, so smoothing filtering and baseline correction are required. Smoothing filtering can use methods such as Gaussian filtering and mean filtering to eliminate high-frequency noise. Baseline correction is to adjust the baseline level of the signal to zero. Common methods include polynomial fitting, local linear fitting, etc. The characteristic peak in the Raman spectrum is an important indicator of spectral analysis, so it is necessary to identify the Raman peak in the spectral image. Peak detection algorithms such as Gaussian fitting and threshold method can be used to identify the peak in the spectrum. After identifying the Raman peak, the spectral image needs to be deconvoluted to accurately extract the Raman spectral signal. Deconvolution can be performed using methods such as inverse filtering and least squares. After that, the deconvolved signal is transformed into a frequency domain spectrum image. Based on the frequency range of the infrared spectrum signal and the visible spectrum signal, the corresponding signal can be extracted from the frequency domain spectrum image. Through methods such as frequency domain filtering or frequency domain slicing, the signal within the target frequency range can be selected, and the infrared spectrum signal and the visible spectrum signal can be extracted.
[0041] Embodiment 5: Based on the Raman peak, the spectrum image is deconvoluted, and the method for obtaining the Raman spectrum signal from the spectrum image includes: converting the spectrum image into the frequency domain to obtain the frequency domain spectrum image ; Assume the frequency of each Raman peak is , the intensity is ; The response function of each spectrometer is ; The Raman spectrum signal is calculated by the following formula :
[0042] ;
[0043] in, For location The wave number of the Raman peak at ; is the filter function; is the frequency; is the Dirac function; is the number of Raman peaks.
[0044] Specifically, this formula describes a deconvolution method based on Raman peaks, which is used to extract Raman spectral signals from spectral images. Spectral images usually contain signals at multiple frequencies, which may contain characteristic signals of Raman peaks. However, due to the influence of factors such as instrument response and noise, the signal may be distorted or interfered, which requires the use of deconvolution methods to restore the original Raman spectral signal. represents the spectral image obtained after frequency domain conversion, represents the response function of the spectrometer. We first Divide by This is because the response of the spectrometer will affect the spectral image, and we need to correct it in order to extract the target signal more accurately. Then, the formula is a filter function used to adjust or filter out some frequency components to adapt to the Raman peak in actual conditions. Then, we calculate the frequency of each Raman peak. and strength The sum is then compared to the filter function. This step is to determine the portion of the signal that is associated with the Raman peak. In the deconvolution process, we use the Dirac function To represent the position of each Raman peak. The Dirac function has a peak value at the Raman peak position, and the value is zero at other positions. By superimposing the Dirac function of each Raman peak, we can get the part of the entire signal related to the Raman peak. Finally, the Raman spectrum signal in the spectrum image is extracted through convolution operation, and the Raman spectrum signal is obtained. This signal reflects the relationship between the intensity and frequency of Raman scattered light in the sample, and is an important basis for analyzing and identifying the molecular structure and chemical composition of the sample. The method described by this formula realizes the extraction of Raman spectral signals by frequency domain conversion of spectral images, correction of spectrometer response, filtering and identification of Raman peaks.
[0045] Example 6: Filter function Use the following formula to express it:
[0046] ;
[0047] in, is the noise power spectral density of Gaussian noise, is the power spectral density of the Raman spectrum signal; is the wavelength; is temperature; is the Boltzmann constant; is the speed of light; is Planck's constant.
[0048] Specifically, Raman spectroscopy is essentially to perform spectral analysis on the scattered light from the sample to obtain its chemical composition and structural information. However, in the actual measurement process, it will inevitably be interfered by noise, such as Gaussian noise, background radiation, etc. These noises will mask the Raman spectral signal, reduce the spectral resolution and signal-to-noise ratio, and affect the accuracy of the analysis results. In order to effectively deal with noise, filtering technology is usually used. The basic principle of filtering is to distinguish between signal and noise, retain the signal component, and remove the noise component. The key to the filtering operation is to effectively characterize the signal and noise. In Example 6, and They represent the power spectral density of Raman spectral signal and Gaussian noise respectively. Power spectral density is a function that describes the energy distribution of random signals in the frequency domain, which can reflect the frequency component and intensity of the signal. By analyzing the power spectral density of signals and noise, we can understand their frequency distribution characteristics and provide a basis for subsequent filter design. The core of the formula is to calculate the ratio of the power spectral density of the signal to the power spectral density of the noise. This ratio reflects the intensity of the signal relative to the noise at a specific frequency. By analyzing this ratio, signal enhancement and noise suppression can be achieved. When the power spectral density of the signal is much larger than the power spectral density of the noise, the ratio value is larger, indicating that the intensity of the signal at this frequency is significantly higher than the noise. At this time, the frequency component can be retained to enhance the signal. On the contrary, when the power spectral density of the noise is much larger than the power spectral density of the signal, the ratio value is smaller, indicating that the intensity of the noise at this frequency is significantly higher than the signal. At this time, the frequency component can be removed to suppress the noise. In addition to Gaussian noise, background radiation is also an important factor affecting Raman spectroscopy analysis. Background radiation refers to all other light other than Raman scattered light, including light from the light source, fluorescence of the sample itself, and other scattered light. These background radiations will reduce the contrast of the Raman spectral signal and affect the clarity of the spectrum. In order to eliminate the influence of background radiation, Example 6 introduces This term represents the power spectral density of the background radiation, which is determined by wavelength, temperature, Boltzmann constant, speed of light and Planck constant. By adding the power spectral density of the background radiation to the filter function, the interference caused by the background radiation can be effectively corrected, further improving the clarity of the Raman spectrum.
[0049] Embodiment 7: According to the Raman spectrum signal, determining whether the content of the first mass component in the tea leaves is abnormal, the method for obtaining the first judgment result includes: calculating the signal extreme value of the Raman spectrum signal to obtain the Raman extreme value point; judging the type of the extreme value point according to the wave number and vibration mode of each extreme value point, specifically including: if the wave number of the extreme value point is If the wave number of the extreme point is within If the extreme point is within the range of , the extreme point is judged to be the extreme point corresponding to caffeine; for the extreme points corresponding to tea polyphenols and catechins, if the signal within the set radius range with the extreme point as the center has CO stretching vibration, the extreme point is judged to be tea polyphenols; if the signal within the set radius range with the extreme point as the center has COC stretching vibration, the extreme point is judged to be catechins; according to the category of each extreme point, the amplitude of the extreme point is calculated and compared with the preset standard amplitude range corresponding to the extreme point of each category; if it is within the standard amplitude range, it is judged that the content of the corresponding component in the tea meets the standard; otherwise, it is judged that the content of the corresponding component in the tea is abnormal, and the first judgment result is obtained.
[0050] Specifically, the first step of the method is to calculate the signal extremes of the Raman spectral signal. These extreme points usually correspond to specific vibration modes in the spectrum, such as the stretching or bending of chemical bonds. Next, for each extreme point, it is classified according to its wave number range. If the wave number of the extreme point is between If it is within , it is judged as the extreme point corresponding to tea polyphenols and catechins; The extreme points within the range are judged as the extreme points corresponding to caffeine. Such classification is based on the known Raman spectral features and the wavenumber range of common components in tea. Then, for the extreme points corresponding to tea polyphenols and catechins, they are further classified according to the vibration modes existing in their wavenumber range. For example, if there is CO stretching vibration within the radius set with the extreme point as the center, it is judged to be tea polyphenols; if there is COC stretching vibration, it is judged to be catechins. Such classification is based on the chemical structure and spectral characteristics of these components. Finally, for each extreme point, its amplitude is calculated and compared with the preset standard amplitude range. If the amplitude of the extreme point is within the standard range, it is judged that the content of the corresponding component in the tea meets the standard; otherwise, it is judged that the content of the component is abnormal. The principle of this method is based on the characteristics of Raman spectroscopy technology and the spectral characteristics of tea components. By analyzing the extreme points in the Raman spectral signal, combined with its wavenumber, vibration mode and amplitude, it is judged whether the content of each component in the tea meets the standard. Compared with traditional chemical analysis methods, this spectral-based method has very high sensitivity and selectivity, can quickly and accurately analyze components, and does not require sample pretreatment, which is very valuable for tea quality assessment. Therefore, this method has broad application prospects in tea quality monitoring and quality assessment.
[0051] Embodiment 8: According to the infrared spectrum signal, the method for determining whether the content of the second mass component in the tea leaves is abnormal, and obtaining the second judgment result comprises: selecting the wave number of the infrared spectrum signal The characteristic peak corresponding to the stretching vibration peak is taken as the amino acid characteristic peak or protein characteristic peak; the wave number is selected as The OH stretching vibration peak is taken as the moisture characteristic peak; for the amino acid characteristic peak or the protein characteristic peak, if it is in the amide II band, it is determined to be an amino acid characteristic peak, otherwise, it is determined to be a protein characteristic peak; the peak value of each characteristic peak is compared with the preset standard peak range corresponding to each characteristic peak, if it is within the standard peak range, it is determined that the content of the corresponding component in the tea meets the standard, otherwise, it is determined that the content of the corresponding component in the tea is abnormal, and the second judgment result is obtained.
[0052] Embodiment 9: Judging whether the appearance of tea leaves is abnormal according to the visible spectrum signal, the method for obtaining a third judgment result includes: obtaining the transmittance and refractive index of the visible spectrum signal according to the visible spectrum signal; if the transmittance and refractive index are both within their respective corresponding set standard value ranges, then judging that the transparency and clarity of the tea leaves meet the standards; otherwise, judging that the transparency and clarity of the tea leaves are abnormal, and obtaining the third judgment result.
[0053] Specifically, first of all, the first step of the method is to calculate the transmittance and refractive index of tea leaves based on the visible spectrum signal. The visible spectrum signal is the absorption and transmission of tea leaves in the visible light band. The transmittance and refractive index are important parameters for measuring the propagation and reflection of light in a substance. Next, for each tea sample, its transmittance and refractive index are compared with the preset standard value range. If the transmittance and refractive index are both within their respective corresponding standard value ranges, the transparency and clarity of the tea leaves are judged to meet the standards; otherwise, the transparency and clarity of the tea leaves are judged to be abnormal. The principle of this method is based on the characteristics of the visible spectrum signal. The transmittance and refractive index reflect the propagation and reflection of light in the tea leaves, and then reflect the transparency and clarity of the tea leaves. By comparing the transmittance and refractive index with the standard value range, it is possible to quickly and accurately judge whether the appearance of the tea leaves meets the standards. This method does not require complex experimental operations, and can be implemented using simple equipment such as a spectrometer. It has the advantages of simple operation and low cost. Therefore, it has broad application prospects in tea quality monitoring and quality evaluation.
[0054] Embodiment 10: The tea quality judgment part judges the tea quality according to the first judgment result, the second judgment result and the third judgment result, and the method for obtaining the tea quality detection result includes: if the first judgment result, the second judgment result and the third judgment result all meet the standards, the tea quality is judged to be excellent; if any one of the first judgment result, the second judgment result or the third judgment result is abnormal, the tea quality is judged to be good; if any two or more of the first judgment result, the second judgment result or the third judgment result are abnormal, the tea quality is judged to be poor.
[0055] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A tea quality detection device based on spectral imaging, characterized in that: The device comprises: a spectral image acquisition part, a spectral extraction part, a spectral analysis part and a tea quality judgment part; the spectral image acquisition part is used to acquire a spectral image of tea leaves; the spectral extraction part is used to extract Raman spectral signals, infrared spectral signals and visible spectral signals from the spectral image respectively; the spectral analysis part is used to determine whether the content of a first mass component in the tea leaves is abnormal according to the Raman spectral signal, and obtain a first judgment result; determine whether the content of a second mass component in the tea leaves is abnormal according to the infrared spectral signal, and obtain a second judgment result; determine whether the appearance of the tea leaves is abnormal according to the visible spectral signal, and obtain a third judgment result; the tea quality judgment part is used to determine the quality of the tea leaves according to the first judgment result, the second judgment result and the third judgment result, and obtain a tea quality detection result; The first quality components include: tea polyphenols, catechins and caffeine; the second quality components include: water, protein and amino acids; the appearance quality value includes: tea transparency and tea clarity; the spectral image acquisition part includes: a plurality of identical spectrometers and an image reconstruction device; each spectrometer acquires a tea spectral image under different angles, lighting conditions and wavelengths; the reconstruction device is used to perform image registration on all tea spectral images to ensure that they are aligned in the same coordinate system, and then perform super-resolution reconstruction to synthesize all tea spectral images into one spectral image; The spectrum extraction part, the process of extracting Raman spectrum signal, infrared spectrum signal and visible spectrum signal from the spectrum image respectively, specifically includes: eliminating the scattered signal of the spectrum image, removing the background noise of the spectrum image, smoothing and filtering the spectrum image and correcting the baseline; identifying the Raman peak in the spectrum image; based on the Raman peak, deconvoluting the spectrum image to obtain the Raman spectrum signal in the spectrum image; converting the spectrum image into the frequency domain to obtain the frequency domain spectrum image; based on the frequency range of the infrared spectrum signal, extracting the infrared spectrum signal from the frequency domain spectrum image; based on the frequency range of the visible light spectrum signal, extracting the visible spectrum signal from the frequency domain spectrum image; Based on the Raman peak, the spectrum image is deconvoluted, and the method for obtaining the Raman spectrum signal from the spectrum image includes: converting the spectrum image into the frequency domain to obtain the frequency domain spectrum image ; Assume the frequency of each Raman peak is , the intensity is ; The response function of each spectrometer is ; The Raman spectrum signal is calculated by the following formula : ; in, For location The wave number of the Raman peak at ; is the filter function; is the frequency; is the Dirac function; is the number of Raman peaks.
2. The tea quality detection device based on spectral imaging according to claim 1, characterized in that: Filter function Use the following formula to express it: ; in, is the noise power spectral density of Gaussian noise, is the power spectral density of the Raman spectrum signal; is the wavelength; is temperature; is the Boltzmann constant; is the speed of light; is Planck's constant.
3. The tea quality detection device based on spectral imaging according to claim 1, characterized in that: The method for determining whether the content of the first mass component in the tea leaves is abnormal according to the Raman spectrum signal and obtaining the first judgment result includes: calculating the signal extreme value of the Raman spectrum signal to obtain the Raman extreme value point; judging the category of the extreme value point according to the wave number and vibration mode of each extreme value point, specifically including: if the wave number of the extreme value point is If the wave number of the extreme point is within If the extreme point is within the range of , the extreme point is judged to be the extreme point corresponding to caffeine; for the extreme points corresponding to tea polyphenols and catechins, if the signal within the set radius range with the extreme point as the center has CO stretching vibration, the extreme point is judged to be tea polyphenols; if the signal within the set radius range with the extreme point as the center has COC stretching vibration, the extreme point is judged to be catechins; according to the category of each extreme point, the amplitude of the extreme point is calculated and compared with the preset standard amplitude range corresponding to the extreme point of each category; if it is within the standard amplitude range, it is judged that the content of the corresponding component in the tea meets the standard; otherwise, it is judged that the content of the corresponding component in the tea is abnormal, and the first judgment result is obtained.
4. The tea quality detection device based on spectral imaging according to claim 3, characterized in that: The method of determining whether the content of the second mass component in the tea leaves is abnormal according to the infrared spectrum signal to obtain the second judgment result includes: selecting the wave number of The characteristic peak corresponding to the stretching vibration peak is taken as the amino acid characteristic peak or protein characteristic peak; the wave number is selected as The OH stretching vibration peak is taken as the moisture characteristic peak; for the amino acid characteristic peak or the protein characteristic peak, if it is in the amide II band, it is determined to be an amino acid characteristic peak, otherwise, it is determined to be a protein characteristic peak; the peak value of each characteristic peak is compared with the preset standard peak range corresponding to each characteristic peak, if it is within the standard peak range, it is determined that the content of the corresponding component in the tea meets the standard, otherwise, it is determined that the content of the corresponding component in the tea is abnormal, and the second judgment result is obtained.
5. The tea quality detection device based on spectral imaging according to claim 4, characterized in that: The method of determining whether the appearance of the tea leaves is abnormal based on the visible spectrum signal and obtaining a third judgment result includes: obtaining the transmittance and refractive index of the visible spectrum signal based on the visible spectrum signal; if the transmittance and refractive index are both within their respective corresponding set standard value ranges, then determining that the transparency and clarity of the tea leaves meet the standards; otherwise, determining that the transparency and clarity of the tea leaves are abnormal, and obtaining the third judgment result.
6. The tea quality detection device based on spectral imaging according to claim 5, characterized in that: The tea quality judgment part judges the tea quality according to the first judgment result, the second judgment result and the third judgment result, and the method for obtaining the tea quality detection result includes: if the first judgment result, the second judgment result and the third judgment result all meet the standards, the tea quality is judged to be excellent; if any one of the first judgment result, the second judgment result or the third judgment result is abnormal, the tea quality is judged to be good; if any two or more of the first judgment result, the second judgment result or the third judgment result are abnormal, the tea quality is judged to be poor.
