Skip to Content
FoodsFoods
  • Article
  • Open Access

27 November 2026

26 Pages

Rapid Discrimination of Different Stir-Frying Degrees of Wine-Moistened Angelica sinensis and Prediction of Marker Compounds Using Multimodal Data Fusion and Intelligent Algorithms

,
,
,
,
,
,
,
,
…
1
School of Pharmacy, Nanjing University of Chinese Medicine, Nanjing 210023, China
2
School of Artificial Intelligence and Information Technology, Nanjing University of Chinese Medicine, Nanjing 210023, China
*
Authors to whom correspondence should be addressed.
This article belongs to the Section Food Analytical Methods

Abstract

Angelica sinensis (AS) is a traditionally edible aromatic botanical whose wine-stir-frying degree is largely judged by subjective sensory characteristics. We developed a multimodal framework integrating machine vision, an electronic eye, a flash gas chromatography electronic nose, and Fourier transform near-infrared (FT-NIR) spectroscopy to evaluate wine-processed Angelica sinensis (WAS). Sixteen independent raw-material batches were sampled at 13 time points, including an untreated control (0 min) and 12 sampling points during stir-frying (6–28 min), yielding a total of 208 batch–time-point samples. Feature-level data fusion and intelligent optimization enabled four-class processing-state discrimination and prediction of ferulic acid, ligustilide, senkyunolide I, and coniferyl ferulate contents. Color, texture, odor-related responses, and marker contents showed distinct processing trends. Discriminant functions and preliminary reference ranges quantified appearance characteristics previously assessed empirically. The tree-structured Parzen estimator-optimized random forest (TPE-RF) achieved 98.08% accuracy and a macro-F1 of 0.9833 under repeated batch-grouped cross-validation. Multiobjective Bayesian optimization-assisted partial least squares regression (MOBO-PLSR) yielded R2 values of 0.9371, 0.9357, 0.8899, and 0.9243, respectively, outperforming FT-NIR-only models. Modality analysis highlighted complementary odor and machine-vision information. External validation using three additional batches achieved 94.87% classification accuracy, while regression R2 ranged from 0.7411 to 0.9196. This approach supports objective, quantitative assessment of wine-stir-frying quality.

1. Introduction

Angelica sinensis (Oliv.) Diels (AS), a member of the genus Angelica in the family Apiaceae, is a traditional medicinal and edible resource in China, with its dried root widely used. As an aromatic botanical material, AS has traditionally been used as a spice and seasoning, including to enhance the flavor of nourishing soups such as chicken soup [1]. AS is rich in phthalides, organic acids, polysaccharides, and volatile constituents. Representative compounds, including ligustilide, ferulic acid, and AS polysaccharides, have been reported to possess antioxidant, anti-inflammatory, and immunomodulatory activities [2,3,4]. However, its value in food applications depends not only on its chemical composition but also on the origin of the raw material, processing conditions, and final sensory quality. A systematic assessment of changes in appearance, flavor, and chemical quality during processing is therefore important for its use as a food seasoning and for quality control of related products.
Wine-processed AS (WAS), as defined in this study, refers to AS slices moistened with yellow rice wine and subsequently stir-fried. This traditional processing method plays an important role in determining AS quality, as it can alter the color, odor, and chemical composition of the material. Previous studies have documented marked differences in various volatile and nonvolatile compounds before and after wine processing [5,6]. In conventional practice, however, the processing degree is judged primarily from empirical characteristics such as color, texture, and odor. These assessments may vary among operators and raw-material batches. Such variation makes it difficult to establish consistent quality criteria [7,8]. Furthermore, changes in appearance do not necessarily parallel changes in internal chemical composition; sensory characteristics alone cannot fully represent processing quality. Ferulic acid (FA) is a representative phenolic acid in AS and serves as a quantitative marker for Angelicae Sinensis Radix in the Chinese Pharmacopoeia (2025 edition). Ligustilide (LIG) is a characteristic phthalide of AS and is also used as a reference compound for pharmacopoeial identification. Previous studies have reported its changes during wine processing [6]. Senkyunolide I (SEN I) is an oxygenated phthalide with a chemical structure distinct from that of LIG, providing additional information on phthalide constituents. Coniferyl ferulate (CF) is an ester formed from ferulic acid and coniferyl alcohol, representing another form of ferulate-related constituents. Previous analytical studies have included these compounds in multicomponent quality evaluation of AS [9,10]. Together, these four constituents cover different chemical structures and provide complementary indicators for assessing changes in chemical composition during wine-stir-frying.
Recent advances in intelligent sensing and chemometrics have created new opportunities for rapid quality assessment of foods and botanical materials. Machine vision enables the digital characterization of color and texture using red–green–blue (RGB) information, local binary patterns (LBP), and gray-level co-occurrence matrices (GLCM) [11]. Electronic eye (e-eye) and electronic nose (e-nose) technologies provide standardized color measurements and volatile odor fingerprints, respectively, reducing reliance on operator experience in conventional sensory evaluation [12]. Fourier transform near-infrared (FT-NIR) spectroscopy offers rapid, nondestructive measurements with minimal sample preparation and can be used to analyze and quantitatively predict chemical composition in complex botanical matrices [13,14]. Because these technologies capture complementary information, multisource data fusion may enable a more comprehensive evaluation of appearance, odor, and internal chemical quality during processing.
Multidimensional sensing and intelligent algorithms have increasingly been applied to the quality assessment of processed Chinese medicinal materials. Liang et al. combined machine vision, an e-eye, a flash gas chromatography (GC) e-nose, and FT-NIR spectroscopy to characterize different stir-frying degrees of wine-moistened Ligusticum chuanxiong, and achieved rapid classification using an optimized random forest (RF) model [15]. Jin et al. integrated electronic-eye, electronic-nose, and electronic-tongue information to investigate sensory changes in honey-fried Schisandra chinensis and establish a model for discriminating processing degrees [16]. For quantitative analysis, Ma et al. improved the prediction of representative phenolic compounds in Magnolia officinalis cortex by fusing e-eye, e-nose, and FT-NIR data [17]. Previous studies have also employed untargeted metabolomics and chemometric analysis to investigate chemical changes associated with WAS and identify potential processing-related markers [5,18]. Nevertheless, there remains scope for studies that integrate multidimensional quality changes during continuous processing, four-class processing-state discrimination, and multiconstituent content prediction. Such studies should use a unified batch-wise validation framework and systematically evaluate the incremental contribution of each modality.
Accordingly, 16 batches of AS slices were investigated, with samples collected at 13 time points. Machine vision, an e-eye, a flash GC e-nose, FT-NIR spectroscopy, and high-performance liquid chromatography (HPLC) were combined to systematically characterize changes in color, texture, odor, and chemical composition across processing stages and to identify representative quality attributes. An RF model was optimized using algorithms including the tree-structured Parzen estimator (TPE) for rapid discrimination of processing degree. A partial least squares regression (PLSR) model was optimized using multiobjective Bayesian optimization (MOBO), yielding the MOBO-PLSR model for quantitative prediction of four chemical markers. Modality contribution analysis and independent external-batch validation were used to assess model performance and applicability. This study aimed to develop an integrated evaluation strategy linking multidimensional quality characterization, processing-state discrimination, and rapid chemical constituent prediction, thereby supporting objective quality assessment and standardized control of WAS.

2. Materials and Methods

2.1. Sample Collection and Preparation

Sixteen commercial batches of AS slices were obtained from Min County and Longxi County, Gansu Province, and Qujing, Yunnan Province, China. The material was authenticated by Professor Jianming Chen of Nanjing University of Chinese Medicine as dried slices of Angelica sinensis (Oliv.) Diels. Batch information is provided in Table S1.
WAS was prepared according to the stir-frying with wine method described in General Chapter 0213 of the Chinese Pharmacopoeia (2025 edition). Shaoxing yellow rice wine (10 kg per 100 kg of raw material; 14% v/v; Zhejiang Shengta Shaoxing Wine Co., Ltd., Shaoxing, China) was added and mixed thoroughly. The moistened slices were allowed to stand for 1 h and were then stir-fried using a model 5 computer-controlled roasting machine (Changzhou Jintan Meisai Machinery Co., Ltd., Changzhou, China) at 120 °C. Unmoistened AS slices were collected before addition of wine as the 0 min samples. After moistening, material from each batch was sampled separately after 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, and 28 min of stir-frying, yielding 208 batch–time-point samples from the 16 batches. Each raw-material batch underwent one independent stir-frying run. The samples collected at different processing times originated from the same continuous run. Thus, the study included 16 independent processing runs and 208 batch–time-point samples, with repeated observations obtained from each processing run. The processing states were evaluated by Mr. Chanming Liu, a Chief Pharmacist of Traditional Chinese Medicine at Changzhou Hospital of Traditional Chinese Medicine with extensive experience in herbal processing. The assessor was blinded to processing time. Samples from the 16 raw-material batches were assessed separately based on their appearance and odor, with reference to the Chinese Pharmacopoeia (2025 edition). Raw samples showed no evidence of wine processing. Inadequately processed samples showed little visible change and had a pronounced wine aroma. Appropriately processed samples had a dark-yellow to light-brownish-yellow appearance, slight scorching marks, a pronounced characteristic aroma, and a mild wine aroma. Overprocessed samples showed extensive black scorching and a strong burnt odor. The evaluations were summarized across batches. Consistent classifications were obtained at 0 min (Raw), 6–14 min (Inad.), 16–20 min (App.), and 22–28 min (Over.).

