Skip to Content
FoodsFoods
  • Article
  • Open Access

13 April 2026

18 Pages

Machine Learning and SHAP Feature Analysis: Classification Model for Aroma Components in Green Plum Wine

,
,
,
,
,
,
,
,
…
1
School of Food and Liquor Engineering, Sichuan University of Science and Engineering, Yibin 644000, China
2
Luzhou Laojiao Co., Ltd., Luzhou 646000, China
*
Authors to whom correspondence should be addressed.
This article belongs to the Section Drinks and Liquid Nutrition

Abstract

This study systematically investigated differences in volatile flavor profiles among fermented green plum wines by integrating gas chromatography–mass spectrometry (GC–MS), sensory evaluation, and odor activity value (OAV) analysis with machine learning and SHapley Additive exPlanations (SHAP) based feature interpretation. The primary objective was to evaluate the applicability of machine learning algorithms for flavor profiling of green plum wine. The results indicated that floral and fruity aromas were predominant in samples NG9, YM7, and YM9. Most green plum wines contained high levels of esters, with ethyl benzoate (up to 4820.53 μg/L), ethyl octanoate (up to 2640.83 μg/L), and benzenecarbaldehyde (up to 3432.96 μg/L) being the major contributors. Among the six classification algorithms compared, fuzzy c-means clustering provided the most distinct clustering structure, identifying three distinct flavor categories. Six machine learning models were subsequently established, of which the decision tree (DT) model exhibited the highest performance, with an accuracy of 95.13%. SHAP analysis further revealed that ethyl octanoate, benzyl ethanoate, and 2-phenylethyl ethanoate exerted the greatest influence on model predictions. Overall, these findings highlight the effectiveness of machine learning as a robust tool for the classification and interpretation of flavor characteristics in fermented fruit wines, with broad applicability in flavor science.

1. Introduction

Flavor is a key determinant of fruit wine quality and market competitiveness, being influenced by raw material characteristics, fermentation conditions, and storage processes, all of which directly affect consumer sensory perception [1,2]. Among these attributes, aroma plays a predominant role, arising from both intrinsic fruit constituents and metabolites generated during fermentation. Accordingly, the overall sensory quality of fruit wine is closely linked to its aromatic profile [3]. Green plum is rich in organic acids, aroma precursors, and polyphenolic compounds. During fermentation, these components interact with yeast-derived metabolites, leading to the formation of a diverse range of volatile compounds, including alcohols, esters, aldehydes, and ketones, which collectively contribute to a complex and distinctive aroma profile [4]. High-quality flavor compounds not only enhance the sensory properties of green plum wine but also serve as critical indicators for differentiating product styles and defining quality grades [5]. However, despite its growing popularity, systematic investigations into the aroma composition and objective classification of green plum wine remain limited, particularly in comparison with extensively studied products such as grape wine and Baijiu.
Gas chromatography–mass spectrometry (GC–MS) is one of the most widely applied analytical techniques for aroma characterization [6]. It enables efficient separation and accurate identification of volatile compounds in complex matrices and has been extensively utilized in flavoromics studies [7]. For instance, Huang et al. [8] employed HS-SPME–GC–MS to analyze volatile compounds in various fruit wines, identifying major classes such as esters, alcohols, acids, aldehydes, and ketones. However, with increasing consumer demand for flavor diversity and product consistency, rapid and objective flavor classification remains a major challenge [9]. Traditional sensory evaluation and single-indicator chemical analyses are often subjective, exhibit limited reproducibility, and are inadequate for handling high-dimensional datasets [10].
Recent advances in artificial intelligence (AI) have facilitated the application of machine learning (ML) in food flavor analysis [11]. ML algorithms have demonstrated considerable potential in aroma compound identification, sensory attribute prediction, and quality evaluation [12]. For example, Aliya et al. [13] and Shao et al. [14] successfully applied ML-based models for flavor classification in Baijiu, demonstrating their effectiveness in distinguishing samples with different quality levels. As ML models become increasingly sophisticated, explainable artificial intelligence (XAI) approaches have become essential for enhancing model transparency and reliability [15]. Among these, SHapley Additive exPlanations (SHAP) has been widely adopted to quantify the contribution of individual features to model outputs, providing both global and local interpretability [16,17]. Previous studies have confirmed its effectiveness in identifying key flavor-related variables and improving model interpretability in food systems [18,19], as well as revealing feature interactions and enhancing the consistency of model explanations [20]. However, its application in the aroma analysis and classification of green plum wine remains largely unexplored. Therefore, integrating ML with SHAP-based interpretation offers a promising strategy for systematic flavor characterization and objective classification of fruit wines.
This study focuses on fermented green plum wine and aims to establish a systematic and interpretable framework for flavor evaluation. HS-SPME–GC–MS was employed to characterize volatile compounds, combined with odor activity value (OAV) analysis to identify key aroma-active compounds. Multiple ML models were developed and compared to determine the optimal classification model. Furthermore, SHAP analysis was applied to interpret model predictions and identify the most influential aroma compounds and their contributions to flavor classification. This study provides new insights into the objective classification of green plum wine and proposes an integrated approach combining machine learning with flavor science.

2. Materials and Methods

2.1. Sample Collection

