Introduction

Garden thyme with the scientific name Thumus vulgaris is a perennial plant native to the eastern Mediterranean region1. Thyme has dense, branched bushes and a straight root with many branches, and the height of the bushes is usually between 20 and 50 cm. Among the medicinal uses of the essential oil of this plant, we can refer to medicines to strengthen the stomach, dilate the respiratory tract and reduce cough, anti-spasm, rheumatism and sciatica, and eliminate the weak action of the digestive system2,3. Today, most of the developed countries in the world are suffering from side effects caused by the use of synthetic drugs, the unaffordability of manufacturing some synthetic drugs, and the exclusivity of treating certain diseases—such as leprosy and salak—using medicinal plants, leading them to increasingly turn to medicinal plants for treatment4. High moisture content in fruits and medicinal plants has a significant role in storing them, decreasing moisture content or drying by means of the simultaneous transfer of mass and heat largely to raise shelf life, preserve quality and decrease loss after harvesting agricultural products to produce fruits, vegetables and dried medicinal plants5. Drying is one of the most important post-harvest processing operations that transforms perishable and short-lived products such as the medicinal plant thyme into resistant products with a long shelf life6. This process is very important in the processing of medicinal plants, because if the essential medicinal plants are not dried immediately, they lose their effective substances and volatile compounds, also research has shown that the aromatic compounds of the plants are influenced by processing methods. If the plant is dried immediately after harvesting, it helps to preserve the color and aromatic substances of the plant7,8.

In the field of development of dryers, new drying ways are suggested to better meet consumer demands for high quality and productivity product, and environmental sustainability9. In recent years, many countries and government organizations that are members of the UNFCCC have emphasized reducing energy consumption and greenhouse gas emissions worldwide10. For this reason, there is a significant need to develop new drying techniques11. The drying technology first started using solar energy and developed over time and is divided into four generations12. First generation dryers (kiln, tray, tunnel, truck tray) use hot air flow to remove moisture from the product. Second generation dryers use thermal energy to dry slurry into powder (drum and spray), while third generation dryers use non-thermal energy to dry fruit, vegetables and medicinal plants (freeze and osmotic)11. The fourth generation dryers (microwave, high-vacuum, radio-frequency and RW) represent the latest development in drying technologies, where it is possible to maintain better quality of the desired products12,13,14. In this regard, hybrid-drying methods are being developed in which two or more methods are combined. According to Rajoriya et al.,15 we can divide the hybrid drying technique into combined, multi-stage and multi-process drying. In hybrid drying, infrared heating or microwaves are combined with other drying methods, which, due to the synergistic effect, leads to the production of high-quality products and lower energy consumption, especially for heat-sensitive products. There are some benefits for it compared to conventional or single-stage drying16.

Dryers with Infrared (IR) radiation, which are more popular than other usual systems, have benefits such as decreasing drying time, preserving product quality, and raising energy efficiency17. In spite of surface irregularities, IR dryers can provide consistent heating and produce eve high quality products18. Since IR lamps were easily connected to other dryers, various IR combined drying systems such as vacuum-IR drying19, hot air-IR drying20,21, heat pump-IR22, IR-microwave23 were developed in the last decade. The positive role of IR alone or in combination with other methods increases the bioactive properties (TPC, TFC and AA) in dry Ginkgo biloba L. compared to the fresh sample24, shortens the drying time and increasing essential oil content in Lippia citriodora samples25, increasing drying rate and essential oil content, reducing drying time and microbial contamination in Dracocephalum kotschyi18, improving TPC, TFC and AA, reducing the drying time and SEC compared to conventional methods in drying Chrysanthemums26.

RW is an innovative, emerging and non-thermal drying technique of the fourth generation for products such as puree, leather and heat-sensitive parts of fruits and vegetables, which is gaining an acceptance in the food dehydration area12,27. The RW drying technique consists of a heating medium (hot water below the boiling point), a water circulation system and a Mylar plate15. During drying, the food is evenly distributed over a Mylar plate placed over hot water, concerning the environment. The thermal energy of the heating device which flows through the tank is moved to the material which is dried by conduction and radiation, as the thermal energy from the hot water is transferred to the food through the Mylar sheet28. The moisture of the products placed on the Mylar sheet evaporates due to the rapid movement of the thermal energy of the water12. Compared to conventional dryers, RW provides higher drying rates for heat-sensitive products with lowest damage to bioactive/nutritional components, vitamin C, color, and aroma that produce products with good shelf life and better quality in a shorter period of time with less energy consumption11,29,30. In addition, they have energy efficiency (28 to 38 %) 13, 31 and very high thermal efficiency (55 to 72%)12. In terms of food waste, this drying technology is better than second generation dryers because the drying water is returned to the tank and reheated instead of being wasted in the drying process. 15 In addition, RW requires less capital (50-70%)12 and reduces energy consumption by 50%31.

RW technique is mainly used to produce powder/ puree/ flakes/ pulp/ leather/ paste/ fruit slice from fruits and vegetables such as carrot32, banana15,33,34, apple35,36,37, mango38, jamun39, Dragon40, sweet cherry41, pomegranate42,43, goldenberry44, Onion45, tomato46, physalis47, Mango and Avocado48, pineapple6 and beetroot49. However, in recent years, RW drying has also attracted considerable attention in the production of dried medicinal plants. Studies on the preparation of medicinal plants from coriander50, Dracocephalum kotschyi18, mint51 and Aloe vera12 have been reported. These studies showed that RW is a promising and practical drying technique due to its SEC and low processing cost to produce dried medicinal plants with high quality (better appearance) and high nutritional value (preserving vitamins and antioxidants).

