Fruit variety rapid prediction method based on flavor analysis

By combining electronic nose and GC-MS technology, the multi-layer perceptron MLP model is used for fruit variety prediction, which solves the problem of rapid and accurate fruit variety identification in the existing technology and achieves efficient fruit variety differentiation and quality evaluation.

CN118820876APending Publication Date: 2024-10-22KUNMING UNIV OF SCI & TECH
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410760619.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

The existing technology lacks a method for quickly and accurately distinguishing fruit varieties, and cannot meet the needs of the fruit market for fruit quality identification.

Method used

Using a method based on flavor analysis, combined with electronic nose system and gas chromatography-mass spectrometry GC-MS technology, by obtaining the maximum response value and volatile compound composition of fruit samples, the multi-layer perceptron MLP model is used to predict fruit varieties and introduce similarities. Loss-optimized classification models.

Benefits of technology

It achieves fast and accurate differentiation of fruit varieties, improves the accuracy of the electronic nose feature prediction model, is easy to operate, and is suitable for fruit quality evaluation and identification of other fruit and vegetable varieties.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118820876A_ABST
    Figure CN118820876A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of fruit variety identification and identification, solves the technical problem of lack of a method for rapidly and accurately distinguishing fruit varieties in the prior art, and particularly relates to a fruit variety rapid prediction method based on flavor analysis. Comprising the following steps: acquiring maximum response values of different fruit samples in E-nose system determination and volatile compounds with composition and content in gas chromatography-mass spectrometry (GC-MS) determination; and carrying out feature screening on the volatile compounds to obtain a plurality of key volatile compounds, and respectively constructing a plurality of compound feature prediction models and electronic nose feature prediction models based on a plurality of machine learning algorithm models. According to the method, the smell characteristics of the fruits are evaluated by adopting GC-MS and E-nose, the method for rapidly and accurately distinguishing the fruit varieties is developed based on a machine learning algorithm, the method can be used for solving the quality difference problem of fruit commodities, reference is provided for fruit quality evaluation research, and the method has high application and popularization values.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of fruit variety recognition and identification, and in particular to a fruit variety rapid prediction method based on flavor analysis. Background Art

[0002] Food flavor plays an important role in reflecting classification, geographical origin, maturity and sensory quality. Aroma is the most important attribute in the composition of fruit flavor characteristics and is directly related to the type and content of volatile substances in the fruit. The volatile components of different fruit varieties directly determine their flavor and are an important factor affecting consumers' willingness to buy.

[0003] With the development of the fruit market and the increasing demand of consumers for fruit quality, traditional manual identification and experience-based judgment of fruit varieties can no longer meet the demand. Therefore, the application of new detection technologies and rapid identification technologies of fruit varieties have become increasingly important in the field of fruits and vegetables. Obviously, there is a lack of a method for quickly and accurately distinguishing fruit varieties in the prior art. Summary of the invention

[0004] In view of the deficiencies in the prior art, the present invention provides a method for quickly predicting fruit varieties based on flavor analysis, which solves the technical problem in the prior art of lacking a method for quickly and accurately distinguishing fruit varieties.

[0005] To solve the above technical problems, the present invention provides the following technical solution: a method for rapid prediction of fruit varieties based on flavor analysis, the method comprising the following steps:

[0006] S1. Obtain the maximum response value of different fruit samples in the electronic nose system and the volatile compounds including composition and content in the gas chromatography-mass spectrometry GC-MS determination;

[0007] S2. Screening the characteristics of volatile compounds to obtain several key volatile compounds, and constructing several compound characteristic prediction models and electronic nose characteristic prediction models based on multiple machine learning algorithm models;

[0008] S3, constructing a Similarity Measure-MLP model for predicting fruit varieties. The Similarity Measure-MLP model consists of an electronic nose feature prediction model and a compound feature prediction model;

[0009] S4. Input the characteristic parameters of the fruit sample to be tested into the Similarity Measure-MLP model to obtain the predicted variety of the fruit sample.

