Introduction

Natural medicine, particularly natural herbal medicine, was well-known and concentrated on by our forefathers, and it was widely employed to cure various disorders. Glycyrrhiza (Glycyrrhiza uralensis Fisch.), a member of the Leguminosae family, is one of the most commonly used herbs globally, primarily in China’s Xinjiang and Inner Mongolia [1]. They are honored as “king of medicinal materials” in traditional Chinese medicine. In response to escalating market demands, Glycyrrhiza is now extensively cultivated across various regions in China, yielding an annual production exceeding 50,000 tons [2]. However, only the roots and rhizomes of Glycyrrhiza are used for medical purposes. The leaves and stems, which correspond to at least one-third of the total biomass of the plant, are usually considered agricultural wastes [3]. Moreover, numerous reports have also demonstrated that Glycyrrhiza stems and leaves contain abundant bioactive phytochemicals, such as triterpenoids, saponins, flavonoids, polysaccharides, coumarins, alkaloids, and proteins [2]. Among them, flavonoids are polyphenolic substances in large quantities in plants. Their anti-oxidants, anti-inflammatory, anti-mutagenic, and anti-carcinogenic qualities made them essential ingredients for various nutraceutical, pharmaceutical, medical, and cosmetic uses [4]. However, earlier studies reported that the main bioactive components of plant materials, such as phenolic acids and flavonoids, are generally covalently esterified or conjugated bound to sugar residues and components of cell-wall, making them difficult to extract [5, 6].Therefore, it is of great significance to explore the medicinal potential of Glycyrrhiza stems and leaves and improve its availability.

Solid state fermentation (SSF) is a technique that can enhance the value of medicinal plants as it releases flavonoids from the corresponding substrate and/or produces new flavonoids through secondary metabolism by microorganisms [7]. Numerous investigations have demonstrated that SSF significantly increased mulberry leaves' flavonoid glycosides and biological activity [8, 9]. Ewers et al. [10] found that after SSF, the flavonoid concentration and antioxidant capacity of cinnamon's flavonoid concentration and antioxidant capacity significantly increased. During this process, chemical analysis and high-performance liquid chromatography (HPLC) are the conventional techniques used to measure the amount of flavonoids in fermentation sample materials. These techniques offer a high detection accuracy but also have limitations, including the inability to monitor on-site, costly technology, and a hefty workload [11]. However, the development of near-infrared spectroscopy (NIRS) is a quick, dependable, and reasonably priced solution that has drawn much interest from the food sector [12].

Therefore, the objective of this study was to detect and screen the best-fermented Glycyrrhiza stems and leaves in an economical, efficient, and nondestructive way by establishing a near-infrared spectroscopy prediction model for flavonoids content in fermented Glycyrrhiza stems and leaves (FGSL). Next, the in vitro antioxidant capacity and metabolites of Glycyrrhiza stems and leaves were compared with that of fermented Glycyrrhiza stems and leaves. Also, corresponding biotransformational pathways were elucidated by structural analyses, and evaluation of the activities of carbohydrate-hydrolyzing enzymes of the FGSL.

Materials and methods

Solid-state fermentation and sample preparation

The fermentation of Glycyrrhiza stems and leaves was carried out using a previous method [13]. Fresh Glycyrrhiza stems and leaves were collected in Hohhot, Inner Mongolia, China, in July after 3 years of cultivation of Glycyrrhiza. The aerial parts of Glycyrrhiza were air-dried, crushed to 3–5 cm, and used as the primary substrate for SSF. Glycyrrhiza stems and leaves were fermented in multi-layer polythene bags with a gas pressure opening valve. The fermentation medium contained 40 g of solid medium (Glycyrrhiza stems and leaves: maize meal: soybean meal: wheat bran = 6:2:1:1) and 25 mL of distilled water and was inoculated with 0.2% of the compound probiotics (Bacillus subtilis, Lactobacillus plantarum and Saccharomyces cerevisiae mixed in the ratio of 1:1:1) and then fermented in a 30 °C incubator for 144 h. The fermentation specimens were sampled at 12 h intervals (0–144 h) with ten bags taken each time, and 130 samples were collected. It provided a representative set of Glycyrrhiza stems and leaves with different fermentation stages and was used to test the robustness of the NIR models as a function of the variability due to the sample quality and different fermentation levels. All the samples were dried at 45 ℃ and ground with a hammer mill. The best-fermented Glycyrrhiza stems and leaves predicted by the near-infrared technique were used for subsequent analysis.