2.2. Computer-Vision-Based Quantification of Appearance

Images of AS slices from all four processing states were captured using a digital single-lens reflex camera (EOS 5DS R, Canon, Kunisaki, Japan). JPEG images (8688 × 5792 pixels) were acquired in RGB color mode using manual focus, an aperture of f/13, a shutter speed of 1/40 s, ISO 100, and automatic white balance. The exposure parameters were kept constant throughout image acquisition. The camera was mounted on a tripod with the lens directed vertically downward. Samples were placed at the center of a white background under LED illumination. The shooting distance, camera angle, and lighting arrangement were kept consistent throughout image acquisition. Python was used to extract regions of interest (ROIs) corresponding to the slices, thereby minimizing the influence of the white background on color and texture measurements. Image-level features were then aggregated by raw-material batch and processing time. Short-term measurement repeatability was evaluated using six consecutive images of an untreated sample from batch 2505002. The RSD values of the extracted R, G, and B features were 1.53%, 1.65%, and 2.00%, respectively.

2.2.1. Extraction of RGB Color Features

The RGB color space represents an image using three channels—red (R), green (G), and blue (B)—whose intensities and combinations reflect overall sample color. RGB-based color descriptors are widely used for object recognition and image feature analysis in computer vision [19]. Using Python, ROI images were converted to the RGB color space. The mean foreground pixel intensity was calculated separately for each channel within the 8-bit range (0–255), and measurements from multiple images at the same batch–time point were averaged to obtain sample-level color features. Background pixels were excluded from the calculation of mean RGB values.

2.2.2. Extraction of Texture Features

LBP encodes local grayscale variations into binary patterns by comparing the intensity of a central pixel with that of neighboring pixels, thereby characterizing the distribution of local image textures [20,21]. LBP has been used to analyze and identify samples subjected to different processing degrees [15,22]. The GLCM is a second-order statistical texture method that quantifies grayscale contrast, uniformity, and spatial correlation by counting the co-occurrence of pixel intensities at specified distances and directions; it has recently been used to identify processed Chinese medicinal slices [23]. These methods emphasize local grayscale patterns and spatial grayscale statistics, respectively, and thus provide complementary texture information.
LBP and GLCM texture features were extracted from images of AS samples using Python. For LBP, eight neighboring sampling points, a radius of one pixel, and the basic LBP encoding method were used to generate a 256-dimensional normalized texture feature vector; local texture maps and feature heatmaps were also generated. For GLCM, grayscale intensities were quantized into 16 levels, and six descriptors—contrast, dissimilarity, homogeneity, energy, correlation, and angular second moment (ASM)—were calculated at pixel distances of 1 and 4 in four directions (0°, 45°, 90°, and 135°). Features were aggregated at the raw-material batch–processing-time level to objectively quantify changes in surface texture during wine-stir-frying.

2.3. Electronic-Eye Colorimetric Measurements

Electronic-eye measurements provide standardized optical color information, converting visually perceived differences in lightness, hue, and chroma into quantitative parameters. A spectrophotometer (CM-5, Konica Minolta, Sakai, Japan) was used to characterize the color of powdered AS samples representing the four processing states. The instrument employed a pulsed xenon lamp, D65 illumination, a 10° standard observer, a 3 mm measurement aperture, a wavelength range of 360–740 nm at 10 nm intervals, and the specular component excluded (SCE) measurement mode.
Black and white calibration was performed before measurement. Powdered samples were placed in a sample cell and measured three times each, and the mean CIELAB L*, a*, and b* values were calculated. L* represents lightness, while a* and b* describe color variation along the red–green and yellow–blue axes, respectively. Color-vector magnitude (E*), chroma (C*), and hue angle (h*) were further calculated from L*, a*, and b* to quantify changes in AS color during wine-stir-frying.
E * = L * 2 + a * 2 + b * 2
C * = a * 2 + b * 2
h * = arctangent ( b * a * )

2.4. Volatile Profiling Using a Flash Gas Chromatography e-Nose

Flash GC e-nose technology integrates headspace sampling, volatile enrichment, and rapid chromatographic separation to generate odor-related fingerprints from the chromatographic responses of volatile compounds, providing an objective means of characterizing odor changes during processing of Chinese medicinal slices [24]. A Heracles NEO flash GC e-nose (Alpha MOS, Toulouse, France), equipped with an automated headspace sampler, parallel MXT-WAX and MXT-5 chromatographic columns, and their respective flame ionization detectors (FIDs), was used to obtain volatile fingerprints of AS samples across the four processing states.
Approximately 0.9 g of each powdered sample was accurately weighed into a sealed 20 mL headspace vial and incubated at 75 °C for 10 min. An autosampler withdrew 4.000 mL of headspace gas. The inlet temperature was 200 °C, the injection rate was 125 μL/s, and the injection duration was 37 s. The carrier-gas flow rate was 1.0 mL/min; the initial trap temperature was 40 °C, the split flow rate was 10 mL/min, and the trapping time was 42 s. The initial oven temperature was 50 °C and was held for 2 s, followed by heating to 170 °C at 3.0 °C/s and then to 250 °C at 1.5 °C/s, with a 15 s hold. Total acquisition time was 110 s. A C6–C16 n-alkane standard mixture (Restek, Bellefonte, PA, USA) was used for retention-time calibration, and volatile compounds were tentatively identified from retention indices using the AroChemBase database [25,26]. Chromatographic data acquisition and peak-area processing were conducted in AlphaSoft (version 17.0) to obtain volatile fingerprints and candidate compound response data for subsequent odor-attribute characterization and multivariate analysis.

2.5. Determination of Chemical Marker Contents

The contents of four representative chemical markers, including ferulic acid (FA), ligustilide (LIG), senkyunolide I (SEN I), and coniferyl ferulate (CF), were determined by HPLC. Information on reagents and reference standards is provided in Table S2. Validation results for the HPLC reference method, including linearity, precision, repeatability, stability, and recovery, are summarized in Table S7.

2.5.1. Preparation of Sample Solutions

Approximately 0.5 g of powder passed through a No. 3 sieve (nominal aperture: 355 ± 13 μm; approximately 50 mesh, according to the Chinese Pharmacopoeia, 2025 edition) was accurately weighed into a stoppered conical flask. Methanol (80%, 25 mL) was added precisely, the flask was stoppered and weighed, and the mixture was ultrasonicated (250 W, 40 kHz) for 30 min. After cooling, the flask was reweighed and the lost mass was replenished with 80% methanol. The solution was mixed, filtered through a 0.22 μm membrane, and the subsequent filtrate was collected for analysis. Moisture content was determined using the toluene distillation method (Method IV, General Chapter 0832, Chinese Pharmacopoeia, 2025 edition). The contents of the four chemical markers were expressed on a dry-weight basis. Dry-weight concentration was calculated as Cdry = mcompound/[msample × (1 − w)], where mcompound is the measured mass of the target compound (mg), msample is the original sample mass (g), and w is the moisture mass fraction expressed as a decimal.

2.5.2. Preparation of Reference Standard Solutions

Appropriate amounts of FA, SEN I, CF, and LIG reference standards were dissolved in 80% methanol to prepare a mixed standard solution containing approximately 250, 230, 180, and 1250 μg/mL of the respective compounds.

2.5.3. Chromatographic Conditions

A Purospher® STAR RP-18 column (Merck, Darmstadt, Germany; 250 × 4.6 mm, 5 μm) was used. The mobile phase consisted of acetonitrile (A) and 0.1% aqueous formic acid (B). The gradient program was as follows: 0–40 min, 5–80% A; 40–45 min, 80–5% A; and 45–50 min, 5% A. The final 5 min allowed column re-equilibration at the initial mobile phase composition, corresponding to 5 mL of mobile phase at a flow rate of 1.0 mL/min. The detection wavelength was 285 nm, the column temperature was 35 °C, and the injection volume was 10 μL. No separate column-washing step was performed between consecutive injections. Additional column washing was performed after each sequence of 13 samples using a methanol–water gradient at 1.0 mL/min for 180 min.

2.6. FT-NIR Spectral Acquisition and Processing

2.6.1. FT-NIR Spectral Acquisition

FT-NIR spectroscopy is primarily based on overtone and combination-band absorptions of hydrogen-containing functional groups and can rapidly capture composite chemical information from complex plant matrices [27].
Spectra of AS samples at different processing states were acquired using an Antaris II FT-NIR spectrometer (Thermo Fisher Scientific, Waltham, MA, USA). The powdered samples used for FT-NIR measurements were also passed through a No. 3 sieve, consistent with the sample preparation procedure used for HPLC analysis. Samples were placed in a quartz sample cup, evenly distributed to a thickness of approximately 1–2 cm, and gently compacted to maintain consistent loading. Diffuse reflectance spectra were collected over 12,000–4000 cm−1 at a resolution of 16 cm−1 with 32 scans. Each sample was measured three times, and the mean spectrum was used for subsequent analyses.

2.6.2. FT-NIR Spectral Preprocessing