[0010] Furthermore, the electronic nose system should be equipped with a plurality of gas sensors, and the gas sensors are metal oxide sensors.

[0011] Furthermore, in step S1, the specific process includes the following steps:

[0012] S11, using an electronic nose system to detect the response signal values ​​of different fruit samples in the gas sensor, and selecting the maximum signal response value corresponding to the gas sensor as the maximum response value;

[0013] S12. Using gas chromatography-mass spectrometry (GC-MS) to determine the volatile compounds of different fruit varieties, specifically: weighing a predetermined amount of fruit sample, putting it into a headspace bottle of a predetermined capacity and sealing it, extracting the volatile components at a predetermined time and a predetermined temperature, and analyzing after the extraction to obtain the composition and content of the volatile compounds.

[0014] Further, in step S11, specifically: weigh a certain amount of sample and put it into a headspace bottle of a specified capacity, and place the headspace bottle in a water bath to balance at a predetermined temperature for a predetermined time;

[0015] One sampling needle of the electronic nose system is inserted into the headspace bottle, and the other sampling needle is connected to the air. The gas in the bottle is extracted at a predetermined flow rate for detection. The detection time is the specified detection time, and the response signal of the gas sensor within this time is recorded.

[0016] Furthermore, in step S2, the machine learning algorithm model includes logistic regression LR, support vector machine SVM, decision tree DT, random forest RF and multi-layer perceptron MLP.

[0017] Furthermore, in step S2, the specific process includes the following steps:

[0018] S21, using the least absolute shrinkage and selection algorithm LASSO to screen the key features of volatile compounds to obtain several key volatile compounds;

[0019] S22, perform PCA dimensionality reduction processing on key volatile compounds and maximum response values ​​respectively;

[0020] S23, randomly dividing a number of key volatile compounds into a first training set and a first test set in a ratio of 7:3;

[0021] S24, randomly dividing a number of maximum response values ​​into a second training set and a second test set in a ratio of 7:3;

[0022] S25. Use the first training set and the second training set to train multiple machine learning algorithm models to obtain several compound feature prediction models and electronic nose feature prediction models.

[0023] Furthermore, in step S3, the specific process includes the following steps:

[0024] S31, using 20-fold cross validation to calculate the precision, recall, accuracy and F1 score of several compound feature prediction models and electronic nose feature prediction models;

[0025] S32, plotting a receiver operating characteristic curve to visualize the distribution of AUC values ​​based on the calculation results of S31 to evaluate the robustness of several compound feature prediction models and electronic nose feature prediction models;

[0026] S33. Evaluate the overall performance of each prediction model based on the average accuracy of the prediction model using the test set, and use a confusion matrix to visualize the prediction ability of each prediction model;

[0027] S34, selecting the multi-layer perceptron MLP with the best classification effect among multiple prediction models as the final classification model for fruit variety classification;

[0028] S35. The classification model is trained using the training set, and a similarity loss Similarity Measure is introduced during the training process, so that the electronic nose feature prediction model learns the feature information of the hidden layer in the compound feature prediction model, and a Similarity Measure-MLP model is obtained.

[0029] Furthermore, in step S31, the calculation formulas of precision, recall, accuracy and F1 score are respectively:

[0030]

[0031] In the above formula, TP represents true positive; TN represents true negative; FP represents false positive; and FN represents false negative.

[0032] Furthermore, in step S4, specifically: SHAP analysis is used to interpret the output of the Similarity Measure-MLP model, so as to find key volatile compounds and gas sensors that are closely related to variety prediction, and obtain the corresponding fruit varieties.

[0033] By means of the above technical solution, the present invention provides a method for rapid prediction of fruit varieties based on flavor analysis, which has at least the following beneficial effects:

[0034] 1. The present invention uses GC-MS and E-nose to evaluate the odor characteristics of fruits, and develops a method for quickly and accurately distinguishing fruit varieties based on a machine learning algorithm, which can be used to solve the problem of quality differences in fruit commodities and provide a reference for fruit quality evaluation research, and has high application and promotion value.