A 1.0 g sample of GSL or FGSL was mixed with 50.0 mL of 50% ethanol and subjected to a temperature-controlled water bath at 80 °C for 60 min, followed by centrifugation at a speed of 5000 rpm for 15 min [14]. The obtained supernatant was crude extracts of flavonoids from GSL and FGSL, and the content of flavonoids, antioxidant activity, and metabolomics were measured. Freeze dry the supernatant and perform infrared spectroscopy analysis.

NIR analysis

NIR spectroscopy measurement

This study used a handheld NIR spectrometer (MicroNIR Onsite; Viavi; USA) to acquire spectral data. The wavelength range was 900–1700 nm, integration time was 0.1 ms, and scanning times were 100. As previously described, 13 sampling variables were established, each collecting ten sets of sample spectra. Each sample was subjected to three loading scans, and the average spectra of the three scans were considered the final analytical spectrum. Consequently, this resulted in 130 spectral data sets for further analysis.

Determination of total flavonoids

The flavonoid content was measured as reported previously [15]. Briefly, 2.5 mL of the samples were mixed with 0.4 mL of NaNO2 (5%, w/v) for 6 min, followed by the addition and mixing of 0.4 mL of Al(NO3)3 (10%, w/v). After another 6 min, 2.0 mL of NaOH (1 M) was added to the solution, which was thoroughly mixed and incubated for 15 min. Finally, the absorbance at 510 nm was measured.

Reference data partition

It is essential to partition all samples into calibration and validation sets within an appropriate range to mitigate random errors and construct a more robust model. Initially, 130 Glycyrrhiza stems and leaves samples from various fermentation times were sorted in ascending order based on their chemical constituent values. Subsequently, out of every ten samples, the first, third, fifth, seventh, and ninth samples were allocated to the calibration set (a total of 65 samples). The prediction set, on the other hand, consisted of samples two, six, and ten (a total of 39 samples). Additionally, a complete external validation set comprising the fourth and eighth samples (26 in total) was employed to assess the effectiveness of the calibration model for prediction. (Table 1).

Table 1 Division of correction set and verification set of samples

Spectral data processing

Sample surface in homogeneities and ambient temperature can cause drift in spectral baselines, random noise, and spectral overlap during NIR. Preprocessing NIRS data can effectively remove the aforementioned phenomena, which is crucial for developing a robust and accurate model. Four different spectra processing techniques, namely standard normal variate (SNV), Detrend correction (Detrend), first-order derivative (1st-der), and second-order derivative (2nd-der), were compared, respectively. Also, the combination of multiple methods for preprocessing was used in this study; these methods include 1st-der + SNV, 1st-der + Detrend, 2nd-der + SNV, 2nd-der + Detrend, SNV + Detrend, 1st-der + 2nd-der, 1st-der + SNV + Detrend, 2nd-der + SNV + Detrend, 1st-der + 2nd-der + SNV, 1st-der + 2nd-der + Detrend. In the end, 14 preprocessing methods were compared, and the coefficient of determination in calibration (R2) was used to select the optimal preprocessing method.

Model evaluation

Typically, a superior model is assessed based on higher correlation coefficients for calibration (Rc2), prediction (Rp2), and residual predictive deviation (RPD), as well as lower root mean square errors for calibration (RMSEC) and prediction (RMSEP) [16].

Measurement of antioxidant activities