Currently, the application of two or more techniques (hybrid drying) is considered for food dehydration, as it gives a synergistic effect and improves process efficiency52. Few studies have been reported on the combination of IR with RW for drying various food materials. Among them, the drying of banana leather15, apple slices52, Dracocephalum kotschyi18, okra slices53 and Malabar spinach54 can be mentioned.

Considering the importance and sensitivity of thyme in terms of preserving its color, aromatic compounds, and bioactive properties, its drying process is very sensitive. Furthermore, the use of new methods in drying agricultural products is crucial regarding obtaining high-quality products with the highest amount of nutrients. On the other hand, a review of the literature revealed that there is a significant gap in the existing knowledge regarding the analysis of thyme drying using a IR-RW dryer. Therefore, the aim of this study is to evaluate the performance of an IR-RW dryer for drying thyme. Various parameters, such as drying kinetics, SEC, emission of pollutants (CO2), some qualitative characteristics (color, RR, AA, TPC and TFC) and essential oil were investigated using IR-RW. Finally, the effects of experimental parameters including water temperature and different weights on drying time, SEC, some other qualitative characteristics (color changes, AA, TPC, TFC) and essential oil extraction using RSM method were investigated and were optimized.

Materials and methods

Preparation of the raw material

To carry out this research, leaves and branches of thyme (Thymus Vulgaris. L) plant were taken from a distance of 4 to 5 cm from the ground and from the experimental farm of medicinal plants of West Azerbaijan Agricultural Research Center (Permission to harvest, identify, and collect them was obtained from Prof. Shahin Zomordi and Mahnaz Heidari Rikan for this study). Control specimens are available in a public herbarium at this research center. In order to prevent removal of surface moisture and wilting, fresh thyme leaves were packed in polyethylene plastic bags. Then it was kept in the refrigerator until the beginning of the experiments. To use them for drying, the initial moisture content (MC) was recorded about 82.6% (w.b) in three replicates (according to AOAC standards)55.

Infrared- assisted refractance window dryer

Figure 1 shows the main components of an IR-RW dryer. The IR-RW dryer consists of a stainless steel frame, funnel, Mylar plate with a thickness area of 0.26 mm and 50 × 200 cm2, respectively, as a plastic membrane, two centrifugal hot water pump (to circulate hot water), 100 liter static thermal water tank made of steel, heating unit (electric heater), fan and thermometer. Mylar plate was placed on top of the shallow hot water tank. Electric fans were placed at the top and bottom of the funnel to remove moisture during the drying process. An infrared lamp (NIR, Noor Lamp Co.) was installed on top of the Mylar plate to increase the heat and temperature. Utilizing hot water exactly below boiling temperature, the thin Mylar sheet and the infrared power all work together to enable rapid drying. All the parts of the IR- RW dryer were placed on a steel skeleton. The electronic water temperature control equipment, centrifugal hot water pump control, infrared lamp control and ventilators were installed in a control panel. Thyme with moisture content (82.6± 0.2 % (w.b)) was uniformly and thinly spread on the surface of the Mylar film, which would obtain thermal energy through the hot water surface and causes sample to dry rapidly. The IR-RW drying method was set with water temperature of 70, 80 and 90 ± 0.5 °C based on preliminary tests.

Fig. 1
figure 1

Schematic diagram of the experimental setup of infrared- refractance window

Drying kinetics

The most common models of drying curves, which are used in most researches to fit laboratory data, are obtained by plotting the changes in the moisture ratio (MR) in terms of drying time. The moisture ratio is calculated according to Eq. 1:49,56

$$MR = \frac{{M_{t} - M_{e} }}{{M_{o} - M_{e} }}$$
(1)

According to previous studies and due to the long drying time of thyme, Me values ​​are very small compared to M0 and Mt values. Therefore, equilibrium MC was not considered in this article and Eq. (1) was simplified as Eq. (2)

$$MR = \frac{{M_{t} }}{{M_{o} }}$$
(2)

Eq. 3 was used to determine the drying rate of thyme57,58.

$$DR = \frac{{M_{(t + \Delta t)} - M_{t} }}{\Delta t}$$
(3)

Modeling

The experimental models of thin layer drying of foods shown in Table 1 were used to model the obtained data (MR changes against drying time). By using the R2, RMSE and χ2 equations, the efficiency of the mentioned modeling methods were determined and compared. It should be mentioned that higher R2 and RMSE and lower χ2 shows the high efficiency of the model. These equations are expressed in relations 4, 5 and 650,59.

$$R^{2} = 1 - \frac{{\sum\limits_{i = 1}^{N} {[MR_{pre,i} - MR_{real,i} ]^{2} } }}{{\sum\limits_{k = 1}^{N} {\left[ {MR_{pre,mean} - MR_{real,i} } \right]^{2} } }}$$
(4)
$$RMSE = \left[ {\frac{1}{N}\sum\limits_{i = 1}^{N} {(MR_{pre,i} - MR_{real,i} )^{2} } } \right]^{\frac{1}{2}}$$
(5)
$$\chi^{2} = \frac{{\sum\limits_{i = 1}^{N} {\left( {MR_{real,i} - MR_{pre,i} } \right)^{2} } }}{N - z}$$
(6)
Table 1 Mathematical models applied to the drying curves

Deff, Ea and thermodynamic parameters

Fick’s law describes moisture transfer in the descending stage of the drying process (Eq. 7)61,62

$$\frac{\partial x}{{\partial t}} = D_{eff} \frac{{\partial^{2} x}}{{\partial x^{2} }}$$
(7)

