Flue-cured tobacco grade discrimination method and device based on chemical components and mixed kernel function
Through the method based on chemical composition and hybrid kernel function, the problem of non-linear factors in the representation of tobacco leaf grade in the existing technology is not reflected and the model is not accurate enough, and the accurate, robust and digital characterization of tobacco leaf grade is achieved, which is suitable for tobacco leaf grade. Rapid identification and formulation design of tobacco leaf groups.
Patent Information
- Application Number
- CN202410621148.0
- 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
Existing tobacco leaf grade characterization methods have problems such as non-reflection of non-linear factors, insufficient accuracy of a single kernel function model, insufficient chemical composition to reflect trace characteristics, and lack of digital representation.
Using a method based on chemical composition and hybrid kernel functions, by obtaining 70 kinds of constant and semi-trace chemical composition data, standardizing it and mapping it to a high-dimensional space, a tobacco leaf grade discrimination model based on kernel Fisher discrimination or support vector machine is constructed to achieve tobacco leaf Accurate identification and digital representation of grades.
It improves the accuracy and robustness of the identification of tobacco leaf grades, achieves rapid, objective and precise characterization of tobacco leaf grades, gets rid of the subjectivity of sensory evaluation, clarifies the material basis of different grades, and provides the basis for tobacco leaf group formula and threshing and re-baking. Provides a digital design foundation.
Smart Images