GSL and FGSL flavonoid extract solution (2, 4, 8, 16 mg/mL) was tested for DPPH radical scavenging activity, hydroxyl radical scavenging activity and reducing power. The antioxidant activity of the extract was assessed using the DPPH assay, as described by Wang et al. [17]. The ability of hydroxyl radicals scavenging was assessed using the method developed by Zhong et al. [18]. Additionally, the reducing power assay was conducted following a previously published method [19].

Widely-targeted metabonomics analysis

Based on previous studies [20], the UPLC-ESI–MS/MS system (UPLC, ExionLC™ AD, https://sciex.com) and a Tandem mass spectrometry system (https://sciex.com.cn/) were used to analyze the sample extract. The main operational parameters for the ESI source were as follows: the temperature of the source was set at 500°C; in positive ion mode, the ion spray voltage (I.S.) was adjusted to 5500 V, while in negative ion mode it was set to − 4500 V; gas I (GSI), gas II (GSII), and curtain gas (CUR) pressures were maintained at 50, 60, and 25 psi respectively; collision-activated dissociation (CAD) was performed at a high level. QQQ scans were acquired as MRM experiments with collision gas (nitrogen) set to medium D.P. (declustering potential) and C.E. (collision energy) for individual MRM transitions were done with further D.P. and C.E. optimization. A specific set of MRM transitions was monitored for each period according to the metabolites eluted within this period.

Determination of enzyme activity

The crude enzyme solution was obtained using the extraction method outlined by Chen et al. [21]. In brief, 2 g of FGSL or GSL powder was mixed with 20 mL of acetate buffer (pH 5.5, 0.1 M) and agitated at a speed of 200 rpm for one hour. Following this, the mixtures underwent centrifugation at a speed of 10,000×g for a duration of 10 min at a temperature of 4 °C in order to obtain the supernatants for subsequent. Carboxymethyl cellulase (CMCase), xylanase, and α-amylase levels were assessed using the DNS method at 540 nm.

FT-IR and thermogravimetric analysis

FTIR spectra were acquired with a FTIR spectrometer (Nicolet iS20, Thermo Fisher, USA). Samples were ground by mixing with KBr and then measured on the machine. The pyrolysis characteristics of cellulose were determined by TGA2 thermogravimetric analyzer (Mettler Toledo; Switzerland). The measured temperature was 25–600 °C, the heating rate was 10 °C/min, the gas was nitrogen, and the gas flow rate was 20 mL/min.

Statistical analysis

All the experiments were triplicated and the results were conveyed as means ± standard deviation. The data were subjected to analysis of variance (ANOVA) with the one-way ANOVA procedure in SAS (SAS; USA; ANOVA; significance level at P ≤ 0.05). Relevant graphs were generated using Origin 2021 (Origin, Northampton, USA).

Results and discussion

Near infrared model construction and evaluation

Flavonoid content changes during the fermentation of Glycyrrhiza stems and leaves

The flavonoid content was determined separately during the fermentation process of Glycyrrhiza stems and leaves based on chemometrics. The content was quantified by different degrees of fermentation, and the trend is shown in Fig. 1 while descriptive statistics are shown in Table 2, including range, mean and standard deviation (SD). The results indicate that the flavonoid content of fermentation Glycyrrhiza stems and leaves steadily increased until 3 d, reaching the maximum value at 72 h (P < 0.05). Compared with GSL, FGSL had significantly higher flavonoid contents (P < 0.05). This finding aligns with the findings of previous researchers who also observed that fermentation led to a rise in the overall flavonoid levels found in Chinese herbs [10, 22, 23]. The increase in flavonoid content of FGLS, as a result, may be due to microorganisms releasing a large amount of cellulases, pectinase, hemicellulose, and amylase during fermentation, which can effectively transform the insoluble-bound flavonoids into soluble forms and making it more bioavailable. In addition, from 84 h of fermentation, the flavonoid content of the FGSL continuously declined (P < 0.05) until the end of fermentation. This has also been observed by Wang et al. [22] in the fermentation of Paeonia lactiflora Root. This might be related to the rapid proliferation of bacteria, which causes quicker consumption and modification of flavonoids, lowering overall flavonoid levels.

Fig. 1
figure 1

Changes of flavonoid content in stems and leaves of Glycyrrhiza during fermentation. Different letters (a, b) above the columns indicated significant differences (P < 0.05)

Table 2 The descriptive statistical parameters of the flavonoid content in fermented Glycyrrhiza stems and leaves

To establish a robust calibration set, it is essential to implement an appropriate experimental design. One of the fundamental principles is to ensure that the collected samples encompass property reference values across a relevant range, thereby capturing all anticipated sources of variance in the training data. Table 2 summarizes the detailed reference values of FGSL samples, significant differences were observed in the flavonoid content between stems and leaves of Glycyrrhiza at different fermentation times. The highest recorded flavonoid content was at 72 h, with an average value of 8.97 mg/g, while the lowest was observed at 144 h, with an average value of 4.96 mg/g. The fluctuation in flavonoid content in the stems and leaves of Glycyrrhiza indicates that the collected samples are representative and meet the requirement for a wide distribution of target contents in NIR quantitative models.

Spectral characteristics and preprocessing results

As shown in Fig. 2, typical spectra information of fermented Glycyrrhiza stems and leaves samples in the 1000–1800 nm wavelength range were collected using a portable NIR system. The raw spectra of 130 Glycyrrhiza stems and leaves samples showed similar tendencies, with notable absorption bands at 1200 nm, 1380 nm, and 1450 nm. These peaks represent overtone and combination bands related to C–H, O–H, and N–H. The absorption peak at 1200 nm indicates the presence of sugars and suggests the second overtone area of C–H bonds [24]. The absorption peaks at 1380 nm were connected to the first overtone of the C–H combination −CH2 [25]. The absorption peak at 1450 nm is caused by the stretching vibration of the first-order frequency doubling of the water O–H group [26]. The identified absorption peaks within the 1000–1800 nm range are closely associated with the functional groups of flavonoids, enabling their utilization for analyzing catechins content and composition in fermented Glycyrrhiza stems and leaves. However, the original spectral data can be susceptible to various sources of noise interference, including high-frequency noise, baseline drift, and light scattering. To mitigate the impact of noise signals, several preprocessing techniques were employed on the original spectral curves. In this study, we employed four specific techniques, namely SNV, Detrend, 1st-der, and 2nd-der. Furthermore, a combination of these four methods was utilized to process the spectra as depicted in Fig. 3. The results showed that following preprocessing, the signal-to-noise ratio of the spectra had substantially improved and that appropriate spectra pretreatment was the critical guarantee for robust model creation and accurate prediction.

Fig. 2
figure 2

Raw near-infrared spectra of fermented Glycyrrhiza stems and leaves

Fig. 3
figure 3

Near-infrared pretreatment of fermented Glycyrrhiza stems and leaves. a 1st-der, b 2nd-der, c SNV, d Detrend, e 1st-der + SNV, f 1st-der + Detrend, g 2nd-der + SNV, h 2nd-der + Detrend, i SNV + Detrend, j 1st-der + 2nd-der, k 1st-der + 2nd-der + SNV, l 1st-der + 2nd-der + Detrend, m 1st-der + SNV + Detrend, n 2nd-der + SNV + Detrend

The PLSR model was built using the original spectrum and multiple preprocessing methods to determine the best spectral preprocessing strategy. Table 3 displays the comparable results. Based on the original spectral data, the correction set’s correlation coefficient Rc2 is 0.9757, RMSEC is 0.173, RPDc is 6.415, and the prediction set’s correlation coefficient Rp2 is 0.9763, RMSEP is 0.172, and RPDp is 6.496. Compared to the original spectrum, pretreatment significantly improved our model's performance. Out of all of them, the PLSR model that was created following the 2nd-der + SNV pretreatment has the best prediction effect; Rc2 is 0.9883, Rp2 is 0.9874, and the RPD value is 8.909, indicating that the 2nd-der + SNV pretreatment can effectively reduce surface scattering and instrument noise-induced spectral error while also improving the model’s accuracy. However, we also note that models that employ two spectral preprocessing techniques actually lead to reductions in the prediction model's accuracy. This implies that excessively intricate preprocessing designs could cause meaningful information from the spectral data to be lost in removing background interference, baseline drift, noise, and color effects. Overall, pretreatment using 2nd-der + SNV resulted in the best model, which provided the greatest Rc2 and Rp2 and the least RMSEC and RMSECP, as well as RPDc and RPDp.

Table 3 Effects of different spectral pretreatment methods on model performance

External validation

External validation: we further tested the model’s resilience by using NIR technology on an independent prediction set of samples. Table 4 displays the predicted findings. The discrepancy between the predicted and measured values varies from − 0.01 mg/g to 0.11 mg/g, and the prediction model’s accuracy is excellent. As a result, the suggested method enables the direct determination of flavonoid concentration in Fermented Glycyrrhiza stems and leaves samples.

Table 4 Comparison of measured and predicted flavonoid content in a complete external validation set

Antioxidant activity of GSL and FGSL

The amount of flavonoids in fermented Glycyrrhiza stems and leaves were much higher than in unfermented stems and leaves. Therefore, the high antioxidant effects of FGSL extracts in reducing power, hydroxyl radical scavenging activity, and DPPH radical scavenging activity (Fig. 4) are not surprising. The DPPH free extreme measurement is a reliable and stable qualitative solid free radical and a common in vitro antioxidant assessment technique. As can be shown in Fig. 4a, at dosages of 2, 4, 8, and 16 mg/mL, respectively, the DPPH free radical scavenging activity of FGSL rose to 48.31%, 83.21%, 92.87%, and 95.12%. Compared to GSL, FGSL showed much greater DPPH radical scavenging activity. One electron is lost from hydroxide in the molecular formula to produce the hydroxyl radical, a prominent reactive oxygen species. Due to their potent oxidizing capability, hydroxyl radicals can readily traverse cellular membranes and interact with biological molecules, thereby contributing to cellular demise and tissue harm. Thus, scavenging hydroxyl radicals protects living systems [27]. As illustrated in Fig. 4b, FGSL and GSL exhibited apparent scavenging effects on the hydroxyl radicals in a dose-dependent manner at concentrations from 2 to 16 mg/mL. Furthermore, FGSL exhibited significantly more vigorous hydroxyl radical scavenging activity than GSL. When the concentration approached 16.0 mg/mL, the hydroxyl radicals scavenging rate of FGSL was 70.90%, significantly higher than that of GSL (55.65%). The increased free radical scavenging rate of the FGSL might be attributed to the significant production of total flavonoids and total phenols, and microbial metabolism can enhance the compounds with proton-donor properties, leading to an increased ability to scavenge free radicals [28]. These results are consistent with the study conducted by Liu et al. [20], which reported that dandelion exhibits higher DPPH and hydroxyl radical scavenging abilities after SSF. The reduction capability level of compounds represented the electron donor capability of antioxidant substances. The stronger the reduction capability, the stronger the antioxidant capability of samples [29]. As seen in Fig. 4c, there was a correlation between the reducing power of FGSL and GSL and the concentration, with FGSL having a higher reducing power than GSL (P < 0.05). When the concentration was 16 mg/mL, the reducing power of FGSL and GSL was 0.65 ± 0.01 and 0.59 ± 0.03, respectively. The reduction ability of FGSL was significantly improved, which showed that there were more antioxidants in the FGSL that could scavenge radicals. This indicated that the reduction ability of GSL can be improved by fermentation treatment. This result was similar to previous research results. Li et al. [29] reported that the fermentation of oat bran with Lactobacillus fermentum NB02 increased the release of phenolic compounds, and the reducing power of the fermentation group was higher than that of the unfermented. Furthermore, Guo et al. [8] indicated that the antioxidant capabilities of fermented mulberry leaves were largely linked to their flavonoid content, with the scavenging augmented with a rise in flavonoid contents, demonstrating previous findings. In conclusion, fermentation treatment can effectively increase the release of flavonoids and polyphenols in GSL, thereby improving its antioxidant activity.

Fig. 4
figure 4

DPPH radical scavenging activity (a), hydroxyl radical scavenging activity (b) and reducing power (c) of FGSL and GSL. Different uppercase letters indicate significant differences between groups with different concentrations (P < 0.05). Lowercase letters indicate significant differences between groups with different samples (P < 0.05)

Widely targeted metabolomics analysis

Multivariate analysis

To comprehensively analyze the metabolite variations before and after fermentation, we employed a UPLC-MS/MS system to perform widely targeted metabolomics on FGSL and GSL. The results of quality control samples were visually presented through overlapping display analysis of the total ion current (TIC) in Fig. 5a, b. The consistent retention time and peak intensity within each group indicated our instrument’s stability and our data’s reliability. Furthermore, PCA was employed to investigate the differences in metabolites between the two groups and the degree of variation within each group. The results are presented in Fig. 6a, b as two-dimensional and three-dimensional scatter plots. PC1 accounted for 65.11% of the total variance, while PC2 explained 11.38%. This analysis effectively distinguished fermented from unfermented samples, indicating that fermentation alters flavonoid profiles in Glycyrrhiza stems and leaves. Moreover, there was minimal variation among replicates, demonstrating good sample repeatability.

Fig. 5
figure 5

Total ions current (TIC) overlapping map of Q.C. samples mass spectrometry results. The abscissa is the retention time of the metabolite detection. The ordinate is the ion current intensity of the ion detection (the intensity units are counts per second (cps)). a In negative ion mode, b in positive ion mode

Fig. 6
figure 6

Multivariate analysis of metabolomics data on fermented and unfermented Glycyrrhiza stems and leaves. a The two-dimensional scatter plot of the PCA model of two groups. b The three-dimensional scatter plot of the PCA model of two groups. c The scatter plot of the OPLS-DA model. d OPLS-DA validation diagram

The OPLS–DA model, a supervised pattern recognition approach using multivariate statistical analysis, was employed to distinguish groups effectively and identify differential metabolites. The OPLS–DA model score plot (Fig. 6c) demonstrated distinct separations between the FGSL and GSL groups, indicating significant differences in metabolite profiles. Q2 represents the model’s prediction ability, while R2Y and R2X reflect the interpretation rate for Y and X matrices, respectively. As shown in Fig. 6d, the values of R2X (cum), R2Y (cum), and Q2 were determined as 0.895, 1.000, and 0.998, respectively, suggesting that this model is appropriate [30, 31]. Additionally, to further validate our findings’ reliability, we conducted 200 random permutation tests on the OPLS–DA mode, which yielded a P-value lower than 0.005. These results collectively support the robustness of our chosen OPLS–DA model for investigating metabolic changes between FGSL and GSL.

Screening of differential metabolites

To quickly assess the differences in metabolite expression levels between the two groups and determine their statistical significance, we utilized variable projection (VIP) > 1.0, P < 0.05, and |Log2FC|> onefold change (F.C.)] as criteria. The volcano plot shows the differential metabolites (Fig. 7a). Compared with GSL, 141 metabolites of FGSL were substantially upregulated, and 320 metabolites were substantially down-regulated. These metabolites included, in detail, 251 flavonoids, 90 phenolic acids, 38 terpenoids, 40 lignans and coumarins, 35 alkaloids, and 33 additional metabolites. The heat map (Fig. S1) shows the dynamic fluctuations of these metabolites. Phenolics and flavonoids were the primary differential metabolites. (Fig. 7b and Table S1). SSF can effectively enhance Glycyrrhiza stems and leaves flavonoids, such as Glabrol, Isobavachalcone d, (2S)-Abyssinone II, Luteolin-6,8-di-C-arabinoside, Kaempferol-7-O-rhamnoside, 3ʹ,4ʹ,6-Trihydroxyaurone, Kaempferol-3-O-rhamnoside (Afzelin) (Kaempferin) and Chrysin, as well as the relative content of Ethyl ferulate and 3,4-Dimethoxycinnamic acid in FGSL significantly increased compared to that in GSL. Additionally, several soluble bioactive chemicals may be created during SSF and are secondary metabolites of microbes, including phenolics, flavonoids, and organic acids [32].