Raw NIR spectra contain chemical absorption information but are also affected by particle size, sample packing, and instrument noise, resulting in scattering, baseline drift, and random fluctuations that can interfere with the extraction of useful spectral features [28]. To reduce these effects, Savitzky–Golay (SG) smoothing, standard normal variate (SNV) transformation, multiplicative scatter correction (MSC), and first- and second-derivative preprocessing were evaluated.
SG smoothing was used primarily to suppress random noise [28], whereas SNV and MSC were used to attenuate scattering and baseline variation [27]. Derivative processing can reduce baseline effects and emphasize overlapping absorption features, although it may also amplify noise [29]. Model performance was compared across preprocessing methods to identify spectral treatments suitable for evaluating the processing degree of WAS [30].

2.7. Development of MOBO-PLSR Models Based on NIR Spectroscopy and Multisource Data Fusion

A feature-level fusion strategy was applied to rapidly predict the contents of major chemical constituents in AS samples across processing states. This strategy combined near-infrared spectral data with multidimensional sensory features obtained from machine vision, the electronic eye, and the electronic nose [31]. FA, LIG, SEN I and CF were selected as the four prediction targets. For each constituent, the optimal spectral preprocessing method was selected from six inputs (raw, SNV, MSC, SG, first derivative [1D], and second derivative [2D]) using three-fold batch-grouped cross-validation and the minimum cross-validation root mean squared error (RMSECV) criterion. Principal component analysis (PCA) was then applied to reduce the dimensionality of the preprocessed full-spectrum data, which were fused with standardized features from the other modalities. To evaluate complementary and redundant information and the incremental predictive value of different sources, near-infrared spectroscopy (N) was used as the reference modality, and machine vision (V), electronic eye (Ee), and electronic nose (En) were combined to form eight input configurations: N, N+V, N+Ee, N+En, N+V+Ee, N+V+En, N+Ee+En, and N+V+Ee+En.
PLSR was used as the baseline regression model [32]. For conventional PLSR, grid search evaluated five PCA component counts (6, 12, 18, 24, and 36) and four PLS latent-variable settings (2, 4, 6, and 8), yielding 19 valid combinations after excluding settings with more latent variables than PCA components. The weight assigned to non-NIR feature blocks was fixed at 1.0. MOBO was subsequently applied to optimize the PLSR model, with TPE guiding the hyperparameter search. The search space comprised five candidate numbers of NIR PCA components (6, 12, 18, 24, and 36), 1–12 PLS latent variables with the upper bound constrained by the selected PCA dimension, and a common weight of 0.25–2.00 applied uniformly to the additional non-NIR feature blocks. For NIR-only configurations, this weight was fixed at 1.0. These parameters allowed the search to explore different model complexities and contributions from auxiliary sensing features. A fixed budget of 24 MOBO trials was used for each chemical marker and modality configuration within each outer training fold. The 60 proposals were counted separately for each optimization algorithm and outer training fold, including repeated configurations whose previously computed objective values were retrieved from a cache. RMSECV and the normalized number of PCA components were used as the two optimization objectives. The final hyperparameters were selected from the Pareto front. Solutions with an RMSECV no more than 4% above the minimum Pareto-front RMSECV were considered eligible. Among these solutions, the candidate with the lowest normalized number of PCA components was selected. When multiple candidates had the same complexity, the one with the lower RMSECV was selected.
Regression models were evaluated using three repetitions of four-fold outer batch-grouped cross-validation. Within each outer training set, three-fold inner batch-grouped cross-validation was used for preprocessing selection and hyperparameter optimization. All time-point samples originating from the same raw-material batch were kept within the same partition, and outer test batches were excluded from model selection. Model performance was evaluated using the coefficient of determination (R2), root mean squared error (RMSE), mean absolute error (MAE), and ratio of performance to deviation (RPD). Predicted-versus-measured scatterplots and Bland–Altman plots were used to assess prediction agreement. The corresponding equations are provided in Supplementary Tables S1–S4.
Based on predictions from the eight NIR-containing modality configurations, block ablation and NIR-anchored modality-level Shapley analyses were performed [33,34]. For regression, the value of each NIR-containing modality subset was defined as its cross-validated R2 improvement relative to the NIR-only model. The Shapley value of each additional modality was calculated as the weighted average of its marginal R2 improvements across all subsets of the remaining non-NIR modalities. Thus, “NIR-anchored” indicates that NIR was retained in every evaluated configuration, rather than referring to conditional expectations over the feature distribution.

2.8. Classification of WAS Processing Degrees Using Multisource Data Fusion and Intelligent Optimization

2.8.1. Multisource Data Fusion and Classifier Development

WAS involves multidimensional changes in chemical composition, surface color, texture, and volatile constituents. Different sensing technologies offer distinct advantages, and their information may be complementary or redundant. Accordingly, feature-level fusion was used to construct 15 input configurations, consisting of four single-modality and 11 multimodal combinations, to compare discrimination performance and fusion effects [35]. FT-NIR spectra were preprocessed and reduced in dimensionality by PCA to limit high-dimensional redundancy and collinearity, while features from other modalities were screened using variable importance in projection (VIP) scores and analysis-of-variance (ANOVA) F tests performed within the training folds.
An RF classifier, which constructs multiple decision trees through bootstrap sampling and assigns classes by majority voting, was used [36]. The baseline RF comprised 250 trees, a maximum depth of 12, a minimum of four samples to split an internal node, and a minimum of two samples per leaf. Support vector machines (SVM) and CatBoost were included as comparator models.
To improve classification performance, particle swarm optimization (PSO), genetic algorithms (GA), and TPE were separately employed to optimize RF hyperparameters. PSO guides searches using individual and collective best solutions [37], GA explores the search space through selection, crossover, and mutation [38], and TPE uses probabilistic density modeling to guide parameter search [39]. The same RF search space was used for all three algorithms: 100–600 trees, maximum depth of 3–25, minimum split size of 2–18, minimum leaf size of 1–8, and maximum feature fraction of 0.2–1.0. These ranges allowed the algorithms to explore different ensemble sizes, tree complexities, and levels of feature subsampling. They also kept individual model evaluations computationally manageable within the nested cross-validation framework. Cross-validated macro-F1 was maximized. For the full four-modality model, each optimization algorithm was allocated a fixed budget of 60 candidate parameter proposals within each outer training fold. The 60 proposals were counted separately for each optimization algorithm and outer training fold, including repeated configurations whose previously computed objective values were retrieved from a cache. Both PSO and GA used a population size of 10. PSO used an inertia weight of 0.65 and learning factors of 1.35; GA used crossover and individual mutation probabilities of 0.5 and 0.85, respectively; and TPE used 10 initial random-search trials.

2.8.2. Model Validation and Multisource Information Contribution Analysis

Raw-material batches were treated as independent groups in nested cross-validation comprising five repetitions of an outer four-fold split and an inner three-fold split. All preprocessing, feature selection, and hyperparameter optimization steps were performed within the training folds to avoid data leakage [40,41]. Classification performance was evaluated using accuracy and macro-F1, and confusion matrices were used to analyze class-specific predictions. The equations are provided in Supplementary Tables S5–S9.
Modality-level Shapley analysis was applied to out-of-fold predictions from all 15 nonempty modality configurations using the baseline RF classifier [33]. Macro-F1 was used as the performance measure. The empty-set reference was obtained by predicting the majority class in each outer training fold. Single-modality gains, leave-one-modality-out (LOO) decreases, and Shapley contributions were calculated to quantify the individual and average marginal contributions of each modality to classification performance. After the final algorithm had been selected using the development data, it was refitted using development batches only and frozen before independent external validation.

2.9. Independent External Validation

Three additional independent batches of AS slices were used for external validation; their origins and identifiers are provided in Table S1. Processing conditions were the same as those described in Section 2.1. External samples were excluded from development-set cross-validation, preprocessing and feature selection, algorithm comparison, and hyperparameter tuning. The frozen classifier and four regression models were applied directly to these samples. Classification performance was reported as accuracy and macro-F1, and regression performance as R2, RMSE, MAE, and RPD. External validation results were not used to readjust the models.

3. Results and Discussion

3.1. Results of Computer-Vision-Based Quantification of Appearance

3.1.1. RGB Color Feature Analysis