[0035] 2. The present invention optimizes the classification model by introducing similarity loss, which can establish a good correlation between the volatile compounds measured by GC-MS and the response values ​​obtained in E-nose, thereby effectively improving the accuracy of the electronic nose feature prediction model in predicting fruit varieties.

[0036] 3. The fruit variety rapid prediction method proposed in the present invention is convenient and fast to operate, has a short sample detection time, does not require complicated sample pretreatment, and is different from physical and chemical detection and manual empirical identification methods, and can identify fruit varieties more objectively and efficiently. In addition, the present invention has universal applicability and can be applied to the development of other fruit and vegetable variety identification methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0038] Figure 1 A radar chart showing the response values ​​of the electronic nose gas sensor of the present invention to the aroma intensity of mangoes of different varieties;

[0039] Figure 2 is a principal component analysis diagram of the volatile compound data of the present invention;

[0040] Figure 3 It is a schematic diagram of the network structure of the prediction model of the present invention;

[0041] Figure 4 This is a confusion matrix result diagram of the electronic nose feature prediction model of the present invention;

[0042] Figure 5 is a ROC curve diagram of the electronic nose feature prediction model of the present invention;

[0043] Figure 6 It is a schematic diagram for comparing the performance parameters of different prediction models of the present invention;

[0044] Figure 7 is a network structure diagram of the Similarity Measure-MLP model of the present invention;

[0045] Figure 8Schematic diagram of the confusion matrix (A) and ROC curve (B) of the prediction effect of the Similarity Measure-MLP model of the present invention;

[0046] Fig. 9 The importance of the gas sensor of the present invention to the Similarity Measure-MLP model;

[0047] Fig.10 It is the importance of the volatile compounds of the present invention to the Similarity Measure-MLP model. DETAILED DESCRIPTION

[0048] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific implementation methods, so that the implementation process of how the present application uses technical means to solve technical problems and achieve technical effects can be fully understood and implemented accordingly.

[0049] Food flavor plays an important role in reflecting classification, geographical origin, maturity and sensory quality. Aroma is the most important attribute in the composition of fruit flavor characteristics and is directly related to the type and content of volatile substances in the fruit. The volatile components of different fruit varieties directly determine their flavor and are an important factor affecting consumers' willingness to buy.

[0050] With the development of the fruit market and the increasing demand of consumers for fruit quality, traditional manual identification and experience-based judgment of fruit varieties can no longer meet the demand. Therefore, the application of new detection technologies and rapid identification technology of fruit varieties have become increasingly important in the field of fruits and vegetables. Gas chromatography-mass spectrometry (GC-MS) forms aroma fingerprints and flavor characteristics of food through qualitative and quantitative analysis of volatile substances to analyze the complex composition of food aroma. It combines the safety, accuracy and high separation ability of GC with the superiority of MS in substance identification. In addition, GC-MS also has the disadvantages of time-consuming and labor-intensive sample extraction and processing, high cost, and long analysis cycle. Therefore, a low-cost, easy-to-build and fast odor detection system is needed. As an objective, automated and non-destructive technology, the electronic nose (E-nose) has the ability to manually detect and identify different categories of aroma. The electronic nose is composed of a series of gas sensors with different selectivities, signal acquisition units and pattern recognition software. It has the advantages of high sensitivity, simple sample pretreatment procedures, avoidance of human errors, good repeatability, low cost, short response time and continuous detection, making it more suitable for industrial applications. In addition, the electronic nose relies more on the overall flavor atmosphere of the food, which makes it more used for food classification. However, compared with GC-MS, different electronic nose sensors can respond to similar categories of compounds, thus failing to accurately identify aroma substances. Therefore, combining GC-MS and E-nose detection technology can improve the accuracy of variety classification.