Fig. 7
figure 7

Chemical differences between fermented and unfermented Glycyrrhiza stems and leaves. a The volcano plot shows the differential metabolite expression levels in FGSL and GSL samples. Red, green, and grey dots indicate upregulated, downregulated, and insignificant differentially expressed metabolites. b Differentially expressed metabolites' heatmap of hierarchical clustering analysis for FGSL and GSL

KEGG annotation and enrichment analysis of differential metabolites

We conducted pathway enrichment analysis using the KEGG database to understand better the pathways associated with the metabolites that showed differential expression. The results of this analysis were visualized in bubble plots (Fig. 8). Our findings revealed that the metabolites affected by fermentation were involved in 26 specific pathways. Notably, our top three highest-impact pathways included folate biosynthesis, flavone and flavonol biosynthesis, and isoflavonoid biosynthesis. These pathways are essential for synthesizing flavonoids, phenolic, and amino acids. This suggests that fermentation enhanced existing flavonoid content in Glycyrrhiza stems and leaves and stimulated the production of new flavonoid compounds. Further investigation is required to understand how fermentation influences the abundance of these flavonoid metabolites. Additionally, we observed close structural and biochemical relationships among these differential metabolites, which may explain their increased levels during fermentation.

Fig. 8
figure 8

KEGG pathway enrichment of the differentially accumulated metabolites between fermented and unfermented Glycyrrhiza stems and leaves. Each bubble in the plot represents a metabolic pathway whose abscissa and bubble size jointly indicate the magnitude of the impact factors of the pathway. The bubble colours represent the p-values of the enrichment analysis, with darker colours showing a higher degree of enrichment