As shown in Figure 1A–C, the responses of all three RGB channels decreased progressively with increasing processing degree. The declines in the G and B channels were particularly pronounced, with the B channel showing a relatively clear gradient across processing stages. Exploratory Kruskal–Wallis H tests yielded nominal p-values below 0.001 for all three RGB channels. Subsequent two-sided Mann–Whitney U comparisons between the Raw group and the Inad., App., and Over. groups yielded BH-FDR-adjusted q-values below 0.05, 0.01, or 0.001, depending on the channel and comparison. However, these tests did not account for repeated observations within the same raw-material batch. Therefore, the statistical results were interpreted as exploratory evidence of group differences, while the observed RGB trends were emphasized in the assessment of processing-related color changes.
Figure 1. Machine-vision characterization of color changes in AS during wine-stir-frying. (A–C) Distributions of the R, G, and B channels; (D) PLS-DA score plot based on RGB features; (E) RGB permutation test; The asterisks indicate BH-FDR-adjusted q-values from exploratory Mann–Whitney U comparisons with the Raw group (* q < 0.05, ** q < 0.01, and *** q < 0.001). These tests did not account for within-batch repeated measures; the significance annotations should therefore not be interpreted as confirmatory statistical evidence.
Partial least squares discriminant analysis (PLS-DA) is a supervised multivariate classification method based on partial least squares regression that extracts latent variables associated with class information for sample discrimination [42,43]. In the PLS-DA score plot based on RGB features (Figure 1D), Raw and Over. samples were broadly separated, whereas Inad. and App. samples partly overlapped. Thus, RGB features captured the overall progression of WAS processing but were less effective at discriminating adjacent processing states. Permutation testing was performed to examine possible overfitting. It is generally accepted that a model is considered reliable when the Y-axis intercept of the R2 regression line is below 0.3, whereas a Y-axis intercept of the Q2 regression line below 0.05 indicates the absence of overfitting. The permutation results were consistent with no obvious indication of random-label overfitting (Figure 1E).
The concurrent decreases in RGB channel intensities indicated progressive darkening of the AS slice surfaces during wine-stir-frying. This change may reflect moisture migration, alterations in surface optical properties, and oxidation or browning of some constituents during heating, although the color measurements alone cannot establish the underlying chemical pathways. Initial color differences among raw-material batches may also contribute to feature overlap between adjacent processing stages. RGB parameters therefore provide quantitative descriptors of overall color changes, while additional appearance features, such as texture, are needed to improve discrimination of closely related states. However, automatic white balance may have introduced image-dependent color adjustments despite the use of fixed exposure settings. Therefore, the RGB features should be interpreted as relative color descriptors under the present acquisition conditions.

3.1.2. LBP Texture Feature Analysis

To characterize local texture variation not fully captured by RGB color information, 256-dimensional LBP features were extracted from AS images at different processing degrees and visualized.
Figure 2A presents representative LBP texture maps from 13 processing time points of batch B01. The slices exhibited rich local texture structures, with differences in their distribution, orientation, and local density, although many features remained similar across time points. A circular heatmap of the 256 LBP features (Figure 2B) showed pronounced differences in response intensity among encoding patterns. Some features maintained relatively high responses at multiple time points, whereas others remained low. Local differences across processing times suggested changes in the frequency of particular grayscale patterns, although the overall texture distribution remained continuous. A PLS-DA model based on LBP features (Figure 2D) exhibited substantial overlap among the four groups without distinct clusters, indicating limited discrimination using LBP features alone.
Figure 2. Texture characterization of different degrees of processing of AS. (A) Representative LBP texture maps at 13 processing times; (B) circular heatmap of 256 LBP features; (C) GLCM texture descriptors across four processing states; (D,E) PLS-DA score plots based on LBP and GLCM features, respectively; (F) VIP analysis of GLCM features; (G) permutation test of the GLCM-based PLS-DA model.
Changes in surface color and local surface condition during wine-stir-frying may alter grayscale relationships among neighboring pixels. Nevertheless, the persistence of similar texture patterns across processing states indicates that local texture changes do not necessarily parallel overall color changes. LBP can therefore complement RGB measurements in characterizing local appearance changes during WAS processing.

3.1.3. GLCM Texture Feature Analysis

Because LBP features showed limited classification performance, GLCM analysis was used to further quantify changes in the spatial distribution of grayscale intensities on the surfaces of AS slices. Six descriptors—contrast, dissimilarity, homogeneity, energy, correlation, and ASM—were extracted and compared among processing states.
As shown in Figure 2C, the six GLCM descriptors followed distinct trends with increasing processing degree. Contrast, dissimilarity, and correlation generally decreased, whereas homogeneity, energy, and ASM increased. The decreases in contrast and dissimilarity indicated reduced grayscale differences between adjacent pixels, while increases in homogeneity, energy, and ASM suggested a more concentrated distribution of grayscale co-occurrences. These findings indicate that wine processing affected not only the overall color of WAS but also spatial grayscale relationships within its surface images.
A PLS-DA model was subsequently developed to evaluate discrimination by the GLCM features. In Figure 2E, Over. samples were mainly distributed on the left side of the score plot and were broadly separated from Raw samples. Inad. and App. samples occupied the central and right-hand regions with partial overlap. Compared with LBP, the GLCM score plot displayed a more evident processing-stage-dependent distribution.
VIP analysis was used to assess the contribution of individual GLCM descriptors to the PLS-DA model. Both contrast and correlation had VIP scores greater than 1 (Figure 2F), indicating relatively high importance for discrimination in the current model. Contrast represents local grayscale variation, while correlation provides information on spatial grayscale relationships. Permutation testing showed no clear evidence of an advantage under randomly permuted labels (Figure 2G). Overall, GLCM descriptors characterized processing-related surface texture changes, with contrast and correlation emerging as candidate features for subsequent quality assessment.

3.1.4. E-Eye Colorimetric Characterization

The preceding machine-vision analyses provided nondestructive information on AS surface color and texture but showed some limitations in separating adjacent processing stages. E-eye colorimetry was therefore introduced to obtain standardized instrumental color parameters from powdered samples. Method validation yielded relative standard deviations (RSDs) below 3% for all measured parameters (Table S3), indicating satisfactory precision, stability, and repeatability.
As shown in Figure 3A–F, the colorimetric characteristics of WAS changed progressively during wine-processing. From Raw to Inad., L* decreased slightly from 70.11 to 67.56, while a* and b* increased from 3.84 to 4.60 and from 22.75 to 24.38, respectively, indicating initial darkening with a modest enhancement of red and yellow components. As processing progressed to App., L* further decreased to 61.77, whereas a* and b* increased to 6.50 and 26.45, accompanied by increased C* and decreased h*. These changes indicated a deeper, more saturated coloration while retaining a predominantly yellow hue, broadly consistent with the “deep-yellow or light-brownish-yellow” cut-surface appearance described in the Chinese Pharmacopoeia (2025 edition). Further processing to Over. resulted in a marked decrease in L* to 52.26 and increases in a* and C* to 10.81 and 33.53, respectively, indicating pronounced darkening and a stronger reddish component. Friedman tests confirmed significant differences among the four processing stages for all six parameters (p < 0.001).
Figure 3. E-eye colorimetric characterization of different degrees of processing of AS. (A–F) Distributions of L*, a*, b*, C*, E*, and h*; (G) PLS-DA score plot; (H) VIP scores; (I) permutation test.
PLS-DA was then applied to the E-eye colorimetric data. In Figure 3G, Over. samples were mainly distributed on the left side of the score plot, whereas Raw and Inad. samples were generally located on the right, and App. samples occupied the central region with partial overlap with adjacent stages. The E-eye parameters therefore reflected overall processing-related color differences but remained less effective at distinguishing neighboring processing states. VIP analysis (Figure 3H) identified a*, C*, b*, and L* as relatively important discriminatory variables, each with a VIP score greater than 1. The permutation test (Figure 3I) did not indicate an obvious advantage from fitting randomly assigned class labels.
Taken together, E-eye analysis revealed progressive color changes in AS during wine-stir-frying, characterized by decreasing lightness, increasing red and yellow color components, and enhanced chroma. The App. stage exhibited moderate darkening while retaining a predominantly yellow hue, broadly consistent with the deep-yellow or light-brownish-yellow appearance described in the Chinese Pharmacopoeia. These findings provide a quantitative basis for transforming traditional experience-based color assessment into objective evaluation. However, despite the processing-related differences revealed by PLS-DA, substantial overlap between adjacent stages indicated that E-eye colorimetric features alone were insufficient for reliable discrimination of all processing degrees.

3.1.5. Establishment of Discriminant Functions and Reference Ranges

Discriminant analysis assigns samples to classes using linear combinations of multiple features. Because both GLCM texture descriptors and e-eye colorimetric parameters showed discriminatory value, stepwise discriminant analysis was used to select variables, establish four classification functions, and identify interpretable numerical reference indicators of appearance.
The four AS processing states were used as grouping variables. Six GLCM texture descriptors and six e-eye colorimetric parameters were separately considered as candidate predictors. Stepwise variable selection based on Wilks’ lambda was used to identify informative variables, and linear discriminant analysis was then applied to construct class-specific classification functions.
For GLCM, correlation (cor), contrast (con), and energy (ene) were retained as discriminatory variables, yielding the following functions:
Raw: F1 = 4811.446cor + 666.942con + 6486.222ene − 3266.479
Inad.: F2 = 4744.949cor + 646.472con + 6406.533ene − 3157.422
App.: F3 = 4615.462cor + 631.331con + 6319.108ene − 3012.380
Over.: F4 = 4516.509cor + 626.573con + 6401.745ene − 2958.250
For the e-eye data, the same procedure selected a*, E*, C*, and L*, resulting in the following functions:
Raw: F1 = −19.748a* + 55.019E* + 3.165C* − 36.676L* − 746.355
Inad.: F2 = −19.869a* + 49.567E* + 6.049C* − 32.113L* − 729.938
App.: F3 = −18.323a*+ 41.497E* + 9.114C* − 25.596L* − 677.111
Over.: F4 = −16.805a* + 42.661E* + 9.318C* − 27.119L* − 684.875
For an unknown sample, its features were entered into the four corresponding functions, and the class with the highest score was assigned as the predicted processing state. The apparent classification accuracies of the GLCM and e-eye models were 83.85% and 80.00%, respectively. In three repetitions of four-fold batch-independent cross-validation, their mean accuracies were 81.73% and 77.46%, respectively (Table S4). These results indicate that both types of features had discriminatory value, with GLCM performing slightly better on the current matched sample set.
Based on the preceding VIP and stepwise discrimination results, contrast, correlation, L*, a*, and C* were selected as primary appearance reference indicators, representing grayscale contrast, spatial correlation, lightness, color along the red–green axis, and chroma, respectively. To establish stage-specific reference ranges, feature values were first averaged within each raw-material batch and processing stage, and their normality was assessed using the Shapiro–Wilk test. Sixteen raw-material batches were used as statistical units for the GLCM and e-eye measurements. For variables without significant evidence of non-normality, two-sided 95% reference ranges were calculated as the mean ± 1.96 standard deviations; otherwise, the empirical 2.5th and 97.5th percentiles were reported. Only correlation and a* in the Over. group failed the normality criterion (p < 0.05); the remaining selected parameters showed no significant deviation from normality (p > 0.05). Preliminary reference ranges were established accordingly (Table 1). Contrast and correlation described spatial grayscale changes in the WAS surface, whereas L*, a*, and C* captured standardized color variation. Combining these complementary appearance indicators with discriminant functions may support digital assessment of processing-state discrimination of AS samples.
Table 1. Preliminary 95% reference ranges of colorimetric and GLCM texture features of AS across four processing states.