[0051] Based on the technical defect of the prior art that there is no method that can quickly and accurately distinguish fruit varieties, please refer to Figure 1-Figure 10 This embodiment proposes a method for rapid prediction of fruit varieties based on flavor analysis. The method uses gas chromatography-mass spectrometry GC-MS and electronic nose E-nose to evaluate the odor characteristics of fruits, and develops a method for rapid and accurate differentiation of fruit varieties based on machine learning algorithms, which can be used to solve the quality difference problem of fruit commodities, provide a reference for fruit quality evaluation research, and have high application and promotion value. The method includes the following steps:

[0052] S1. Obtaining the maximum response value of different fruit samples in the electronic nose system and the volatile compounds including composition and content in the gas chromatography-mass spectrometry GC-MS determination. The specific process includes the following steps:

[0053] S11. Use an electronic nose system to detect the response signal values ​​of different fruit samples in the gas sensor, and select the maximum signal response value corresponding to the gas sensor as the maximum response value, wherein the electronic nose system should be equipped with multiple gas sensors, and the gas sensor is a metal oxide sensor; specifically: weigh a certain amount of sample and put it into a headspace bottle of a specified capacity, and place the headspace bottle in a water bath, and balance it at a predetermined temperature for a predetermined time. Specifically, before each fruit sample is measured, use dry clean air to clean the electronic nose system, the cleaning flow rate is a specified flow rate, and the cleaning time is a specified cleaning time, so that the response signal of each gas sensor returns to the baseline level. When detecting the odor intensity curve of different fruit varieties, insert a sampling needle of the electronic nose system into the headspace bottle, and the other sampling needle is connected to the air, and the gas in the bottle is extracted at a predetermined flow rate for detection. The detection time is a specified detection time, and the response signal of the gas sensor during this time is recorded.

[0054] As a preferred implementation of this embodiment, before the detection begins, the response signal of each gas sensor needs to reach a stable state. Accurately weigh 3g of mango pulp and put it into a 20mL transparent glass headspace bottle, seal it, put the headspace bottle containing the sample into a water bath, and balance it at 60°C for 1 hour to achieve the release of volatile compounds. After equilibrium, insert the syringe needle connected to the electronic nose to adsorb the equilibrium headspace gas. The instrument parameters are set as follows: gas sensor cleaning time 300s, acquisition and analysis time 600s, gas flow rate 1L / min. Repeat the above operation for all samples.

[0055] The electronic nose used in this embodiment is cNose, which is composed of 18 metal oxide gas sensors. The specific models and characteristics are shown in Table 1.

[0056] Table 1 Response substances of 18 gas sensors in the electronic nose

[0057]

[0058]

[0059] In this embodiment, the mango varieties used include three different varieties: Parainda (PLYD), Renong No. 1 (RN) and Kate (KT). The radar chart is used to characterize the response values ​​of 18 sensors to the aroma intensity of different varieties of mangoes. Figure 1 As shown, the signal strength of each gas sensor in mango pulp shows differences due to different varieties. According to the radar chart, the three mangoes show similar odor characteristics, and the intensity and proportion of various volatile gases vary greatly.

[0060] S12. Using gas chromatography-mass spectrometry (GC-MS) to determine the volatile compounds of different fruit varieties, specifically: weighing a predetermined amount of fruit sample, putting it into a headspace bottle of a predetermined capacity and sealing it, extracting the volatile components at a predetermined time and a predetermined temperature, and analyzing after the extraction to obtain the composition and content of the volatile compounds.

[0061] As a preferred embodiment of this embodiment, volatile compounds are detected: the internal standard substance is isoamyl acetate, which is diluted to 13.14 μg / mL with mass spectrometry grade methanol. First, 3 grams of mango pulp is weighed and mixed with 3 mL of saturated sodium chloride solution and 150 μL of internal standard substance, and then the mixed solution is placed in a 20 mL transparent glass headspace bottle, sealed, vortexed for 2 minutes, and the volatile components of mango pulp are further extracted by headspace solid phase microextraction. The solid phase microextraction probe used is 50 / 30 μm polydivinylbenzene / carbon molecule / polydimethylsiloxane (Divinylbenzene / Carboxen / Polydimethylsiloxane, DVB / CAR / PDMS). The headspace bottle containing the mixed solution is placed in a constant temperature heater, and the extraction needle is inserted into the vial. At 60 ° C and 500 rpm, the volatile compounds are balanced and adsorbed for 60 minutes. After the adsorption is completed, the extraction needle is inserted into the gas chromatograph injection port and desorbed at 250 ° C for 5 minutes. The chromatographic column in the gas chromatograph adopts a medium-low polarity column HP-5MS capillary column (30m×0.25mm, 0.25μm) to separate and detect volatile substances.