Release mechanism of flavonoids

Enzymes activities

Lignin is interwoven with cellulose and hemicellulose to create lignin carbohydrate polymers, and compound degradation is primarily dependent on carbohydrate hydrolases generated by microbial fermentation [33]. The activities of CMCase, xylanase, and -amylase were examined in this study. CMCase, xylanase, and -amylase activities were significantly elevated during SSF, as indicated in Fig. 9a.The cellulase enzyme, acting as a cell wall degrader, serves a dual purpose: firstly, it breaks down cellulose or oligosaccharides into glucose to participate in fermentation; secondly, its degradation disrupts the overall structure of the cell wall and facilitates the release of insoluble-bound phenolic fractions. By randomly breaking internal α-1,4-glucosidic connections, the α-amylase enzyme may hydrolyze starch, glycogen, and other related polysaccharides to produce oligosaccharides of different sizes [34]. This enzymatic process may result in the release of phenolic compounds conjugated with the polysaccharides.

Fig. 9
figure 9

Investigation of the release mechanisms of flavonoids. a Enzymatic activities; b thermogravimetric analysis (TGA thermogravimetric analysis, DTG derivative thermogravimetry curve); c FT-IR analysis

Additionally, the produced oligosaccharides are an energy source to support microbial enzymatic liberation of phenolic fractions [35, 36]. Xie et al. [37] discovered that xylanase production from Trichoderma viride during SSF was required to release bound polyphenols of insoluble dietary fiber. Xiao et al. [38] used probiotic fermented buckwheat and produced β-glucosidase, α -amylase, and CMCase, significantly improving the phytochemical composition of buckwheat and enhancing its antioxidant activity. According to the data above, it is indicated that CMCase, xylanase, and α-amylase play essential roles in the release and transformation of phenolics in Glycyrrhiza stems and leaves during fermentation, leading to the enhancement of flavonoid components and antioxidant activity in fermented Glycyrrhiza stems and leaves.