3.2. Flash GC e-Nose Analysis

Moistening with yellow rice wine followed by stir-frying may induce changes in the release and transformation of volatile constituents, thereby altering the odor characteristics of AS. A flash GC e-nose was therefore used to characterize volatile fingerprints and odor-related features across the four processing states. All method-validation RSDs were below 3% (Table S5), indicating satisfactory precision, stability, and repeatability.
As shown in Figure 4A,B, AS samples representing the four processing states displayed numerous volatile response peaks on both MXT-WAX-FID1 and MXT-5-FID2 columns, with differences in peak intensity and distribution. The Raw group exhibited a relatively stable initial fingerprint; some responses changed in the Inad. group; the App. group showed more evident multiple peaks over approximately 45–90 s; and several initially prominent peaks weakened in the Over. group. These differences indicated stage-dependent changes in volatile fingerprints during wine-stir-frying. MXT-WAX is a polar column suitable for separating oxygenated volatiles, whereas MXT-5 is relatively nonpolar and is better suited to weakly polar and hydrocarbon compounds. Because responses were clearer on MXT-WAX-FID1 in this study, peak-area data from that column were used for subsequent PLS-DA and feature screening.
Figure 4. Flash GC e-nose characterization of different degrees of processing of AS. (A,B) Chromatographic fingerprints obtained using MXT-WAX-FID1 and MXT-5-FID2; (C) aroma wheel; (D) Sankey diagram of odor attributes, tentative volatile compounds, and processing groups; (E) clustered heatmap of volatile responses; (F) stacked bar chart of relative volatile abundances; (G) PLS-DA score plot; (H) VIP scores; (I) permutation test.
Database matching yielded 22 candidate volatile compounds (Table S6), whose reported odor descriptors were used to construct an aroma wheel and Sankey diagram (Figure 4C,D). These candidates included esters, aldehydes, furans, and terpenes, with descriptors such as fruity, herbal, roasted, burnt, and sweet. Esters were associated mainly with fruity and sweet attributes, some terpenes with herbal and spicy notes, and aldehydes and furans with potentially roasted attributes during processing. These categories illustrate the complexity of the putative volatile composition of WAS.
The heatmap and relative-abundance profiles revealed distinct changes in odor-related responses across processing stages (Figure 4E,F). The total monitored peak areas remained relatively comparable among the Raw, Inad., and App. groups, whereas the Over. group exhibited a marked reduction of approximately 45.1% compared with Raw. Significant differences were observed among processing states (Friedman test, p < 0.001). Compared with Raw, the Inad. group showed increased responses from several candidates associated with fruity and brewed odor descriptors, accompanied by decreases in certain original plant-associated signals. These changes were consistent with the noticeable wine odor observed during the early stages of processing. As stir-frying progressed to the App. stage, some of these responses declined, while other candidates associated with roasted and malty odor descriptors increased. This redistribution of odor-related signals suggested a gradual transition from the initial wine-moistened state toward a more complex aroma profile during heating. Notably, the Chinese Pharmacopoeia (2025 edition) describes WAS as having a pronounced characteristic aroma accompanied by a slight wine-like note. The changes observed in the App. group may provide an instrumental basis for interpreting this traditional sensory description. In the Over. group, the substantial reduction in total peak area was accompanied by attenuation of several prominent original responses and the appearance of additional candidate signals. The relative proportion of responses assigned to burnt-related odor descriptors also increased, indicating further changes in odor composition under prolonged heating. These observations were consistent with the visible scorching characteristics of overprocessed samples.
PLS-DA was further used to evaluate the discrimination of processing degrees using volatile profiles (Figure 4G). Raw samples were located mainly in the upper region of the score plot; Inad. and App. samples occupied the right-hand region with some overlap; and Over. samples were shifted to the left and showed a more distinct separation from the other stages. VIP analysis (Figure 4H) identified aromadendrene, β-sesquiphellandrene, 2-methylbutanal, acetic acid 2-methylbutyl ester, and isoamyl acetate as variables with VIP scores greater than 1, indicating relatively high contributions to the discrimination of processing states. The permutation test (Figure 4I) showed no obvious indication of an advantage under random class-label assignment.
Overall, the volatile profiles of AS samples exhibited stage-dependent changes during wine-stir-frying. The Raw stage retained more signals associated with the original herbal aroma, while some constituents had already changed in the Inad. stage despite continued similarity to raw material. Certain candidate aldehydes and furans showed higher responses in the App. stage, whereas the Over. stage was characterized by weakening of major volatile signals and redistribution of relative composition. Previous studies have likewise reported effects of wine processing and heating on the volatile constituents and odor properties of AS [6,44]. These findings indicate that flash GC e-nose fingerprints and selected candidate volatile responses may contribute chemically interpretable information for discriminating different degrees of wine-stir-frying of AS.

3.3. Changes in Chemical Marker Contents During Wine-Stir-Frying

HPLC quantification revealed different processing-related responses among the four markers (Figure 5). Validation of the HPLC reference method indicated acceptable performance in terms of linearity, precision, repeatability, stability, and recovery (Table S7).
Figure 5. Changes in chemical marker contents of different degrees of processing of AS. (A) Ferulic acid. (B) Ligustilide. (C) Senkyunolide I. (D) Coniferyl ferulate. Boxplots show marker contents at different processing times from 0 to 28 min. Marker contents are expressed as mg/g dry weight. Dots represent individual batch-level samples.
The four constituents exhibited distinct time-dependent patterns during wine-stir-frying. FA increased during the early and middle processing stages and then decreased markedly during overprocessing (Figure 5A). LIG reached relatively high contents around 18–20 min and subsequently declined (Figure 5B). SEN I varied more moderately overall but decreased or fluctuated during the later stages (Figure 5C). CF showed stage-dependent fluctuations, with higher contents at some middle-to-late time points and an overall decreasing tendency during overprocessing (Figure 5D).
These differing responses indicate that no single chemical marker can fully characterize the processing course. During wine moistening and early heating, tissue hydration and matrix softening may facilitate constituent release, while hydrolysis of bound phenolic precursors, potentially involving enzymatic activity before substantial heating, may also contribute to changes in FA content. The relatively high contents observed around 18–20 min may reflect a temporary balance between enhanced extractability and subsequent thermal losses. With prolonged heating, FA may undergo degradation or oxidation, whereas heat-sensitive phthalides such as LIG and related senkyunolide derivatives may undergo isomerization, oxidation, or volatilization. Accordingly, combining multiconstituent quantification with processing-state discrimination is necessary for comprehensive evaluation of chemical quality.

3.4. FT-NIR Spectral Characterization and Regression Analysis Based on Multisource Data Fusion

3.4.1. FT-NIR Spectral Characterization

The raw FT-NIR spectra are shown in Figure 6A. Although the main absorption bands appeared at similar positions for different processing states, variations in absorbance intensity and baseline reflected changes in the complex chemical matrix of AS samples.
Figure 6. FT-NIR spectra of different degrees of processing of AS under different preprocessing methods. (A) Raw spectra; (B) SG; (C) MSC; (D) SNV; (E) 1D; and (F) 2D.
The weak absorption near 8300 cm−1 may be associated with the second overtone of C–H stretching. Absorptions at 7000–6800 cm−1 are mainly attributable to the first overtone of O–H stretching, while those at 6000–5600 cm−1 are primarily associated with the first overtone of C–H stretching. The regions around 5200 and 4800–4300 cm−1 contain combination bands involving O–H and C–H groups. These overlapping absorptions reflect the integrated spectral response of the chemically complex WAS matrix.
Differences in intensity and baseline among raw spectra may reflect raw-material batch variation, sample physical properties, and processing-related changes in chemical composition. After preprocessing (Figure 6B–F), SG smoothing largely preserved the major spectral features, whereas SNV and MSC reduced spectral dispersion. First- and second-derivative treatments highlighted local spectral variation but also increased fluctuations in some regions. The effects of preprocessing on spectral information therefore differed, and the suitability of each method was evaluated according to subsequent quantitative prediction performance.