Studying the propagation of Fick’s second law indicates mass penetration during the period of decreasing drying speed of agricultural products. Fick’s Eq. is solved for different geometrical shapes by using appropriate initial and boundary conditions. For a thin blade, the solution of the Fick’s Eq. is obtained from Eq. (8) 49,63:

$$MR = \frac{{M_{t} - M_{e} }}{{M_{b} - M_{e} }} = \frac{8}{{\pi^{2} }}\sum\nolimits_{n = 1}^{\infty } {\frac{1}{(2n + 1)}} \exp \left( {\frac{{ - D_{eff} (2n + 1)^{2} \pi^{2} t}}{{4L^{2} }}} \right)$$
(8)

The Deff is obtained from the slope of the Eq. (9) line64.

$$\ln (MR) = \ln (\frac{8}{{\pi^{2} }}) - \ln \left( {\frac{{\pi^{2} }}{{4L^{2} }}D_{eff} .t} \right)$$
(9)

The Deff is usually determined by plotting the drying laboratory data in terms of ln(MR) against time. The slope of the obtained line is put in Eq. (10) to calculate the penetration coefficient45:

$$K_{1} = \left( {\frac{{D_{eff} \pi^{2} }}{{4L^{2} }}} \right)$$
(10)

K1 is the slope of the line.

The Ea was calculated using Eq. (11) 61:

$$D_{eff} = D_{o} \exp \left( {\frac{{E_{a} }}{RT}} \right)$$
(11)

To calculate Ea, Eq. (10) can be written as Eq. (12) 52:

$$\ln (D_{eff} ) = \ln (D_{o} ) - \left( {\frac{{E_{a} }}{R}} \right)\left( \frac{1}{T} \right)$$
(12)

Finally, the Ea can be calculated using the following Eq. (13) 2:

$$K_{2} = \left( {\frac{{E_{a} }}{R}} \right)$$
(13)

Understanding the thermodynamic properties of agricultural products is very important for designing drying equipment, investigating the characteristics of absorbed water, evaluating the microstructure of food (chemical and biochemical phenomena of β-carotene decomposition) and physical events on its surface65,66. Based on the obtained Ea values and the global gas constant (R), the values of enthalpy (ΔH), entropy (ΔS) and Gibbs free energy (ΔG) are calculated using Eqs. 14-16, respectively52,61.

$$\Delta {\rm H} = E_{a} - RT$$
(14)
$$\Delta S = R\left[ {\ln (D_{0} ) - \ln \left( {\frac{{K_{b} }}{{h_{p} }}} \right) - \ln (T)} \right]$$
(15)
$$\Delta G = \Delta {\rm H} - T\Delta S$$
(16)

Specific energy consumption and CO2 emissions

A digital energy meter (BENETECH GM86, China) was used to record the electrical energy during the thyme drying process and the SEC was calculated using Eq. (17) as mentioned by Rajoriya et al.,15.

$$SEC(kWh/kg) = \frac{{{\text{ E}}_{{\text{t}}} }}{{\text{ w}}}$$
(17)

CO2 emissions were measured based on the method mentioned in the study of Motevali and Koloor67, and Kaveh et al.,68. In order to obtain 1 kWh of energy, the type of fuel (Natural gas (NG), Heavy Oil (HO) or Gas oil (GO)) was used in different electricity power plants in Iran (Steam (SP), Gas-turbine (GT) and Combine-cycle (CC))

Color

In most food industry research, CIE L*a*b color space is used to analyze the color change in the drying process69. FRU WR10-Chroma Meter-China device was used to measure the color before and after drying thyme. After measuring the color, Eqs. (18) and (19) was used to calculate the overall color changes (ΔE) and Chroma during the thyme drying process70,71.

$$\Delta E = \sqrt {(L^{*} - L_{O}^{*} )^{2} + (a^{*} - a_{0}^{*} )^{2} + (b^{*} - b_{0}^{*} )^{2} }$$
(18)
$$C = \sqrt {(a^{*} )^{2} + (b_{{}}^{*} )^{2} }$$
(19)

The Browning Index (BI) was calculated from CIE L* a* b* according to Eq (20, 21)

$$BI = \frac{100(x - 0.31)}{{0.172}}$$
(20)
$$x = \frac{{a^{*} + 1.75L^{*} }}{{5.645L^{*} + a^{*} - 3.012b^{*} }}$$
(21)

Rehydration ratio

In order to measure RR, dried thyme samples (2 g) were placed in distilled water (approximately 25 °C) in time intervals of 30 to 150 minutes. Then their surface water was removed using filter paper72. Finally, after the weight of the samples remained constant over time, the RR was calculated using Eq. (22) 73.

$$RR = \frac{{{\text{ Z}}_{{\text{r}}} }}{{{\text{ Z}}_{{\text{d}}} }}$$
(22)

Antioxidant activity

AA of thyme samples was measured by the free radical neutralization (DPPH) (2,2,-diphenyl-2-picrylhydrazyl) proposed by Zalpour et al.,50 with a slight modification. For this purpose, the samples were first diluted in the ratio of 1:18. Then 25 μL of the sample was mixed with 100 μL of DPPH. Its absorbance was read at a wavelength of 515 nm using a spectrophotometer. AA percentage was calculated by Eq. 2337.

$$AA(\% ) = \left( {1 - \frac{{A{}_{sample}}}{{A_{control} }}} \right) \times 100$$
(23)

Total Phenol

The TPC was determined based on the colorimetric method and using Folin-Ciocalteu (FC) reagent according to the method provided by Zhang et al.,39 with some changes. Therefore, the amount of 0.5 ml of the extract prepared from the powder was mixed with 5 ml of FC reagent (10 times diluted with water) and was kept in a stationary state for 3-6 minutes. Next, 4 ml of 7.5% sodium carbonate was added to it and mixed. The light absorption of the solutions was read after 60 minutes in the dark at a wavelength of 765 nm

