Introduction

The Lamiaceae family, encompassing approximately 245 genera and 7886 species, enjoys a near-global distribution1. Among its most notable members is L. angustifolia (lavender), a species of significant economic and medicinal importance renowned for its substantial essential oil content2. Essential oils, highly complex mixtures derived from various plant parts (roots, stems, leaves, flowers, seeds, bark, etc.), have experienced a surge in demand due to the growing global interest in pure and natural products3,4. Lavender essential oil, in particular, has been extensively studied for its therapeutic applications in aromatherapy, demonstrating the potential to alleviate headaches, depression, and colds, as well as exhibiting sedative and balancing effects5.

Meeting this escalating demand across industries like cosmetics, health, and food necessitates efficient extraction methods to obtain essential oils from medicinal plants, including lavender. Conventional extraction techniques, such as distillation, solvent extraction, and mechanical processes, are often labor-intensive and time-consuming and may involve using environmentally harmful organic solvents3,6. Consequently, there has been a growing interest in developing novel extraction techniques, such as ultrasound-assisted extraction, pressurized solvent extraction, microwave-assisted solvent extraction, and supercritical fluid extraction, that minimize environmental impact by reducing solvent consumption, shortening extraction times, and enhancing yields6.

Microwave-assisted hydrodistillation (MAHD) is an emerging technique that utilizes microwave energy to heat the extractant (typically water) in contact with the plant material. The elevated temperature and solvent properties facilitate the transfer of target analytes from the sample matrix into the extraction solvent. In essential oil extraction, MAHD induces the selective heating of water molecules within the plant's glandular and vascular systems. This leads to a rapid rise in temperature, often exceeding the boiling point of water, causing the rupture of cell walls and the release of essential oils into the surrounding medium7. This mechanism contrasts with classical solvent extraction, where the solvent diffuses into the matrix and extracts components through solubilization. MAHD's reduced reliance on high solvent affinity broadens the range of suitable solvents for extraction7.

The choice of extraction method significantly influences the yield, quality, and composition of the essential oil obtained8. In these extraction processes, three different products are obtained: (i) essential oils, (ii) discharged water (hydrolate, hydrosol, or plant juice) expressed as effluent, and (iii) post-extraction solid residue of the plant material used8. However, regardless of the method employed, essential oil extraction generates a substantial amount of by-products, primarily consisting of the aqueous portion of the decoction, which is frequently discarded as waste9. Many of these by-products are released into the environment untreated or repurposed as fuel, animal feed, or fertilizer10. Recent efforts have explored potential applications for these by-products to conserve energy and resources10. Numerous studies have revealed the presence of diverse bioactive compounds within these by-products, highlighting their potential value11,12,13. The presence of water-soluble polyphenols, proteins, free amino acids, alkaloids, and vitamins in the extraction vessel and the solid residue during extraction was detected and present in significant quantities14,15,16. The essential oil industry has the potential to utilize both residual water and solid residue.

This study aimed to evaluate the impact of two extraction methods, traditional hydrodistillation (TDH) and MAHD, on the essential oil content and by-product composition of lavender. The volatile constituents of the essential oil were identified via GC–MS. Furthermore, the by-products collected from both TDH and MAHD were analyzed to determine total flavonoid, total phenolic, total monomeric anthocyanin (TAcC), and total proanthocyanidin content, as well as individual phenolic compounds (using LC–MS/MS) and antioxidant activity. This comprehensive comparative analysis provides valuable insights into the potential utilization of by-products generated during essential oil extraction from lavender.

Material and methods

Collection of plant material

Lavandula angustifolia flowers were collected from the lavender field in Marmara Ereğlisi/Tekirdağ during the summer of 2023. The samples were stored at − 20 °C until further analyses and recorded in Istanbul University Faculty of Science Herbarium under collection number 41819.

Extraction of essential oil

Essential oil isolation was carried out using two different methods (Fig. 1), microwave and conventional, as follows:

Fig. 1
figure 1

Diagram of microwave-assisted and traditional hydrodistillation process.

Traditional hydrodistillation (TDE)