3.4.2. Selection of NIR Spectral Preprocessing Methods

Preprocessing strategies differed substantially in their quantitative prediction performance for the four markers (Table S8). SNV was selected for FA and CF, MSC performed best for LIG, and 1D was preferred for SEN I.
SNV and MSC performed well for most targets, suggesting that correcting scattering and baseline differences facilitated extraction of relevant chemical information. 1D processing, by comparison, may have been more effective at emphasizing local spectral features associated with changes in SEN I content. Thus, target-specific preprocessing was more appropriate than applying one spectral treatment to every constituent.

3.4.3. Quantitative Regression Using Multisource Data Fusion and MOBO-PLSR

The prediction performance of different regression models for the four WAS markers is summarized in Table 2. With N alone, predictive performance varied among the constituents. For SEN I, MOBO-PLSR yielded an R2 of only 0.5797, indicating limitations of NIR-only data for certain targets. Incorporating V, the Ee, and the En generally improved prediction, although gains differed among modality combinations (Table S9). N+V+En was the best-performing three-modality configuration, with a mean R2 of 0.8616. Full four-modality fusion (N+V+Ee+En) achieved the highest performance, with R2 values of 0.9371, 0.9357, 0.8899, and 0.9243 for FA, LIG, SEN I, and CF, respectively. In particular, the R2 for SEN I increased by 0.3102 compared with the N-only model, suggesting that complementary information from additional modalities improved prediction of complex constituent changes. The weaker NIR-only prediction of SEN I may not be explained by its low abundance alone, as CF also occurs at relatively low levels but shows better prediction performance. Broad and overlapping NIR overtone and combination bands may obscure constituent-specific information, while the relatively moderate and fluctuating changes in SEN I may be less consistently reflected by overall spectral variation. The selection of first-derivative preprocessing for SEN I further suggests that local spectral features may be important for its prediction. Thus, the improved performance after multimodal fusion may result from additional processing-related information provided by appearance and odor features, rather than direct detection of SEN I by these sensors.
Table 2. Regression performance of PLSR and MOBO-PLSR based on NIR spectroscopy and complete multisource fusion.
MOBO-PLSR outperformed conventional PLSR in all 32 paired comparisons, with a mean R2 improvement of 0.0949 (Table 2). For full four-modality fusion, mean R2 increased from 0.8282 to 0.9218, while R2 for SEN I improved from 0.7447 to 0.8899, demonstrating that multiobjective optimization also benefited the less predictable constituent. MOBO-PLSR used TPE-guided optimization and Pareto-based selection to balance prediction error and model complexity [45]. However, conventional PLSR and MOBO-PLSR were not evaluated using identical search spaces or parameter-search budgets. Conventional PLSR evaluated 19 valid combinations of five PCA component counts (6, 12, 18, 24, and 36) and four PLS latent-variable settings (2, 4, 6, and 8), excluding combinations in which the number of latent variables exceeded the number of PCA components. The non-NIR feature-block weight was fixed at 1.0. In contrast, MOBO-PLSR used 24 TPE-guided optimization trials for each chemical marker and modality configuration within each outer training fold. It explored the same PCA component candidates, a broader latent-variable range (1–12, subject to the selected PCA dimension), and an additional non-NIR feature-block weight ranging from 0.25 to 2.00. Both approaches used the same fold-specific NIR preprocessing selection and batch-grouped validation framework. Thus, although the nominal numbers of evaluations were similar (19 versus 24), the search procedures were not identical. The observed improvement may reflect both Pareto-based multiobjective selection and the additional flexibility of joint hyperparameter optimization, rather than the multiobjective optimization algorithm alone.
Predicted contents from the final four-modality MOBO-PLSR models generally agreed with measured values and clustered around the identity line. Bland–Altman analysis showed mean prediction biases near zero for all four markers, further supporting prediction agreement within the current sample set (Figure 7).
Figure 7. Regression analysis of four chemical markers in AS samples across processing states using the N+V+Ee+En MOBO-PLSR model. (A–D): measured versus predicted contents of (A) ferulic acid; (B) ligustilide; (C) senkyunolide I; and (D) coniferyl ferulate. (E–H): The corresponding for (E) ferulic acid; (F) ligustilide; (G) senkyunolide I; and (H) coniferyl ferulate.

3.4.4. Block Contributions and Shapley Analysis of Multisource Fusion

Block ablation and NIR-anchored modality-level Shapley analyses were conducted to quantify the incremental predictive contributions of the non-NIR modalities (Table 3). In the full four-modality MOBO-PLSR models, removing En, V, and Ee decreased the mean R2 across the four constituents by 0.1312, 0.1045, and 0.0602, respectively. NIR-anchored modality-level Shapley analysis yielded the same order of importance, with NIR retained as the reference modality: the mean Shapley values of En, V, and Ee were 0.0818, 0.0698, and 0.0426, respectively, identifying En and V as the principal complementary information sources. Contributions varied by constituent: En contributed more strongly to FA, SEN I, and CF, whereas V was especially important for LIG. For SEN I, whose N-only prediction was relatively weak, the Shapley contributions of En and V reached 0.1340 and 0.0993, respectively, consistent with the marked improvement after fusion.
Table 3. Block ablation and NIR-anchored modality-level Shapley contributions to MOBO-PLSR prediction.
These findings may be explained by volatile responses, color, and texture capturing different aspects of overall quality changes during wine-stir-frying. Partial overlap between the color information obtained by Ee and V may also explain the lower marginal contribution of Ee.
Overall, NIR spectroscopy provided the core chemical information for rapid quantification of WAS constituents, while machine vision, the e-eye, and the e-nose provided complementary information from different sensory dimensions. Modality contributions varied across constituents, and full four-modality fusion achieved the best overall prediction performance, indicating the potential of multisource fusion for rapid chemical quality assessment of WAS.

3.5. Classification of WAS Processing Degrees Using Multisource Data Fusion and Model Optimization

3.5.1. Classification Results for Multisource Fusion and Optimized Models

Classification results for the modality combinations are presented in Table S10. Among the single-modality models, the En performed best, with an accuracy of 69.55% and macro-F1 of 0.5201. Classification generally improved as other information sources were added. With full four-modality fusion (N+V+Ee+En), the baseline RF achieved an accuracy of 87.34% and macro-F1 of 0.8045, indicating that NIR, appearance, and odor information were complementary for discrimination of AS processing states.
Comparison of optimization algorithms showed that PSO-RF and GA-RF increased accuracy to 95.67% and 93.43%, respectively, whereas TPE-RF achieved the best classification performance, with an accuracy of 98.08% and macro-F1 of 0.9833. These represented increases of 10.74 percentage points and 0.1788, respectively, over the unoptimized RF (Table 4). Confusion matrices further illustrated differences among models in class-specific discrimination (Figure 8). The improvements after optimization may be related to changes in RF hyperparameter configurations; TPE uses probabilistic guidance informed by previous trials and may improve search efficiency.
Table 4. Classification performance of different models using four-source fusion.
Figure 8. Confusion matrices of classification models for discriminating the processing states of AS samples. (A) RF; (B) SVM; (C) CatBoost; (D) PSO-RF; (E) GA-RF; and (F) TPE-RF. Classes 0, 1, 2, and 3 correspond to raw, inadequately processed, appropriately processed, and over-processed samples, respectively.

3.5.2. Multisource Block Contributions and Shapley Analysis

To quantify the contributions of individual modalities to classification, block ablation and Shapley analyses were conducted across the 15 modality configurations (Table 5). Removing En from the full fusion model caused the largest reduction in macro-F1 (0.2347), indicating that volatile information played an important role in processing-state discrimination.
Table 5. Modality-level contributions to baseline RF classification performance based on Macro-F1 across 15 modality combinations.
Shapley analysis yielded contributions of 0.2568, 0.1641, 0.1563, and 0.0884 for En, V, Ee, and N, respectively, corresponding to relative shares of 38.58%, 24.66%, 23.49%, and 13.28%. En provided the largest contribution, followed by V and Ee, suggesting that volatile and appearance/colorimetric features supplied complementary information on processing states. The smaller marginal contribution of N may reflect overlap between its discriminative information and that captured by the other modalities. Thus, multisource fusion benefited primarily from complementarity among sensors, while model optimization further improved the utilization of fused features for rapid discrimination of WAS processing degrees.

3.6. Results of Independent External Validation

Independent external validation results are provided in Tables S11 and S12 and Figure S1. The fusion classifier achieved an accuracy of 94.87% and a macro-F1 of 0.9590 on the three external batches, indicating promising performance under the tested processing conditions. External regression R2 values for FA, LIG, SEN I, and CF were 0.9196, 0.9091, 0.7411, and 0.9117, respectively, with corresponding RPD values of 3.5276, 3.3173, 1.9653, and 3.3650. Except for SEN I, all constituents had external R2 values above 0.90, suggesting some applicability across independent batches. These results provide preliminary evidence of model performance on additional raw-material batches. However, only three independent batches were examined under the same processing protocol. Further validation using more diverse raw materials, processing conditions, and equipment is needed to assess the broader applicability of the models.

4. Conclusions