Figure CN118588201A
Abstract
Description
Technical Field
[0001] The invention relates to the field of digital representation of tobacco leaf grades, and in particular to a method and device for distinguishing flue-cured tobacco grades based on chemical composition and mixed kernel functions. Background Art
[0002] Tobacco raw materials are the first workshop in cigarette production. Different grades of tobacco have significant sensory differences. For example, B1F and B2F grade tobacco generally have sufficient aroma, but the smell and stimulation are often large. C4F and X2F grade tobacco have less aroma, less smell and stimulation. C1F, C2F, and C3F grade tobacco often have better aroma, moderate aroma, less smell and stimulation. Therefore, accurate identification and digital assignment of different grades of tobacco are of great significance for the subsequent use of tobacco. In the past, the characterization of tobacco grades mostly used preset rules combined with sensory evaluation methods. B is upper tobacco, C is middle tobacco, and X is lower tobacco. The sensory grade is marked with numbers and color letters, such as B1F, C3F, and X2F. However, there are problems such as relatively fixed preset rules, which make it difficult to accurately match different samples; low efficiency in obtaining sensory evaluation data, and many factors affecting data quality. Therefore, the previous method can no longer meet current industrial needs.
[0003] Previously, there have been some studies on tobacco leaf grade or part identification. For example, Song Xiangzhong and others used near-infrared spectroscopy combined with LSTSVM algorithm to distinguish tobacco leaves of different grades. Tang Guo and others used near-infrared spectroscopy combined with PLS-DA to classify tobacco leaf grades. Yang Kai and others also analyzed the part characteristics of tobacco leaves using the projection model method based on near-infrared spectroscopy. There is also patent application number 202210611757.9 that discloses a technical solution for determining the availability of upper tobacco leaves using three indicators: tobacco leaf maturity, organizational structure and identity. And patent applications No. 202211137414.X, No. 201810030983.1 and No. 202111556418.7 use image data, principal component analysis or neural networks, and construct classification models to classify tobacco leaf parts or simultaneously identify the parts of multiple tobacco leaves.
[0004] However, the following problems still exist: (1) There are nonlinear factors in the grading of flue-cured tobacco leaves. Some studies only use linear discriminant methods to characterize the grades, which is not accurate enough and does not reflect the nonlinear factors in objective reality; (2) Some studies only use a single type of kernel function and fail to combine the advantages or characteristics of various kernel functions. The model is not accurate and robust enough; (3) Some studies use commonly used chemical components, with few chemical components, or only use spectral data, which cannot truly reflect the correlation between trace chemical components and the grade characteristics of flue-cured tobacco, and the material basis of different grades is unclear; (4) Tobacco leaf grades are not digitally represented.
[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 distinguishing the grade of flue-cured tobacco based on chemical composition and mixed 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 distinguishing flue-cured tobacco grades based on chemical composition and a mixed kernel function, comprising the following steps:
[0009] Tobacco leaf samples of different flue-cured tobacco grades 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 hybrid kernel function 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; f j (x 1 ,x 2 ) is the jth single kernel function, w j is the weight of the j-th single kernel function;
[0011] Construct a tobacco leaf grade discrimination model based on the kernel function Fisher discriminant or the kernel function support vector machine, use tobacco leaves of different grades in the modeling data set as the initial classification results of the tobacco leaf grade discrimination model, train and solve the tobacco leaf grade discrimination model with the sample data of all tobacco leaf samples, and obtain the tobacco leaf grade discrimination model;
[0012] Obtain data on 70 constant and semi-trace chemical components of tobacco leaves to be identified, and perform standardization and mixed kernel function analysis in turn. 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 the tobacco leaves to be identified into the tobacco leaf grade identification model, the predicted grade of the samples is obtained.
[0014] In a possible design, if a tobacco leaf grade discrimination model is constructed based on the kernel Fisher discriminant, after the construction is completed, the discriminant function of the tobacco leaf grade discrimination model and the centroid values of each grade of the discriminant function are obtained;
[0015] After substituting the high-dimensional sample data of the tobacco leaves to be identified into the tobacco leaf grade discrimination model, the discriminant function value is obtained, and the Mahalanobis distance between the discriminant function value and the centroid of each grade is calculated. The grade corresponding to the minimum Mahalanobis distance is the target tobacco leaf grade.
[0016] In a possible design, if a tobacco leaf grade discrimination model is constructed based on a kernel function support vector machine, after the construction is completed, multiple binary classification sub-models of the tobacco leaf grade discrimination model are obtained, and each binary classification sub-model corresponds to a level, which is used to predict whether the sample belongs to this level;
[0017] After substituting the high-dimensional sample data of the tobacco leaves to be identified into the tobacco leaf grade identification model, multiple binary classification sub-models predict whether the sample belongs to this grade, and the grade to which the sample belongs is the target tobacco leaf grade.
[0018] In a possible design, if the target tobacco leaf grade is determined based on the minimum Mahalanobis distance, after the target tobacco leaf grade is determined, the grade index is assigned based on the minimum Mahalanobis distance and a preset assignment rule;
[0019] If the target tobacco grade is determined based on multiple binary classification sub-models, after the target tobacco grade is determined, the score of the sample to be judged is further compared with the average value of the tobacco grade to which it belongs, and the grade index is assigned based on the comparison result and the preset assignment rules.
[0020] A second aspect of the present invention provides a device for distinguishing flue-cured tobacco grades based on chemical composition and mixed kernel functions, comprising:
[0021] Modeling dataset, including tobacco leaf samples of different grades;
[0022] A module for obtaining tobacco leaves to be identified, used for obtaining tobacco leaves to be identified;
[0023] 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;
[0024] A standardization processing module is used to standardize the content data of each chemical component;
[0025] High-dimensional mapping module for using mixed kernel functions 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 a hybrid kernel function is used to 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; f j (x 1 ,x 2 ) is the jth single kernel function, w j is the weight of the j-th single kernel function;
[0026] The grade discrimination model building module is used to build a tobacco grade discrimination model based on the kernel function Fisher discriminant or the kernel function support vector machine, taking tobacco leaves of different grades in the modeling data set as the initial classification results of the tobacco grade discrimination model, and training and solving the tobacco grade discrimination model with the sample data of all tobacco leaf samples to obtain the tobacco grade discrimination model;
[0027] The discrimination module is used to obtain high-dimensional sample data of tobacco leaves to be discriminated, and then call the tobacco leaf grade discrimination model to process the high-dimensional sample data of tobacco leaves to be discriminated to obtain the predicted grade of the samples.
[0028] 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 grade determination method.
[0029] A fourth aspect provides a computer device, comprising: a memory and a processor,
[0030] The memory stores a computer program;
[0031] 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 flue-cured tobacco grade determination method.
[0032] Compared with the prior art, the present invention has outstanding substantial features and significant progress. Specifically, the present invention obtains 70 chemical components in tobacco leaves, and based on these chemical components, converts the samples into a high-dimensional space through a mixed kernel function, and adopts Fisher or support vector machine classification and discrimination modeling methods to construct a tobacco leaf grade discrimination model based on chemical components to identify the tobacco leaf grade. The tobacco grade discrimination model is constructed based on the chemical composition of tobacco leaves, which can quickly discriminate various tobacco grades and realize quantitative characterization of grades, getting rid of the previous subjective method of judging tobacco grades through sensory evaluation; tobacco grade classification based on tobacco chemical components that are correlated with trace aroma components of tobacco leaves can make full use of the relationship between tobacco grade and trace aroma components of tobacco leaves, so that the material basis of tobacco leaves of different tobacco grades is clear; because the kernel Fisher classification discrimination takes nonlinear factors into consideration, it is more suitable for extracting nonlinear features of different tobacco grades than linear classification methods. These nonlinear features are more conducive to the identification and classification of tobacco grades, so the accuracy of tobacco grade characterization is higher, and the rapid, objective, robust and accurate characterization of tobacco grades is truly realized.
[0033] On this basis, the present invention further subdivides and digitally assigns values to the flue-cured tobacco grades according to the standard deviation of each tobacco leaf from the centroid of each grade, which can achieve quantitative characterization of typical and subtype tobacco grades 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
[0034] Figure 1 It is a schematic flow chart of the flue-cured tobacco grade discrimination method based on chemical composition and mixed kernel function of the present invention.
[0035] Figure 2 Schematic diagram of a method for distinguishing flue-cured tobacco grades based on chemical composition and mixed kernel function in Example 1 of the present invention
[0036] Figure 3 1 is a flow chart of a flue-cured tobacco grade discrimination method based on chemical composition and mixed kernel function according to Example 2 of the present invention.
[0037] Figure 4 1 is a schematic diagram of the principle of a device for distinguishing flue-cured tobacco grades based on chemical composition and mixed kernel function according to Example 5 of the present invention. DETAILED DESCRIPTION
[0038] The current national flue-cured tobacco grading standard not only adopts the internationally accepted grouping and grading methods, but also uses English letters to indicate groups and grades, which is convenient for international communication and tobacco leaf export trade. The general method of writing grade symbols is: part + quality + color. Among them, the part and color are represented by English letters, and the quality is represented by Arabic numerals.
[0039] Specifically, the parts are represented by the three English letters B, C, and X, which represent the upper, middle, and lower parts respectively; the quality is represented by the four Arabic numerals 1, 2, 3, and 4, which represent the first, second, third, and fourth grades respectively. The colors are represented by F, L, and R, which represent orange, lemon, and reddish brown respectively. For example, the first grade of the lower orange is represented by X1F; the second grade of the middle lemon is represented by C2L.
[0040] Tobacco leaf grading can distinguish the quality of tobacco leaves, and then rationally utilize resources to obtain the best economic benefits. Therefore, it is necessary to identify the grade of flue-cured tobacco leaves, so as to lay the foundation for the subsequent tobacco leaf group formula and leaf threshing and redrying module formula.
[0041] like Figure 1 As shown, 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 kernel function Fisher discriminant or kernel function support vector machine has a wide nonlinear range. Therefore, the kernel function Fisher discriminant or kernel function support vector machine of the present invention identifies the grade of flue-cured tobacco leaves in the data set containing constant and semi-trace chemical components. Since the grade 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, and the linear method is not enough to describe the objective laws affecting the grade of tobacco leaves. Therefore, a mixed kernel function is used to integrate the characteristics of different kernel functions to make the accuracy of tobacco leaf grade discrimination higher. After identifying the grade of flue-cured tobacco leaves, the grade index is assigned based on the identified grade of flue-cured tobacco leaves and the preset assignment rules, which lays a solid foundation for the digital design of the subsequent tobacco leaf group formula and the formula of the leaf beating and re-roasting module.
[0042] The technical solution of the present invention is further described in detail below through specific implementation methods.
[0043] Example 1
[0044] This embodiment provides a method for distinguishing the grade of flue-cured tobacco based on chemical composition and mixed kernel function. Figure 2 As shown, the following steps are included:
[0045] Step 1: Obtain tobacco leaf samples of different grades as modeling data sets, and obtain 70 major and semi-trace chemical component data of each tobacco leaf sample.
[0046] Preferably, in this embodiment, 670 tobacco leaf samples of different grades are collected as the modeling data set; among them, the number of tobacco leaf samples of B1F is 46, the number of tobacco leaf samples of B2F is 63, the number of tobacco leaf samples of B3F is 23, the number of tobacco leaf samples of C1F is 41, the number of tobacco leaf samples of C2F is 197, the number of tobacco leaf samples of C3F is 151, the number of tobacco leaf samples of X1F is 33, the number of tobacco leaf samples of X2F is 65, and the number of tobacco leaf samples of X3F is 51.
[0047] 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.
[0048] 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.
[0049] 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.
[0050] 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.
[0051] 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.
[0052] 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 grade of tobacco leaves.
[0053] Existing studies rarely use chemical components to classify tobacco grades, or directly use spectral data for research, which is not enough to accurately characterize tobacco grades, and it is difficult to reflect the relationship between chemical components and tobacco grades. The 70 chemical components in this application can accurately distinguish tobacco leaves of different qualities, and the tobacco grade characterization is more accurate.
[0054] It is understandable that in specific implementation, other methods can also be used to obtain 70 chemical components, which will not be described here.
[0055] Step 2: Standardize each chemical composition data.
[0056] 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.
[0057] 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.
[0058] Table 1 gives the mean and variance data of the indicators used for center standardization.
[0059] Table 1 Mean and variance of indicators used for center standardization
[0060]
[0061] Step 3: Use hybrid kernel function 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; f j (x 1 ,x 2 ) is the jth single kernel function, specifically, f j (x 1 ,x 2 ) can be various kernel functions, such as the linear kernel f(x 1 ,x 2 )=x 1 *x 2 T , polynomial-like kernel f(x 1 ,x 2 )=(a*x1 *x 2 T +b) c , Gaussian kernel f(x1,x2)=exp(-||x1-x2|| 2 ) / sigma) etc.; w j is the weight of the jth single kernel function. It can be understood that
[0062] The classification of tobacco leaves is affected by many factors, and the linear method is not enough to describe the objective laws that affect the grade of tobacco leaves, so a nonlinear method is needed. Different kernel functions have different structures. Generally speaking, the global kernel (such as linear kernel, polynomial kernel, Sigmoid kernel) has a strong generalization ability, and the local kernel (such as radial basis kernel) has a strong learning ability. To this end, this application combines different kernel functions by weights so that the model has better learning and generalization capabilities.
[0063] Specifically, it is determined by experiments that the hybrid kernel function uses 20% linear kernel and 80% radial basis kernel function, and the parameters of the single kernel function are as follows:
[0064] f(x 1 ,x 2 )=0.2*x 1 *x 2 T +0.8*exp(-||x1-x2|| 2 ) / twenty four)
[0065] 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 670 tobacco leaf samples in the modeling data set are taken as x 1 and x 2 After substituting the formula, we finally obtained 670-dimensional high-dimensional data for each tobacco leaf sample in the modeling dataset, as shown in Tables 2 to 8.
[0066] Table 2 Modeling dataset (after center normalization) Part 1
[0067] Serial number Total plant alkaloids Reducing sugar Total Sugar Total Nitrogen K chlorine pH starch Dichloromethane extract Solanesol 1 0.9530 -0.7662 -0.7061 2.0956 -0.2410 0.7575 -0.4697 -0.8276 0.0119 0.0386 2 2.5308 -2.1308 -2.1937 1.5334 0.2069 0.7801 -1.3573 -0.8782 2.6937 2.2493 3 1.9949 -1.9996 -2.0325 1.3505 0.4740 0.4979 -1.3155 -1.0477 2.4072 2.2511 4 1.8614 -1.4779 -1.5623 1.4497 0.4005 0.5057 -1.2564 -0.5124 1.7438 1.4950 5 1.2139 -1.1488 -1.2306 0.7603 0.0219 0.4338 -1.0792 -0.4045 1.7952 1.3927 … … … … … … … … … … … … … … … … … … … … … … 666 -0.3571 0.7466 0.3927 -0.7454 0.3005 0.1916 -0.9326 -0.1693 0.0465 -0.8934 667 0.5387 -0.0522 -0.2019 0.1406 0.5850 0.4644 -0.4361 -1.2398 0.6543 -0.2662 668 0.9131 -0.7840 -0.7259 0.7165 0.2536 2.0605 -0.8622 0.6320 1.2936 1.0796 669 -0.9070 0.1972 0.6599 0.1467 -0.3737 -0.1628 1.3985 0.2992 -1.0025 -0.6747 670 2.2074 -0.9463 -0.7193 2.2476 -0.7268 -0.5513 0.5941 -0.9260 0.8703 1.3513
[0068] Table 3 Modeling dataset (after center normalization) Part II
[0069]
[0070]
[0071] Table 4 Modeling dataset (after center normalization) Part III
[0072] 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.2550 -0.3562 -0.4781 0.5871 0.7968 0.8354 -0.8868 0.6519 -1.1991 -1.6924 2 -0.0674 0.7216 -0.4247 -0.3732 2.3821 2.6343 -1.4390 2.3303 -1.0092 -0.7843 3 -0.3740 0.8247 -0.1425 -0.1229 2.4884 2.3480 -1.2669 2.3692 -0.9314 -0.4590 4 -0.0083 0.1056 -0.6287 -0.3063 2.0375 1.7002 -0.9492 2.3781 -0.1337 -0.4111 5 -0.6258 0.1960 -0.3973 -0.5053 1.7360 1.6946 -0.5801 2.0761 -0.2824 0.0017 … … … … … … … … … … … … … … … … … … … … … … 666 -1.0765 0.5667 -0.3732 0.1854 -0.5391 0.0643 0.3717 -0.5096 -0.1020 0.6125 667 -0.1732 0.4298 -0.2198 0.3041 -0.0853 0.4671 -0.3967 -0.0562 -1.0418 -0.0499 668 -0.2833 0.3286 -0.8414 -0.6982 0.9150 1.1968 -0.2479 0.8225 -0.3477 0.0857 669 0.6376 -0.7976 0.2116 0.1836 -0.6928 -0.6499 0.1064 -0.5060 0.5107 -0.4866 670 2.1129 -0.7314 0.0851 0.6129 1.5643 1.3669 -1.2873 0.9316 0.4283 -2.1728
[0073] Table 5 Modeling data set (after center normalization) Part IV
[0074] Serial number Eicosanoic acid Aspartic acid Threonine Serine Asparagine Glutamate Glutamine Glycine Alanine Valine 1 -0.4874 1.1869 0.9561 0.9942 1.5584 0.9983 1.0240 1.2886 0.5182 1.0947 2 0.1529 -0.1441 -1.1236 -1.6508 0.1200 -0.3979 -0.8516 0.2464 -0.2897 -1.9957 3 0.5879 -0.3463 -0.9529 -1.6647 0.0897 -0.3559 -0.8005 0.1980 -0.5883 -2.0571 4 0.2979 -0.3327 -0.7617 -0.9474 -0.0314 -0.0993 -0.8798 0.2819 0.0894 -0.3179 5 0.2765 -0.7109 -1.2914 -1.7831 -0.5459 -0.7618 -0.8549 -0.7641 -1.0838 -1.6074 … … … … … … … … … … … … … … … … … … … … … … 666 -0.4686 -0.7160 -1.2929 -1.5447 -0.8565 -0.9590 -1.0741 -1.0385 -1.4129 -1.3615 667 -0.0279 -0.3063 -0.6886 -0.7218 -0.3428 -0.1058 -0.6496 -0.3778 -0.6009 0.0822 668 0.1966 0.0323 -0.0500 -0.3428 0.1062 -0.1638 -0.4462 0.2933 0.2621 -0.1047 669 -0.2447 0.5538 1.2864 1.7466 0.6647 0.9033 1.5750 0.7196 1.1455 1.0646 670 -0.7006 1.0964 1.3538 1.1359 1.7224 1.7872 2.0552 2.0153 2.1038 0.6955
[0075] Table 6 Modeling data set (after center normalization) Part V
[0076]
[0077]
[0078] Table 7 Modeling dataset (after center normalization) Part VI
[0079] Serial number Arginine Proline Glu-An Fru-Amb Fru-His Fru-Pro Fru-Val Fru-Thr Fru-Gly Fru-Ala 1 1.7376 1.3618 1.7580 0.0671 0.7056 0.7594 -0.3620 0.6935 2.2268 -0.1652 2 0.4858 -0.4747 -0.4375 -2.1902 -1.2583 -1.1832 -2.6914 -1.7579 1.6253 -1.1208 3 0.5173 -0.4468 -0.3734 -1.9987 -1.2803 -0.9911 -2.2425 -1.7579 0.7890 -0.9488 4 0.4809 -0.2229 -0.2096 -0.7724 -0.7755 -0.6121 -1.3129 -0.8622 1.5198 -0.4181 5 0.0278 -0.6616 -0.9881 -1.4871 -1.1649 -0.5393 -1.5865 -1.6815 0.9014 -0.2540 … … … … … … … … … … … … … … … … … … … … … … 666 -1.3938 -0.8797 -1.3552 -0.6829 -1.1164 0.3005 -0.2240 -1.4849 0.1316 0.5085 667 -0.5615 -0.5840 -0.5179 0.8562 -0.6766 -0.4293 0.0815 -0.7178 1.2117 0.1171 668 0.4121 -0.1460 0.1057 -0.5827 -0.6488 -0.4540 -1.2019 -0.3272 1.1257 -0.2210 669 0.9311 1.2731 0.7719 0.0572 1.4740 0.6569 0.1968 1.5664 -1.0939 -0.1936 670 2.4014 2.2942 1.6890 -0.6761 1.7073 0.7471 -1.3040 0.1954 0.3894 -0.7417
[0080] Table 8 Modeling data set (after center normalization) Part VII
[0081] Serial number Fru-Asn Fru-Asp Fru-Gln Fru-Glu Fru-Ile Fru-Leu Fru-Tyr Fru-Phe Fru-Trp Neophytadiene 1 2.0732 0.8622 0.4543 0.4989 -0.3023 -0.4496 -0.2911 -0.1758 0.5642 -0.6651 2 -0.6192 -0.5614 -1.4047 -1.7241 -1.2137 -1.3438 -2.3954 -1.6943 -1.3607 0.8376 3 -0.4826 -0.1796 -1.4047 -1.7675 -1.1452 -1.5726 -2.1831 -1.9625 -1.1977 1.7661 4 -0.0335 0.1087 -1.4047 -1.1385 -0.4575 -0.5460 -1.6362 -1.2023 -0.6220 1.2434 5 -0.5487 -0.3444 -1.4047 -1.5756 -0.7732 -0.9669 -1.7058 -1.5370 -1.1705 0.9968 … … … … … … … … … … … … … … … … … … … … … … 666 -1.1684 0.0029 -1.1889 -0.9818 -0.0654 -0.1477 -0.9558 -0.8611 -1.4286 -1.3376 667 -0.4514 -0.1961 -0.8108 -0.4397 0.4478 0.5070 -1.0797 -0.0176 -0.8006 -0.9640 668 0.0002 -0.9765 -0.6631 -0.7665 -0.6831 -0.4098 -0.9289 0.3154 -0.3467 1.0499 669 0.9987 -0.5139 1.8648 1.6430 -0.3720 -0.2240 1.1484 0.5075 1.7897 0.5822 670 2.1352 0.0096 1.5074 1.3538 -1.3614 -1.5348 0.7422 -0.3667 1.8484 1.0466
[0082] Step 4, construct a tobacco leaf grade discrimination model based on kernel Fisher discriminant, use tobacco leaves of different grades in the modeling data set as the initial classification results of the tobacco leaf grade discrimination model, use the high-dimensional sample data of all tobacco leaf samples as sample data to train and solve the tobacco leaf grade discrimination model, and obtain the high-dimensional discriminant function of the tobacco leaf grade discrimination model, the centroid value of each grade, and the covariance matrix of each grade.
[0083] It should be noted that since the previous modeling dataset includes 670 tobacco leaf samples, each tobacco leaf sample is a 670-dimensional high-dimensional sample data, so the modeling dataset is a 670*670 matrix.
[0084] Furthermore, generally speaking, the number of high-dimensional discriminant functions is equal to the number of categories minus one. For this embodiment, since the tobacco samples in the modeling data set include 9 levels including B1F, B2F, B3F, C1F, C2F, C3F, X1F, X2F, and X3F, the high-dimensional discriminant function is 9-1=8 columns, that is, the high-dimensional discriminant function is 670*8.
[0085] Specifically, the variable coefficients of the high-dimensional discriminant function are shown in Table 9.
[0086] Table 9 Variable coefficients of high-dimensional discriminant function
[0087] Serial number Dimension 1 Dimension 2 Dimension 3 Dimension 4 Dimension 5 Dimension 6 Dimension 7 Dimension 8 1 0.0274 0.0122 0.0346 -0.0544 0.0291 -0.0388 -0.0484 -0.0084 2 -0.0417 0.0016 0.0035 -0.0381 0.0173 -0.0232 -0.0696 -0.0071 3 -0.0235 0.0007 0.0025 0.0046 0.0184 -0.0043 -0.0346 -0.0100 4 -0.0308 -0.0135 0.0271 -0.0753 0.0590 -0.0286 -0.0975 -0.0280 5 -0.0630 -0.0158 0.0177 -0.0466 0.0668 -0.0092 -0.0552 -0.0325 6 -0.0529 -0.0039 0.0064 -0.0627 0.0232 0.0078 -0.0309 0.0106 7 -0.0652 -0.0402 -0.0069 -0.0413 0.0264 -0.0047 -0.0359 -0.0185 8 0.0134 -0.0080 0.0284 -0.0601 0.0280 -0.0174 -0.0452 0.0053 9 -0.0281 -0.0372 -0.0032 -0.0733 0.0454 -0.0135 -0.0838 -0.0133 10 -0.0550 -0.0195 0.0249 -0.1133 0.0388 -0.0133 -0.0699 -0.0024 … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … 661 -0.0169 0.1004 -0.0221 0.0596 0.0136 0.1228 0.0128 0.0061 662 -0.0422 0.0114 -0.0466 -0.0002 0.0109 0.1355 0.0044 0.0010 663 0.0095 -0.1076 0.0401 0.1032 0.1082 0.1230 -0.0290 0.0037 664 -0.0405 0.0688 0.0162 0.0144 0.0494 0.0995 -0.0146 -0.0021 665 -0.0259 0.0251 -0.0342 -0.0050 0.0140 0.0925 -0.0078 0.0024 666 -0.0376 0.0632 0.0096 0.0050 0.0506 0.0957 -0.0130 0.0039 667 -0.0393 0.0303 -0.0446 -0.0126 0.0141 0.1000 -0.0060 -0.0148 668 -0.0246 0.0966 0.0114 -0.0072 0.0440 0.1124 -0.0516 -0.0188 669 0.0256 0.0076 0.0031 0.0274 0.0048 0.0311 0.0061 -0.0373 670 -0.0332 -0.0194 0.0363 -0.0522 -0.0089 -0.0212 -0.0315 -0.0022
[0088] Among them, the centroid functions of the nine grades are shown in Table 10, and the covariance matrix of the nine tobacco leaf grades in the 8-dimensional space is shown in Table 11:
[0089] Table 10 Centroid functions of nine tobacco leaf grades
[0090] Dimension 1 Dimension 2 Dimension 3 Dimension 4 Dimension 5 Dimension 6 Dimension 7 Dimension 8 B1F -0.0522 -0.0425 -0.0010 -0.0476 0.0305 -0.0091 -0.0161 0.0020 B2F -0.0674 -0.0426 -0.0085 -0.0090 0.0066 0.0070 0.0518 0.0060 B3F -0.1083 -0.0266 -0.0441 0.0702 -0.0047 -0.0122 -0.0055 -0.0004 C1F 0.0643 -0.0110 -0.0697 0.0201 0.0585 -0.0217 0.0191 0.0102 C2F 0.0423 -0.0064 -0.0084 0.0165 -0.0096 -0.0043 -0.0026 0.0273 C3F 0.0377 0.0049 0.0017 0.0233 -0.0093 -0.0023 0.0034 -0.0211 X1F -0.0019 0.0506 0.0629 0.0512 0.0495 -0.0384 0.0222 0.0009 X2F -0.0123 0.1295 -0.0199 -0.0196 -0.0112 -0.0178 0.0157 0.0054 X3F -0.0111 0.0543 0.0093 0.0340 0.0410 0.0528 0.0018 -0.0003
[0091] Table 11 Covariance of 9 tobacco leaf grades in 8-dimensional space
[0092]
[0093]
[0094]
[0095] Step 5: Obtain 70 constant and semi-trace chemical component data of the tobacco leaves to be identified, and perform standardization and hybrid kernel function analysis in turn. High-dimensional mapping processing is performed to obtain high-dimensional sample data of the tobacco leaves to be identified.
[0096] 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.
[0097] 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.
[0098] 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 processing in step 3, the standardization processing method in step 5 is also the central standardization method.
[0099] Similarly, the hybrid kernel function is f(x 1 ,x 2 )=0.2*x 1 *x 2 T +0.8*exp(-||x1-x2||2 ) / twenty four).
[0100] Step 6, after substituting the high-dimensional sample data of the tobacco leaves to be identified obtained in step 5 into the tobacco leaf grade 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 centroid of each grade is calculated based on the discriminant function value. The grade corresponding to the minimum Mahalanobis distance is the tobacco leaf grade.
[0101] Specifically, the steps for calculating the Mahalanobis distance between the tobacco leaf to be identified and the centroid of the nine grades are as follows:
[0102]
[0103] Among them, ∑ is the covariance matrix, y is the 8-dimensional discriminant function value, y 0 k is the centroid function value of the kth level.
[0104] It can be understood that, in specific implementation, the grade corresponding to the smallest Mahalanobis distance is selected as the target tobacco leaf grade.
[0105] Based on the above tobacco leaf grade discrimination model, the discrimination accuracy of 670 tobacco leaf samples in the modeling data set is shown in Table 12:
[0106] Table 12 The accuracy of nine tobacco leaf grades
[0107]
[0108] It can be seen that the discrimination accuracy is 96.4%, indicating that the model is robust and reliable.
[0109] Furthermore, after determining the target tobacco leaf grade, the grade index is assigned based on the Mahalanobis distance and a preset assignment rule; the preset assignment rule is:
[0110] The initial scores of the sample grades are: 9 points for B1F, 8 points for B2F, 7 points for B3F, 6 points for C1F, 5 points for C2F, 4 points for C3F, 3 points for X1F, 2 points for X2F, and 1 point for X3F;
[0111] After determining the target tobacco leaf grade, if the Mahalanobis distance from the sample to be identified to the centroid of the target tobacco leaf grade, that is, the aforementioned minimum Mahalanobis distance, is less than 2.25, it is judged as a typical sample; if the Mahalanobis distance from the sample to be identified to the centroid of the target tobacco leaf grade, that is, the aforementioned minimum Mahalanobis distance, is greater than or equal to 2.25, it is regarded as an atypical sample, and the initial score of the sample grade is subtracted by 0.5 points.
[0112] Example 2
[0113] The difference between this embodiment and embodiment 1 is that: Figure 3As shown in the figure, tobacco samples of different flue-cured tobacco grades were obtained as modeling data sets, and 70 constant and semi-trace chemical component data of each tobacco leaf sample were obtained. After standardization of each chemical component data, a mixed kernel function was used to The chemical composition data of each tobacco leaf sample after standardized processing in the modeling data set are mapped to the high-dimensional space to obtain the high-dimensional sample data of each tobacco leaf sample.
[0114] In this embodiment, the hybrid kernel function uses 35% polynomial and 65% radial basis kernel function, and the parameters of the single kernel function are as follows: f(x 1 ,x 2 )=0.35*(1 / 50*x 1 *x 2 T +1) 4 +0.65*exp(-||x1-x2|| 2 ) / twenty one).
[0115] A tobacco grade discrimination model based on kernel function support vector machine was constructed, and tobacco leaves of different grades in the modeling data set were used as the initial classification results of the tobacco grade discrimination model. The sample data of all tobacco samples were trained and solved to obtain the tobacco grade discrimination model; the tobacco grade discrimination model includes nine binary classification sub-models, each of which corresponds to a level and is used to predict whether the sample belongs to this level. Among them, the predicted positive value is the current level, and the predicted negative value is other levels.
[0116] After substituting the high-dimensional sample data of the tobacco leaves to be identified into the tobacco leaf grade identification model, multiple binary classification sub-models predict whether the sample belongs to this grade, and the grade to which the sample belongs is the target tobacco leaf grade.
[0117] For ease of understanding, Table 13 gives an example structure of one of the two-classification sub-models, which contains the aforementioned modeling data, whether it is a support vector, α value (alpha uptake of non-support vectors, recorded as 0), positive and negative example labels, bias value and other information, which is used to determine whether the sample belongs to the B1F class or other classes.
[0118] Table 13 Information about the binary classification support vector machine sub-model of B1F class for other classes
[0119]
[0120]
[0121] The bias value b is -1.4511, and the sample score is calculated according to the formula:
[0122] score=(∑ i=1,2,……670 α i *yi *f(x 1 *x i ))+b;
[0123] In the formula, y i is the i-th value of the positive and negative examples marked y, f(x 1 ,x i ) is the aforementioned hybrid kernel function.
[0124] After obtaining 9 predicted values for each sample, the group with the maximum positive predicted value is used as its grade. Based on the above tobacco grade discrimination model, the discrimination accuracy of tobacco samples in the modeling data set is shown in Table 14:
[0125] Table 14 The accuracy of nine tobacco leaf grades
[0126]
[0127] Furthermore, if the target tobacco grade is determined based on multiple binary classification sub-models, after the target tobacco grade is determined, the score of the sample to be judged is further compared with the average value of the tobacco grade to which it belongs, and the grade index is assigned based on the comparison result and the preset assignment rules.
[0128] Specifically, the preset assignment rule is:
[0129] For the predicted sample grouping, B1F is assigned 9 points, B2F is assigned 8 points, B3F is assigned 7 points, C1F is assigned 6 points, C2F is assigned 5 points, C3F is assigned 4 points, X1F is assigned 3 points, X2F is assigned 2 points, and X3F is assigned 1 point;
[0130] When the model is a support vector machine, based on the average score of each group of samples, if the score of the sample to be judged is greater than the average of its group, it is regarded as a typical sample. If it is less than the average of its group, it is regarded as an atypical sample, and 0.5 points are subtracted from the value assigned in the previous step.
[0131] Example 3
[0132] This embodiment provides the prediction result and value assignment of a B1F sample in the kernel function Fisher discriminant model.
[0133] For a B1F tobacco leaf sample, 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.
[0134] The central normalization method was used to standardize the contents of all chemical components. The samples were converted to high-dimensional space through a mixing function. The high-dimensional data of the tobacco leaf samples were shown in the following table:
[0135] Table 15 High-dimensional data of tobacco leaf samples
[0136]
[0137] According to the Fisher discriminant function in Table 9, the 8-dimensional function value of the tobacco leaf sample is calculated, as shown in the following table:
[0138] Table 16 8-dimensional function values of tobacco leaf samples
[0139] Numeric Numeric Dimension 1 -0.06152 Dimension 5 0.03301 Dimension 2 -0.05231 Dimension 6 -0.00799 Dimension 3 -0.00509 Dimension 7 -0.02289 Dimension 4 -0.0568 Dimension 8 -0.00239
[0140] The Mahalanobis distance of the sample from 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 level, as shown in Table 17:
[0141] Table 17 Mahalanobis distances of samples from each centroid
[0142] Mahalanobis distance Mahalanobis distance Mahalanobis distance From B1F 2.006932 Distance from C1F 27.74811 Distance X1F 22.67512 Distance from B2F 7.702639 Distance from C2F 18.16726 Distance X2F 66.92885 Distance from B3F 18.74118 Distance from C3F 17.51904 Distance X3F 7.287829
[0143] It can be seen that the Mahalanobis distance from this sample to B1F is the smallest, so the grade of this sample is B1F.
[0144] Furthermore, according to the principles of tobacco leaf grade assignment, the distance of this sample from the B1F centroid is less than 2.25, and is assigned 9 points.
[0145] Example 4
[0146] This embodiment provides the prediction result and value assignment of a C2F sample in the kernel function support vector machine discriminant model.
[0147] For a C2F tobacco leaf sample, 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 70 chemical components of each tobacco leaf sample were obtained based on the near-infrared spectrum of the sample using the method reported in the aforementioned literature.
[0148] The central normalization method was used to standardize the contents of all chemical components. The samples were converted to high-dimensional space through a mixed kernel function. The high-dimensional data of the tobacco leaf samples were shown in the following table:
[0149] Table 18 High-dimensional data of tobacco leaf samples
[0150]
[0151] According to the formula for calculating the score of the kernel function support vector machine mentioned above, the high-dimensional data is substituted into each sub-model in the kernel function support vector machine model. In each sub-model, the sample high-dimensional data, α value and positive and negative example labels are multiplied and summed to obtain the score of each sub-model for the sample, as shown in Table 19:
[0152] Table 19 Scoring value of each sub-model for this sample
[0153] Score Score Score B1F -1.0001 C1F -2.0312 X1F -1.3777 B2F -1.8756 C2F 0.0910 X2F -1.0001 B3F -1.0001 C3F -1.0001 X3F -1.5689
[0154] It can be seen that this sample has the highest positive score in the C2F sub-model, so the predicted grade of this sample is C2F.
[0155] The average positive scores of each group (negative values are ignored) are shown in the following table:
[0156] Table 20 Mean positive scores of each group
[0157] Mean score Mean score Mean score B1F 1.0172 C1F 0.8336 X1F 0.7535 B2F 0.8971 C2F 0.8861 X2F 1.3624 B3F 1.1075 C3F 0.8157 X3F 0.8525
[0158] According to the preset tobacco leaf grade assignment principle, the sample's score of 0.0910 in the C2F group is less than the group mean of 0.8861, and is assigned 5-0.5=4.5 points.
[0159] Example 5
[0160] This embodiment provides a device for distinguishing flue-cured tobacco grades based on chemical composition and mixed kernel function. Figure 4 As shown, including:
[0161] Modeling dataset, including tobacco leaf samples of different grades;
[0162] A module for obtaining tobacco leaves to be identified, used for obtaining tobacco leaves to be identified;
[0163] 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;
[0164] A standardization processing module is used to standardize the content data of each chemical component;
[0165] High-dimensional mapping module for using mixed kernel functions 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 a hybrid kernel function is used to 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 2is 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; f j (x 1 ,x 2 ) is the jth single kernel function, w j is the weight of the j-th single kernel function;
[0166] The grade discrimination model building module is used to build a tobacco grade discrimination model based on the kernel function Fisher discriminant or the kernel function support vector machine, taking tobacco leaves of different grades in the modeling data set as the initial classification results of the tobacco grade discrimination model, and training and solving the tobacco grade discrimination model with the sample data of all tobacco leaf samples to obtain the tobacco grade discrimination model;
[0167] The discrimination module is used to obtain high-dimensional sample data of tobacco leaves to be discriminated, and then call the tobacco leaf grade discrimination model to process the high-dimensional sample data of tobacco leaves to be discriminated to obtain the predicted grade of the samples.
[0168] In a possible example, the device for distinguishing the grade of flue-cured tobacco further includes: an assignment module, wherein the assignment module is used to digitally assign values to the tobacco leaves to be distinguished according to the prediction results and preset assignment rules.
[0169] 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 kernel function, and a kernel Fisher classification and discrimination modeling method is adopted to construct a tobacco leaf grade discrimination model based on chemical components to identify the tobacco leaf grade, which can get rid of the previous subjective method of judging the tobacco leaf grade through sensory evaluation; and because nonlinear factors are taken into account, the accuracy of tobacco leaf grade 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 grades is clear, and the rapid, objective, robust and accurate characterization of tobacco leaf grades is truly realized.
[0170] On this basis, this embodiment further subdivides and digitally assigns values to the flue-cured tobacco grades according to the standard deviation of each tobacco leaf from the centroid of each grade, which can achieve quantitative characterization of typical and subtype tobacco grades of different grades, laying a solid foundation for the digital design of subsequent tobacco leaf group formulas and leaf beating and re-roasting module formulas.
[0171] Example 6
[0172] This embodiment provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute the flue-cured tobacco grade discrimination method described in Example 1 or Example 2, such as Figure 1 shown.
[0173] Example 7
[0174] This embodiment provides a computer device, including: a memory and a processor;
[0175] The memory stores a computer program;
[0176] The processor is used to execute the computer program stored in the memory. When the computer program is running, the processor executes the flue-cured tobacco grade discrimination method described in Example 1 or Example 2, such as Figure 1 shown.
[0177] 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 flue-cured tobacco grade discrimination method based on chemical composition and mixed kernel function, characterized in that: The following steps are involved: Tobacco leaf samples of different flue-cured tobacco grades 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; Using hybrid kernel function w j 30,j=1,2,L,J Map 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; where 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; f j (x1,x2) is the jth single kernel function, w j is the weight of the j-th single kernel function; Construct a tobacco leaf grade discrimination model based on the kernel function Fisher discriminant or the kernel function support vector machine, use tobacco leaves of different grades in the modeling data set as the initial classification results of the tobacco leaf grade discrimination model, train and solve the tobacco leaf grade discrimination model with the sample data of all tobacco leaf samples, and obtain the tobacco leaf grade discrimination model; Obtain data on 70 constant and semi-trace chemical components of tobacco leaves to be identified, and perform standardization and mixed kernel function analysis in turn. w j 30, j = 1, 2, L, J performs high-dimensional mapping processing to obtain high-dimensional sample data of the tobacco leaves to be identified; After substituting the high-dimensional sample data of the tobacco leaves to be identified into the tobacco leaf grade identification model, the predicted grade of the samples is obtained.
2. The method for distinguishing flue-cured tobacco grades based on chemical composition and mixed kernel function according to claim 1, characterized in that: If a tobacco leaf grade discrimination model is constructed based on the kernel Fisher discriminant, after the construction is completed, the discriminant function of the tobacco leaf grade discrimination model and the centroid values of each grade are obtained; After substituting the high-dimensional sample data of the tobacco leaves to be identified into the tobacco leaf grade discrimination model, the discriminant function value is obtained, and the Mahalanobis distance between the discriminant function value and the centroid of each grade is calculated. The grade corresponding to the minimum Mahalanobis distance is the target tobacco leaf grade.
3. The method for distinguishing flue-cured tobacco grades based on chemical composition and mixed kernel function according to claim 1, characterized in that: If a tobacco leaf grade discrimination model is constructed based on a kernel function support vector machine, after the construction is completed, a tobacco leaf grade discrimination model is obtained, wherein the tobacco leaf grade discrimination model includes a plurality of binary classification sub-models, each of which corresponds to a level and is used to predict whether a sample belongs to this level; After substituting the high-dimensional sample data of the tobacco leaves to be identified into the tobacco leaf grade identification model, multiple binary classification sub-models predict whether the sample belongs to this grade, and the grade to which the sample belongs is the target tobacco leaf grade.
4. A flue-cured tobacco grade discrimination method based on chemical composition and mixed kernel function according to claim 2 or 4, characterized in that: If the target tobacco leaf grade is determined based on the minimum Mahalanobis distance, after the target tobacco leaf grade is determined, the grade index is assigned based on the minimum Mahalanobis distance and the preset assignment rule; If the target tobacco grade is determined based on multiple binary classification sub-models, after the target tobacco grade is determined, the score of the sample to be judged is further compared with the average value of the tobacco grade to which it belongs, and the grade index is assigned based on the comparison result and the preset assignment rules.
5. The method for distinguishing flue-cured tobacco grades based on chemical composition and mixed kernel function according to claim 4, 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, 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-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, neophytadiene.
6. A flue-cured tobacco grade discrimination device based on chemical composition and mixed kernel function, characterized in that: include: Modeling dataset, including tobacco leaf samples of different grades; 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 for using mixed kernel functions w j ≥0,j=1,2,…,J maps 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 hybrid kernel function w j ≥0,j=1,2,…,J performs high-dimensional mapping on the chemical composition data of the tobacco leaves to be identified after the standardized processing to obtain the 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; f j (x1,x2) is the jth single kernel function, w j is the weight of the j-th single kernel function; The grade discrimination model building module is used to build a tobacco grade discrimination model based on the kernel function Fisher discriminant or the kernel function support vector machine, taking tobacco leaves of different grades in the modeling data set as the initial classification results of the tobacco grade discrimination model, and training and solving the tobacco grade discrimination model with the sample data of all tobacco leaf samples to obtain the tobacco grade discrimination model; The discrimination module is used to obtain high-dimensional sample data of tobacco leaves to be discriminated, and then call the tobacco leaf grade discrimination model to process the high-dimensional sample data of tobacco leaves to be discriminated to obtain the predicted grade of the samples.
7. The device for distinguishing flue-cured tobacco grades based on chemical composition and mixed 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 prediction results and preset assignment rules.
8. A device for distinguishing flue-cured tobacco grades based on chemical composition and mixed kernel function according to any one of claims 6 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, 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-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, 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 flue-cured tobacco grade discrimination method according to any one of claims 1 to 5.
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 flue-cured tobacco grade discrimination method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Machine vision-based tobacco leaf portion identification method, electronic device and storage medium
CN108268895A
Method for judging availability of upper tobacco leaves
CN114778780A
Mask R-CNN-based synchronous identification method for multiple tobacco leaf parts
CN114972154A
Method and device for predicting tobacco chemical components based on spectrum conversion
CN115165795A
Vision-based flue-cured tobacco leaf part classification method and device and electronic equipment
CN115457327A
Cited By
Flue-cured tobacco real-time grading method and device based on near-infrared online detection data
CN119715450A