Green plum raw materials used in this study were sourced from major production regions in Sichuan, Yunnan, and Fujian Provinces, China. Nine representative cultivars were selected, namely Da Bai Mei (DB), Nan Gao Mei (NG), Xing Mei (XM), Yan Mei (YM), Ying Su Mei (YS), Huang Mei (HM), Eryuan Zhaoshui Mei (EZS), Lijiang Zhaoshui Mei (LZS), and Mabian Hong Mei (MBHM). Fruits were harvested at two maturity stages (70% and 90%) based on standardized criteria, including appearance and peel color. In total, 18 representative batches were collected (Table 1). Fresh green plums (5 kg per cultivar) were transported to the laboratory within 48 h of harvest. The fruits were pitted and pulped, followed by enzymatic hydrolysis with pectinase (Nanning Pangbo Bio-Engineering Co., Ltd., Nanning, China) for 30 min. The pH was adjusted to 3.5, and the total soluble solids content was standardized to 20 °Brix. After antimicrobial treatment, Angel BV818 yeast (Angel Yeast Co., Ltd., Yichang, China) was inoculated. Fermentation was carried out at 25 °C for 10 days, after which the wine was clarified and filtered. All samples were processed under identical conditions and stored at 4 °C prior to subsequent analysis of aroma compounds and sensory properties.
Table 1. List of abbreviations for different varieties of green plum wine.

2.2. Sensory Quantitative Descriptive AnalysisMethods

Sensory evaluation was conducted by a trained panel comprising eight assessors (four males and four females, aged 20–36 years). All assessors passed basic taste and olfactory recognition tests and underwent 12 h of systematic training. The training program included the identification of typical wine aroma attributes, calibration of intensity scales, standardization of descriptive terminology, and repeated scoring exercises to ensure the consistency and reliability of the evaluations. Six sensory attributes—floral and fruity aroma, acidity, sweetness, mouthfeel, balance, and overall acceptability—were assessed. Each attribute was rated using a six-point intensity scale (0 = extremely weak; 5 = extremely strong), following a structured sensory evaluation protocol commonly employed in sensory analysis studies. All evaluations were performed in a standardized sensory laboratory under controlled environmental conditions. Samples were coded with random three-digit numbers and evaluated using a single-blind design. The presentation order was randomized. Each sample (10 mL) was served at 20 °C. A 2 min interval was maintained between samples, during which panelists rinsed their mouths with water to minimize sensory fatigue [21].

2.3. HS-SPME–GC–MS Analytical Methods

Volatile compounds in fermented green plum wine were analyzed using headspace solid-phase microextraction coupled with gas chromatography–mass spectrometry (HS-SPME–GC–MS). A DVB/CAR/PDMS fiber (50/30 μm; Supelco, 57328-U, Bellefonte, PA, USA) was employed for extraction. Prior to analysis, the fiber was conditioned in the GC injection port at 250 °C for 30 min to remove potential contaminants and ensure extraction stability. All analyses were performed using an Agilent 7890B gas chromatography–mass spectrometry system (Agilent Technologies, Santa Clara, CA, USA). Chromatographic separation was achieved on a DB-WAX polar capillary column (60 m × 0.25 mm i.d., 0.25 μm film thickness; Agilent Technologies). High-purity helium (>99.999%) (Messer Gases Products (Zigong) Co., Ltd., Zigong, China) was used as the carrier gas at a constant flow rate of 1.0 mL/min. The injector temperature was maintained at 250 °C, and injections were conducted in splitless mode. The oven temperature program was as follows: initial temperature of 40 °C (held for 2 min), increased at 5 °C/min to 120 °C (held for 2 min), followed by a ramp of 7 °C/min to 220 °C (held for 5 min), resulting in a total run time of 39 min. Mass spectrometric conditions were set as follows: electron impact (EI) ionization at 70 eV; ion source temperature of 250 °C; quadrupole temperature of 150 °C; transfer line temperature of 220 °C; and a mass scan range of m/z 35–500 with a scan rate of 3.6 scans/s. For sample preparation, 5 mL of green plum wine was transferred into a 20 mL headspace vial, followed by the addition of 1.5 g sodium chloride (Chengdu Kelong Chemical Co., Ltd., Chengdu, China) and 20 μL of internal standard solution (amyl acetate (Anpel Laboratory Technologies (Shanghai) Inc., Shanghai, China), 1 mL/L in anhydrous ethanol (Chengdu Kelong Chemical Co., Ltd., Chengdu, China) ). The vial was immediately sealed and equilibrated at 45 °C for 15 min. Volatile compounds were extracted using the preconditioned SPME fiber at 45 °C for 30 min, followed by thermal desorption in the GC injector at 210 °C for 5 min. All analyses were performed in triplicate to ensure reproducibility. Volatile compounds were identified by comparison of mass spectra with the NIST 17 (National Institute of Standards and Technology, Gaithersburg, MD, USA) mass spectral library, combined with retention index (RI) matching for further confirmation. Semiquantitative analysis was conducted using the internal standard method, and results were expressed as relative concentrations based on peak area ratios to the internal standard [22]. The validation parameters for GC–MS analysis are provided in the Supplementary Materials.

2.4. Odor Activity Value (OAV) Analysis

Odor activity value (OAV) is widely used to quantitatively evaluate the contribution of individual volatile compounds to the overall aroma profile. It is defined as the ratio of the concentration of a compound to its corresponding odor threshold. Compounds with OAV ≥ 1 are generally considered to contribute significantly to the overall aroma [23].

2.5. Construction of a Flavor Model for Green Plum Wine

To systematically evaluate the performance of different algorithms and identify the most suitable model for flavor classification, six clustering algorithms and six machine learning (ML) models were implemented and comparatively analyzed. The overall workflow of the ML analysis is presented in Figure 1. All models were implemented and evaluated using MATLAB R2022a.
Figure 1. Machine Learning model flowchart.

2.5.1. Construction of a Flavor Cluster Model for Green Plum Wine