TFC

50 μL of the extract was combined with 1 mL of distilled water and according to the method of Zamani et al.,18 The next step was adding 0.075 mL of sodium nitrite (5%) to it and after 5 minutes, we added 0.15 mL AlCl3 solution (10%) and after 6 minutes, 0.50 mL of NaOH (1 M) was added to the rest. The ultimate volume of the solution became 3 mL by distilled water and the intensity of the pink color appeared in the solution at the wavelength of 510 nm was recorded by spectrophotometer.

EO

For extracting EO, a Clevenger machine and a distillation method were used. The amount of dried thyme used for this research was 30 gr and the amount of water used in each experiment was 500 mL. The duration of essential oil extraction for each treatment was 2 hours after boiling the water. The amount of EO obtained from each treatment was calculated as a percentage2.

Statistical analysis

The statistical analysis of this research was factorial in the form of a completely random design. A two-factor factorial ANOVA (factors: water temperature and sample weight) including their interaction was conducted in SAS 9.4 at α = 0.05. The difference between the mean values was investigated by Duncan’s multiple range (p < 0.05) comparison method.

Optimization

In this research, in order to design the experiment and evaluate the drying time, SEC, ΔE, AA, TPC, TFC and EO of dried thyme samples, the response surface method (RSM) in the form of central composite design (CCD) was executed using Design Expert 10.0. This design included two independent variables (water temperature and weight of samples) in three levels, in three repetitions and the central point had five repetitions. Table 2 presents the test levels and parameters used in the CCD design. The effects of the WT level (70, 80 and 90 °C) and the SW (60, 90 and 120 g) are presented in Table 3. The multivariate model is in the form of Eq. (24) and according to Rekik et al.,72 and Meshkat et al.,74:

$$y_{k} = \beta_{0} + \sum\limits_{j = 1}^{k} {\beta_{j} x_{j} + \sum\limits_{j = 1}^{k} {\beta_{jj} x_{j}^{2} } + \sum {\sum\limits_{i < j}^{k} {\beta_{ij} x_{i} x_{j} } } }$$
(24)
Table 2 Independent variable values, the weights and importance of the parameters for infrared- refractance window dried thyme
Table 3 Response Surface Methodology (RSM) for drying time, SEC, ΔE, TPC, TFC, AA, and EO of thyme under different drying conditions

The fitness of the polynomial equation to the responses were estimated using coefficient of determination (R2). The statistical significance of all polynomial equation terms was determined by calculating the F value at a significance level of p < 0.0575. Additionally, 3D response surface plots of the thyme drying parameter analysis were generated using the trial version of Design Expert 10.0 software by Dr. Mohammad Kaveh.

Results and discussion

Kinetics and drying time

Changes in the MR of thyme during the drying process are shown in Figure 2. The MC decreases continuously during the drying process. However, this reduction has been done at higher temperatures and lower weights with a greater slope. This will reduce the drying time and reach the final MC of less than 5% (w.b) sooner. In the early stages of drying, the decrease in moisture occurred more intensively, and with the continuation of the drying process, the slope of the curve decreased. This can be due to the decrease in porosity of the samples, increase in diffusion speed, increase in the surface heat transfer coefficient, and the exit of moisture, especially at higher temperatures during drying, which has been observed by researchers including Kumar et al.,76 and Pal et al.,77. According to ANOVA (Table 4), the effect of water temperature, sample weight, their interaction and square sample weight on drying time was significant (P<0.05). The average drying time obtained from different drying conditions is listed in Table 5 and in that, water temperature of 90 °C and sample weight of 60 g showed the shortest drying time (60 ± 5 minutes) (P<0.01). The drying time was reduced by 60, 54 and 50% by increasing the water temperature from 70 °C to 90 °C for the sample weight of 60, 90 and 120 g, respectively. As the weight of the samples increased, the drying time increased (Figure 3a). Increasing the sample weight slows down the drying process, and the MC decreases with a delay, so water molecules must spend more time to leave the samples. Similar results were reported by Adekanye et al.,78 and Nurmawati et al.,79 for Moringa oleifera leaves and mushrooms, respectively.

Fig. 2
figure 2

Moisture ratio variation with drying time during experiments for infrared- refractance window at different air temperature (°C) and weight (g)

Table 4 Means squares and significant level for drying time, SEC, ΔE, TPC, TFC, AA, and EO using the response surface method
Table 5 Effect of different condition on drying time, DR, SEC and Deff, during infrared- refractance window drying
Fig. 3
figure 3