[0062] The temperature program of the chromatographic column was as follows: the initial temperature was set at 40 °C, maintained for 3 min, then increased to 70 °C at a rate of 2 °C / min, increased to 100 °C at a rate of 2 °C / min, increased to 150 °C at a rate of 3 °C / min, increased to 220 °C at a rate of 8 °C / min, increased to 230 °C at a rate of 10 °C / min, and maintained for 3 min.

[0063] MS conditions: ion source temperature 230°C, ion energy 70eV, interface temperature 240°C, mass scan range set to 35-400m / z. Helium with 99.99% purity was used as carrier gas, and the flow rate was set to 7.0mL / min. Under the same analytical conditions, the retention index of the compound was calculated by normal alkanes (C5-C25) and compared with the NIST 2014 database to qualitatively identify the volatile compounds. The content of the volatile compound was calculated by measuring the peak area ratio of the volatile compound to the internal standard, and the above operation was repeated for all samples.

[0064] Table 2 Volatile compounds in the pulp of different mango varieties

[0065]

[0066]

[0067]

[0068]

[0069] The detection results of volatile compounds of different varieties of mango are shown in Table 2. The principal component analysis of the volatile compound results was performed and the principal component analysis diagram was drawn as shown in Figure 2 As shown in the figure, the contribution rates of the first two principal components to the cumulative variance are PC149.9% and PC237.8%, respectively. In the figure, PLYD, RN and KT are located in different positions in different quadrants, indicating that the types and contents of volatile compounds among different varieties are significantly different, and each mango has a unique flavor characteristic.

[0070] S2. Feature screening of volatile compounds to obtain several key volatile compounds, and constructing several compound feature prediction models and electronic nose feature prediction models based on multiple machine learning algorithm models, including logistic regression LR, support vector machine SVM, decision tree DT, random forest RF and multi-layer perceptron MLP; the specific process includes the following steps:

[0071] S21. Using the least absolute shrinkage and selection operator (LASSO) to perform key feature screening on volatile compounds to obtain several key volatile compounds. In this embodiment, the least absolute shrinkage and selection operator (LASSO) is used to perform key feature screening on volatile compounds, and a total of 25 key volatile compounds are screened. At the same time, the maximum response values ​​of 18 gas sensors of the electronic nose are respectively used as characteristic values.

[0072] S22, PCA dimensionality reduction processing is performed on the key volatile compounds and the maximum response value, wherein PCA (Principal Component Analysis) is a commonly used dimensionality reduction method, which converts the original data into a set of new orthogonal variables, namely, principal components, through linear transformation. These principal components are sorted according to their importance (i.e., the amount of information contained), so that the first principal component contains the largest variance in the original data set, and the subsequent principal components contain the second largest variance in turn, and are orthogonal to the previous principal component.

[0073] S23, randomly dividing a number of key volatile compounds into a first training set and a first test set in a ratio of 7:3;

[0074] S24, randomly dividing a number of maximum response values ​​into a second training set and a second test set in a ratio of 7:3;

[0075] S25, respectively using the first training set and the second training set to train multiple machine learning algorithm models to obtain a number of compound feature prediction models and electronic nose feature prediction models, such as Figure 3 As shown, it is a schematic diagram of the network structure of the prediction model; in this embodiment, the least absolute shrinkage and selection operator (LASSO) is used to screen the key features of volatile compounds, and the obtained key features are randomly divided into a training set and a test set in a ratio of 7:3, and the machine learning algorithm models of logistic regression LR, support vector machine SVM, decision tree DT, random forest RF and multi-layer perceptron MLP are used for training to obtain the corresponding compound feature prediction model.