Effects of SSF on the thermal properties of Glycyrrhiza stems and leaves

Combined with TGA and derivative thermogravimetry (DTG) curves (Fig. 9b), the mass loss of the two samples can be divided into three main stages. The temperature range of the first stage was 30–220 °C, mainly due to the evaporation of free and crystal water in the sample [39]. The temperature range of the second stage was 220–400 °C, and decomposition peaks were observed at temperatures ranging from 246 to 260 °C and from 300 to 345 °C. These peaks corresponded to the breakdown of hemicellulose and cellulose, respectively. The absence of a cellulose decomposition peak in the DTG curves of FGSL could be attributed to potential structural changes in cell walls caused by SSF, leading to a significant reduction in the cellulose content present in FGSL. The substantial reduction of cellulose resulted in dissociation of some binding bioactive components, including representative components such as phenolic acids and flavonoids [9]. The third stage undergoes a biological carbonization process, with a degradation temperature ranging from 500 to 600 °C. The weight loss of FGSL was greater than that of GSL during the thermal degradation process, particularly within the temperature range of 300 to 600 °C. The thermal stability of the FGSL sample was observed to decrease, primarily due to the disruption in its crystal structure caused by SSF [40].

Effects of SSF on the functional groups and chemical bonds of Glycyrrhiza stems and leaves