Response surface for different properties (drying time (a), SEC (b), ΔE (c), TPC (d), TFC (e), AA (f) and EO (g) of dried thyme at different temperatures and weight. Figure 3 is extracted from Design Expert software’ this clarification in the main manuscript.

Drying rate (DR)

According to Figure 4, in the initial stage of the drying process, due to the higher MC on the surface of the bubbles, the DR increased. However in the next stage (decrease speed stage), all the free water on the surface of thyme samples has evaporated as a result of the DR of the product has decreased48. The results of the research of Mandale et al.,49 illustrated that by increasing the drying temperature during beetroot drying, the time required to reach the equilibrium MC decreased. According to Table 6, the WT and SW (P<0.01) and as well as their interaction (P<0.05) had a significant effect on the DR. The average changes in the DR at different water temperature and sample weight are illustrated in Table 5. According to this table, by increasing the WT from 70 to 90 °C, the DR of the thyme raised (P<0.01), that is, DR90°C > DR80°C> DR70°C. Higher temperature leads to a higher rate of heat transfer and moisture diffusion from the inside to the surface to evaporate the samples49. Whereas, increasing the sample weight from 60 to 120 g caused a reduce in the DR of the product (P<0.05). At smaller weight, moisture transfer occurs more quickly, thus improving DR. Therefore, a higher DR was observed in lower weights while a lower drying rate was observed for higher weights, i.e. DR60g> DR90g> DR120g

Fig. 4:
figure 4

Drying rates of the thyme samples for infrared- refractance window at different air temperature (°C) and weight (g)

Table 6 Means squares and significant level for DR, Deff, L*. a*, b*, and Chroma

Modeling

Drying data was utilized to describe the IR-RW drying kinetics of thyme. The experimental data were fitted using nonlinear regression analysis with eight frequently used model equations. By calculating the amount of MR during the drying process of thyme, by means of kinetic models, the results for each model were examined and compared (Table 7). The modeling results showed that the best model for thyme drying process with the highest fit, the highest value of the R2 and the least RMSE and χ2 is the model of Midilli et al. In (Table 7 and 8), sum of squares of error (RMSE), coefficient of determination (R2) and chi-square (χ2) as well as constant coefficients of Midilli et al.'s model (n and k) for different drying conditions of thyme samples are reported. In this research, the values of RMSE, R2 and χ2 were obtained in the range of 0.00124 to 0.00689, 0.9992 to 0.9999, and 0.00008 to 0.00093, respectively. The model parameter k varied from 0.0033 to 0.0112 for a variation in temperature from 70 to 90 °C for 60 to 120 g sample weight case. Further, n varied to a lesser extend (0.9998 to 1.325) with sample weight (60 to 120 g). In addition, the changes in parameters b and a under different conditions were determined to be in the range of -0.00067 to 0.000072 and 0.9961 to 1.0005, respectively. According to Table 8, as the drying air temperature increases, the k value of the model of Midilli et al. also increases. Kalsi et al.71 stated that the drying curve becomes steeper with increasing k value, which means faster drying. Uribe et al.47 studied the drying kinetics of physalis by the RW method under temperatures ranging from 50 to 90°C. Based on their results, the Midilli & Kucuk model described the drying behavior of physalis well. Ayala-Aponte et al.80 modeled the drying of Aloe vera gel slabs in a window dryer in a study. Experiments were conducted in the temperature range of 60-90 °C and slab thicknesses of 5 and 10 mm. The Midilli & Kucuk model described the behavior of the drying process of Aloe vera gel slabs better than other models.

Table 7 Compared values of statistical parameters of empirical models of drying of thyme in infrared- refractance window
Table 8 The coefficients and statistics of the Midilli et al., models for different drying air temperatures and thyme weight sample

Deff

According to ANOVA (Table 6), water temperature and sample weight have a significant effect on thyme Deff (P<0.01). According to the results (Table 5), the highest and lowest values of Deff were 3.01×10-8 and 8.67×10-9 m2/s, respectively, and the highest value was recorded at a WT of 90 °C and a SW of 60 g, while its minimum value was recorded at 70 °C and 120 g. According to Table 5, by increasing WT and reducing the SW, the Deff has increased, which has led to the acceleration of the exit of moisture to the surface of the thyme samples, and as a result, the drying speed has raised81. The amount of Deff for drying food has been reported in the range of 10-12 to 10-761 and the results of this study are also in the same range. Karami et al2 obtained Deff values for dried thyme in the solar-electric dryer method in the range of 1.23×10-10 to 2.17×10-10 m2/s. Also, the Deff in the study of Turan and Firatligil,82 for dried thyme in the hot air technique was reported from 2.59×10-9 to 1.28×10-8 m2/s.

SEC

The results of analyzing the effect of WT and SW on SEC and comparing its averages are shown in Tables 4 and 5, respectively. As can be seen in Table 4, the change of WT and SW had a significant effect on SEC (P<0.01), and with rising WT and reducing SW, SEC decreased. However, the interaction and quadratic effect of WT and SW on energy was not significant. For example, for the SW of 60 g, the average SEC of the drying process of thyme samples in the IR-RW dryer at WT of 70, 80 and 90 °C was determined using experimental data and Eq. (16) and 9.57, 7.54 and 5.25 kWh/kg were obtained, respectively. Similar results were announced by researchers in RW such as Zalpouri et al.,50 for coriander (7.88 to 9.10 kWh/kg), Rajoriya et al.,15 for drying banana (2.48 to 2.80 kWh/kg), and Seyfi et al.,12 for drying Aloe vera gel (4.31 to 7.31 kWh/kg). Significantly, SEC was the lowest in higher water temperature for all different weights of thyme (P<0.01) (Figure 3b). When the temperature raised from 70 to 90 °C and from 80 to 90 °C, SEC was decreased 45.10 and 30.30% for 60 g, 46.50 and 28.6% for 90 g, 37.34 and 19.00% for 120 g, respectively. Reducing the process time at higher WT is the most important reason for decreasing the SEC of the process. According to the average comparison Table 5 and (Figure 3b), the SW of 60 g dried at 90 °C has the minimum SEC value of 5.25 kWh/kg, while the SW of g 120 dried at 70 °C has the maximum SEC value of 16.61 kWh/kg. The SEC values ​​reported in this study for the IR-RW method were obtained at a laboratory scale. On the one hand, heat recovery management, insulation quality, control strategy (e.g., variable speed pumps/fans), and laboratory environment can reduce SEC compared to laboratory units. On the other hand, start/stop cycles, partial loads, and maintenance modes may increase SEC. Therefore, our SEC values ​​should be considered as a laboratory benchmark rather than direct industrial surrogates.

CO2

In Figure 5, the effect of water temperature and sample weight on CO2 from different power plants using different fuels is shown. According to Figure 5, the amount of CO2 varied from 0.426 to 21.25 kg/kg water. As it is clear from the figure, the amount of CO2 reduced with the increase in the inlet WT, while this amount raised with the increase in the weight of the samples. The highest amount of CO2 was obtained in G-T power plant with G-O fuel and the lowest amount of CO2 was obtained in S-P power plant with N-G fuel. The reason for the reduction of GHG emissions can be seen in the reduction of SEC and drying time during the drying process, due to the increase in moisture evaporation at high temperatures and low weights67. In addition, at low temperatures, the dissolved solids along with water are placed on the surface layer of the samples and the phenomenon of surface hardening occurs. As a result, the tissue has become stiffer and more energy is needed for drying. As a result, more CO2 emissions is produced. Seyfi et al.,12 dried Aloe vera gel using solar- RW and observed that increasing WT decreased CO2 emission. Baeghbali et al.,42 reported that the release of CO2 during the drying of pomegranate juice by the RW method was 3.45 kg.

Fig. 5
figure 5

CO2 emissions from different power plants and fuel under various drying condition.

Activation energy

To determine the Ea, different values of Ln (Deff) were drawn apposed to the inverse of the absolute temperature within the product in the process of drying (1/T). The Ea values varied from 20.71 to 31.17 kJ/mol (Table 9). The Ea gained in the present study is within an acceptable area, because according to Cunha et al.,61 the Ea values for all food, fruit, vegetables and medical plant are between 12.7 and 110 kJ/mol. Ea for physalis (29.49 kJ/mol), avocado (32.06 kJ/mol) and Curcuma longa L. (47.05 kJ/mol) in the RW method, have been reported in the study of Uribe et al.,47, Nguyen et al.,48 and Cunha et al.,61, respectively.

Table 9 Activation energy and thermodynamic properties of the thyme drying process with infrared- refractance window.

Thermodynamic

According to Table 9. The effect of temperature on ΔH was not significant (p<0.01), but it was significant on ΔS. In addition, the effect of weight on both parameters (ΔH and ΔS) was significant (p<0.05). On the other hand, the effect of temperature and weight on ΔG was significant (p<0.05). Table 9 shows the ΔH, ΔS and ΔG obtained from the drying of thyme. ΔH values ranged from 17.69 to 28.15 kJ/mol. similar results were found by Cunha et al.,61 in drying Curcuma longa L. and at water temperature between 70 and 90 °C, with ΔH in the range of 44.026 to 44.193 kJ/mol. According to Table (9), ΔH values are inversely proportional to temperature and decreases with increasing temperature, while it also decreases with decreasing weight of samples. Decreasing enthalpy shows that less energy is required for drying at higher WT and lower SW. The enthalpy values (ΔH) in this study were obtained as positive, which according to de Vilela Silva et al.,83 indicates an endothermic process with heat absorption (endergonic reactions) which is related to the increase in the partial pressure of water vapor in thyme and it is caused by increasing the drying air temperature84. Other studies on drying black rice85, Uzun pistachios60 and peppers84 confirm these results.

According to Table 9, it can be seen that ΔS, which is related to the degree of disorder of the system, behaved similarly to enthalpy (ΔH), which slightly reduces with the increase in the WT. This behavior indicates less mixing of water molecules and more order between these molecules in the system84. The highest and lowest entropy values were -0.1181 and -0.1490 kJ/mol K, respectively. Santos et al.,86 also identified negative entropy values in the process of drying mango peels with values of -0.3098 to -0.2468 kJ/mol K. Similar behavior is also observed in the drying of peppers84, wheat87 and pineapple88.

According to Table 9, the highest amount of Gibbs free energy (73.04 kJ/mol) was acquired at 90 °C of water temperature and the weight was 120 g, and the lowest value (67.69 kJ/mol) was gained at 70 °C of WT and SW 60 g. As the WT increased and the sample weight decreased, the amount of ΔG increased. ΔG is the total amount of energy involved in the system and can characterize the drying process as spontaneous or non-spontaneous and shows the amount of water attached to the product. Values greater than zero (ΔG>0) mean that the drying process was not spontaneous. Several studies were conducted on the thermodynamic properties of agricultural products, which showed that an increase in WT causes an increase in ΔG and the non-spontaneity of the process. The results related to the drying of Curcuma longa L. by Cunha et al.,61, who showed that the ΔG value increased from 122.75 to 127.33 kJ/mol by raising the WT from 70 to 90 °C. Also, Santos et al.,89 detected an increase in ΔG in the drying of guava slices with raising temperature from 50 to 90 °C, with values from 75.13 to 80.95 kJ/mol.

Color

The color of the surface of the dried samples is one of the main quality parameters that determines the acceptance of the product. Process variables, including water temperature and sample weight, affect the color of the dried product. The average index of brightness, redness and yellowness of fresh thyme samples was 35.9, 1.28 and 15.2, respectively. Table 6 illustrates the effect of WT and SW on the color indices of dried thyme samples. Based on the results reported in this table, WT and SW have a significant effect on the change of color indices (a*, b*, L*, Chroma) of dried thyme samples (P< 0.05). The average index of brightness, redness, and yellowness of dried thyme samples was in the range of 30.6- 36.01, 1.47- 3.33, and 13.37- 20.14, respectively.

The results of the color analysis of dried thyme samples show that L* value is lower than fresh samples in all different weights (p<0.05). According to Table 10, the closest L* to fresh thyme leaves was recorded at water temperature of 90 °C and sample weight of 90 g. According to Table 10, the increase in temperature increases the value of L*. Therefore, the high water temperature in the refractance window method preserved the color of the dried samples better. Similar results were reported in the study of Selvakumarasamy et al.,90 for drying Costus pictus rhizomes. On the other hand, medium weights (90 g) had higher L value changes than 60 and 120 g weights. Since the color of the thyme samples became dark green during drying, the index a* (expressing the amount of redness/greenness of the product) improved compared to the fresh samples. Also, the values of a* reduce with raising temperature. In addition, this value showed a higher value in higher weights (120 g). The b* value (expressing the yellow/blue value of the product) of thyme samples improved after drying because the yellowness of thyme samples decreased drastically during drying. Also, the value of b* in all treatments reduced with raising temperature. The reason can be attributed to the Maillard browning reactions and browning index91.

Table 10 Impact of air temperature and weight of sample on L*,a*,b*, ΔE and Chroma of thyme during infrared- refractance window drying

Color difference (ΔE) measured the overall color change of thyme samples and is an important parameter to evaluate the color of the sample during the drying process. The lowest value of ΔE indicated the better quality of the dried sample. As shown in Table 10, with the increase of WT, the total color change has decreased significantly (P<0.05). The thyme dried at 70 °C showed the maximum amount due to prolonged drying time (Figure 3c). Similar results have been reported for drying Salicornia fruticose92.

The Chroma parameter shows the level of color stability and the smaller the difference with the new sample, the more suitable the product is. According to the calculated value of this parameter in Table 10, it is clear that the sample dried in WT of 90 °C and SW of 90 g shows the least difference with the fresh sample. The Chroma value for dried thyme was in the range of 14.44 to 20.40.

According to Table 10, it is clear that the color index (BI) decreased with increasing water temperature and decreasing sample weight, indicating less browning under faster drying conditions. According to these results, the lowest BI value was obtained at 90 °C and SW of 90 g.

Rehydration ratio

Drying causes changes in the structure and texture of plant material, and hence causes the irreversibility to its original properties; Therefore, RR is known as an indicator of the severity of the drying process and damage to food texture73,93. Figure 6 shows the process of increasing RR in dried samples of thyme leaves at WT of 70, 80 and 90 °C and SW of 60, 90 and 120 g as a function of time; as shown in Figure 6, with the increase of rehydration time, RR increased, but after a certain time, this value remained constant. Similar results have been reported in the literature for different crops, for example, wormwood73 and red Cabbage94. The high rate of RR at the beginning of the process may be related to the rapid absorption of water in the capillaries and cavities near the surface95. Subsequently, the water absorption rate decreased due to the filling of free capillaries and intercellular spaces. Also, with the increase in WT, due to less damage to the cell structure, it showed faster absorption, so the amount of RR increased. Doymaz,96 obtained similar results when drying thyme and stated that RR improves at higher temperatures due to the effect of temperature on the cell wall and tissue. Based on the observations in Figure 6, the results show that the highest RR was related to the samples dried at 90°C and weighing 60 g (RR=3.88). Based on the results reported in Figure 6, increasing the weight of the samples has a significant effect on the RR of the dried thyme. The RR decreased with the increase in the SW. When the SW was 120 g, the RR decreased significantly

Fig. 6.
figure 6

Plots of the rehydration rates of thyme at different water temperatures and weight sample. (70 °C- 120 g), Δ (70 °C- 90 g), (70 °C- 60 g), ♦ (80 °C- 120 g), (80 °C- 90 g), ▲ (80 °C- 60 g), (90 °C- 120 g), (90 °C- 90 g), (90 °C- 60 g).

TPC

Phenolic compounds are an important part of the effective substances of medicinal plants, which are influenced by environmental factors, growth conditions and post-harvest operations97. In the current research, the trend of changes in TPC of thyme under the influence of sample weight and water temperature is shown in Table 4. As can be seen, the WT, SW and square the WT and SW showed a significant effect on the TPC (Table 3- P<0.01), While the interaction effect of the WT and SW was not significant on the TPC (Table 3- P<0.05). The TPC of dried thyme varied from 24.15 to 38.45 mg GAE/100 g d.m. As the SW increases up to 80 g, TPC has an upward trend, while at higher weights (above 90 g), the TPC of the samples has a downward trend (P<0.01) (Table 11- Figure 3d). The reduction of TPC in higher weights may be due to the enzymatic processes that occur during the drying process. Higher weights cannot deactivate decomposing enzymes such as polyphenol oxidase due to the longer drying process. As can be seen, lower sample weight (60 g) have a more severe destructive effect than other weights on the amount of total TPC. Also, with the increase in WT, the TPC of thyme first goes up and then goes down. As the WT increases from 70 to 80 °C, the share of TPC increases due to moisture evaporation, but at WT higher than 80 °C, due to the destructive effect of heat, the amount of TPC decreases with increasing temperature. TPC is one of the heat-sensitive compounds that oxidizes quickly so that it begins to decompose and decrease rapidly with the increase in WT. Pal et al.,77 reported that the decrease in TPC in aonla samples under high and low heat treatments was due to less inactivation of oxidative enzymes and this condition causes the Maillard reaction and thus releases phenolic compounds.

Table 11 Impact of air temperature and weight of sample on TPC, TFC, AA and EO of thyme during infrared- refractance window drying

TFC

The results of this realization showed that the effect of WT, SW and square the WT and SW on TFC was significant (P≤0.05- Table 4). The highest TFC for thyme was observed at a SW of 90 g and a WT of 80 °C, while the lowest was obtained at a SW of 60 g and a WT of 70 °C (Table 11- Figure 3e). The amount of TFC in the range of 14.21 to 35.47 mg QE/100 g d.m. was calculated (P≤0.01). This is explained by the possibility that the long heating time decomposes the flavonoids. In addition, flavonoid molecules are heat-sensitive bioactive chemicals with unstable chemical properties, so high temperatures may accelerate flavonoid degradation98. Hassan and Koca99, found that the amount of TFC for dried autumn olive berries increases first and then decreases with increasing temperature.

AA

The change process of thyme AA during IR-RW drying is shown in Table 11 and Figure 3-f. Also, the results of statistical analysis on antioxidant activity showed that the main parameters have a significant effect on it (Table 3- P<0.05). According to Table 11 and Figure 3-f, the amount of AA increased with the rise in the weight of the samples up to 90 g, and then with the increase in the SW, there is a downward trend, but with the increase in the WT, it shows an increasing trend. Applying a higher WT leads to an increase in the AA of the samples. The amount of AA of the samples is in the range of 45.48-75.73%. Similar results were reported for drying papaya100 and beetroot49 in RW dryer. The results of this study proved that increasing the WT had a positive correlation with antioxidant properties. Increasing the WT led to a decrease in drying time, thereby ensuring the preservation of AA. As stated by Padhi et al.,101 in drying banana in RW dryer. As can be seen in Table 11 and Figure 3-f, with the increase in the SW, the AA of the dried samples first has an upward trend and then a slight decrease in the weight range above 90 g. In higher SW, it needs more time to reach the required moisture, for this reason, it is subjected to heat treatment for a longer period of time

EO extraction

The average values of essential oil extracted from fresh and dried thyme leaves are shown in Table 11. As can be seen, the effect of WT had a significant effect on the EO percentage of thymes, but the interaction effects and weight sample were not significant (P<0.05) (Table 4). The maximum amount of EO (2.20 %) was obtained from dried leaves with WT of 80 °C and SW of 80 g and the lowest amount (1.49 %) was obtained from dried samples with WT of 90 °C and SW of 120 g. As it is clear from the Table 11 and the figure of the RSM (Figure 3-g), at all levels of SW (from 60 to 120 g), the maximum amount of EO was obtained from the dried leaves at 80 °C. As the WT increased from 80 to 90 °C, the EO value of the leaves decreased continuously, which was probably due to the increase in the temperature of the samples and the acceleration of the evaporation of EO from thyme. Similar results were reported by Setareh et al.,102 regarding the negative effect of high temperatures on the amount of lemongrass EO. They also concluded that medium water temperatures can produce the highest amount of EO. According to Figure 3g, it can be found that 90 g sample weight is more effective in maintaining the EO of the samples compared to 120 g and 60 g sample weight. The lowest amount of EO was obtained in the weight of 120 g, which is due to the longer exposure of the samples to heat, which leads to the destruction of thyme compounds.

Optimization

The drying process should be done in such a way that, in addition to preserving the food from spoilage, the quality indicators of the product, such as color, taste, aroma and texture, are harmed as little as possible. The apply of RW technique can be effective in the drying process of medicinal plants due to small changes in the aroma, taste and quality of the final product. The goal of this optimization was to produce a sample with higher AA, TPC, TFC and EO activity, as well as lower drying time, SEC and ΔE. Figure 7 presents the obtained values for the desirability of each control factor, response variables and combined optimization. As shown, the combined utility is about 0.807. The utility function for the control factors including weight of samples (A) and water temperature (B) is equal to 1 because the values are in the optimization range. Table 12 summarizes different optimal values for dried thyme in IR-RW. Among the optimal values, the obtained predicted optimal variables are: drying time 91.003 min, SEC (8.37 kWh/kg), color changes (1.42), AA (71.68%), TPC (37.93 mg GAE/100 g d.m), TFC (35.11 mg QE/100 g d.m) and EO (2.04%). Finally, the highest level of favorability (0.807) was selected for water temperature (85.02 °C) and sample weight (86.10 g).

Fig. 7
figure 7

Results for individual desirability values

Table 12 Optimization results of thyme drying in the infrared- refractance window

Conclusions

Infrared-assisted refractance window drying of thyme across 70–90 °C and 60–120 g achieved fast moisture removal with favorable energy and quality outcomes. The Midilli model best represented thin-layer kinetics (R2: 0.9992–0.9999; RMSE: 0.00124–0.00689; χ2: 0.00008-0.00093). Increasing water temperature increased DR, Deff and RR, and reduced time, SEC, CO₂, ΔE, and BI. Regardless of the weight of the samples, the qualitative parameters showed that the samples dried at 80 °C had the highest TPC (38.45 mg GAE/100 g d.m.), TFC (35.47 mg QE/100 g d.m.) and EO (2.19%). Finally, the optimal point for the independent parameters for the process of drying thyme was calculated at the bath water temperature of 85.02 °C, and the sample weight of 86.10 g with a desirability rate of 0.807. These findings are useful for the development of new products from dried thyme using the IR-RW method. This study also showed that IR-RW drying technology as an economically profitable technology through reducing drying time, less energy consumption, reducing long-term heat treatment, improving quality properties, better maintaining bioactive properties and essential oil efficiency, and also it is affordable for consumers. On other hand, the results of this study were obtained from an IR-RW laboratory unit; Heat/mass transfer strategies and scale -dependent control may change SEC and quality results. Methodological limitations of drying thyme using the infrared-reflectance window method include the setup of the IR-RW dryer at a laboratory scale, controlled drying conditions, and specific ranges of process variables. In addition, future research directions could include validation of large-scale and pilot scale IR-RW drying systems; integration of renewable or hybrid energy sources to improve sustainability; and investigation of advanced hybrid drying approaches (e.g., infrared-ultrasound combinations) to enhance drying kinetics and preserve bioactive compounds.