[0076] The maximum response value of the gas sensor is taken as the eigenvalue and randomly divided into training set and test set in the ratio of 7:3. The machine learning algorithm models of logistic regression LR, support vector machine SVM, decision tree DT, random forest RF and multilayer perceptron MLP are used for training to obtain the corresponding electronic nose feature prediction model.

[0077] S3. Constructing a Similarity Measure-MLP model for predicting fruit varieties. The Similarity Measure-MLP model is composed of an electronic nose feature prediction model and a compound feature prediction model. The specific process includes the following steps:

[0078] S31. Calculate the precision, recall, accuracy and F1 score of several compound feature prediction models and electronic nose feature prediction models using 20-fold cross validation. The calculation formulas of precision, recall, accuracy and F1 score are:

[0079]

[0080]

[0081] In the above formula, TP represents true positive; TN represents true negative; FP represents false positive; and FN represents false negative.

[0082] S32, plotting a receiver operating characteristic curve to visualize the distribution of AUC values ​​based on the calculation results of S31 to evaluate the robustness of several compound feature prediction models and electronic nose feature prediction models;

[0083] S33. Evaluate the overall performance of each prediction model based on the average accuracy of the prediction model using the test set, and use the confusion matrix to visualize the predictive ability of each prediction model.

[0084] In the present embodiment, after training multiple compound feature prediction models and electronic nose feature prediction models, in order to evaluate the effectiveness of each prediction model, the present embodiment performs 20 times of cross validation, calculates precision (Precision, refers to the percentage of samples that the model judges the number of positive cases to be true), recall (Recall, refers to the proportion of positive cases correctly predicted by the model to all actual positive cases), accuracy (Accuracy, refers to the proportion of the number of correctly classified samples to the total number of samples) and F1 score (F1 Score refers to the harmonic mean of precision and recall), and draws the distribution of the receiver operating characteristic curve (Receiver Operating Characteristic, ROC) visualization AUC value to evaluate the robustness of multiple prediction models. Finally, the overall performance of each prediction model is evaluated by the average accuracy of the test set on each prediction model, and the prediction ability of each machine learning algorithm model is visualized using a confusion matrix.

[0085] S34, selecting the multi-layer perceptron MLP with the best classification effect among multiple prediction models as the final classification model for fruit variety classification. Figure 4 , Figure 5 and Figure 6 The results show that in the electronic nose feature prediction model, the multilayer perceptron MLP has the highest accuracy, and its recall rate, precision and F1 score are better than other algorithms; in the volatile compound feature prediction model, the accuracy of LR, SVM, RF and MLP is 100%. Figure 4 and Figure 5 The confusion matrix and the average area under the ROC curve of each classification model based on the electronic nose data are shown respectively. Figure 4 and Figure 5 In , AE is the confusion matrix result diagram of LR, SVM, DT, RF and MLP, and FJ is the ROC curve diagram of LR, SVM, DT, RF and MLP. Further confusion matrix ( Figure 4E) shows that the multilayer perceptron MLP has the highest recognition ability as the prediction model. The area under the ROC curve (AUC) is a criterion used to measure the quality of a model. Usually, the value of AUC is between 0.5 and 1. The closer the AUC is to 1, the better the performance. Figure 5 J shows that the AUC values ​​of the MLP model are closest to 1 and have the largest area under the curve, indicating that the performance of MLP is better than the other four algorithms. In summary, this embodiment uses the MLP algorithm with the best classification effect to construct a classification model for predicting mango varieties, and then obtains the final Similarity Measure-MLP model by introducing similarity loss.

