Flue-cured tobacco quality availability discrimination method and device based on chemical components and improved kernel function
Through the quasi-polynomial kernel function and the kernel Fisher discrimination method, the chemical components of tobacco leaves are used for non-linear feature extraction, which solves the non-linear factors and subjectivity problems in tobacco leaf quality discrimination in the existing technology, and achieves rapid, objective and accurate characterization of tobacco leaf quality. and level identification.
Patent Information
- Application Number
- CN202410621128.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-16
- Publication Date
- 2024-09-03
AI Technical Summary
The existing technology has not fully reflected the non-linear factors in the judgment of tobacco leaf quality and usability. The spectral data cannot reflect the correlation between chemical components and aroma style, and relies on human sensory data and experience settings, which results in subjective bias.
A quasi-polynomial kernel function was used to map the data of 70 chemical components of tobacco leaves into a high-dimensional space, and a tobacco leaf quality availability discrimination model was constructed using the kernel Fisher discriminant method. The chemical components were used for nonlinear feature extraction and classification to get rid of the subjectivity of sensory evaluation.
It achieves rapid, objective, robust and accurate characterization of tobacco leaf quality availability, accurately identifies different grades of tobacco leaf quality, provides a clear basis for tobacco leaf material, and lays a digital design foundation for the tobacco leaf group formula and threshing and re-bake module formula.
Smart Images