Six clustering algorithms were employed to construct the flavor clustering model, including K-means clustering, hierarchical clustering analysis (HCA), Gaussian mixture model (GMM), fuzzy C-means (FCM), Canopy, and density-based spatial clustering of applications with noise (DBSCAN). Prior to clustering, the flavor component data were normalized using Z-score standardization to eliminate scale effects. Principal component analysis (PCA) was subsequently applied for dimensionality reduction to minimize noise and reduce the risk of overfitting, thereby improving model generalization [24]. The specific parameter settings were as follows: squared Euclidean distance was used as the clustering metric; for the Canopy algorithm, the threshold was set to 0.005 to ensure representative cluster centers; and for the DBSCAN algorithm, the neighborhood radius and minimum number of samples were set to 1 and 3, respectively.
To quantitatively evaluate the performance of different clustering algorithms, the Silhouette Coefficient (SC), Davies–Bouldin Index (DBI), and Calinski–Harabasz Index (CHI) were adopted as evaluation metrics. The SC measures clustering compactness and separation by comparing the average distance between each sample and its assigned cluster with that to other clusters, with higher values indicating better clustering performance. The DBI assesses the ratio of intra-cluster dispersion to inter-cluster separation, where lower values indicate superior clustering quality. The CHI evaluates clustering performance by calculating the ratio of between-cluster dispersion to within-cluster dispersion, with higher values reflecting stronger intra-cluster cohesion and greater inter-cluster separation [25].

2.5.2. Construction of a Flavor Classification Model for Green Plum Wine

For flavor classification of green plum wine, six machine learning (ML) algorithms were employed, including k-nearest neighbor (KNN), naive Bayes (NB), random forest (RF), decision tree (DT), support vector machine (SVM), and a hybrid multilayer perceptron–random forest (MLP–RF) model [26]. The dataset was randomly divided into training and test sets at a ratio of 8:2 using a stratified sampling strategy. To improve model robustness, 10-fold cross-validation was performed during model training. Feature selection was conducted using recursive feature elimination with cross-validation (RFE-CV). The detailed hyperparameters are provided in the Supplementary Materials.
Model performance was comprehensively evaluated using five metrics: accuracy, precision, recall, F1 score, and the area under the receiver operating characteristic curve (AUC). All metrics range from 0 to 1, with higher values indicating superior model performance [27]. To enhance model interpretability, the SHapley Additive exPlanations (SHAP) framework was applied for global feature importance analysis. SHAP values were calculated to quantify the contribution of each feature to model predictions, thereby improving the transparency and reliability of the model [28].

2.6. Statistical Analysis

Statistical analyses were performed using SPSS 27.0 (IBM Corp., Armonk, NY, USA). Differences among sample groups were evaluated by one-way analysis of variance (ANOVA), followed by Tukey’s honestly significant difference (HSD) test for post hoc multiple comparisons. A p-value < 0.05 was considered statistically significant. All quantitative data are expressed as mean ± standard deviation ( x ¯ ± SD) [29]. In addition, Origin 2024 (OriginLab, Northampton, MA, USA) and the Python 3.10 programming language were used for supplementary analyses and data visualization.

3. Results and Discussion

3.1. Sensory Quantitative Descriptive Analysis

A sensory evaluation of 18 green plum wine samples was conducted using quantitative descriptive analysis (QDA), and the results are presented in Figure 2. In terms of aroma characteristics, samples NG9, YM7, and YM9 exhibited the most pronounced floral and fruity notes, followed by MBHM7 and NG7. This distinctive sensory profile is likely associated with their relatively higher concentrations of ester-derived volatile compounds, including ethyl octanoate, ethyl hexanoate, methyl benzoate, and methyl 2-hydroxybenzoate. These esters impart pleasant fruity and floral notes. Consistently, these samples contained a relatively diverse range of ester compounds, which may contribute to increased aroma complexity [30]. Regarding taste attributes, sample LZS7 exhibited significantly higher acidity, which may be attributed to elevated levels of naturally occurring organic acids, such as citric and malic acids, in the raw fruit. Overall, the fermented green plum wines YM9, NG7, MBHM7, and YM7 demonstrated superior sensory performance across multiple attributes, particularly in terms of floral and fruity aroma intensity, flavor balance, and overall acceptability. Notably, wines produced from green plums sourced from different geographical regions exhibited distinct aroma profiles and sensory characteristics. Such variations highlight the significant influence of geographical origin and raw material composition on sensory attributes and quality differentiation of green plum wine [31]. The study protocol, including all sensory evaluation procedures, was formally approved by the Ethics Review Committee of Sichuan University of Science and Engineering (IRB Approval No. 2025LLSC022).
Figure 2. Sensory evaluation results of green plum wine samples by quantitative descriptive analysis.

3.2. Analysis of Aroma Components and OAV in Different Varieties of Green Plum Wine