[0086] S35, using the training set to train the classification model, and introducing the similarity loss Similarity Measure in the training process, so that the electronic nose feature prediction model learns the feature information of the hidden layer in the compound feature prediction model, and obtains the Similarity Measure-MLP model. In this embodiment, in view of the current situation that the accuracy of volatile compound feature prediction is high and the accuracy of electronic nose feature prediction is relatively low, the similarity loss Similarity Measure is introduced in the model training process, so that the electronic nose feature prediction model learns the hidden layer feature information in the compound feature prediction model, and a good correlation can be established between the volatile compounds measured by gas chromatography-mass spectrometry GC-MS and the response signal values ​​obtained in the E-nose, thereby improving the accuracy of the electronic nose feature prediction model.

[0087] In the process of model training, similarity loss Similarity Measure is introduced to enable the electronic nose feature prediction model to learn the feature information of the hidden layer in the compound feature prediction model. The network structure diagram of the Similarity Measure-MLP model is shown in the figure: Figure 7 The effect, confusion matrix and receiver operating characteristic curve ROC analysis of the optimized Similarity Measure-MLP model are shown in Table 3 and Figure 8 The accuracy of the Similarity Measure-MLP model after the introduction of similarity loss is 96.67%, and the recall rate, precision and F1 score are higher than those before optimization. The receiver operating characteristic curve ROC curve shows that the AUC value of KT after optimization (0.92) is larger than that before optimization (0.88), indicating that the optimized Similarity Measure-MLP model is more effective.

[0088] Table 3 Performance evaluation of the optimized Similarity Measure-MLP model

[0089]

[0090] The above results show that the Similarity Measure-MLP model can accurately predict the three mango varieties PLYD, RN and KT. The optimized Similarity Measure-MLP model has higher performance and stability. The model can establish a good correlation between the volatile compounds measured by gas chromatography-mass spectrometry GC-MS and the response values ​​obtained in E-nose, thereby improving the prediction ability of mango varieties.

[0091] S4. Input the characteristic parameters of the fruit sample to be tested into the Similarity Measure-MLP model to obtain the predicted variety of the fruit sample. Specifically, SHAP analysis is used to interpret the output of the Similarity Measure-MLP model, so as to find the key volatile compounds and gas sensors closely related to variety prediction, and obtain the corresponding fruit variety.

[0092] In this embodiment, the contribution of 18 gas sensors and the top 20 volatile compounds is ranked according to the average SHAP value. The results are as follows: Fig. 9 and Fig.10 The figure shows the importance of E-nose gas sensors and volatile compounds calculated based on SHAP analysis. The average SHAP value in the figure represents the degree of influence of each gas sensor and each volatile compound on the output of the Similarity Measure-MLP model. The wider the SHAP value range, the greater the influence of the feature on the output of the Similarity Measure-MLP model. The results show that the color range of S1, S9, S10 in the sensor SHAP analysis and n-hexanol, carveol and γ-terpinene in the SHAP analysis of volatile compounds is the widest, indicating that the above features have the greatest impact on the SimilarityMeasure-MLP model of mango varieties.

[0093] The method for quickly and efficiently identifying fruit varieties based on odor fingerprint information provided in this embodiment has high feasibility and can accurately predict mango varieties. In addition, the present invention is easy and fast to operate and does not require complicated sample pretreatment. Therefore, the present invention has high application and promotion value.

[0094] Those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, so the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0095] Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the above embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0096] The above implementation methods have been described in detail. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for rapid prediction of fruit varieties based on flavor analysis, characterized in that: The method comprises the following steps: S1. Obtain the maximum response value of different fruit samples in the electronic nose system and the volatile compounds including composition and content in the gas chromatography-mass spectrometry GC-MS determination; S2. Screening the characteristics of volatile compounds to obtain several key volatile compounds, and constructing several compound characteristic prediction models and electronic nose characteristic prediction models based on multiple machine learning algorithm models; S3. Constructing a Similarity Measure-MLP model for predicting fruit varieties. The Similarity Measure-MLP model consists of an electronic nose feature prediction model and a compound feature prediction model. S4. Input the characteristic parameters of the fruit sample to be tested into the Similarity Measure-MLP model to obtain the predicted variety of the fruit sample.

2. The method for rapid prediction of fruit varieties according to claim 1, characterized in that: The electronic nose system should be equipped with a plurality of gas sensors, and the gas sensors are metal oxide sensors.