Figure CN118588200A
Abstract
Description
Technical Field
[0001] The invention relates to the field of digital representation of tobacco leaf quality availability, and in particular to a method and device for distinguishing flue-cured tobacco quality availability based on chemical composition and improved kernel function. Background Art
[0002] Tobacco leaf raw materials are the first workshop in cigarette production. The quality availability of tobacco leaves is one of the decisive indicators of tobacco leaves, and it is the key and focus of the digital design of tobacco leaf group formula. In the past, the quality availability of tobacco leaves was determined by manual evaluation, and the efficiency of data acquisition was low, and there were many factors affecting data quality. With the rapid development of my country's economy and society, compared with the last century, China's tobacco production layout and planting technology have undergone tremendous changes at this stage, and industrial enterprises have changed from extensive to refined use of tobacco leaf raw materials. The previous method of manual evaluation was difficult to meet current industrial needs in terms of timeliness and accuracy.
[0003] At present, there are data-based identification of tobacco leaf quality grades. For example, Song Xiangzhong et al. used near-infrared spectroscopy combined with LSTSVM algorithm to distinguish tobacco leaves of different grades. Tang Guo et al. used near-infrared spectroscopy combined with PLS-DA to classify tobacco leaf grades. Patent application number 202210611757.9 discloses a technical solution that uses three indicators, namely tobacco leaf maturity, organizational structure and identity, to determine the availability of upper tobacco leaves. The above-mentioned related studies all quantified the flue-cured tobacco quality availability evaluation process based on data, reducing the influence of subjective factors such as personnel preferences and experience on the final evaluation results.
[0004] However, the following problems still exist: (1) There are nonlinear factors in the quality availability of flue-cured tobacco leaves. Some studies only use linear discriminant methods to characterize the style, which is not accurate enough and does not reflect the nonlinear factors in objective reality; (2) Some studies only use spectral data, which cannot reflect the correlation between constant and semi-trace chemical components and the aroma style characteristics of flue-cured tobacco; (3) The data of some studies still include subjective data based on human senses, and the setting of the rules for allocating weights and assigning points depends on experience, which is prone to deviations.
[0005] In order to solve the above problems, people have been seeking an ideal technical solution. Summary of the invention
[0006] The object of the present invention is to address the deficiencies of the prior art and thus provide a method and device for judging the quality availability of flue-cured tobacco based on chemical composition and improved kernel function.
[0007] In order to achieve the above object, the technical solution adopted by the present invention is:
[0008] A first aspect provides a method for determining the quality availability of flue-cured tobacco based on chemical composition and an improved kernel function, comprising the following steps:
[0009] Tobacco leaf samples of different quality availability were obtained as modeling data sets, and 70 constant and semi-micro chemical component data of each tobacco leaf sample were obtained, and each chemical component data was standardized;
[0010] Using the polynomial kernel function f(x 1 ,x 2 )=(a*x 1 *x 2 T +b) c The chemical composition data of each tobacco leaf sample after standardization in the modeling data set is mapped to a high-dimensional space to obtain high-dimensional sample data of each tobacco leaf sample; where x 1 is the chemical composition data of the tobacco leaves to be identified after standardization, x 2 is the chemical composition data of the i-th tobacco leaf sample after standardization in the modeling data set, i = 1, 2, .... N, N is the number of tobacco leaf samples in the modeling data set; a and b are the weights for adjusting the inner product term and the constant term, respectively, and c is an arbitrary positive number;
[0011] A tobacco leaf quality availability discrimination model based on kernel Fisher discriminant was constructed. Tobacco leaves with different quality availability in the modeling data set were used as the initial classification results of the tobacco leaf quality availability discrimination model. The high-dimensional sample data of all tobacco leaf samples were used as sample data to train and solve the tobacco leaf quality availability discrimination model. The discriminant function of the tobacco leaf quality availability discrimination model and the centroid values of each quality availability were obtained.
[0012] The data of 70 constant and semi-trace chemical components of tobacco leaves to be identified were obtained, and then central normalization was performed in turn, and a polynomial kernel function f(x 1 ,x 2 )=(a*x 1 *x 2 T +b) c Perform high-dimensional mapping processing to obtain high-dimensional sample data of tobacco leaves to be identified;
[0013] After substituting the high-dimensional sample data of tobacco leaves to be identified into the tobacco leaf quality availability discrimination model, the discriminant function value is obtained, and the Mahalanobis distance between the discriminant function value and the centroid of each quality availability is calculated. The quality availability corresponding to the minimum Mahalanobis distance is the target tobacco leaf quality availability.
[0014] In a possible design, after obtaining the target tobacco leaf quality availability, the standard deviation of the discriminant function value from the centroid of the target tobacco leaf quality availability is calculated, and the target tobacco leaf quality availability is segmented based on the standard deviation:
[0015] If the standard deviation is <1, the tobacco leaves to be identified are judged to be typical samples of the quality availability of the target tobacco leaves; if 1<=standard deviation<2, the tobacco leaves to be identified are judged to be sub-typical samples of the quality availability of the target tobacco leaves; if the standard deviation is >=2, the tobacco leaves to be identified are judged to be atypical samples of the quality availability of the target tobacco leaves.
[0016] The second aspect of the present invention provides a device for judging the quality availability of flue-cured tobacco based on chemical composition and improved kernel function, comprising:
[0017] Modeling dataset, including tobacco leaf samples of different quality availability;
[0018] A module for obtaining tobacco leaves to be identified, used for obtaining tobacco leaves to be identified;
[0019] Tobacco chemical component acquisition module, used to obtain 70 constant and semi-trace chemical component data of each tobacco leaf sample and tobacco leaf to be identified;
[0020] A standardization processing module is used to standardize the content data of each chemical component;
[0021] High-dimensional mapping module, used to use polynomial-like kernel function f(x 1 ,x 2 )=(a*x 1 *x 2 T +b) c The chemical composition data of each tobacco leaf sample after standardization in the modeling data set is mapped to a high-dimensional space to obtain high-dimensional sample data of each tobacco leaf sample; and the polynomial kernel function f(x 1 ,x 2 )=(a*x 1 *x 2 T +b) c The chemical composition data of the tobacco leaves to be identified after the standardization process is subjected to high-dimensional mapping to obtain high-dimensional sample data of the tobacco leaves to be identified; where x 1 is the chemical composition data of the tobacco leaves to be identified after standardization, x 2 is the chemical composition data of the i-th tobacco leaf sample after standardization in the modeling data set, i = 1, 2, .... N, N is the number of tobacco leaf samples in the modeling data set; a and b are the weights for adjusting the inner product term and the constant term, respectively, and c is an arbitrary positive number;
[0022] The quality availability discrimination model building module is used to build a tobacco leaf quality availability discrimination model based on kernel Fisher discriminant, take tobacco leaves of different quality availability in the modeling data set as the initial classification results of the tobacco leaf quality availability discrimination model, take the high-dimensional sample data of all tobacco leaf samples as sample data to train and solve the tobacco leaf quality availability discrimination model, and obtain the discriminant function of the tobacco leaf quality availability discrimination model and the centroid value of each quality availability;
[0023] The discrimination module is used to call the tobacco leaf quality availability discrimination model to process the high-dimensional sample data of the tobacco leaves to be discriminated after obtaining the high-dimensional sample data of the tobacco leaves to be discriminated, obtain the discriminant function value, and calculate the Mahalanobis distance between the discriminant function value and the centroid of each quality availability. The quality availability corresponding to the minimum Mahalanobis distance is the target tobacco leaf quality availability.
[0024] A third aspect provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the aforementioned flue-cured tobacco quality availability determination method.
[0025] A fourth aspect provides a computer device, comprising: a memory and a processor,
[0026] The memory stores a computer program;
[0027] The processor is used to execute the computer program stored in the memory, and when the computer program is running, the processor executes the aforementioned method for determining the quality availability of flue-cured tobacco.
[0028] The present invention has outstanding substantial features and significant progress compared with the prior art. Specifically, the present invention obtains 70 chemical components in tobacco leaves, and based on these chemical components, converts samples into high-dimensional space through a polynomial-like kernel function, and adopts a kernel Fisher classification and discrimination modeling method to construct a tobacco leaf quality availability discrimination model based on chemical components to identify tobacco leaf quality availability, which can get rid of the previous subjective method of judging tobacco leaf quality availability through sensory evaluation; tobacco leaf quality availability is classified based on tobacco leaf chemical components that are correlated with tobacco leaf trace aroma components, which can fully utilize the relationship between tobacco leaf quality availability and tobacco leaf trace aroma components, thereby making the tobacco material basis of different tobacco leaf quality availability clear; because the kernel Fisher classification and discrimination takes nonlinear factors into consideration, it is more suitable for extracting nonlinear features of different tobacco leaf quality availability than linear classification methods, and these nonlinear features are more conducive to the identification and classification of tobacco leaf quality availability, so the accuracy of tobacco leaf quality availability characterization is higher, and the rapid, objective, robust and accurate characterization of tobacco leaf quality availability is truly realized.
[0029] On this basis, the present invention further subdivides and digitally assigns values to the quality availability of flue-cured tobacco according to the standard deviation of each tobacco leaf from the centroid of each type of quality availability, thereby achieving quantitative characterization of the quality availability of typical and subtype tobacco leaves of different grades, laying a solid foundation for the subsequent digital design of tobacco leaf group formulas and leaf beating and re-roasting module formulas. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 It is a flow chart of a method for distinguishing the quality availability of flue-cured tobacco based on chemical composition and improved kernel function in Example 1 of the present invention.
[0031] Figure 2 It is a flow chart of a method for distinguishing the quality availability of flue-cured tobacco based on chemical composition and improved kernel function according to Example 2 of the present invention.
[0032] Figure 3 1 is a schematic diagram of the principle of a device for distinguishing the quality availability of flue-cured tobacco based on chemical composition and improved kernel function according to Example 7 of the present invention. DETAILED DESCRIPTION
[0033] The quality availability of flue-cured tobacco leaves is generally divided into three levels: good, medium, and poor. Different grades of flue-cured tobacco have different uses. For example, good grade flue-cured tobacco is suitable for making high-end cigarettes; medium grade flue-cured tobacco is suitable for making mid-range cigarettes; poor grade flue-cured tobacco is suitable for making ordinary cigarettes or making tobacco or non-tobacco products. Therefore, it is necessary to identify the quality availability of flue-cured tobacco leaves, so as to lay the foundation for the subsequent tobacco leaf group formula and leaf beating and redrying module formula.
[0034] The basic idea of the present invention is that constant and semi-trace chemical components can truly reflect the aroma style characteristics of different flue-cured tobacco qualities; the data set containing constant and semi-trace chemical components has the characteristics of small sample and nonlinearity, while the possible nonlinear range of the kernel Fisher discriminant method is very wide, and different kernels allow high flexibility. Therefore, the present invention identifies the quality availability of flue-cured tobacco leaves in the data set containing constant and semi-trace chemical components based on the kernel Fisher discriminant method. Since the quality availability of tobacco leaves is affected by many factors, the relationship between some indicators and quality is complex, and there may be synergistic or inhibitory effects between different indicators, the linear method is not enough to describe the objective laws affecting the quality availability of tobacco leaves, so the polynomial kernel function of the nonlinear method is used, and the polynomial kernel function is improved to obtain a robust model and improve the accuracy of characterizing the quality availability of tobacco leaves.
[0035] The technical solution of the present invention is further described in detail below through specific implementation methods.
[0036] Example 1
[0037] This embodiment provides a method for distinguishing the quality availability of flue-cured tobacco based on chemical composition and improved kernel function. Figure 1 As shown, the following steps are included:
[0038] Step 1: Obtain tobacco leaf samples of different quality availability as modeling data sets, and obtain 70 major and semi-trace chemical component data for each tobacco leaf sample.
[0039] Preferably, in this embodiment, 115 tobacco leaves of three quality availability, namely good, medium and poor, are collected, among which 41 tobacco leaf samples of good grade, 65 tobacco leaf samples of medium grade and 9 tobacco leaf samples of poor grade are collected.
[0040] In a possible example, the steps of obtaining 70 kinds of constant and semi-trace chemical component data for each tobacco leaf sample include: controlling the moisture content of all tobacco leaf samples to 6-8%, crushing them to 60-80 mesh using a pulverizer, and performing near-infrared spectral scanning on all tobacco leaf samples; then using a tobacco chemical component prediction method and device based on spectral conversion provided by 202210751386.4 to obtain 70 kinds of constant chemical component data and semi-trace chemical component data for each tobacco leaf sample.
[0041] It should be noted that the chemical composition of tobacco is an intrinsic factor that determines the quality of tobacco. Chemical analysis methods are usually used to test these chemical components, such as continuous flow method, ion chromatography, ICP-MS method, amino acid analyzer method, liquid chromatography tandem mass spectrometry, weight method, high performance liquid chromatography and gas chromatography, etc. These chemical analysis methods are time-consuming, the types of chemical components that can be detected are limited, and non-destructive testing cannot be achieved.
[0042] As a fast and non-destructive detection technology for multiple chemical component indicators, near infrared spectroscopy mainly uses the vibration of chemical bonds such as CH, NH, OH, CC contained in organic matter to detect a variety of tobacco chemical components, such as total alkaloids, water-soluble reducing sugars, total sugars, total nitrogen, potassium, chlorine, some polyphenols, some organic acids, etc. However, since different near infrared prediction models need to be established for different chemical components, there is no near infrared spectroscopy prediction model that can simultaneously determine 69 or more types of chemical components in tobacco until 2022.
[0043] The applicant of the present application has established a prediction model for the chemical components in tobacco leaves based on near-infrared spectroscopy in recent years ((1) ACS Omega 2022, 7, 43, 38650-38659; (2) A method and device for predicting tobacco chemical components based on spectral conversion, 202210751386.4; (3) Microchemical Journal 2023, 189, 108522.), pre-acquired the near-infrared spectra of tobacco samples with different moisture contents, selected one of the tobacco samples with moisture contents as the standard moisture content tobacco sample, and calculated the correction parameters when converting the near-infrared spectra of tobacco samples with other moisture contents to the standard moisture content, thereby obtaining the corresponding relationship between different moisture contents and the correction parameters. In the actual scenario, the actual moisture content and the first near-infrared spectrum of the tobacco to be tested are obtained, and the corresponding correction parameters are extracted from the pre-acquired corresponding relationship according to the actual moisture content. The first near-infrared spectrum at the actual moisture content is converted into the second near-infrared spectrum at the standard moisture content by the correction parameters. The second near-infrared spectrum is input into the pre-established near-infrared prediction model to output the content of chemical components in the tobacco to be tested. In this way, there is no need to establish a near-infrared prediction model corresponding to the actual moisture content in real time in the laboratory, and rapid measurements can be made in actual scenes, thereby improving work efficiency; at the same time, there is no need to establish multiple near-infrared prediction models corresponding to different moisture contents in advance, which reduces the amount of modeling tasks and costs, thus laying the foundation for the present application of a flue-cured tobacco style discrimination method based on 70 chemical components.
[0044] In the specific implementation, the chemical components of each tobacco leaf sample obtained include the pH value in addition to the 69 chemical components obtained by the aforementioned prediction model, a total of 70, including: water-soluble total sugar, reducing sugar, total alkaloids, total nitrogen, potassium, chlorine, starch, sulfate, phosphate, calcium, magnesium, neochlorogenic acid, chlorogenic acid, cryptochlorogenic acid, scopoletin, rutin, oxalic acid, malonic acid, succinic acid, malic acid, citric acid, vanillic acid, tetradecanoic acid, hexadecanoic acid, linoleic acid + oleic acid, linolenic acid, octadecanoic acid, eicosanoic acid, aspartic acid, threonine, serine, Asparagine, glutamic acid, glutamine, glycine, alanine, valine, cystine, methionine, isoleucine, leucine, tyrosine, phenylalanine, 4-aminobutyric acid, lysine, histidine, tryptophan, arginine, proline, 1-deoxy-1-L-alanine-D-fructose (FRU-ALA), 1-deoxy-1-L-valine-D-fructose (FRU-VAL), 1-deoxy-1-L-proline-D-fructose (FRU-PRO), 1-deoxy-1-L-phenylalanine-D-fructose (FRU-P HE), l-deoxy-1-L-tryptophan-D-fructose (FRU-TRP), 1-deoxy-1-L-isoleucine-D-fructose (FRU-ILE), 1-deoxy-1-L-leucine-D-fructose (FRU-LEU), 1-deoxy-1-L-asparagine-D-fructose (FRU-ASN), 1-deoxy-1-L-glutamate-D-fructose (FRU-GLU), 1-deoxy-1-L-aminobutyric acid-D-fructose (FRU-AMB), 1-deoxy-1-L-aspartate- D-fructose (FRU-ASP), 1-deoxy-1-L-glutamine-D-fructose (FRU-GLN), 1-deoxy-1-L-glycine-D-fructose (FRU-GLY), 1-deoxy-1-L-histidine-D-fructose (FRU-HIS), 1-deoxy-1-L-threonine-D-fructose (FRU-THR), 1-deoxy-1-L-tyrosine-D-fructose (FRU-TYR), glucosamine (GLU-AN), dichloromethane extract, pH, solanesol, neophytadiene.
[0045] These 70 chemical components cover the constant and semi-trace components in tobacco leaves except cell wall substances. These components are thermally migrated, thermally cracked, and thermally converted into smoke components when cigarettes are burned. In terms of weight, they account for 90% of smoke components and are the precursors of a large number of smoke aroma components. At the same time, these 70 chemical components have a certain correlation with the trace aroma components of tobacco leaves. These components can indirectly express the information of trace aroma components, such as the vanillin content of tobacco leaves and the content of linoleic acid, solanesol, and dichloromethane extract are all positively correlated. Therefore, the 70 chemical components are an important material basis for determining the quality availability of tobacco leaves.
[0046] Existing studies rarely use chemical components to classify tobacco leaf quality availability, or directly use spectral data for research, which is not enough to accurately characterize tobacco leaf quality availability, and it is difficult to reflect the relationship between chemical components and tobacco leaf quality availability. The 70 chemical components in this application can accurately distinguish tobacco leaves of different qualities, and the characterization of tobacco leaf quality availability is more accurate.
[0047] It is understandable that in specific implementation, other methods can also be used to obtain 70 chemical components, which will not be described here.
[0048] Step 2: Standardize each chemical composition data.
[0049] In one possible example, each chemical component data is standardized using the central normalization method; specifically, centralization is also called zero mean, which means subtracting the mean of the variable from its value, which is actually a translation process. After the translation, the average value of each indicator of all samples is 0.
[0050] Standardization, also known as normalization, refers to subtracting the mean from the value and dividing it by the standard deviation. The purpose of standardization is to make data of different dimensions have the same distribution scale.
[0051] Table 1 gives the mean and variance data of the indicators used for center standardization.
[0052] Table 1 Mean and variance of indicators used for center standardization
[0053]
[0054]
[0055] Step 3, using a polynomial-like kernel function to map the chemical composition data of each tobacco leaf sample after standardization in the modeling data set to a high-dimensional space, and obtain high-dimensional sample data of each tobacco leaf sample; wherein the polynomial-like kernel function is f(x 1 ,x 2 )=(a*x 1 *x 2 T +b) c ; where x 1 is the chemical composition data of the tobacco leaves to be identified after standardization, x 2 is the chemical composition data of the i-th tobacco leaf sample after standardized processing in the modeling data set, i = 1, 2, .... N, N is the number of tobacco leaf samples in the modeling data set; a and b are the weights for adjusting the inner product term and the constant term, respectively, and c is an arbitrary positive number.
[0056] The quality availability of tobacco leaves is affected by many factors. The relationship between some indicators and quality is complex. There may be synergistic or inhibitory effects between different indicators. Linear methods are not enough to describe the objective laws that affect the quality availability of tobacco leaves. Therefore, nonlinear methods are needed. Polynomial kernel function is a commonly used nonlinear method. The specific standard polynomial kernel function is f(x i , x j )=(x i *x j T +1) c ,The exponent c must be an integer, and there is no weight distinction between the inner product term and the constant term, making it difficult to obtain a robust model.
[0057] To this end, this application modifies the standard polynomial kernel function, adds more adjustable parameters, and finally forms a polynomial-like kernel function f(x 1 ,x 2 )=(a*x 1 *x 2 T +b) c , where parameters a and b are used to adjust the weights of the inner product term and the constant term respectively, and the exponential term c is not limited to an integer.
[0058] In one embodiment, the polynomial-like kernel function is f(x 1 ,x 2 )=(a*x 1 *x 2 T +b) c =((1 / 65)*x 1 *x 2 T +1) 2 .
[0059] It should be noted that this step is to perform high-dimensional mapping on the chemical composition data of each tobacco leaf sample after standardization in the modeling data set. Therefore, the tobacco leaf samples after standardization in the modeling data set are selected as samples to be identified, and the 70 constant and semi-trace chemical composition data of the tobacco leaf to be identified and the first tobacco leaf sample in the modeling data set are taken as x 1 and x 2 After substituting into the formula, the first value of the high-dimensional data of the sample to be identified is obtained; the 70 constant and semi-trace chemical component data of the tobacco leaves to be identified and the 115 tobacco leaf samples in the modeling data set are taken as x 1 and x 2 After substituting the formula, we finally obtained 115-dimensional high-dimensional data for each tobacco leaf sample in the modeling dataset, as shown in Tables 2 to 8.
[0060] Table 2 Modeling dataset (after center normalization) Part 1
[0061]
[0062]
[0063] Table 3 Modeling dataset (after center normalization) Part II
[0064] Serial number Sulfate Phosphate Mg Ca Neochlorogenic Acid Chlorogenic acid Cryptochlorogenic acid Scopolamine Rutin Oxalic acid 1 -0.9793 2.0147 1.0962 -0.0086 0.7625 -0.3193 1.3083 1.5384 0.0243 0.5887 2 -0.3309 0.3566 0.7867 -0.5978 -0.2067 -0.2519 0.5232 -0.1526 -0.9558 -0.3456 3 -0.3957 0.7599 1.0962 -0.7863 -0.1645 -0.2182 0.8430 -0.1526 -0.4770 -0.2678 4 -0.7199 0.9840 -0.5544 -0.4092 1.3525 1.0499 1.9481 -0.0469 0.8524 0.4330 5 -0.7653 0.8271 0.3741 -0.5742 -0.2488 0.1526 0.7267 -0.0469 0.7059 0.8222 … … … … … … … … … … … … … … … … … … … … … … 111 0.5541 0.1101 0.8898 -0.0322 -1.0916 0.5023 -0.1456 -0.7867 0.4074 -0.9685 112 1.1669 -0.0244 1.0962 0.3685 -1.3023 0.0725 -0.2329 -1.3151 -1.4233 -1.2799 113 0.2883 1.0736 0.4772 0.1799 0.5097 1.1468 0.9012 -0.3639 1.4889 -0.2288 114 1.6142 -0.0244 1.9214 0.5099 -0.4595 1.0963 0.4650 -0.9980 -0.2010 -1.2410 115 -0.0586 -0.8310 1.0962 -1.6583 -1.4708 1.0457 -0.5528 -2.1606 0.6383 -0.4235
[0065] Table 4 Modeling dataset (after center normalization) Part III
[0066] Serial number Malonic acid Succinic acid Malic Acid Citric Acid Vanillic acid Myristoyl Hexadecanoic acid Linoleic acid Oleic acid + linolenic acid Octadecanoic acid 1 -0.7230 1.5200 0.8002 1.7624 0.8407 0.9394 0.3958 0.0872 -0.1021 0.3286 2 -0.9815 0.8187 0.1192 0.1541 0.4442 0.4041 0.7298 0.5178 -0.3567 0.3286 3 -1.3261 0.9479 -0.0860 0.1297 -0.2166 -0.1312 1.1474 -0.0419 0.0252 1.0094 4 0.4617 0.3389 0.7592 0.3369 1.0389 1.0854 0.5628 1.2067 1.1072 1.0094 5 -0.2707 0.7080 0.2176 0.8547 1.2372 1.2314 -0.3558 1.0345 -0.6431 -0.3522 … … … … … … … … … … … … … … … … … … … … … … 111 -0.5076 -0.8421 -0.5619 0.2759 -0.8775 -0.6665 1.1474 -2.0225 -1.1842 -1.0330 112 -0.0337 -0.5469 -0.1270 0.0140 -2.0670 -1.1044 1.8155 -2.0225 -1.0887 0.3286 113 0.1601 -1.3219 -0.6685 -0.1444 -0.8775 -1.1531 1.4814 -2.0225 -1.0569 0.3286 114 -0.0122 -0.6392 -0.8737 0.0444 -2.3313 -1.5910 1.8990 -2.0225 -1.6934 -0.0118 115 -0.4214 -1.7279 -0.6932 -0.3150 -2.3313 -1.6884 1.0639 -2.0225 0.2798 0.3286
[0067] Table 5 Modeling data set (after center normalization) Part IV
[0068]
[0069]
[0070] Table 6 Modeling data set (after center normalization) Part V
[0071] Serial number Cystine Methionine Isoleucine Leucine Tyrosine Phenylalanine 4-Aminobutyric acid Lysine Histidine Tryptophan 1 -1.3978 -2.3501 0.3320 -0.4831 -1.0881 -1.3798 -0.5308 -0.7675 -1.1833 -1.0066 2 -1.3978 -0.9982 -0.5642 -1.1065 -1.8214 -1.8337 -1.1368 -1.4156 -1.5902 -1.0066 3 -1.3978 -0.6329 -0.6682 -1.8224 -1.8783 -1.9645 -1.5873 -1.5248 -1.7725 -1.0066 4 -1.3978 -2.2039 0.1559 -0.4138 -0.5255 -0.8251 -0.1096 -0.5345 -0.7764 -0.5587 5 -1.3978 -2.3135 0.5880 -0.9449 -0.9364 -1.1978 -0.4001 -0.5199 -0.9544 -0.9928 … … … … … … … … … … … … … … … … … … … … … … 111 1.3676 0.1709 -1.1203 -0.8756 -0.9806 -0.9788 -0.7899 -1.1243 -0.9227 -1.0066 112 0.4888 -0.3040 -1.3684 -0.9911 -1.4231 -0.7632 -0.3348 -1.2408 -0.9078 -1.0066 113 0.3920 -0.8521 -0.9923 -0.4369 -0.7657 -1.0635 -0.3371 -1.3137 -1.0901 -1.0066 114 1.1257 0.1344 -0.3722 0.1404 -0.3611 0.3408 0.4221 -0.6219 -0.4056 -0.4056 115 1.1418 0.1709 -1.4284 -1.6838 -0.3485 -1.3144 -0.3145 -0.2942 -0.7743 -0.1680
[0072] Table 7 Modeling dataset (after center normalization) Part VI
[0073] Serial number Arginine Proline Glu-An Fru-Amb Fru-His Fru-Pro Fru-Val Fru-Thr Fru-Gly Fru-Ala 1 -0.5148 -1.5847 -0.0068 -1.2049 -1.5304 -1.4830 -1.1993 -1.4718 0.6672 -1.6447 2 -1.1422 -1.8418 -1.1368 -1.6398 -1.5304 -1.3767 -1.0382 -1.3189 -0.2276 -0.7823 3 -1.3407 -1.8370 -1.4878 -1.5500 -1.5304 -0.7595 -0.6515 -1.2170 -0.4513 -0.8000 4 -0.1972 -1.2916 0.1249 -0.0323 -0.5354 -1.5371 0.0897 -0.0452 -0.2276 -0.5339 5 0.1682 -1.1673 -0.1384 -1.4181 -0.9707 -1.4016 -1.5538 -1.1661 -0.2276 -0.1790 … … … … … … … … … … … … … … … … … … … … … … 111 -1.2454 -0.3030 -1.4988 0.7897 -0.0689 1.1192 1.0242 0.9993 -0.6750 0.1369 112 -1.6028 -0.6776 -1.4439 1.8698 -0.2555 0.0589 1.0564 0.7445 -0.8987 0.1830 113 -1.3646 -0.2300 -0.7967 1.7576 0.1487 0.4150 0.5730 1.1267 -1.1224 0.2611 114 -1.0628 -0.3664 -0.6431 1.6650 0.2420 -0.3192 1.5397 1.4324 -1.3461 -0.2428 115 -0.0860 -0.1113 -0.7967 2.1139 1.0504 0.9917 1.3786 1.3559 -2.2410 1.8759
[0074] Table 8 Modeling data set (after center normalization) Part VII
[0075]
[0076]
[0077] Step 4: construct a tobacco leaf quality availability discrimination model based on kernel Fisher discriminant, use tobacco leaves of different quality availability in the modeling data set as the initial classification results of the tobacco leaf quality availability discrimination model, use the high-dimensional sample data of all tobacco leaf samples as sample data to train and solve the tobacco leaf quality availability discrimination model, and obtain the discriminant function of the tobacco leaf quality availability discrimination model and the centroid values of each quality availability.
[0078] It should be noted that since the previous modeling data set includes 115 tobacco leaf samples, each tobacco leaf sample is a 115-dimensional high-dimensional sample data, so the modeling data set is a 115*115 matrix.
[0079] Furthermore, generally speaking, the number of discriminant functions is equal to the number of categories minus one. For this embodiment, since the tobacco samples in the modeling data set include three quality availability levels: good, medium, and poor, the discriminant function is 3-1=2 columns, that is, the high-dimensional discriminant function is 115*2.
[0080] Specifically, the variable coefficients of the high-dimensional discriminant function are shown in Table 9.
[0081] Table 9 Variable coefficients of high-dimensional discriminant function
[0082]
[0083]
[0084] Among them, the centroid functions of the three quality availability are shown in Table 10, and the covariance matrix of the three tobacco leaf quality availability levels in the two-dimensional space is shown in Table 11:
[0085] Table 103 Centroid functions of tobacco leaf quality availability
[0086] Dimension 1 Dimension 2 good 1.120078 -1.30069 middle 1.155175 -1.14076 Difference 1.998905 -1.27632
[0087] Table 11 Covariance of tobacco leaf quality availability in 2D space
[0088]
[0089] Step 5: Obtain 70 constant and semi-trace chemical component data of the tobacco leaves to be identified, and perform standardization processing in turn and use the polynomial kernel function f(x 1 ,x 2 )=(a*x 1 *x 2 T +b) c High-dimensional mapping processing is performed to obtain high-dimensional sample data of the tobacco leaves to be identified.
[0090] It can be understood that the steps of obtaining 70 kinds of constant and semi-trace chemical component data of the tobacco leaves to be identified in step 5 are the same as those in step 1, both of which are to control the moisture content of the tobacco leaves to be identified to 6-8%, crush them to 60-80 mesh using a pulverizer, and perform near-infrared spectroscopy scanning on the tobacco leaves to be identified; then, a tobacco chemical component prediction method and device based on spectral conversion provided by 202210751386.4 are used to obtain the constant chemical component data and semi-trace chemical component data of the tobacco leaves to be identified.
[0091] Similarly, the method used to standardize the data of 70 major and semi-trace chemical components is the same as step 2, which is the central standardization method.
[0092] It should be noted that the standardization processing method in step 5 needs to be consistent with the standardization processing method in step 2. When the central standardization method is used for standardization in step 3, the standardization processing method in step 5 is also the central standardization method.
[0093] Similarly, the polynomial-like kernel function is f(x 1 ,x 2 )=(a*x 1 *x 2 T +b) c =((1 / 65)*x 1 *x 2 T +1) 2 .
[0094] Step 6, after substituting the high-dimensional sample data of the tobacco leaves to be identified obtained in step 5 into the tobacco leaf quality availability discrimination model, the discriminant function value of the tobacco leaves to be identified is obtained, and the Mahalanobis distance between the tobacco leaves to be identified and the centroids of each quality availability is calculated based on the discriminant function value. The quality availability corresponding to the minimum Mahalanobis distance is the tobacco leaf quality availability.
[0095] Specifically, the steps for calculating the Mahalanobis distance between the tobacco leaf to be identified and the three mass availability centroids are as follows:
[0096]
[0097] Among them, ∑ is the covariance matrix, y is the 2D discriminant function value, y 0 k is the centroid function value of the kth quality availability.
[0098] It can be understood that, in specific implementation, the quality availability corresponding to the minimum Mahalanobis distance is selected as the target tobacco leaf quality availability.
[0099] Based on the above tobacco leaf quality availability discrimination model, the discrimination accuracy and 5-fold of 115 tobacco leaf samples in the modeling data set are shown in Table 12:
[0100] Table 12 Discrimination accuracy
[0101] Good prediction Predicted Prediction Difference Number of samples Accuracy good 41 0 0 41 100.0% middle 0 65 0 65 100.0% Difference 0 0 9 9 100.0% Total correct rate 100.0%
[0102] Table 13 50% verification accuracy
[0103] 1% off Fold 2 3% off 4-fold 5% off average good 100.0% 100.0% 100.0% 87.5% 87.5% 95.0% middle 92.3% 76.9% 69.2% 84.6% 92.3% 83.1% Difference 100.0% 100.0% 100.0% 100.0% 100.0% 100.0% Total correct rate 95.7% 87.0% 82.6% 87.0% 91.3% 88.7%
[0104] It can be seen that the discrimination accuracy is 100%, and the average total correct rate of the five-fold validation discrimination is 88.7%, indicating that the model is robust and reliable.
[0105] Example 2
[0106] The difference between this embodiment and embodiment 1 is that: Figure 2 As shown, after obtaining the target tobacco leaf quality availability, the standard deviation of the discriminant function value from the centroid of the target tobacco leaf quality availability is calculated, and the target tobacco leaf quality availability is subdivided into quality availability based on the standard deviation.
[0107] Specifically, the standard deviation SDsample represents the standard deviation of a sample with respect to a centroid, and the calculation formula is:
[0108]
[0109] where x m is the value of the sample in the mth dimension, y m is the value of the mth dimension of a centroid, SD m is the value of the mth dimension of the SD matrix of a certain quality availability. The SD matrix is shown in the following table.
[0110] Table 14 SD matrix
[0111] Dimension 1 Dimension 2 good 0.023003 0.034521 middle 0.024323 0.028893 Difference 0.129366 0.035261
[0112] After obtaining the standard deviation, determine the value of the standard deviation. If the standard deviation is <1, the tobacco leaves to be identified are determined to be typical samples of the target tobacco leaves' quality availability; if 1<=standard deviation<2, the tobacco leaves to be identified are determined to be sub-typical samples of the target tobacco leaves' quality availability; if the standard deviation is >=2, the tobacco leaves to be identified are determined to be atypical samples of the target tobacco leaves' quality availability.
[0113] On this basis, the quality availability of flue-cured tobacco is subdivided according to the standard deviation of each tobacco leaf from the centroid of each quality availability category, which lays a solid foundation for the subsequent automated design of tobacco leaf group formulas and leaf beating and re-roasting module formulas, and can realize the identification of quality availability of typical and subtype tobacco leaves of different grades.
[0114] Furthermore, after obtaining the segmented quality availability, the tobacco leaves to be identified are digitally assigned values according to the segmented quality availability and the assignment comparison relationship. For ease of understanding, an example of the segmented quality availability and the assignment comparison relationship is given:
[0115] When the target tobacco leaf quality availability is good, if the standard deviation is <1, it is judged as a typical good sample and assigned 9 points; if 1<=standard deviation<2, it is judged as a sub-typical good sample and assigned 8 points; if the standard deviation is >=2, it is judged as an atypical good sample and assigned 7 points;
[0116] When the target tobacco leaf quality availability is medium, if the standard deviation is <1, it is determined to be a typical medium sample and is assigned 6 points; if 1<=standard deviation<2, it is determined to be a sub-typical medium sample and is assigned 5 points; if the standard deviation is >=2, it is determined to be an atypical medium sample and is assigned 4 points;
[0117] When the target tobacco leaf quality availability is poor, if the standard deviation is <1, it is judged as a typical poor sample and assigned 3 points; if 1<=standard deviation<2, it is judged as a subtypical poor sample and assigned 2 points; if the standard deviation is >=2, it is judged as an atypical poor sample and assigned 1 point.
[0118] The value of tobacco leaf quality availability is assigned based on the SD of each tobacco leaf from the centroid of the quality availability to which it belongs. It is used to reflect the degree to which tobacco leaves are prominent in terms of different tobacco leaf quality availability. The higher the score, the more typical the sample is considered to be in terms of this quality. In this way, even people who do not understand the quality of tobacco leaves can intuitively know the quality of each tobacco leaf.
[0119] The above preset assignment rules are based on standard deviation data and refer to the normal distribution and its proportion in statistics, so this assignment method is reasonable.
[0120] Example 3
[0121] This example provides a process for identifying tobacco leaf samples with good quality and availability.
[0122] For a tobacco leaf sample with good quality availability, the moisture content of the tobacco leaf sample is controlled to 6-8%, and the sample is crushed to 60-80 mesh using a pulverizer. The sample is scanned by near-infrared spectroscopy, and a tobacco chemical component prediction method and device based on spectral conversion provided by 202210751386.4 is used to obtain 70 chemical components of the tobacco leaf to be identified, as shown in Table 15.
[0123] Table 15 Contents of 70 chemical components in tobacco leaf samples
[0124]
[0125]
[0126] The central normalization method was used to standardize the contents of all chemical components, and the samples were converted to high-dimensional space through a polynomial-like function. The high-dimensional data of the tobacco leaf samples are shown in the following table:
[0127] Table 16 High-dimensional data of tobacco leaf samples
[0128]
[0129]
[0130] According to the kernel Fisher discriminant function in Table 9, the 2D function value of the tobacco leaf sample is calculated, as shown in the following table:
[0131] Table 17 2D function values of tobacco leaf samples
[0132] Dimension 1 Dimension 2 1.136499 -1.31684
[0133] The Mahalanobis distance between the tobacco leaf sample and each centroid is calculated based on the Mahalanobis distance calculation formula, the function value of the tobacco leaf to be identified, and the covariance matrix of each quality availability, as shown in Table 18:
[0134] Table 18 Mahalanobis distances of tobacco leaf samples from each centroid
[0135] Good distance 0.80279 Distance to center 6.446848 Distance 7.139642
[0136] It can be seen that the Mahalanobis distance from the tobacco leaf sample to the centroid with good quality availability is the smallest, so the quality availability of the tobacco leaf sample is good.
[0137] Furthermore, the standard deviation of the tobacco leaf sample from the centroid of "good" tobacco leaf quality availability calculated based on the two-dimensional function value is 0.8553, which is less than 1. Therefore, the tobacco leaf sample is a typical sample of "good" tobacco leaf quality availability. According to the tobacco leaf quality availability assignment principle, the tobacco leaf sample is assigned 9 points.
[0138] Example 5
[0139] This example provides a process for distinguishing tobacco leaf samples with medium quality usability.
[0140] For a tobacco leaf sample with medium quality availability, the moisture content of the tobacco leaf sample was controlled to 6-8%, and the sample was crushed to 60-80 mesh using a pulverizer. The sample was scanned by near-infrared spectroscopy, and a tobacco chemical component prediction method and device based on spectral conversion provided by 202210751386.4 was used to obtain 70 chemical components of the tobacco leaf to be identified, as shown in Table 19.
[0141] Table 19 Contents of 70 chemical components in tobacco leaf samples
[0142]
[0143]
[0144] The central normalization method was used to standardize the contents of all chemical components, and the samples were converted to high-dimensional space through a polynomial-like function. The high-dimensional data of the tobacco leaf samples are shown in the following table:
[0145] Table 20 High-dimensional data of tobacco leaf samples
[0146] Serial number Numeric Serial number Numeric Serial number Numeric Serial number Numeric 1 0.8717 31 1.2899 61 0.0655 91 0.5735 2 1.6711 32 1.6498 62 0.2012 92 1.6007 3 2.2473 33 0.9316 63 0.9649 93 0.3188 4 1.3867 34 0.5826 64 0.9807 94 0.1100 5 0.7058 35 0.3165 65 1.5415 95 0.5908 6 1.2575 36 0.2631 66 0.0490 96 1.1239 7 0.7699 37 0.2508 67 0.4793 97 0.0389 8 2.6892 38 1.3444 68 0.4184 98 0.2976 9 2.9973 39 0.6554 69 3.9395 99 1.8137 10 3.6649 40 0.7149 70 0.5229 100 0.0709 11 1.3745 41 1.8443 71 0.8305 101 0.0034 12 2.6746 42 0.5930 72 0.2965 102 0.0722 13 2.7403 43 0.3681 73 0.1519 103 0.1195 14 2.0325 44 0.7665 74 0.7142 104 0.6033 15 0.1651 45 0.6216 75 0.5560 105 0.3809 16 0.7135 46 0.3934 76 1.5119 106 0.6623 17 1.7768 47 0.2895 77 0.3441 107 3.2416 18 0.2812 48 8.1047 78 1.3274 108 2.5026 19 2.4073 49 4.8224 79 0.9467 109 1.5143 20 2.0931 50 1.1536 80 0.0092 110 2.2611 21 0.2497 51 0.2471 81 0.1134 111 2.5165 22 1.5598 52 7.6008 82 0.5739 112 2.7613 23 1.3611 53 4.3899 83 0.6141 113 2.8450 24 1.2188 54 2.7054 84 1.1636 114 2.6926 25 0.8659 55 5.0012 85 0.2850 115 3.4044 26 0.6020 56 0.2608 86 1.2224 27 0.4319 57 0.1648 87 0.0339 28 1.6825 58 1.2612 88 0.6292 29 2.2869 59 0.5400 89 0.8569 30 2.6969 60 0.0686 90 0.2053
[0147] According to the kernel Fisher discriminant function in Table 9, the 2D function value of the tobacco leaf sample is calculated, as shown in the following table:
[0148] Table 21 2D function values of tobacco leaf samples
[0149]
[0150]
[0151] The Mahalanobis distance between the tobacco leaf sample and the centroid of each quality availability is calculated based on the Mahalanobis distance calculation formula, the function value of the tobacco leaf to be identified, and the covariance matrix of each quality availability, as shown in Table 22:
[0152] Table 22 Mahalanobis distances of tobacco leaf samples from each centroid
[0153] Good distance 5.424844 Distance to center 0.339734 Distance 10.68126
[0154] It can be seen that the Mahalanobis distance from the tobacco leaf sample to the centroid with a quality availability of medium is the smallest, so the quality availability of the tobacco leaf sample is medium.
[0155] Furthermore, the standard deviation of the tobacco leaf sample from the centroid of "medium" tobacco leaf quality availability calculated based on the two-dimensional function value is 0.3047, which is less than 1. Therefore, the tobacco leaf sample is a typical sample of "medium" tobacco leaf quality availability. According to the tobacco leaf quality availability assignment principle, the tobacco leaf sample is assigned 6 points.
[0156] Example 6
[0157] This example provides a process for distinguishing tobacco leaf samples with poor quality availability.
[0158] For a tobacco leaf sample with poor quality availability, the moisture content of the tobacco leaf sample was controlled to 6-8%, and the sample was crushed to 60-80 mesh using a pulverizer. The sample was scanned by near-infrared spectroscopy, and a tobacco chemical component prediction method and device based on spectral conversion provided by 202210751386.4 was used to obtain 70 chemical components of the tobacco leaf to be identified, as shown in Table 23.
[0159] Table 23 Contents of 70 chemical components in tobacco leaf samples
[0160] Total plant alkaloids Reducing sugar Total Sugar Total Nitrogen K chlorine pH starch Dichloromethane extract Solanesol True Value 1.76 28.30 36.70 1.87 1.09 0.11 5.45 10.00 3.33 3.00 Standardized value -1.80 1.56 2.21 -1.19 -2.42 -1.29 1.20 3.94 -1.54 -1.45 Sulfate Phosphate Mg Ca Neochlorogenic Acid Chlorogenic acid Cryptochlorogenic acid Scopolamine Rutin Oxalic acid True Value 10.63 5.04 0.59 1.31 1.50 12.24 2.52 0.10 8.77 12.60 Standardized value -0.06 -0.83 1.10 -1.66 -1.47 1.05 -0.55 -2.16 0.64 -0.42 Malonic acid Succinic acid Malic Acid Citric Acid Vanillic acid Myristoyl Hexadecanoic acid Linoleic acid Oleic acid + linolenic acid Octadecanoic acid True Value 1.21 0.25 42.60 7.13 0.09 0.12 3.12 1.20 4.16 0.62 Standardized value -0.42 -1.73 -0.69 -0.31 -2.33 -1.69 1.06 -2.02 0.28 0.33 Eicosanoic acid Aspartic acid Threonine Serine Asparagine Glutamate Glutamine Glycine Alanine Valine True Value 0.13 294.70 36.80 269.80 346.50 97.40 332.20 24.00 349.60 437.20 Standardized value -2.03 -0.84 -0.51 0.66 -1.34 -1.20 -0.15 -1.28 0.00 1.61 Cystine Methionine Isoleucine Leucine Tyrosine Phenylalanine 4-Aminobutyric acid Lysine Histidine Tryptophan True Value 61.50 11.80 5.99 7.20 56.50 97.20 107.90 25.90 77.10 66.70 Standardized value 1.14 0.17 -1.43 -1.68 -0.35 -1.31 -0.31 -0.29 -0.77 -0.17 Arginine Proline Glu-An Fru-Amb Fru-His Fru-Pro Fru-Val Fru-Thr Fru-Gly Fru-Ala True Value 36.20 7217.00 189.00 3592.00 93.00 12914 259.00 22.40 22.00 2704.00 Standardized value -0.09 -0.11 -0.80 2.11 1.05 0.99 1.38 1.36 -2.24 1.88 Fru-Asn Fru-Asp Fru-Gln Fru-Glu Fru-Ile Fru-Leu Fru-Tyr Fru-Phe Fru-Trp Neophytadiene True Value 2515.00 920.00 1580.00 601.00 35.90 82.90 127.00 846.00 430.00 0.40 Standardized value -0.75 -1.66 1.76 1.05 0.73 1.59 1.62 0.92 0.91 -1.96
[0161] The central normalization method was used to standardize the contents of all chemical components, and the samples were converted to high-dimensional space through a polynomial-like function. The high-dimensional data of the tobacco leaf samples are shown in the following table:
[0162] Table 24 High-dimensional data of tobacco leaf samples
[0163] Serial number Numeric Serial number Numeric Serial number Numeric Serial number Numeric 1 0.2603 31 3.1618 61 0.1456 91 0.6152 2 0.9741 32 1.8679 62 0.0026 92 0.0084 3 1.5181 33 1.0313 63 0.7394 93 0.1180 4 0.5867 34 1.5302 64 1.0726 94 0.2358 5 0.4923 35 0.9035 65 2.0260 95 1.1790 6 1.1240 36 1.6969 66 0.0545 96 2.3237 7 0.1655 37 1.8727 67 0.0997 97 0.0498 8 2.3817 38 1.1090 68 0.3637 98 0.6417 9 2.6640 39 0.5871 69 0.5542 99 1.0233 10 1.8695 40 1.8915 70 0.0165 100 0.0149 11 1.2158 41 1.9722 71 0.7321 101 0.2896 12 2.5406 42 0.0238 72 0.4562 102 0.3887 13 2.8839 43 0.0011 73 0.0373 103 0.3823 14 1.6840 44 0.0969 74 1.3190 104 0.3755 15 0.2001 45 0.0313 75 0.8961 105 0.0475 16 0.8934 46 0.0358 76 1.9667 106 0.7787 17 1.8916 47 0.0437 77 0.8189 107 5.3824 18 1.0576 48 3.4044 78 2.0173 108 7.0092 19 1.5123 49 2.2167 79 1.2054 109 2.9553 20 2.4393 50 1.3342 80 0.3714 110 4.2318 21 0.4920 51 0.0305 81 0.5494 111 4.8251 22 1.9518 52 4.1178 82 1.5932 112 4.7984 23 1.3263 53 1.1151 83 2.3673 113 5.1853 24 2.9044 54 0.6539 84 1.4059 114 4.8316 25 2.2278 55 1.8425 85 0.0306 115 9.1781 26 1.5594 56 0.0050 86 1.1687 27 2.5122 57 0.0095 87 0.2584 28 1.4691 58 1.6275 88 0.5797 29 3.6022 59 1.5144 89 0.2957 30 4.1303 60 0.0093 90 0.1124
[0164] According to the kernel Fisher discriminant function in Table 9, the 2D function value of the tobacco leaf sample is calculated, as shown in the following table:
[0165] Table 25 2D function values of tobacco leaf samples
[0166] Dimension 1 Dimension 2 1.805667 -1.36457
[0167] The Mahalanobis distance between the tobacco leaf sample and the centroid of each quality availability is calculated based on the Mahalanobis distance calculation formula, the function value of the tobacco leaf to be identified, and the covariance matrix of each quality availability, as shown in Table 26:
[0168] Table 26 Mahalanobis distances of tobacco leaf samples from each centroid
[0169]
[0170]
[0171] It can be seen that the Mahalanobis distance from the tobacco leaf sample to the centroid with poor quality availability is the smallest, so the quality availability of the tobacco leaf sample is poor.
[0172] Furthermore, the standard deviation of the tobacco leaf sample's distance from the centroid of "poor" tobacco leaf quality availability calculated based on the two-dimensional function value is 2.517, which is greater than 2. Therefore, the tobacco leaf sample is an atypical poor sample of "poor" tobacco leaf quality availability. According to the tobacco leaf quality availability assignment principle, the tobacco leaf sample is assigned 1 point.
[0173] Example 7
[0174] This embodiment provides a device for judging the quality availability of flue-cured tobacco based on chemical composition and improved kernel function. Figure 3 As shown, including:
[0175] Modeling dataset including tobacco leaf samples of different quality availability.
[0176] The module for obtaining tobacco leaves to be identified is used to obtain tobacco leaves to be identified.
[0177] Tobacco chemical component acquisition module, used to obtain 70 constant and semi-trace chemical component data of each tobacco leaf sample and tobacco leaf to be identified;
[0178] Specifically, the tobacco chemical component acquisition module includes an infrared spectrum acquisition unit and a tobacco component prediction unit. The infrared spectrum acquisition unit is used to obtain the near-infrared spectrum of each tobacco leaf sample and the tobacco leaf to be identified; the tobacco component prediction unit has a built-in tobacco chemical component prediction method based on spectrum conversion, which is used to obtain 70 constant and semi-trace chemical component data of the tobacco leaf samples and the tobacco leaves to be identified by using the tobacco chemical component prediction method based on spectrum conversion; wherein the 70 constant and semi-trace chemical components of the tobacco leaf samples are: water-soluble total sugar, reducing sugar, total alkaloids, total nitrogen, potassium, chlorine, starch, sulfate, phosphate, calcium, magnesium , neochlorogenic acid, chlorogenic acid, cryptochlorogenic acid, scopoletin, rutin, oxalic acid, malonic acid, succinic acid, malic acid, citric acid, vanillic acid, myristic acid, hexadecanoic acid, linoleic acid + oleic acid, linolenic acid, octadecanoic acid, eicosanoic acid, aspartic acid, threonine, serine, asparagine, glutamic acid, glutamine, glycine, alanine, valine, cystine, methionine, isoleucine, leucine, tyrosine, phenylalanine, 4-aminobutyric acid, lysine, histidine, tryptophan, arginine, proline, 1-deoxy-1-L-alanine-D-fructose (FRU-ALA), 1-deoxy-1-L-valine-D-fructose (FR U-VAL), 1-deoxy-1-L-proline-D-fructose (FRU-PRO), 1-deoxy-1-L-phenylalanine-D-fructose (FRU-PHE), l-deoxy-1-L-tryptophan-D-fructose (FRU-TRP), 1-deoxy-1-L-isoleucine-D-fructose (FRU-ILE), 1-deoxy-1-L-leucine-D-fructose (FRU-LEU), 1-deoxy-1-L-asparagine-D-fructose (FRU-ASN), 1-deoxy-1-L-glutamate-D-fructose (FRU-GLU), 1-deoxy-1-L-aminobutyric acid -D-fructose (FRU-AMB), 1-deoxy-1-L-aspartate-D-fructose (FRU-ASP), 1-deoxy-1-L-glutamine-D-fructose (FRU-GLN), 1-deoxy-1-L-glycine-D-fructose (FRU-GLY), 1-deoxy-1-L-histidine-D-fructose (FRU-HIS), 1-deoxy-1-L-threonine-D-fructose (FRU-THR), 1-deoxy-1-L-tyrosine-D-fructose (FRU-TYR), glucosamine (GLU-AN), dichloromethane extract, pH, solanesol, and neophytadiene.
[0179] The standardization processing module is used to standardize the content data of each chemical component.
[0180] High-dimensional mapping module, used to use polynomial-like kernel function f(x 1 ,x 2 )=(a*x 1 *x2 T +b) c The chemical composition data of each tobacco leaf sample after standardization in the modeling data set is mapped to a high-dimensional space to obtain high-dimensional sample data of each tobacco leaf sample; and the polynomial kernel function f(x 1 ,x 2 )=(a*x 1 *x 2 T +b) c The chemical composition data of the tobacco leaves to be identified after the standardization process is subjected to high-dimensional mapping to obtain high-dimensional sample data of the tobacco leaves to be identified; where x 1 is the chemical composition data of the tobacco leaves to be identified after standardization, x 2 is the chemical composition data of the i-th tobacco leaf sample after standardization in the modeling data set, i=1, 2, .... N, N is the number of tobacco leaf samples in the modeling data set; a and b are the weights for adjusting the inner product term and the constant term, respectively, and c is an arbitrary positive number. In one embodiment, the polynomial-like kernel function is f(x 1 ,x 2 )=(a*x 1 *x 2 T +b) c =((1 / 65)*x 1 *x 2 T +1) 2 .
[0181] The quality availability discrimination model establishment module is used to construct a tobacco leaf quality availability discrimination model based on kernel Fisher discriminant. Tobacco leaves with different quality availability in the modeling data set are used as the initial classification results of the tobacco leaf quality availability discrimination model. The high-dimensional sample data of all tobacco leaf samples are used as sample data to train and solve the tobacco leaf quality availability discrimination model, and the discriminant function of the tobacco leaf quality availability discrimination model and the centroid values of each quality availability are obtained.
[0182] The discrimination module is used to call the tobacco leaf quality availability discrimination model to process the high-dimensional sample data of the tobacco leaves to be discriminated after obtaining the high-dimensional sample data of the tobacco leaves to be discriminated, obtain the discriminant function value, and calculate the Mahalanobis distance between the discriminant function value and the centroid of each quality availability. The quality availability corresponding to the minimum Mahalanobis distance is the target tobacco leaf quality availability.
[0183] In a possible example, the flue-cured tobacco quality availability discriminating device further includes: a subdivision module, configured to calculate the standard deviation of the discriminant function value from the centroid of the target tobacco quality availability after obtaining the target tobacco quality availability, and perform quality availability subdivision on the target tobacco quality availability based on the standard deviation;
[0184] If the standard deviation is <1, the tobacco leaves to be identified are judged to be typical samples of the quality availability of the target tobacco leaves; if 1<=standard deviation<2, the tobacco leaves to be identified are judged to be sub-typical samples of the quality availability of the target tobacco leaves; if the standard deviation is >=2, the tobacco leaves to be identified are judged to be atypical samples of the quality availability of the target tobacco leaves.
[0185] In a possible example, the flue-cured tobacco quality availability identification device further includes: an assignment module, the assignment module being used to digitally assign values to the tobacco leaves to be identified based on the subdivided quality availability and assignment comparison relationship and the subdivided quality availability of the tobacco leaves to be identified.
[0186] This embodiment uses a prediction model of chemical components in tobacco leaves based on near-infrared spectroscopy to obtain 70 chemical components in tobacco leaves. Based on these chemical components, the samples are converted into high-dimensional space through a polynomial-like kernel function, and a kernel Fisher classification and discrimination modeling method is adopted to construct a tobacco leaf quality availability discrimination model based on chemical components to identify tobacco leaf quality availability, which can get rid of the previous subjective method of judging tobacco leaf quality availability through sensory evaluation; and because nonlinear factors are taken into account, the accuracy of tobacco leaf quality availability characterization is higher than that of linear classification methods; the chemical components include constant and semi-trace chemical components, which can truly reflect the aroma style characteristics of flue-cured tobacco, so that the material basis of tobacco leaves of different quality availability is clear, and the rapid, objective, robust and accurate characterization of tobacco leaf quality availability is truly realized.
[0187] On this basis, this embodiment further subdivides and digitally assigns values to the quality availability of flue-cured tobacco according to the standard deviation of each tobacco leaf from the centroid of each quality availability, thereby achieving quantitative characterization of the quality availability of typical and subtype tobacco leaves of different grades, and laying a solid foundation for the digital design of subsequent tobacco leaf group formulas and leaf beating and re-roasting module formulas.
[0188] Example 8
[0189] This embodiment provides a computer-readable storage medium, which includes a stored program. When the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method for determining the quality availability of flue-cured tobacco described in Embodiment 1 or Embodiment 2.
[0190] Example 9
[0191] This embodiment provides a computer device, including: a memory and a processor;
[0192] The memory stores a computer program;
[0193] The processor is used to execute the computer program stored in the memory, and when the computer program is running, the processor executes the method for determining the quality availability of flue-cured tobacco described in Example 1 or Example 2.
[0194] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, ordinary technicians in the field should understand that the specific implementation methods of the present invention can still be modified or some technical features can be replaced by equivalents without departing from the spirit of the technical solution of the present invention, which should be included in the scope of the technical solution for protection of the present invention.
Claims
1. A method for distinguishing the quality availability of flue-cured tobacco based on chemical composition and improved kernel function, characterized in that: The following steps are involved: Tobacco leaf samples of different quality availability were obtained as modeling data sets, and 70 constant and semi-micro chemical component data of each tobacco leaf sample were obtained, and each chemical component data was standardized; Use the polynomial kernel function f(x1,x2)=(a* x1* x2 T +b) c The chemical composition data of each tobacco leaf sample after standardization in the modeling data set are mapped to a high-dimensional space to obtain high-dimensional sample data of each tobacco leaf sample; wherein x1 is the chemical composition data of the tobacco leaf to be identified after standardization, x2 is the chemical composition data of the i-th tobacco leaf sample after standardization in the modeling data set, i = 1, 2, .... N, N is the number of tobacco leaf samples in the modeling data set; a and b are weights for adjusting the inner product term and the constant term, respectively, and c is an arbitrary positive number; A tobacco leaf quality availability discrimination model based on kernel Fisher discriminant was constructed. Tobacco leaves with different quality availability in the modeling data set were used as the initial classification results of the tobacco leaf quality availability discrimination model. The high-dimensional sample data of all tobacco leaf samples were used as sample data to train and solve the tobacco leaf quality availability discrimination model. The discriminant function of the tobacco leaf quality availability discrimination model and the centroid values of each quality availability were obtained. The data of 70 constant and semi-trace chemical components of tobacco leaves to be identified were obtained, and then standardized and the polynomial kernel function f(x1,x2)=(a* x1* x2 T +b) c Perform high-dimensional mapping processing to obtain high-dimensional sample data of tobacco leaves to be identified; After substituting the high-dimensional sample data of tobacco leaves to be identified into the tobacco leaf quality availability discrimination model, the discriminant function value is obtained, and the Mahalanobis distance between the discriminant function value and the centroid of each quality availability is calculated. The quality availability corresponding to the minimum Mahalanobis distance is the target tobacco leaf quality availability.
2. The method for distinguishing the quality availability of flue-cured tobacco based on chemical composition and improved kernel function according to claim 1, characterized in that: After obtaining the target tobacco leaf quality availability, the standard deviation of the discriminant function value from the centroid of the target tobacco leaf quality availability is calculated, and the target tobacco leaf quality availability is subdivided based on the standard deviation: If the standard deviation is <1, the tobacco leaves to be identified are judged to be typical samples of the quality availability of the target tobacco leaves; if 1<=standard deviation<2, the tobacco leaves to be identified are judged to be sub-typical samples of the quality availability of the target tobacco leaves; if the standard deviation is >=2, the tobacco leaves to be identified are judged to be atypical samples of the quality availability of the target tobacco leaves.
3. The method for distinguishing the quality availability of flue-cured tobacco based on chemical composition and improved kernel function according to claim 2, characterized in that: After obtaining the segmented quality availability, the tobacco leaves to be identified are digitally assigned values based on the comparison relationship between the segmented quality availability and the assignment values.
4. A method for determining the quality availability of flue-cured tobacco based on chemical composition and improved kernel function according to any one of claims 1 to 3, characterized in that: The 70 major and semi-trace chemical components of tobacco leaf samples are: water-soluble total sugar, reducing sugar, total alkaloids, total nitrogen, potassium, chloride, starch, sulfate, phosphate, calcium, magnesium, neochlorogenic acid, chlorogenic acid, cryptochlorogenic acid, scopoletin, rutin, oxalic acid, malonic acid, succinic acid, malic acid, citric acid, vanillic acid, myristic acid, hexadecanoic acid, linoleic acid + oleic acid, linolenic acid, octadecanoic acid, eicosanoic acid, aspartic acid, threonine, serine, asparagine, glutamine, amino acid, glutamine, glycine, alanine, valine, cystine, methionine, isoleucine, leucine, tyrosine, phenylalanine, 4-aminobutyric acid, lysine, histidine, tryptophan, arginine, proline, 1-deoxy-1-L-alanine-D-fructose (FRU-ALA), 1-deoxy-1-L-valine-D-fructose (FRU-VAL), 1-deoxy-1-L-proline-D-fructose (FRU-PRO) , 1-deoxy-1-L-phenylalanine-D-fructose (FRU-PHE), l-deoxy-1-L-tryptophan-D-fructose (FRU-TRP), 1-deoxy-1-L-isoleucine-D-fructose (FRU-ILE), 1-deoxy-1-L-leucine-D-fructose (FRU-LEU), 1-deoxy-1-L-asparagine-D-fructose (FRU-ASN), 1-deoxy-1-L-glutamate-D-fructose (FRU-GLU) , 1-deoxy-1-L-aminobutyric acid-D-fructose (FRU-AMB), 1-deoxy-1-L-aspartic acid-D-fructose (FRU-ASP), 1-deoxy-1-L-glutamine-D-fructose (FRU-GLN), 1-deoxy-1-L-glycine-D-fructose (FRU-GLY), 1-deoxy-1-L-histidine-D-fructose (FRU-HIS), 1-deoxy-1-L-threonine-D-fructose (FRU-THR), 1-deoxy-1-L-tyrosine-D-fructose (FRU-TYR), glucosamine (GLU-AN), dichloromethane extract, pH, solanesol, neophytadiene.
5. A device for judging the quality availability of flue-cured tobacco based on chemical composition and improved kernel function, characterized in that: include: Modeling dataset, including tobacco leaf samples of different quality availability; A module for obtaining tobacco leaves to be identified, used for obtaining tobacco leaves to be identified; Tobacco chemical component acquisition module, used to obtain 70 constant and semi-trace chemical component data of each tobacco leaf sample and tobacco leaf to be identified; A standardization processing module is used to standardize the content data of each chemical component; High-dimensional mapping module, used to use polynomial-like kernel function f(x1,x2)=(a* x1* x2 T +b) c Mapping the chemical composition data of each tobacco leaf sample after standardization in the modeling data set to a high-dimensional space to obtain high-dimensional sample data of each tobacco leaf sample; And for using the polynomial-like kernel function f(x1,x2)=(a* x1* x2 T +b) c The chemical composition data of the tobacco leaves to be identified after the standardized processing are subjected to high-dimensional mapping processing to obtain high-dimensional sample data of the tobacco leaves to be identified; wherein x1 is the chemical composition data of the tobacco leaves to be identified after the standardized processing, x2 is the chemical composition data of the i-th tobacco leaf sample after the standardized processing in the modeling data set, i = 1, 2, .... N, N is the number of tobacco leaf samples in the modeling data set; a and b are the weights for adjusting the inner product term and the constant term, respectively, and c is an arbitrary positive number; The quality availability discrimination model building module is used to build a tobacco leaf quality availability discrimination model based on kernel Fisher discriminant, take tobacco leaves of different quality availability in the modeling data set as the initial classification results of the tobacco leaf quality availability discrimination model, take the high-dimensional sample data of all tobacco leaf samples as sample data to train and solve the tobacco leaf quality availability discrimination model, and obtain the discriminant function of the tobacco leaf quality availability discrimination model and the centroid value of each quality availability; The discrimination module is used to call the tobacco leaf quality availability discrimination model to process the high-dimensional sample data of the tobacco leaves to be discriminated after obtaining the high-dimensional sample data of the tobacco leaves to be discriminated, obtain the discriminant function value, and calculate the Mahalanobis distance between the discriminant function value and the centroid of each quality availability. The quality availability corresponding to the minimum Mahalanobis distance is the target tobacco leaf quality availability.
6. The device for judging the quality availability of flue-cured tobacco based on chemical composition and improved kernel function according to claim 5, characterized in that: Also includes: A segmentation module is used to calculate the standard deviation of the discriminant function value from the centroid of the target tobacco leaf quality availability after obtaining the target tobacco leaf quality availability, and perform quality availability segmentation on the target tobacco leaf quality availability based on the standard deviation; If the standard deviation is <1, the tobacco leaves to be identified are judged to be typical samples of the quality availability of the target tobacco leaves; if 1<=standard deviation<2, the tobacco leaves to be identified are judged to be sub-typical samples of the quality availability of the target tobacco leaves; if the standard deviation is >=2, the tobacco leaves to be identified are judged to be atypical samples of the quality availability of the target tobacco leaves.
7. The device for judging the quality availability of flue-cured tobacco based on chemical composition and improved kernel function according to claim 6, characterized in that: It also includes an assignment module, which is used to digitally assign values to the tobacco leaves to be identified based on the subdivision quality availability and the assignment comparison relationship and the subdivision quality availability of the tobacco leaves to be identified.
8. A device for judging the quality availability of flue-cured tobacco based on chemical composition and improved kernel function according to any one of claims 5 to 7, characterized in that: The 70 major and semi-trace chemical components of tobacco leaf samples are: water-soluble total sugar, reducing sugar, total alkaloids, total nitrogen, potassium, chloride, starch, sulfate, phosphate, calcium, magnesium, neochlorogenic acid, chlorogenic acid, cryptochlorogenic acid, scopoletin, rutin, oxalic acid, malonic acid, succinic acid, malic acid, citric acid, vanillic acid, myristic acid, hexadecanoic acid, linoleic acid + oleic acid, linolenic acid, octadecanoic acid, eicosanoic acid, aspartic acid, threonine, serine, asparagine, glutamine, amino acid, glutamine, glycine, alanine, valine, cystine, methionine, isoleucine, leucine, tyrosine, phenylalanine, 4-aminobutyric acid, lysine, histidine, tryptophan, arginine, proline, 1-deoxy-1-L-alanine-D-fructose (FRU-ALA), 1-deoxy-1-L-valine-D-fructose (FRU-VAL), 1-deoxy-1-L-proline-D-fructose (FRU-PRO) , 1-deoxy-1-L-phenylalanine-D-fructose (FRU-PHE), l-deoxy-1-L-tryptophan-D-fructose (FRU-TRP), 1-deoxy-1-L-isoleucine-D-fructose (FRU-ILE), 1-deoxy-1-L-leucine-D-fructose (FRU-LEU), 1-deoxy-1-L-asparagine-D-fructose (FRU-ASN), 1-deoxy-1-L-glutamate-D-fructose (FRU-GLU) , 1-deoxy-1-L-aminobutyric acid-D-fructose (FRU-AMB), 1-deoxy-1-L-aspartic acid-D-fructose (FRU-ASP), 1-deoxy-1-L-glutamine-D-fructose (FRU-GLN), 1-deoxy-1-L-glycine-D-fructose (FRU-GLY), 1-deoxy-1-L-histidine-D-fructose (FRU-HIS), 1-deoxy-1-L-threonine-D-fructose (FRU-THR), 1-deoxy-1-L-tyrosine-D-fructose (FRU-TYR), glucosamine (GLU-AN), dichloromethane extract, pH, solanesol, neophytadiene.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method for determining the quality availability of flue-cured tobacco according to any one of claims 1 to 4.
10. A computer device, characterized in that: include: Memory and processor, The memory stores a computer program; The processor is used to execute the computer program stored in the memory, and when the computer program is running, the processor executes the method for determining the quality availability of flue-cured tobacco according to any one of claims 1 to 4.