A modified version of the method of European Pharmacopoeia 9th Edition17 was used for the traditional hydrodistillation. L. angustifolia essential oil was obtained via hydrodistillation of 100 g of dried flowers, sieved to a particle size between 80 and 100 mesh, in 500 mL of distilled water using a Clevenger-type apparatus for 4 h. The essential oil was gathered, centrifuged, and separated from the upper layer. Anhydrous sodium sulfate (Na2SO4) was used to remove moisture from the waste sample. Essential oil, the dehydrated waste sample, and vacuum-filtered wastewater were stored in amber bottles at + 4 °C until further experiments.

Microwave-assisted hydrodistillation (MAH)

The microwave-assisted hydrodistillation procedure was carried out using the method described by Fan et al.18. A Milestone Ethos 1600 (Sorisole, Italy) was used for MAH trials. 100 g dried L. angustifolia sample was moistened with 500 mL distilled water and transferred to the extraction vessel. The microwave digestion power was set to 1000 W, and the program was set as follows: The temperature was increased to 100 °C in 10 min and then maintained at this level for 30 min. After gathering essential oil, storing essential oil and wastes were the same as TDE methods.

GC–MS analysis of essential oil

The method described by Fan et al.18 was followed for essential oil analysis. For the analysis of the plant sample, both gas chromatography-mass spectrometry (GC–MS) and gas chromatography with flame ionization detection (GC-FID) were used. The analysis was conducted on a GC-FID (model 7890A) and MS (model 5975C) from Agilent. An HP-5 capillary column (30 m × 0.25 mm inner diameter × 0.25 µm layer thickness) was used for GC-FID analysis. The injection volume was 0.2 μL with a syringe capacity of 0.5 μL at a split ratio of 1:40, using nitrogen as the carrier gas at a 1 mL/min flow rate. The oven temperature was programmed in the following manner: started at 50 °C for 5 min, increased at a rate of 5 °C/min to 190 °C and further increased at a rate of 15 °C/min to 220 °C for 5 min. Temperatures were maintained at 220 °C for the injector and 230 °C for the detector. MS analysis was performed using an HP-5MS capillary column (30 m × 0.25 mm i.d., 0.25 µm) to separate the compounds. A temperature of 210 °C was set for the injector and detector. The column temperature was initially set at 40 °C for 3 min, then increased to 90 °C at 3 °C per minute and held for 4 min, then increased to 115 °C at 3 °C per minute and held for 10 min, then increased to 140 °C at 2 °C per minute and held for 8 min, and finally increased to 210 °C at 3 °C per minute and held for 5 min. The carrier gas was helium. Within the 45–500 AMU mass range, the ionization energy was set at 70 eV with a scan time of 0.3 s. Agilent GC–MS solution software was used for GC–MS system management, GC and mass spectrometry parameter settings, and data acquisition and processing. FID peak area normalization was used to express relative percentages of oil components. Identification by GC–MS was performed by comparing mass spectra with WILEY-NIST data libraries and by comparing calculated retention indices with those reported in the literature (NIST Chemistry WebBook, https://webbook.nist.gov/chemistry) relative to C8-C28 n-alkanes analyzed under similar GC–MS conditions.

Waste-water analysis

The analysis focused on the wastewater's polyphenol profile, including total phenols, total flavonoids, total monomeric anthocyanins (TAcC), total proanthocyanins, and antioxidant activity assessed through three different assays.

Liquid chromatography‐tandem mass spectrometry (LC–MS/MS) analysis of phenolic profile

LC was conducted on an Agilent 1260. MS/MS analyses were performed on an Agilent 6460 triple quadruple LC–MS equipped with an electrospray ionization (ESI) interface. In all, 32 different polyphenols were investigated by LC–MS/MS. For information on the method, please review our previously published articles19,20.

Total phenolic content

The Folin-Ciocalteu method proposed by Magalhães et al.21 evaluated the phenolic content in the wastewater. For this method, 50 µL of extract and 50 µL of Folin-Ciocalteu reagent (1:5, v/v) were added to each well. This was followed by adding 100 µL of sodium hydroxide solution (0.35 M). The absorbance was measured at 760 nm (Epoch, Microplate Reader, Biotek Instruments Inc., USA) after 3 min. The results were expressed regarding gallic acid equivalents (mg GAE/g).

Total flavonoid content

A modified version of the method of Zhishen et al.22 was used for the total flavonoid analysis of the wastewater. 1 mL of wastewater was mixed with 0.3 mL AlCl3.6 H2O (10%) solution after adding 0.3 mL NaNO2 (5%). This was followed by adding an amount of NaOH solution (1 M, 2 mL) and water (2.4 mL), and the final mixture obtained was stirred in the mixer. The absorbance was measured at 510 nm (Epoch, Microplate Reader, Biotek Instruments Inc., USA). The results were presented as quercetin equivalents (mg QE/g).

Total monomeric anthocyanin content (TAcC)

The wastewater's total anthocyanin content (TAcC) was measured using the pH differential method described in the previous procedure with some modifications using three replications23. One milliliter of aliquots of wastewater were diluted 1:4 in separate solutions: 25 mM KCl buffer at pH 1.0 and 0.4 M C2H2NaO2 buffer at pH 4.5. The absorbance of these solutions was then recorded at 520 nm and 700 nm using a microplate reader (Epoch, Microplate Reader, Biotek Instruments Inc., USA). The results were expressed as mg cyanidin-3-O-glucoside equivalents (mg C3-G/g) based on the following equation:

$$ {\text{Anthocyanin}}\;\;{\text{content}} = {\text{A }} \times {\text{MW }} \times {\text{DF }} \times 10^{3} /\varepsilon \times 1 $$

where, A = (A520 nm–A700 nm) pH 1.0—(A520 nm–A700 nm) pH 4.5, MW = 449.2 g/mol (molecular weight of cyanidin-3-glucoside), DF = dilution factor, ε = molar absorptivity (assumed to be 1 in this case).

Total proanthocyanidin

The Vanillin-HCl method determined Total proanthocyanidin content based on a previous study by Zurita et al.24. 200 µL of the extract was incubated for 20 min at room temperature by adding 800 µL of vanillin reagent, and absorbance measurements were performed at 500 nm (Epoch, Microplate Reader, Biotek Instruments Inc., USA). The results were recorded as milligrams of catechin equivalent (mg CAE/g) per gram dry weight (DW).

Antioxidant capacity

2,2ʹ-azino-bis-3-ethylbenzthiazoline-6-sulphonic acid (ABTS), the cupric ion reducing antioxidant capacity (CUPRAC), and 2,2-diphenyl-1-picrylhydrazyl (DPPH) assays were used to detect the antioxidant activity of wastewater produced during essential oil extraction.

According to Re et al.25, a modified method was used for ABTS wastewater analysis. The results were expressed in terms of Trolox equivalents (mg TE/g).

The method proposed by Apak et al.26 was used to determine the CUPRAC of wastewater. The results were presented in terms of Trolox equivalents (mg TE/g).

The DPPH assay was based on the 96-well plate assay described by Herald et al.27 with some modifications. The results were presented as mg Trolox equivalent antioxidant capacity (TAC) per g of samples (mg TEAC/g).

Greenness assessment tools

Greenness assessment tools provide highly visual semi-quantitative information on the green character of an entire analytical methodology, considering every relevant step from collection and storage to sample preparation and instrumental analysis (LC–MS/MS, HPLC, GC–MS, GC-FID). The ComplexGAPI method28, the BAGI method29, and the AGREEprep method30 were applied in our study.

Statistical analysis

All experiments were carried out in triplicate. Results are presented as mean ± standard deviation (SD). Data were analyzed using a t-test followed by the Holm-Sidak method using GraphPad Prism version 8 (San Diego, CA, USA). Differences were considered significant at P < 0.05. Principal component analysis (PCA) was performed using SPSS 26.0 software. PCA was used to determine the main components of the LC–MS/MS results of L. angustifolia.

Results and discussion

As complex matrices comprising hundreds of diverse compounds, essential oils necessitate meticulous analysis to determine their volatile profiles. These profiles are crucial for understanding the therapeutic and aromatic properties of medicinal plants like L. angustifolia, as their chemical composition can be influenced by various factors, including season, the plant’s developmental stage, climate conditions, harvest time, extraction parameters, and extraction techniques6.

In this study, we employed two distinct extraction methods, TDH and AH, to investigate the volatile profile of L. angustifolia essential oil. The results in Table 1 reveal the presence of 50 different volatile compounds. While thirty-five of these compounds were detected in both extractions, 15 compounds exhibited method-specific detection. Specifically, eight compounds, including 1-borneol (2.11%), 2-cyclohexen-1-one (0.35%), 2-methyl-3-phenylpropanal (0.45%), 4-carvomenthenol (4.97%), α-bisabolol (0.69%), β-myrcene (0.21%), β-ocimene (0.11%), and hexyl isovalerate (0.24%), were exclusively identified in the MAH extract. Conversely, seven compounds, namely 1-hexanol (0.87%), α-pinene (0.88%), β-pinene (0.16%), cyclooctane (0.07%), levomenol (0.80%), geraniol (0.43%), and hexyl valerate (0.24%), were unique to the TDH extraction.

Table 1 Composition of L. angustifolia essential oil.

Despite these differences, both TDH and MAH yielded essential oil with α-terpinolene (25.60% and 24.25%, respectively) and (–)-borneol (19.55% and 19.37%, respectively) as the predominant volatile constituents (Fig. 2). This consistency in major compound extraction suggest that both methods are effective in capturing the characteristic aroma and therapeutic potential of L. angustifolia, even though they may differ in their efficiency for extracting minor or trace components. These findings align with previous studies, such as that by Hajhashemi et al.31, which identified camphor (9.5%), borneol (11.5%) and 1,8-cineole (65.4%) as major volatiles in lavender leaves. However, some variations were observed, such as the detection of α-terpineol (0.5%) in their study but not in ours, emphasizing the potential influence of methodological or sample-specific factors on essential oil composition.

Fig. 2
figure 2

Molecular structure of (A) α-terpinolene and borneol (B).

Essential oil extraction from medicinal plants, such as lavender, inevitably generates substantial by-products, including wastewater. However, previous research has revealed that the organic components of this wastewater possess diverse bioactivities, including anti-inflammatory, antibacterial, antioxidant, antifungal, and enzymatic activities32. This study compared the chemical profile of essential oil and wastewater obtained from L. angustifolia using different extraction methods (TDH and MAH). Table 2 details the phytochemical profile of the wastewater extract, with the MAH method yielding higher total content than the TDH method. According to the results, the total phenolic and total flavonoid content of MAH extraction were significantly higher than that of TDH extraction. The higher phenolic and flavonoid content in MAH extracts compared to TDH can be attributed to enhanced cell disruption, reduced thermal degradation, increased mass transfer, and selective heating mechanisms facilitated by microwave energy, leading to more efficient extraction of these bioactive compounds33,34,35,36. DPPH, CUPRAC, and ABTS assays evaluated the wastewater's antioxidant activity. Results revealed significant differences in antioxidant activity between the MAH (7.619 ± 0.83 mg TEAC/g, 7.847 ± 0.59 and 7.790 ± 0.80 mg TE/g) and TDH (5.603 ± 0.58 mg TEAC/g, 3.869 ± 0.17 and 4.291 ± 0.43 mg TE/g) methods. Furthermore, the MAH method also resulted in the highest total proanthocyanidins (0.548 ± 0.03 mg CAE/g) and TacC (0.023 ± 0.002 mg C3-G/g). Our results highlight that the choice of extraction method significantly impacts the essential oil yield but also the bioactive composition of the resulting wastewater. Microwave-assisted hydrodistillation (MAH) consistently outperformed traditional hydrodistillation (TDH) in extracting a more comprehensive array of bioactive compounds and producing wastewater with superior antioxidant activity. This suggests that MAH, as an innovative extraction technique, offers a more efficient and comprehensive approach to essential oil isolation, yielding a richer source of valuable compounds in both the oil and its by-product. Beyond its efficacy in extracting bioactive substances, MAH also presents several operational advantages over TDH, including reduced extraction time, minimized solvent usage, and lower energy consumption. These findings underscore the potential of MAH as a sustainable and economically viable alternative to conventional methods for essential oil production.

Table 2. Phytochemical profile of L. angustifolia wastewater.

Several studies have investigated the composition and bioactivity of lavender by-products, specifically wastewater generated during essential oil extraction. Our research builds upon these findings, providing a more comprehensive analysis of the chemical profile and antioxidant activity of L. angustifolia wastewater. Previous studies have reported lower total phenolic and flavonoid content in lavender wastewater compared to our findings. For example, Turrini et al.37 found levels of 0.75 mg GAE/g and 0.002 mg QE/g, respectively, using traditional distillation. This discrepancy may be attributed to differences in extraction methods, plant varieties, or environmental conditions. Ciocarlan et al.38 focused on the antimicrobial activity of L. angustifolia by-products, demonstrating their effectiveness against various pathogens, including Bacillus sp., B. subtilis, Xanthomonas campestris, Pseudomonas fluorescens, Candida utilis, Erwinia carotovora, E. amylovora, Penicillium chrysogenum, Aspergillus niger, Alternaria alternata, and Pseudomonas aeroginosa38. Our study builds upon previous research by Turrini et al.37 and Ciocarlan et al.38, providing a more in-depth analysis of lavender wastewater. Specifically, we assessed the total phenolic and flavonoid content and identified and quantified individual phenolic and flavonoid compounds. Furthermore, our study investigated the antioxidant activity of the wastewater, offering a more comprehensive understanding of its bioactive potential.

Additionally, Méndez-Tovar et al.39 assessed the total phenolic content, antioxidant activity, and phenolic profiles of solid residues, a distinct by-product generated during essential oil extraction, from 12 different populations of L. latifolia collected across two seasons. Their findings revealed a total phenolic content of 3.54 mg GAE/g in these residues, which aligns with the range observed in our study for lavender wastewater. However, the individual phenolic levels, specifically apigenin, luteolin, and rosmarinic acid, were lower in their study (55.9, 102.6, and 3040 mg/kg, respectively) compared to our results. This discrepancy can be attributed to variations in both plant species (L. latifolia vs. L. angustifolia) and the type of by-product analyzed (solid residues vs. wastewater). Dobros et al.40 demonstrated that the total phenolic content of extracts from various L. angustifolia cultivars obtained through different extraction methods (ultrasonically assisted extraction, maceration, and decoction), ranged from 14.89 to 32.82 mg GAE/g. Similarly, they found a range of 15.55 to 30.79 mg GAE/g for extracts from two L. x intermedia cultivars using different methods. These findings highlight the substantial impact of extraction methodology on the recovery of bioactive substances from lavender, suggesting that the choice of extraction technique can significantly influence the phenolic content of the final product. A separate study analyzing inflorescence powder samples of L. x intermedia collected from 30 different populations found a range of 0.31–1.03 mg GAE/g for total phenolic content and 0.28–0.71 mg QE/g for total flavonoid content41. In comparison to our findings, the study by41 reported lower total phenolic and flavonoid content in L. x intermedia inflorescence powder extract than what we observed in the L. angustifolia wastewater by-product. In contrast, a study by42 focusing on the total phenolic content and antioxidant activity (using the DPPH method) of L. angustifolia essential oil itself reported values of 1.22 ± 0.04 mg GAE/g and 6.522 ± 0.069 mg/mL, respectively. Our study, however, found higher total phenolic content (1.7776 mg GAE/g for TDH and 3.2803 mg GAE/g for MAH) and antioxidant activity (7.619 mg TE/g) in the wastewater by-product. This highlights a key finding: the by-product generated during essential oil extraction from L. angustifolia may contain a higher concentration of phenolic compounds and exhibit stronger antioxidant activity than the essential oil. This result underscores the potential value of this by-product as a source of bioactive compounds. This observation aligns with numerous other studies demonstrating the diverse biological activities of wastewater generated from essential oil isolation of various medicinal plants. These activities include not only antioxidant properties43,44,45 but also antiacetylcholinesterase44, antifungal effects45, and antibacterial46. For instance, a study examining wastewater generated during essential oil isolation from various medicinal plants (including Dittrichia viscosa, Salvia officinalis, Origanum vulgare, Thymus camphoratus, Foeniculum vulgare, Thymbra capitata, Thymus carnosus, and Thymus mastichina) reported total phenolic content values ranging from 5.3 to 45.2 mg/mL46. This wide range demonstrates plant species' significant impact on wastewater's phenolic composition. In our study, this species-specific variation can be attributed to the lower total phenolic content observed in L. angustifolia wastewater (1.7776 mg GAE/g for TDH and 3.2803 mg GAE/g for MAH).

This study aimed to evaluate the impact of different essential oil extraction methods (TDH and MAH) on the recovery of phenolic compounds from wastewater. Previous research suggests that the chosen distillation method can significantly affect phenolic content. Therefore, analyzing the phenolic profiles of wastewater samples obtained using these methods is crucial. In addition to standard spectrophotometric analyses, we employed LC–MS/MS to identify 32 individual phenolics in the wastewater samples. The results were further evaluated using PCA. LC–MS/MS analysis revealed that several individual phenolics, including gallocatechin + epigallocatechin, (−)-epicatechin, peonidin chloride, epicatechin gallate + gallocatechin gallate, and myricetin, were not detected in either sample. However, minor amounts of specific phenolics were found to be method-dependent. For instance, caffeic acid phenethyl ester, quercitrin, hesperidin, catechin + epicatechin, chlorogenic acid, and pinobanksin were only detected in the TDH wastewater, while quercetin, galangin, and trans-caffeic acid were exclusive to the MAH method. Notably, despite these differences in individual phenolic composition, the total phenolic content values for both methods were quite similar (489.322 µg/kg for TDH; 537.803 µg/kg for MAH).

This study compared the profile of polyphenols in wastewater extracts obtained using the TDH and MAH methods. The data are presented in Table 3. Both methods identified protocatechuic acid as the major phenolic compound, with concentrations of 141.852 ± 4.868 μg/kg and 181.397 ± 28.652 μg/kg in TDH and MAH extracts, respectively. While the overall distribution of phenolic compounds was similar between the two methods, p-coumaric acid was found in significantly higher concentrations in the TDH extract. Conversely, apigenin and luteolin were present at significantly higher concentrations in the MAH extract.

Table 3 Phenolic profile of L. angustifolia wastewater (µg/Kg).

Phenolic compounds, as secondary metabolites in plants, possess various biological activities, making their qualitative and quantitative determination in different plant products crucial for understanding their potential health benefits. Our study revealed that L. angustifolia wastewater contains a notable diversity of individual phenolic compounds. Previous studies have reported that the L. angustifolia by-product is particularly rich in syringic acid (26.082 µg/g) and rutin (56.081 µg/g) compared to other targeted phenolics37. In our study, rutin was identified as a major phenolic compound in lavender wastewater, consistent with previous reports highlighting its abundance in L. angustifolia by-products37. While limited research specifically focuses on the phenolic content of lavender wastewater, studies on other types of lavender extracts have identified a diverse range of phenolic compounds. These include gallic acid, vitexin, luteolin 7-O-glucoside, umbelliferone, chlorogenic acid, and isoquercitroside, which have been found in extracts obtained using various extraction methods47.

Additionally, flower extracts obtained through maceration have been shown to contain high amounts of gallic acid, ellagic acid, and chlorogenic acid48. Moreover, the bioactive potential of wastewater from other plant species has also been investigated. For instance, studies on wastewater from Rosa species revealed a phenolic content of 0.37 mg/mL and flavonoid content of 7.2 to 7.8 mg/mL49. This wastewater also contained various phenolic compounds, including brevifolincarboxylic acid, gallic acid, hyperoside, ellagic acid, catechin, glucogallin, epicatechin, chlorogenic acid, avicularin, miquelianin, and kaempferol, along with their derivatives. Notably, the total flavonoid content in Rosa wastewater was lower than that observed in our lavender wastewater, whereas the total phenolic content was higher. These discrepancies can be attributed to variations in plant species and the specific extraction methods employed, highlighting the complex interplay between these factors in determining the bioactive composition of wastewater.

In this study, principal component analysis (PCA) was employed to analyze the phenolic profile results of L. angustifolia. PCA is a statistical technique that simplifies complex datasets by reducing the number of variables while retaining most of the original information. It achieves this by transforming the original variables into a new set of uncorrelated variables called principal components (PCs), which are linear combinations of the original variables. The eigenvalues and variance percentages of the PCA analysis are presented in Table 4 and Fig. 3. Eigenvalues indicate the amount of variance explained by each principal component, with higher values representing greater importance. Based on Kaiser's rule, eigenvalues greater than 1.0 are considered significant and retained as principal components50. In our analysis, five principal components (PC1-PC5) met this criterion, with eigenvalues of 15.352, 7.329, 5.979, 2.925, and 1.415, respectively. Previous studies using PCA on lavender samples have reported varying numbers of principal components explaining the majority of the variance. For example, Gök and Erdoğdu51 identified two principal components accounting for 98.29% of the total variance, while Komes et al.52 found that PC1 and PC2 explained 84.29% of the variance in their study of medicinal aromatic plants. These differences highlight the influence of sample composition and experimental conditions on the PCA results.

Table 4 Eigenvalues and percentage of variance for phenolics of PCA analysis.
Fig. 3
figure 3

PCA score plot based on the individual phenolic results of MAH and TDH methods.

The Kaiser–Meyer–Olkin (KMO) test was employed to assess the suitability of the data for principal component analysis (PCA). The KMO statistic measures sampling adequacy, indicating the proportion of variance among variables that might be common variance. According to Kaiser50, KMO values range from 0 (unacceptable) to 1 (excellent), with values above 0.7 considered suitable for factor analysis. Based on the KMO test results and the evaluation of the phenolic profile of L. angustifolia, five principal components were identified in this study. According to the PCA results obtained in our study, PC1 consists of gallic acid, neochlorogenic acid, p-coumaric acid, trans-ferulic acid, catechin + epicatechin, hesperidin, rutin, kaempherol, cyanidin chloride, luteolin, pinobanksin, apigenin, pinocembrin, chrysin, trans-caffeic acid and artepillin C, while PC2 consists of protocatechuic acid, chlorogenic acid, peonidin chloride, quercitrin, naringenin and caffeic acid phenethyl ester are the main components. In addition, PC3 was composed of epicatechin gallate + gallocatechin gallate, gallocatechin + epigallocatechin, (−)-epicatechin, hyperoside, myricetin, t-cinnamic acid, PC4 was composed of caffeine, quercetin, galangin, and for PC5 catechol alone constituted a major component.

In recent years, various tools have been developed to assess the greenness of analytical procedures28,29,30. These approaches are often general and need to pay more attention to the analytical steps responsible for a non-green analytical procedure. The evaluation criteria are based on the ten principles of green sample preparation: selection of solvents, materials, and reagents; waste generation; energy consumption; sample size; and yield. The AGREEprep pictograms in Table 5 represent different levels of environmental sustainability. The central score of the pictograms is 0.57 for the microwave-assisted method and 0.55 for traditional hydrodistillation. The BAGI tool, on the other hand, presents a definitive pictogram and score using 10 BAGI standards, indicating the utility and effectiveness of an analytical procedure. The color of an approach, as shown in Table 5, indicates its proximity to meeting the requirements. A technique is considered applicable if it scores 60 or higher. Table 5 shows the proposed pictograms for BAGI indices. The microwave method scored 70, while traditional hydrodistillation scored 65. Green analytical chemistry properties are used to assess analytical methods in ComplexGAPI. The ComplexGAPI graph has been expanded to include pre-analytical procedures by adding hexagon to the GAPI. A color scale is used in this evaluation, with red indicating a high harmful impact on the ecosystem, while yellow and green reflect moderate and low effects, respectively. As shown in Table 5, the microwave method has three red zones, 11 yellow zones, and 11 green zones; the traditional method has three red zones, 10 yellow zones, and 12 green zones.

Table 5 Green assessment tool pictograms.

Conclusion

Essential oils are complex and economically valuable mixtures preferred in various industries due to their diverse effects. However, large-scale production generates significant amounts of by-product wastewater, which is often considered waste. Developing environmentally friendly production methods is crucial, especially for essential oils with high-volume production, like lavender. This study investigated the impact of different extraction methods (TDH and MAH) on the essential oil and wastewater obtained from L. angustifolia. Based on the GC–MS data, both methods yielded significant proportions of α-terpinolene and (–)borneol. Notably, the chosen extraction method significantly affects not only the essential oil content but also the composition of the wastewater. This suggests the potential for utilizing wastewater in various industrial applications beyond just the essential oil itself, such as the food, cosmetic, or even health sectors.