3. The method for rapid prediction of fruit varieties according to claim 1, characterized in that: In step S1, the specific process includes the following steps: S11, using an electronic nose system to detect the response signal values ​​of different fruit samples in the gas sensor, and selecting the maximum signal response value corresponding to the gas sensor as the maximum response value; S12. Using gas chromatography-mass spectrometry (GC-MS) to determine the volatile compounds of different fruit varieties, specifically: weighing a predetermined amount of fruit sample, putting it into a headspace bottle of a predetermined capacity and sealing it, extracting the volatile components at a predetermined time and a predetermined temperature, and analyzing after the extraction to obtain the composition and content of the volatile compounds.

4. The method for rapid prediction of fruit varieties according to claim 3, characterized in that: In step S11, specifically: weigh a certain amount of sample and put it into a headspace bottle of specified capacity, and place the headspace bottle in a water bath to balance at a predetermined temperature for a predetermined time; One sampling needle of the electronic nose system is inserted into the headspace bottle, and the other sampling needle is connected to the air. The gas in the bottle is extracted at a predetermined flow rate for detection. The detection time is the specified detection time, and the response signal of the gas sensor within this time is recorded.

5. The method for rapid prediction of fruit varieties according to claim 1, characterized in that: In step S2, the machine learning algorithm model includes logistic regression LR, support vector machine SVM, decision tree DT, random forest RF and multi-layer perceptron MLP.

6. The method for rapid prediction of fruit varieties according to claim 1, characterized in that: In step S2, the specific process includes the following steps: S21, using the least absolute shrinkage and selection algorithm LASSO to screen the key features of volatile compounds to obtain several key volatile compounds; S22, perform PCA dimensionality reduction processing on key volatile compounds and maximum response values ​​respectively; S23, randomly dividing a number of key volatile compounds into a first training set and a first test set in a ratio of 7:3; S24, randomly dividing a number of maximum response values ​​into a second training set and a second test set in a ratio of 7:3; S25. Use the first training set and the second training set to train multiple machine learning algorithm models to obtain several compound feature prediction models and electronic nose feature prediction models.

7. The method for rapid prediction of fruit varieties according to claim 1, characterized in that: In step S3, the specific process includes the following steps: S31, using 20-fold cross validation to calculate the precision, recall, accuracy and F1 score of several compound feature prediction models and electronic nose feature prediction models; S32, plotting a receiver operating characteristic curve to visualize the distribution of AUC values ​​based on the calculation results of S31 to evaluate the robustness of several compound feature prediction models and electronic nose feature prediction models; S33. Evaluate the overall performance of each prediction model based on the average accuracy of the prediction model using the test set, and use a confusion matrix to visualize the prediction ability of each prediction model; S34, selecting the multi-layer perceptron MLP with the best classification effect among multiple prediction models as the final classification model for fruit variety classification; S35. The classification model is trained using the training set, and a similarity loss SimilarityMeasure is introduced during the training process, so that the electronic nose feature prediction model learns the feature information of the hidden layer in the compound feature prediction model, and a Similarity Measure-MLP model is obtained.

8. The method for rapid prediction of fruit varieties according to claim 7, characterized in that: In step S31, the calculation formulas for precision, recall, accuracy and F1 score are: In the above formula, TP represents true positive; TN represents true negative; FP represents false positive; and FN represents false negative.

9. The method for rapid prediction of fruit varieties according to claim 1, characterized in that: In step S4, specifically: SHAP analysis is used to interpret the output of the Similarity Measure-MLP model, so as to find key volatile compounds and gas sensors that are closely related to variety prediction and obtain the corresponding fruit varieties.

Citation Information

Cited By

  • Decision-making system for predicting flavor formation mechanism and flavor optimization in food processing based on machine learning

    CN120509519A

  • Wine production area identification method and system based on volatile compound analysis and machine learning

    CN120927844A

  • Apple identification method, device and equipment, medium and product

    CN121119824A