This study demonstrated that the color, texture, odor, and chemical constituents of AS exhibited distinct changes during wine-stir-frying, highlighting the limitations of empirical sensory evaluation and individual quality indicators. Machine vision, an e-eye, a flash GC e-nose, and FT-NIR spectroscopy were integrated through multimodal feature-level data fusion. This approach converted characteristics traditionally assessed through experience into measurable features for objective processing-state discrimination and multiconstituent prediction. Intelligent optimization algorithms, including TPE-RF and MOBO-PLSR, further improved classification and quantitative prediction performance. Modality ablation and Shapley analyses demonstrated the complementary value of different sensing technologies, particularly odor-related and machine-vision information. The established discriminant functions and preliminary reference ranges provided interpretable indicators for digital quality assessment. External validation using three additional batches provided an initial assessment of model performance under the tested processing conditions.
Although the processing labels were assigned through batch-specific sensory evaluation, the assessments were performed by a single expert under one standardized processing protocol. The close correspondence between processing time and class labels may also have contributed to classification performance. Moreover, external validation involved only three independent batches, and the prediction performance for SEN I remained comparatively weaker. Further studies involving multiple independent assessors, more diverse raw materials, and varied processing conditions and equipment are needed to establish the reproducibility and broader applicability of these reference classes and predictive models. Simplified sensing configurations should also be explored for practical applications. Overall, multimodal feature-level data fusion combined with intelligent optimization offers a promising approach to the objective evaluation, digitalization, and standardization of botanical processing.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/foods15234278/s1, Table S1: Information on the 19 batches of AS slices used in this study; Table S2: Details of reagents and standards; Table S3: E-eye methodology validation; Table S4: Comparison of GLCM- and e-eye-based discriminant models using three repeated four-fold batch-independent cross-validation on 208 matched AS samples; Table S5: E-nose methodology validation; Table S6: Potential volatile compounds and sensory descriptions in AS at different processing degrees; Table S7: Validation parameters of the HPLC method for determination of the four chemical marker; Table S8: Effects of spectral preprocessing methods on the prediction of four chemical markers in AS; Table S9: Predictive performance of eight NIR-anchored data-block combinations using MOBO-PLSR; Table S10: RF classification performance of all 15 modality combinations; Table S11: External validation results of the regression models; Table S12: External validation results of the classification model; Figure S1: External validation of classification and regression models for WAS. (A) Confusion matrix of the TPE-RF classification model. (B–E) Scatter plots of predicted versus reference values for ferulic acid, ligustilide, senkyunolide I, and coniferyl ferulate, respectively. (F–I) Bland–Altman plots for the corresponding four chemical constituents, respectively.

Author Contributions

Y.T.: Writing—original draft, Software, Formal analysis, Data curation. R.H.: Writing—review & editing, Methodology, Investigation, Data curation. X.L. (Xinyuan Liu): Visualization, Formal analysis, Data curation. H.Y.: Investigation, Methodology. Z.L. (Ziyu Liang): Investigation, Methodology. X.L. (Xinyu Li): Methodology. T.M.: Project administration. Y.L.: Investigation. T.L.: Methodology. D.J.: Methodology. L.S.: Methodology. X.Z.: Investigation. Z.L. (Zhiping Lu): Writing—review & editing, Supervision, Software. L.L.: Writing—review & editing, Supervision, Resources, Project administration. All authors have read and agreed to the published version of the manuscript.

Funding

This research study was funded by the National key research and development plan (Grant No. 2023YFC3504200).

Institutional Review Board Statement

Not applicable.