Aroma is a key determinant of the sensory quality of fruit wines and is primarily governed by the presence and concentration of volatile compounds, such as esters, higher alcohols, and volatile fatty acids, which collectively shape the aroma profile of fermented wines [32]. In this study, HS-SPME–GC–MS was employed to characterize the volatile constituents of 18 green plum wine samples (Figure 3). A total of 56 aroma-active compounds were identified, including 27 esters, 17 alcohols, 3 acids, 4 aldehydes, 3 ketones, and 2 other volatile compounds, as summarized in Table 2. Substantial variations were observed in both the composition and concentration of these compounds among different varieties. Esters were the most abundant class in nearly all samples. For instance, ethyl benzoate, ethyl octanoate, and diethyl butanedioate reached maximum concentrations of 4820.53 μg/L, 2640.83 μg/L, and 2791.57 μg/L, respectively. These compounds typically impart pleasant floral, fruity, and sweet notes, thereby enhancing the overall aromatic intensity of green plum wine [3]. Among alcohols, 2-phenylethanol exhibited relatively high concentrations in several samples, reaching 1244.41 μg/L in NG7 and 1435.95 μg/L in XM7. This compound imparts a rose-like aroma and contributes to the roundness and complexity of the overall aroma profile. [33]. In addition, benzenecarbaldehyde was detected at elevated levels in certain samples, such as 3432.96 μg/L in YM7, likely imparting almond- and stone fruit-like notes. The coexistence of esters (e.g., ethyl hexanoate) and aldehydes (e.g., benzenecarbaldehyde) may result in synergistic aromatic effects, contributing to the complex floral, fruity, and sweet characteristics of fermented green plum wine [34]. In summary, these compounds were among the predominant volatile constituents in fermented green plum wine, potentially contributing to its characteristic aroma profile.
Table 2. Identification of volatile compounds in 18 types of green plum wine using HS-SPME–GC–MS.
Figure 3. Heatmap of aroma compound concentrations in fermented green plum wine from different varieties.
Additionally, OAV analysis identified 13 key odor-active compounds (OAV > 1), including seven esters, two alcohols, two ketones, and two compounds from other chemical classes, highlighting their significant contribution to the overall aroma profile. Among these, ethyl octanoate, methyl benzoate, ethyl hexanoate, methyl 2-hydroxybenzoate, 3-methylbutyl ethanoate, hexan-1-ol, and 3,7-dimethylocta-1,6-dien-3-ol exhibited the highest OAVs, suggesting that they play a decisive role in defining the fruity and floral characteristics of green plum wine. Meanwhile, methyl octanoate, ethyl decanoate, phenylmethanol, benzenecarbaldehyde, and octanoic acid exhibited OAVs between 0.1 and 1. Compounds within this range may exert synergistic effects and contribute to the overall aroma profile of fruit wines [35]. Although these compounds did not exceed the OAV threshold (≥1) for direct aroma contribution, they may still influence the overall aroma through synergistic or additive interactions, thereby affecting the perceived balance and harmony of green plum wine [36]. Overall, the aroma profile of green plum wine is predominantly driven by esters and alcohols with high OAVs, whereas compounds with moderate OAVs act as important secondary contributors, enhancing aroma depth and complexity. This finding highlights the diversity and synergistic interactions among volatile constituents in shaping the characteristic flavor profile of green plum wine.

3.3. Machine Learning-Based Flavor Clustering Model

As shown in Figure 4, the optimal number of clusters for k-means, HCA, GMM, and FCM was determined to be K = 3. Among these algorithms (Table 3), FCM demonstrated the best overall performance, with SC = 0.35746, DBI = 1.753, and CHI = 8.7657, indicating a strong ability to discriminate between samples while maintaining high intra-cluster compactness and clear inter-cluster separation. In contrast, HCA exhibited relatively poor clustering performance at the same K value (SC = 0.14688, DBI = 2.2316, CHI = 6.6214), suggesting its limited suitability for the present flavor dataset. Following parameter optimization, Canopy and DBSCAN achieved relatively strong clustering performance. Specifically, Canopy yielded SC = 0.41999, DBI = 1.2279, and CHI = 10.3036, whereas DBSCAN produced SC = 0.39817, DBI = 0.68536, and CHI = 6.4063. Despite these favorable statistical metrics, both algorithms showed limited interpretability in terms of practical flavor classification. In particular, Canopy identified an optimal cluster number of 10, whereas DBSCAN produced only two clusters. Such excessively large or small cluster numbers may improve statistical indices but reduce the practical interpretability and applicability of classification results in a sensory context. As illustrated in Figure 5, the samples exhibited clear separation in the reduced-dimensional feature space, supporting the rationality of selecting three clusters. Considering both clustering performance and interpretability, FCM demonstrated the most balanced and robust performance for green plum wine flavor classification. In summary, the FCM algorithm with K = 3 was identified as the optimal model, providing a reliable and objective basis for classifying the flavor profiles of green plum wine.
Figure 4. K-means, GMM, HCA, and FCM algorithm cluster contour coefficient diagram. Note: clusters = number of clusters. SC = silhouette coefficient (higher is better).
Figure 5. (a) K-means cluster data distribution map. (b) HCA cluster data distribution map. (c) GMM cluster data distribution map. (d) FCM cluster data distribution map. (e) Canopy cluster data distribution map. (f) DBSCAN cluster data distribution map. Note: Class indicates the number of clusters under different algorithms.
Table 3. Performance Metrics for Six Clustering Algorithms.

3.4. Machine Learning-Based Flavor Classification Model

As illustrated in Figure 6, the radar chart comparing the six classification models shows that all algorithms achieved AUC values greater than 0.8, indicating good predictive performance for the flavor classification of green plum wine [37]. Specifically, the decision tree (DT) model outperformed the other algorithms across all key metrics, as reflected by the largest coverage area in the radar chart, indicating strong and well-balanced predictive capability. In contrast, the naive Bayes (NB) model exhibited the smallest coverage area, consistent with its comparatively lower performance. Among the six models, the DT model demonstrated the highest predictive performance (AUC > 0.99). Based on comparisons of confusion matrices, ROC curves, and overall performance metrics, the DT model was identified as the optimal algorithm for constructing the flavor prediction model of green plum wine. The best-performing DT model achieved an accuracy of 95.13% and an F1-score of 0.95244, whereas the NB model showed the lowest performance, with an accuracy of 78% and an F1-score of 0.77778. This difference may be attributed to correlations among input features, which can violate the independence assumption of the NB algorithm and thereby limit its classification performance. In terms of recall (Figure 7), all six algorithms achieved values above 0.7. The DT, random forest (RF), and support vector machine (SVM) models maintained recall values above 0.9 across all classes, indicating strong reliability in minimizing misclassification and accurately identifying each flavor category. Overall, all six models demonstrated satisfactory performance in predicting the flavor classification of green plum wine (Figure 8), likely due to their ability to capture complex relationships among variables [38]. Notably, the current dataset is limited to green plum wine samples produced under specific fermentation conditions, which may restrict the generalizability of the model to other fruit wines or processing conditions. In addition, although the DT model is highly interpretable, it may be prone to overfitting, particularly with small datasets, and its performance may decline when applied to samples with flavor profiles outside the training distribution.
Figure 6. Radar Chart of Performance Metrics for Six Classification Algorithms.
Figure 7. Macro ROC Curves for All Models.
Figure 8. (a) Confusion Matrix for the KNN Model. (b) Confusion Matrix for the Naive Bayes Model. (c) Confusion Matrix for the Random Forest Model. (d) Confusion Matrix for the Decision Tree Model. (e) Confusion Matrix for the Support Vector Machine Model. (f) Confusion Matrix for the Multilayer Perceptron–Random Forest Model.