The FTIR spectra were used to examine the differences in functional groups and chemical bonds between fermented and unfermented Glycyrrhiza stems and leaves samples further to clarify the release characteristic of flavonoids in SSF. The typical infrared characteristic absorption peaks of samples were determined at 3139, 1559, 1403, 1311, 1075 and 543 cm−1 (Fig. 9c). Specifically, the strong and extensive absorption spectra observed at 3139 cm−1 were linked to the bending and stretching vibrations of the O–H group, a common finding in cellulose and hemicellulose constituents [41]. About FGSL, the absorption peak intensities at 1559 cm−1 and 1403 cm−1 were markedly diminished (due to the bending vibration of N–H from the lignin benzene ring and symmetrical CH2 bending groups in cellulose), suggesting that the hydrogen bond of FGSL could be broken by the carbohydrate hydrolases [42, 43]. The angular vibration of cellulose’s CH3 symmetrical bond produced the absorption peak at around 1311 cm−1 [44]. The band at approximately 1075 cm−1 for the unfermented and fermented samples represented the stretching of the C–O–C vibration bond. At around 543 cm−1, the β-glycosidic linkages between the glucose, cellulose, and hemicellulose sugar polymers were formed [44]. The peak strength dropped following SSF, suggesting that cellulose or hemicellulose's intermolecular hydrogen bonds had been disrupted.