Data Availability Statement

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

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Cheng, M.; Wang, B.; Suo, H.; Wang, Z.; Wang, H.; Wang, H. Effects of edible fungi and medicine–food homology ingredients on sensory attributes and emotional responses to chicken soup. J. Food Sci. 2026, 91, e70900. [Google Scholar] [CrossRef] [Scilit]
  2. Li, X.; Cao, M.; Jian, Z.; Li, F.; Rui, Y.; Tao, A. Structural analysis of polysaccharides of the genus Angelica and an overview of their biological activity. Carbohydr. Res. 2025, 558, 109689. [Google Scholar] [CrossRef] [Scilit]
  3. Song, X.; Liu, C.; Zhang, Y.; Xiao, X.; Han, G.; Sun, K.; Liu, S.; Zhang, Z.; Dong, C.; Zheng, Y.; et al. Sustainable extraction of ligustilide and ferulic acid from angelicae sinensis radix, for antioxidant and anti-inflammatory activities. Ultrason Sonochem. 2023, 94, 106344. [Google Scholar] [CrossRef] [Scilit]
  4. Zhang, Y.; Zhu, Z.; Li, X.; Shu, Q.; Wang, Y.; Duan, B. Angelica sinensis: Botany, traditional uses, phytochemistry, pharmacology, safety, and applications. Am. J. Chin. Med. 2026, 54, 1213–1251. [Google Scholar] [CrossRef] [Scilit]
  5. Yin, H.; Ni, H.; Zhang, L.; Wu, W.; Wu, X.; Zhang, Z.; Long, H.; Lei, M.; Hou, J.; Wu, W. Untargeted metabolomics coupled with chemometric analysis deducing robust markers for discrimination of processing procedures: Wine-processed Angelica sinensis as a case study. J. Sep. Sci. 2021, 44, 4092–4110. [Google Scholar] [CrossRef] [Scilit]
  6. Zhang, Z.-T.; Jiang, Y.; Qi, Y.; Guan, H.; Bai, L.; Chen, P.; Gao, W.; Zhuang, G.-D.; Lu, T.; Yan, G. Comparative study on Angelica sinensis after different processing with yellow rice wine in color, aromas, chemical components, and antioxidant activities. Food Chem. X 2023, 19, 100822. [Google Scholar] [CrossRef] [Scilit]
  7. Wang, X.; Zhu, Y.; Yang, S.; Su, Y.; Lu, T.; Zhong, L.; Yang, M.; Yu, H.; Liu, H.; Zhu, J. Study on quality evaluation of the entire stir-frying process of charred stir-fried malt based on intelligent sensing and machine learning. Food Chem. X 2026, 35, 103812. [Google Scholar] [CrossRef] [Scilit]
  8. Wu, X.; Wang, S.; Lu, J.; Jing, Y.; Li, M.; Cao, J.; Bian, B.; Hu, C. Seeing the unseen of Chinese herbal medicine processing (paozhi): Advances in new perspectives. Chin. Med. 2018, 13, 4–16. [Google Scholar] [CrossRef] [Scilit]
  9. Gui, Q.; Zheng, J. Simultaneous determination of eight components in Angelica sinensis based on UHPLC-ESI-MS/MS method for quality evaluation. BioMed Chromatogr. 2019, 33, e4326. [Google Scholar] [CrossRef] [Scilit]
  10. Zhang, Y.; Li, Q.; Feng, Y.; Yang, L.; Wang, Q.; Guo, Y.; Qiu, D. Simultaneous determination of eight chemical components in angelicae sinensis radix and its herbal products by QAMS. J. Anal. Methods Chem. 2021, 2021, 7178982. [Google Scholar] [CrossRef] [Scilit]
  11. Zhao, Z.; Wang, R.; Liu, M.; Bai, L.; Sun, Y. Application of machine vision in food computing: A review. Food Chem. 2025, 463, 141238. [Google Scholar] [CrossRef] [Scilit]
  12. Adeyeye, S.A.O.; Adeyeye, B.R. Recent advances in electronic eye, electronic nose, and electronic tongue in sensory evaluation of food: A review. J. Food Process Eng. 2025, 48, e70281. [Google Scholar] [CrossRef] [Scilit]
  13. Bittner, L.K.; Schönbichler, S.A.; Bonn, G.K.; Huck, C.W. Near infrared spectroscopy (NIRS) as a tool to analyze phenolic compounds in plants. Curr. Anal. Chem. 2013, 9, 417–423. [Google Scholar] [CrossRef] [Scilit]
  14. Xu, Y.; Kong, T.; Ma, Y.; Zhao, Y.; Chu, L.; Zheng, M. Near-infrared spectroscopy: Application in ensuring food quality and safety. Anal. Methods 2025, 17, 3381–3406. [Google Scholar] [CrossRef] [Scilit]
  15. Liang, Y.; Nie, X.; Zhang, J.; Jin, H.; Gao, T.; Mao, C.; Su, L.; Lu, T. Rapid discrimination of different degrees of stir-frying of wine-soaked ligusticum chuanxiong based on E-eye, flash GC e-nose, and FT-NIR combined with multi-intelligent algorithms. Food Chem. 2026, 525, 150314. [Google Scholar] [CrossRef] [Scilit]
  16. Jin, H.; Zhang, J.; Nie, X.; Song, J.; Liang, Y.; Gao, T.; Shen, K.; Fang, J.; Mao, C.; Zhang, W.; et al. Rapid discrimination of different honey-fried degrees of schisandra chinensis based on E-eye, flash GC e-nose, E-tongue and multi-intelligent algorithms. Microchem J. 2026, 222, 117200. [Google Scholar] [CrossRef] [Scilit]
  17. Ma, T.; Gan, X.; Ren, Y.; Yang, H.; Tang, Y.; Liang, Y.; Zhang, L.; Zhang, K.; Lu, T.; Mao, C. Multimodal assessment of magnolia officinalis cortex: Origin traceability and phenolic content prediction for medicinal plant raw material authentication. J. Appl. Res. Med. Aromat. Plants 2026, 54, 100740. [Google Scholar] [CrossRef] [Scilit]
  18. Wang, K.; Liu, X.; Cai, G.; Gong, J.; Guo, Y.; Gao, W. Chemical composition analysis of Angelica sinensis (oliv.) diels and its four processed products by ultra-high-performance liquid chromatography coupled with quadrupole-orbitrap mass spectrometry combining with nontargeted metabolomics. J. Sep. Sci. 2023, 46, 2300473. [Google Scholar] [CrossRef] [Scilit]
  19. van de Sande, K.; Gevers, T.; Snoek, C. Evaluating color descriptors for object and scene recognition. IEEE Trans. Pattern Anal. Mach. Intell. 2010, 32, 1582–1596. [Google Scholar] [CrossRef] [Scilit]
  20. Ojala, T.; Pietikäinen, M.; Harwood, D. A comparative study of texture measures with classification based on featured distributions. Pattern Recognit. 1996, 29, 51–59. [Google Scholar] [CrossRef] [Scilit]
  21. You, Y.; Zhang, L.; Yu, Z.; Zhao, D.; Bai, X.; Zhang, W. Progress in the application of hyperspectral imaging technology in quality detection and in the modernization of Chinese herbal medicines. Front Chem. 2025, 13. [Google Scholar] [CrossRef] [Scilit]
  22. Lu, S.; Zhao, J.; Qin, Q.; Deng, W.; Yu, Y.; Huang, Y.; Li, M.; Dong, H.; Li, Z. Identification of roasting degree and interpretability analysis of yunnan arabica coffee beans based on multi-dimensional visual features and CNNs-SHAP. Food Chem. 2026, 508, 148367, Corrigendum in Food Chem. 2026, 507, 148483. [Google Scholar] [CrossRef] [Scilit]
  23. Zhong, L.; Shao, M.; Li, T.; Cai, Y.; Wu, T.; Lu, X.; Yu, X. Identification of crude drugs and processed drugs in Chinese herbal slices using hyperspectral imaging. J. Food Compos Anal. 2025, 148, 108669. [Google Scholar] [CrossRef] [Scilit]
  24. Nie, X.; Mei, X.; Zhang, J.; Shen, K.; Li, M.; Chen, P.; Wu, Y.; Jin, H.; Shen, Z.; Su, L.; et al. Rapid identification of different roasting degrees of cyperus rhizome based on multi-source data fusion and artificial intelligence algorithms. Microchem J. 2025, 213, 113825. [Google Scholar] [CrossRef] [Scilit]
  25. Cai, W.; Zhou, W.; Liu, J.; Wang, J.; Kuang, D.; Wang, J.; Long, Q.; Huang, D. An exploratory study on the rapid detection of volatile organic compounds in gardenia fruit using the heracles NEO ultra-fast gas phase electronic nose. Metabolites 2024, 14, 445. [Google Scholar] [CrossRef] [Scilit]
  26. Le, Y.; Yang, Z.; Wang, R.; Ma, S.; Cui, Y.; Shi, K.; Xin, L.; Zhang, J.; Zhong, L. A comparative analysis of raw and bran-fried acori tatarinowii rhizoma based on the intelligent sensory evaluation system. Metabolites 2025, 15, 338. [Google Scholar] [CrossRef] [Scilit]
  27. Beć, K.B.; Grabska, J.; Cremer, J.-C.; Huck, C.W. Standardizing NIR spectroscopy for PAT in phytopharmaceutical applications: Multivariate detection and quantification limits of vitexin and isovitexin. Anal. Bioanal. Chem. 2026, 418, 151–165. [Google Scholar] [CrossRef] [Scilit]
  28. Shi, L.; Yang, Y.; Zhai, D.; Li, P. Rapid detection of food quality indicators using ELM and near-infrared spectroscopy. Spectrochim. Acta Part A 2026, 345, 126766. [Google Scholar] [CrossRef] [Scilit]
  29. Peraza-Alemán, C.M.; López-Maestresalas, A.; Jarén, C.; Ruiz De Galarreta, J.I.; Barandalla, L.; Arazuri, S. Mapping acrylamide content in potato chips using near-infrared hyperspectral imaging and chemometrics. Food Chem. 2025, 479, 143794. [Google Scholar] [CrossRef] [Scilit]
  30. Ezenarro, J.; Schorn-García, D.; Plans, M.; Busto, O.; Boqué, R. Quantification of spectral measurement errors to guide preprocessing method selection: A case study on cannabinoid prediction across multiple NIR instruments. Anal. Chim. Acta 2025, 1343, 343705. [Google Scholar] [CrossRef] [Scilit]
  31. Borràs, E.; Ferré, J.; Boqué, R.; Mestres, M.; Aceña, L.; Busto, O. Data fusion methodologies for food and beverage authentication and quality assessment—A review. Anal. Chim. Acta 2015, 891, 1–14. [Google Scholar] [CrossRef] [Scilit]
  32. Wold, S.; Sjöström, M.; Eriksson, L. PLS-regression: A basic tool of chemometrics. Chemom. Intell. Lab Syst. 2001, 58, 109–130. [Google Scholar] [CrossRef] [Scilit]
  33. Au, Q.; Herbinger, J.; Stachl, C.; Bischl, B.; Casalicchio, G. Grouped feature importance and combined features effect plot. Data Min. Knowl. Discov. 2022, 36, 1401–1450. [Google Scholar] [CrossRef] [Scilit]
  34. Song, E.; Nelson, B.L.; Staum, J. Shapley effects for global sensitivity analysis: Theory and computation. SIAM/ASA J. Uncertain. Quantif. 2016, 4, 1060–1083. [Google Scholar] [CrossRef] [Scilit]
  35. Huang, W.; Yin, M.; Xia, J.; Zhang, X. A review of cross-scale and cross-modal intelligent sensing and detection technology for food quality: Mechanism analysis, decoupling strategy and integrated applications. Trends Food Sci. Technol. 2024, 151, 104646. [Google Scholar] [CrossRef] [Scilit]
  36. Breiman, L. Random forests. Mach. Learn 2001, 45, 5–32. [Google Scholar] [CrossRef] [Scilit]
  37. Chauhan, D.; Shivani; Suganthan, P.N. Learning strategies for particle swarm optimizer: A critical review and performance analysis. Swarm Evol. Comput 2025, 98, 102048. [Google Scholar] [CrossRef] [Scilit]
  38. Chaudhary, R.; Verma, P.; Salgotra, R.; Gandomi, A.H. Five decades of genetic algorithms: A systematic and bibliometric review (1975–2025). Arch. Comput Methods Eng. 2026, 33, 10825–10899. [Google Scholar] [CrossRef] [Scilit]
  39. Tao, S.; Peng, P.; Li, Y.; Sun, H.; Li, Q.; Wang, H. Supervised contrastive representation learning with tree-structured parzen estimator bayesian optimization for imbalanced tabular data. Expert Syst. Appl. 2024, 237, 121294. [Google Scholar] [CrossRef] [Scilit]
  40. Lewis, M.J.; Spiliopoulou, A.; Goldmann, K.; Pitzalis, C.; McKeigue, P.; Barnes, M.R. Nestedcv: An R package for fast implementation of nested cross-validation with embedded feature selection designed for transcriptomics and high-dimensional data. Bioinform. Adv. 2023, 3, vbad048. [Google Scholar] [CrossRef] [Scilit]
  41. Roberts, D.R.; Bahn, V.; Ciuti, S.; Boyce, M.S.; Elith, J.; Guillera-Arroita, G.; Hauenstein, S.; Lahoz-Monfort, J.J.; Schröder, B.; Thuiller, W.; et al. Cross-validation strategies for data with temporal, spatial, hierarchical, or phylogenetic structure. Ecography 2017, 40, 913–929. [Google Scholar] [CrossRef] [Scilit]
  42. de Araújo Gomes, A.; Azcarate, S.M.; Špánik, I.; Khvalbota, L.; Goicoechea, H.C. Pattern recognition techniques in food quality and authenticity: A guide on how to process multivariate data in food analysis. TrAC Trends Anal. Chem. 2023, 164, 117105. [Google Scholar] [CrossRef] [Scilit]
  43. Gromski, P.S.; Muhamadali, H.; Ellis, D.I.; Xu, Y.; Correa, E.; Turner, M.L.; Goodacre, R. A tutorial review: Metabolomics and partial least squares-discriminant analysis—A marriage of convenience or a shotgun wedding. Anal. Chim. Acta 2015, 879, 10–23. [Google Scholar] [CrossRef] [Scilit]
  44. Wang, Y.; Chen, X.; Zhao, C.; Miao, J.; Mao, X.; Li, X.; Gao, W. Effects of temperature during processing with wine on chemical composition, antioxidant capacity and enzyme inhibition activities of Angelica sinensis radix. Int. J. Food Sci. Technol. 2017, 52, 1324–1332. [Google Scholar] [CrossRef] [Scilit]
  45. Ozaki, Y.; Tanigaki, Y.; Watanabe, S.; Nomura, M.; Onishi, M. Multiobjective tree-structured parzen estimator. J. Artif. Intell. Res. 2022, 73, 1209–1250. [Google Scholar] [CrossRef] [Scilit]
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.