3.5. Interpretable Machine Learning: SHAP Feature Analysis

To enhance the transparency and interpretability of the machine learning models, the SHapley Additive exPlanations (SHAP) method was applied to rank and interpret the importance of key volatile compounds influencing the flavor classification of green plum wine. This analysis was conducted based on the decision tree (DT) model, which exhibited the best predictive performance among the six algorithms. As illustrated in Figure 9, the model predictions for volatile compounds across different categories of green plum wine exhibited distinct patterns. The SHAP beeswarm plots (Figure 9a,d,g) indicate that higher concentrations of key compounds are associated with positive SHAP values, reflecting a positive contribution to model output, whereas lower concentrations are associated with negative contributions. In Category 1, volatile compounds such as benzyl ethanoate, 2-phenylethyl ethanoate, and 2-methylpropan-1-ol contributed substantially to the model output. In Category 2, benzyl ethanoate, pentanoic acid, and ethenylbenzene exhibited relatively higher contributions, with pentanoic acid and ethenylbenzene showing higher mean absolute SHAP values than other compounds. In Category 3, benzyl ethanoate, 2-phenylethyl ethanoate, pentanoic acid, and 2-methylpropan-1-ol also demonstrated notable contributions, with relatively balanced SHAP values among these variables. These differences suggest that the flavor characteristics of different categories are governed by distinct contribution patterns. Category 1 may be driven by a limited number of dominant compounds, whereas Categories 2 and 3 may reflect more distributed and synergistic contributions from multiple volatile components. In addition, benzyl ethanoate and 2-phenylethyl ethanoate were consistently identified as important features, which are associated with their characteristic aroma properties [39,40,41].
Figure 9. SHAP beeswarm plots ranking feature importance in sensory quality grade prediction models: (a) Class 1; (d) Class 2; (g) Class 3. SHAP bar chart illustrates the impact of different classifications on the sensory quality grading classification model: (b) Class 1; (e) Class 2; (h) Class 3. Sunrise Plot of SHAP Importance Variable Distribution: (c) Class 1; (f) Class 2; (i) Class 3.
Meanwhile, the key flavor compounds identified through SHAP analysis showed strong consistency with those exhibiting high relative abundance in the preceding descriptive statistical analysis, as well as with key odor-active compounds with OAVs greater than 1. This consistency is further supported by the SHAP importance distribution sunburst plots (Figure 9c,f,i), where esters account for the largest proportion of volatile compounds (over 55% in all categories), consistent with their dominant SHAP contributions. In contrast, alcohols and acids exhibit category-specific variations in abundance that correspond to their respective SHAP importance. As illustrated in Figure 9, the SHAP value distribution of key volatile compounds highlights the predominance of esters and alcohols. This suggests that ester content plays a critical role in model-based flavor classification, with even minor variations in the concentration of certain esters potentially leading to perceptible changes in flavor attributes. For example, benzyl ethanoate shows a high contribution in Category 1, with high-concentration regions in the SHAP beeswarm plots corresponding to strong positive SHAP values. Moderate levels of benzyl ethanoate contribute to enhanced fruity and floral notes. Similarly, 2-methylpropan-1-ol exhibits a high contribution in Category 3, where elevated concentrations are associated with positive SHAP values, confirming its role as a key contributor to this category. This compound is associated with increased astringency and improved mouthfeel. Overall, the combined positive SHAP contributions of esters and alcohols reflect their synergistic effects on flavor perception, while variations in acid contributions across categories may be related to their modulatory role in overall flavor perception. In summary, SHAP-based interpretability analysis indicates that the flavor-driving compounds identified by the DT model effectively capture the characteristic sensory profile of green plum wine. These are predominantly fruity esters, complemented by floral and mellow notes, collectively forming a harmonious, multilayered, and balanced aroma profile.

4. Conclusions

This study integrates HS-SPME–GC–MS, OAV analysis, multivariate clustering, machine learning, and SHAP-based interpretability to systematically characterize the aroma profile and flavor classification of fermented green plum wine. The results demonstrate that the aroma profile is dominated by esters, accompanied by alcohols and minor acidic and aldehydic compounds, collectively contributing to a complex flavor matrix. Multivariate clustering analysis revealed that the flavor space of green plum wine can be structured into three distinct categories. Among the evaluated models, the decision tree achieved the best balance between predictive accuracy and interpretability, while fuzzy c-means clustering provided the most consistent and meaningful partitioning of flavor categories. SHAP-based interpretability analysis, combined with OAV evaluation, identified benzyl ethanoate and 2-phenylethyl ethanoate as key contributors to the sensory attributes of green plum wine, further demonstrating the consistency between chemical composition and sensory perception. This study provides new insights into the relationship between volatile composition and sensory perception, demonstrating the utility of interpretable machine learning for elucidating key drivers of complex flavor systems. The proposed framework offers a rapid and objective strategy for flavor evaluation and classification, with potential applications in quality control, product standardization, and process optimization in fruit wine production. However, this study is limited by the relatively small dataset and restricted fermentation conditions, which may affect the generalizability of the model. Future work should expand sample diversity across different fruit varieties and fermentation environments and further improve model robustness to enhance its applicability in broader production scenarios.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/foods15081342/s1, Table S1: Linear regression and validation parameters for GC-MS analysis; Table S2: Hyperparameters of machine learning models used in this study.