Conclusion

This study established a rapid and non-destructive detection method for flavonoids in fermented Glycyrrhiza stems and leaves based on near-infrared spectroscopy and investigated the effects of fermentation on the flavonoid content, antioxidant capacity, metabolomics, structure, and enzyme activity of Glycyrrhiza stems and leaves. Based on the PLSR model, the optimal spectral preprocessing method was screened, and the Rp2 and RMSEP of the optimal flavonoid model obtained were 0.9874 and 0.125, respectively. The external verification results indicate that the prediction model is highly accurate. Solid state fermentation significantly increased the content of flavonoids and the scavenging ability of DPPH free radical and hydroxyl free radical, reducing power. Additionally, a total of 461 secondary metabolites and 3 key differential metabolic pathways were successfully identified by UPLC-MS/MS metabolomics, mainly flavonoids and phenolic acids. Combined with FGSL and GSL thermogravimetric analysis and FTIR spectral results, the release of flavonoids may be associated with cellulose degradation caused by CMCase, xylanase, and α-amylase secretion, which contributes to the practical antioxidant effects of FGSL. Overall, the present study is essential in using fermented Glycyrrhiza stems and leaves flavonoids. Moreover, the findings of this study also provide new insights into understanding the release and biotransformation mechanism of flavonoids from Glycyrrhiza stems and leaves by SSF.