Author Contributions

Conceptualization, D.L. and X.Z. (Xuhui Zhang); methodology, X.Z. (Xuhui Zhang); software, X.Z. (Xingyong Zhang); validation, M.D. and Y.L.; formal analysis, R.H.; investigation, Z.A.; resources, C.S.; data curation, S.L. (Shuang Li); writing—original draft preparation, Q.M.; writing—review and editing, X.Z. (Xuhui Zhang); visualization, Y.T.; supervision, X.W.; project administration, S.L. (Siyuan Liu) and B.K.; funding acquisition, R.H. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Luzhoulaojiao postdoctoral program (2024HX02).

Institutional Review Board Statement

The Institutional Review Board approval number is 2025LLSC022 (approval date: 23 December 2025).

Data Availability Statement

The original contributions presented in the study are included in the article/Supplementary Materials. Further inquiries can be directed to the corresponding authors.

Acknowledgments

The authors would like to thank all those who contributed directly or indirectly to the project.

Conflicts of Interest

Authors C.S., R.H., and Z.A. was employed by the company Luzhou Laojiao Co., Ltd. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

References

  1. Hu, L.L.; Liu, R.; Wang, X.H.; Zhang, X.Y. The Sensory Quality Improvement of Citrus Wine through Co-Fermentations with Selected Non-Saccharomyces Yeast Strains and Saccharomyces cerevisiae. Microorganisms 2020, 8, 323. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  2. Xie, G.F.; Xie, J.H.; Qian, D.S.; Wang, L.; Sun, G.C.; Mao, Q.Z.; Yu, Z.F.; Hu, M.S.; Peng, Q. Differentiation of Chinese rice wine (Huangjiu) from different aging status based on HS-SPME-GC–MS combined with near infrared. Food Chem. X 2025, 29, 102676. [Google Scholar] [CrossRef] [Scilit]
  3. Wang, Y.; Cui, M.Y.; Zhang, Q.; Zhu, Y.; Yang, Q.; Fu, Y.; Bi, H.J.; Yang, X.H.; Gao, X.L. Enhancing blueberry wine aroma: Insights from cultivar selection and berry sorting. Curr. Res. Food Sci. 2023, 7, 100643. [Google Scholar] [CrossRef] [Scilit]
  4. Liu, H.C.; Yu, Y.S.; Zou, B.; Yu, Y.Y.; Yang, J.G.; Xu, Y.J.; Chen, X.W.; Yang, F. Evaluation of Dynamic Changes and Regularity of Volatile Flavor Compounds for Different Green Plum (Prunus mume Sieb. et Zucc) Varieties during the Ripening Process by HS-GC–IMS with PLS-DA. Foods 2023, 12, 551. [Google Scholar] [CrossRef] [Scilit]
  5. Cao, W.Y.; Shu, N.; Wen, J.L.; Yang, Y.M.; Jin, Y.N.; Lu, W.P. Characterization of the Key Aroma Volatile Compounds in Nine Different Grape Varieties Wine by Headspace Gas Chromatography–Ion Mobility Spectrometry (HS-GC-IMS), Odor Activity Values (OAV) and Sensory Analysis. Foods 2022, 11, 2767. [Google Scholar] [CrossRef] [Scilit]
  6. Delgado, J.A.; Sánchez-Palomo, E.; Alises, M.O.; González Viñas, M.A. Chemical and sensory aroma typicity of La Mancha Petit Verdot wines. LWT 2022, 162, 113418. [Google Scholar] [CrossRef] [Scilit]
  7. Ding, B.; Zhao, S.T.; Zhang, W.X.; Lin, Y.; Xiong, L. The Effect of Co-Culture with Different Pichia kluyveri and Saccharomyces cerevisiae on Volatile Compound and Characteristic Fingerprints of Mulberry Wine. Foods 2024, 13, 422. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  8. Huang, M.Z.; Liu, X.Z.; Li, X.; Sheng, X.F.; Li, T.T.; Tang, W.Y.; Yu, Z.H.; Wang, Y.M. Effect of Hanseniaspora uvarum–Saccharomyces cerevisiae Mixed Fermentation on Aroma Characteristics of Rosa roxburghii Tratt, Blueberry, and Plum Wines. Molecules 2022, 27, 8097. [Google Scholar] [CrossRef] [Scilit]
  9. Wang, R.P.; Yang, B.; Jia, S.H.; Dai, Y.W.; Lin, X.P.; Ji, C.F.; Chen, Y.X. The Antioxidant Capacity and Flavor Diversity of Strawberry Wine Are Improved Through Fermentation with the Indigenous Non-Saccharomyces Yeasts Hanseniaspora uvarum and Kurtzmaniella quercitrusa. Foods 2025, 14, 886. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  10. Alfieri, G.; Modesti, M.; Riggi, R.; Bellincontro, A. Recent Advances and Future Perspectives in the E-Nose Technologies Addressed to the Wine Industry. Sensors 2024, 24, 2293. [Google Scholar] [CrossRef] [Scilit]
  11. Jia, Y.T.; Qiu, Y.; Deng, Q.; Han, Y.; Sun, B.G.; Liu, R.; Zhen, P.; Li, W.X.; Dong, W.; Sun, X.T.; et al. Predicting the low-level and extremely low-threshold compounds in Baijiu: Uniform manifold approximation and projection. Food Chem. X 2025, 29, 102645. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  12. Schreurs, M.; Piampongsant, S.; Roncoroni, M.; Cool, L.; Herrera-Malaver, B.; Vanderaa, C.; Theßeling, F.A.; Kreft, Ł.; Botzki, A.; Malcorps, P.; et al. Predicting and improving complex beer flavor through machine learning. Nat. Commun. 2024, 15, 2368. [Google Scholar] [CrossRef] [Scilit]
  13. Aliya; Liu, S.; Zhang, D.N.; Cao, Y.F.; Sun, J.Y.; Jiang, S.; Liu, Y. Research on the Evaluation of Baijiu Flavor Quality Based on Intelligent Sensory Technology Combined with Machine Learning. Chemosensors 2024, 12, 125. [Google Scholar] [CrossRef] [Scilit]
  14. Shao, D.L.; Cheng, W.; Jiang, C.; Pan, T.Q.; Li, N.; Li, M.M.; Li, R.L.; Lan, W.; Du, X.F. Machine-Learning-Assisted Aroma Profile Prediction in Five Different Quality Grades of Nongxiangxing Baijiu Fermented During Summer Using Sensory Evaluation Combined with GC×GC–TOF-MS. Foods 2025, 14, 1714. [Google Scholar] [CrossRef] [Scilit]
  15. Li, S.; Han, Y.R.; Yan, M.; Qiu, S.Y.; Lu, J. Machine Learning and Multi-Omics Integration to Reveal Biomarkers and Microbial Community Assembly Differences in Abnormal Stacking Fermentation of Sauce-Flavor Baijiu. Foods 2025, 14, 245. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  16. Roshinta, T.A.; Gábor, S. A Comparative Study of LIME and SHAP for Enhancing Trustworthiness and Efficiency in Explainable AI Systems. In Proceedings of the 2024 IEEE International Conference on Computing (ICOCO), Kuala Lumpur, Malaysia, 12–14 December 2024; IEEE: New Yor, NY, USA, 2024; pp. 134–139. [Google Scholar] [CrossRef] [Scilit]
  17. Li, S.; Li, T.; Han, Y.R.; Yan, P.; Li, G.H.; Ren, T.T.; Yan, M.; Lu, J.; Qiu, S.Y. Machine learning discrimination and prediction of different quality grades of sauce-flavor baijiu based on biomarker and key flavor compounds screening. Food Chem. X 2024, 24, 101877. [Google Scholar] [CrossRef] [Scilit]
  18. Li, S.; Han, Y.R.; Wang, L.; Zhang, Y.; Wang, F.; Ou, Y.M.; Li, H.Y.; Yang, L.; Qiu, S.Y.; Lu, J. Machine learning-enhanced flavoromics: Identifying key aroma compounds and predicting sensory quality in sauce-flavor baijiu. Food Chem. 2025, 475, 143328. [Google Scholar] [CrossRef] [Scilit]
  19. Xiao, Y.X.; Zhai, Y.N.; Zhou, L.; Yin, Y.M.; Qi, H.N.; Zhang, C. Detection of Soluble Solid Content in Citrus Fruits Using Hyperspectral Imaging with Machine and Deep Learning: A Comparative Study of Two Citrus Cultivars. Foods 2025, 14, 2091. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  20. Anker, M.; Borsum, C.; Zhang, Y.F.; Zhang, Y.Y.; Krupitzer, C. Using a Machine Learning Regression Approach to Predict the Aroma Partitioning in Dairy Matrices. Processes 2024, 12, 266. [Google Scholar] [CrossRef] [Scilit]
  21. Fan, L.H.; Doucette, C.; McSweeney, M.B.; English, M.; Song, J.; Vinqvist-Tymchuk, M.; Kernaghan, G. Non-traditional yeasts from cool-climate vineyards for novel low-alcohol wines. Plants People Planet 2025, 7, 776–788. [Google Scholar] [CrossRef] [Scilit]
  22. Peng, J.; Wei, W.; Lu, H.C.; Chen, W.; Li, S.D.; Cheng, C.F.; Wang, J.; Duan, C.Q.; He, F. Effect of Inter-Row Peanut Growing in the Vineyard on the Quality of ‘Cabernet Sauvignon’ Grape Fruits and Wines in Northwest China. Foods 2022, 11, 3730. [Google Scholar] [CrossRef] [Scilit]
  23. Jiang, J.Q.; Yin, R.N.; Xie, Y.; Ma, X.M.; Cui, M.; Chen, Y.W.; Li, Y.K.; Hu, Y.; Niu, J.M.; Cheng, W.D.; et al. Effects of cofermentation of Saccharomyces cerevisiae and different lactic acid bacteria on the organic acid content, soluble sugar content, biogenic amines, phenol content, antioxidant activity and aroma of prune wine. Food Chem. X 2024, 22, 101502. [Google Scholar] [CrossRef] [Scilit]
  24. Brendel, R.; Schwolow, S.; Rohn, S.; Weller, P. Gas-phase volatilomic approaches for quality control of brewing hops based on simultaneous GC-MS-IMS and machine learning. Anal. Bioanal. Chem. 2020, 412, 7085–7097. [Google Scholar] [CrossRef] [Scilit]
  25. Ikotun, A.M.; Habyarimana, F.; Ezugwu, A.E. Benchmarking validity indices for evolutionary K-means clustering performance. Sci. Rep. 2025, 15, 21842. [Google Scholar] [CrossRef] [Scilit]
  26. Peng, Y.F.; Zheng, C.; Guo, S.; Gao, F.Q.; Wang, X.X.; Du, Z.H.; Gao, F.; Su, F.; Zhang, W.J.; Yu, X.L.; et al. Metabolomics integrated with machine learning to discriminate the geographic origin of Rougui Wuyi rock tea. npj Sci. Food 2023, 7, 7. [Google Scholar] [CrossRef] [Scilit]
  27. Ji, H.Z.; Pu, D.D.; Yan, W.J.; Zhang, Q.C.; Zuo, M.; Zhang, Y.Y. Recent advances and application of machine learning in food flavor prediction and regulation. Trends Food Sci. Technol. 2023, 138, 738–751. [Google Scholar] [CrossRef] [Scilit]
  28. Chen, H.; Covert, I.C.; Lundberg, S.M.; Lee, S.I. Algorithms to estimate Shapley value feature attributions. Nat. Mach. Intell. 2023, 5, 590–601. [Google Scholar] [CrossRef] [Scilit]
  29. Goulioti, E.; Jeffery, D.W.; Kanapitsas, A.; Lola, D.; Papadopoulos, G.; Bauer, A.; Kotseridis, Y. Chemical and Sensory Characterization of Xinomavro Red Wine Using Grapes from Protected Designations of Northern Greece. Molecules 2023, 28, 5016. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  30. Popescu, D.I.; Sas, W.C.N.; Tița, O.; Niculescu, V.-C.; Ionescu, N.A. Antioxidant Potential and Volatile Aroma Profiling of Red Wines from the Tarnave Vineyard. Molecules 2025, 30, 3853. [Google Scholar] [CrossRef] [Scilit]
  31. Urvieta, R.; Jones, G.; Buscema, F.; Bottini, R.; Fontana, A. Terroir and vintage discrimination of Malbec wines based on phenolic composition across multiple sites in Mendoza, Argentina. Sci. Rep. 2021, 11, 2863. [Google Scholar] [CrossRef] [Scilit]
  32. Lu, X.J.; Yang, C.; Yang, Y.D.; Peng, B.Z. Analysis of the Formation of Characteristic Aroma Compounds by Amino Acid Metabolic Pathways during Fermentation with Saccharomyces cerevisiae. Molecules 2023, 28, 3100. [Google Scholar] [CrossRef] [Scilit]
  33. Chen, L.; Li, K.; Chen, H.T.; Li, Z.J. Reviewing the Source, Physiological Characteristics, and Aroma Production Mechanisms of Aroma-Producing Yeasts. Foods 2023, 12, 3501. [Google Scholar] [CrossRef] [Scilit]
  34. Xu, A.H.; Xiao, Y.W.; He, Z.Y.; Liu, J.T.; Wang, Y.; Gao, B.L.; Chang, J.; Zhu, D. Use of Non-Saccharomyces Yeast Co-Fermentation with Saccharomyces cerevisiae to Improve the Polyphenol and Volatile Aroma Compound Contents in Nanfeng Tangerine Wines. J. Fungi 2022, 8, 128. [Google Scholar] [CrossRef] [Scilit]
  35. Gaspar, J.M. Sotolon in Madeira Wine. New Insights on the Aroma Impact and Main Formation Pathways. Master’s Thesis, DigitUMa, University of Madeira, Funchal, Portugal, 2021. Available online: http://hdl.handle.net/10400.13/3289 (accessed on 15 December 2020).
  36. Zhang, T.X.; Liao, Z.S.; Li, Z.H.; Liu, Y.Q.; Bi, J.Y.; Liu, Y.L.; Song, Y.Y.; Qin, Y. Revealing the flavor differences of Sauvignon Blanc wines fermented in different oak barrels and stainless-steel tanks through GC-MS, GC-IMS, electronic, and artificial sensory analyses. Food Chem. X 2025, 25, 102188. [Google Scholar] [CrossRef] [Scilit]
  37. Zeng, X.Q.; Cao, R.; Xi, Y.; Li, X.J.; Yu, M.H.; Zhao, J.L.; Cheng, J.Y.; Li, J. Food flavor analysis 4.0: A cross-domain application of machine learning. Trends Food Sci. Technol. 2023, 138, 116–125. [Google Scholar] [CrossRef] [Scilit]
  38. Navarro, P.J.; Miller, L.; Díaz-Galián, M.V.; Gila-Navarro, A.; Aguila, D.J.; Egea-Cortines, M. A novel ground truth multispectral image dataset with weight, anthocyanins, and Brix index measures of grape berries tested for its utility in machine learning pipelines. GigaScience 2022, 11, giac052. [Google Scholar] [CrossRef] [Scilit]
  39. Yi, Z.C.; Zhao, D.Q.; Chang, T.W.; Chen, X.; Kai, J.R.; Luo, Y.; Peng, B.Z.; Yang, B.K.; Ge, Q. Effects of High-Hydrostatic-Pressure Treatment on Polyphenols and Volatile Aromatic Compounds in Marselan Wine. Foods 2024, 13, 2468. [Google Scholar] [CrossRef] [Scilit]
  40. Xu, X.Y.; Miao, Y.Y.; Wang, H.; Ye, P.P.; Li, T.; Li, C.Y.; Zhao, R.R.; Wang, B.; Shi, X.W. A Snapshot of Microbial Succession and Volatile Compound Dynamics in Flat Peach Wine During Spontaneous Fermentation. Front. Microbiol. 2022, 13, 919047. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  41. Zhang, X.Y.; Chen, Y.X.; Liu, J.N.; Lan, Y.B.; Qian, X.; Zhu, B.Q. Comprehensive study of chemical and sensory profiles of hawthorn wines from China. Food Chem. X 2025, 26, 102277. [Google Scholar] [CrossRef] [Scilit] [PubMed]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.