Introduction

The demand for biopolymeric resins of natural origin with practical applications must be emphasized due to issues associated with a petroleum-based resin, such as non-degradability and renewability of the product, fluctuation of oil price, and environmental pollution. This has instigated researchers to search for renewable materials for sustainable epoxide development (Okieimen et al. 2002; Nwosu-obieogu et al. 2020).

Vegetable oils have been considered an excellent alternative source for the production of epoxides; hence, Azadirachta indica, huracrepitan, and rapeseed oil are some of the vegetable oils considered for this process due to their inedibility and non-competitiveness with food crops (Anya et al. 2016; Aguele et al. 2021; Milchert et al. 2010).

Azadirachta indica tree belongs to tropical Southeast Asia and the family Meliaceae (Nwosu-obieogu et al. 2022a). It multiplies in tropical and semi-tropic climates and can reach a height of 35–40 m (115–131 ft.), surviving in arid conditions. AISO is a vegetable oil pressed from seeds of the Azadirachta indica fruits. The oil yield differs widely in the literature from 25 to 45%, as reported by Yash Roy and Gupta (2000) and Adepoju and Olawale (2015), respectively; this compares favourably with luffa oil yield of 27.7%, as reported by Nwosu-Obieogu and Umunna (2021) on luffa oil extraction modeling and optimization.

Reports have shown that Azadirachta indica oil contains triglycerides that can be epoxidized (Kareemullah et al. 2021; Sahu and Mohanty 2017). These epoxides can be utilized as resins for plastics and paint production and as raw materials to prepare chemical compounds, such as alcohols, glycols, and olefinic and carbonyl compounds (Dinda et al. 2016). Kareemullah et al. (2021) developed and analyzed epoxidized Azadirachta indica oil-based lubricants. Sahu and Mohanty (2017) studied the epoxidation of oleic-rich Azadirachta indica oil over a bio-waste catalyst.

Epoxidation reaction converts the double bonds of fatty acid triglycerides in oil to oxirane groups. (Turco et al. 2019; Nwosu-obieogu et al. 2022a). Specifically, the unsaturated fatty acids' carbon–carbon double bonds (C=C) react with a peracid to form epoxide groups (oxirane rings). According to studies, process variables such as temperature, time, and catalyst concentration influence oil epoxidation (Nwosu et al. 2021). According to Matusiak and Milchert (2018), as the reaction temperature rises, the time required to achieve high efficiency decreases; however, a high temperature intensifies side reactions during epoxide formation. The type of oxidizing agent (Dinda et al. 2016), the molar ratio of reactants (Matusiak and Milchert 2018), and the intensity of mixing (Goud et al. 2006) are all factors that influence the epoxidation reaction. As a result, modeling and optimization of process variables will aid in enhancing the process reaction, developing the optimal yield, and establishing the relationship between the process parameters(temperature, time, and catalyst concentration) and the oxirane value (Nwosu-obieogu and Umunna 2021). An optimal oxirane value of 3.96348% for melon seed oil and 4.07169% for huracerepitan seed oil reported by Nwosu-obieogu et al. (2024) and Aguele et al. (2021) respectively confirm that vegetable seed oil can be suitably epoxidized applying same epoxidation procedure.

RSM is a statistical technique applied in the design and analysis of experimental data. It also models and optimizes chemical processes and products, improving existing product designs (Onoji et al. 2017). The RSM model helps predict our independent variables' desired response (Oke et al. 2021). Compared to the linear regression technique, RSM develops the desired optimal solution at a reduced time (Nwosu-obieogu et al. 2022b). Various studies have been carried out using RSM to optimize epoxide yield from vegetable seed oil such as Hevea brassilliensis seed oil (Nwosu-obieogu et al. 2020), sandbox seed oil (Aguele et al. 2021).

Metaheuristic soft-computing techniques such as particle swarm optimization (PSO), genetic algorithm (GA), and Grey wolf optimizer (GWO) have been a subject of focus in modeling complex chemical variables (Oke et al. 2020; Nwosu-obieogu et al. 2022c). These models apply a sensitivity approach to measure the parametric impact on the outputs or performance of the process (Nwosu-obieogu et al. 2022d). Among these techniques, PSO stands out in chemical process modeling and optimization.

PSO is inspired by animal collective behavior; the set of candidate optimization problem solutions is defined as particles’ swarms flowing through space and specifying trajectories (Khayati 2020; Nassef et al. 2019). These paths are determined by their best performances and those of their neighbors. This algorithm is a robust and stochastic soft computing technique for locating the global optimum in a large search space. It is a simple, more effective technique that converges faster than other metaheuristic techniques while requiring less time (Jalil et al. 2022). Researchers have studied the utilization of PSO in predicting chemical processes. Nassef et al. (2019) compared fuzzy modeling with PSO in biodiesel production enhancement from microalgae. Kadi et al. (2019) optimized the transesterification kinetics of biodiesel production from rapeseed oil using PSO, Fang et al. (2022) predicted industrial propane dehydrogenation process using PSO, and Khayati (2020) predicted sliver nanoparticles green synthesis using PSO. Their observations indicated the efficiency of PSO in modeling and optimizing chemical processes. Also, few studies have been carried out using PSO to optimize the epoxidation process, such as the optimization of styrene epoxidation by Huang et al. (2019). Development of hydrolyzed dihydroxy stearic acid (DHSA) from epoxidized oleic acid (EOA) by Jalil et al. (2022). Formation of dihydroxystearic Acid (DHSA) from epoxidized palm oleic acid by Jalil et al. (2020). Some researchers reported on the combination of RSM and PSO in process optimization, the total colour difference of pineapple fortified rasgulla processing (Sarkar et al. 2020), the optimization of the FDM process for flexural strength (Saad et al. 2021), the parametric optimization in making of Nimoic-263 alloy (Rao and Venkaiah 2015), the valorization of Citrus unshiu biowastes to value-added products (Poyraz et al. 2021) and methylene blue removal using silver nanoparticles from water (Khajeh et al. 2013). However, no documented information exists about AISO epoxidation optimization using RSM and PSO. Therefore, this study aims to model and optimize the process conditions of oil epoxidation from Azadirachta indica seeds using PSO and RSM.

Materials and Methods

Material and Equipment

AISO, aqueous hydrogen peroxide 30%, acetic acid 98%, sulfuric acid 98%, hexane 99%, and ethanol were purchased at technical grade from Vinod Chemicals Aba, Abia State, Nigeria. Also, a three-necked round bottom flask (250 mL capacity), magnetic heater, thermometer, reflux condenser, and funnel were obtained from Conraws Ltd. Enugu, Nigeria.

Methodology for AISO Epoxidation

30 g of AISO was placed in the beaker, and 4 g of acetic acid was added to the three-necked round bottom flask; after 5 min, 0.75% w/w of sulfuric acid was added, the mixture was stirred continuously for 30 min. Then, 16.15 g of 30 wt% aqueous hydrogen peroxide was added dropwise to the reaction mixture; the mole ratio of the component used is 1:1.5:0.5, representing the oil, hydrogen peroxide, and acetic acid. After the complete addition of hydrogen peroxide, the mixture was heated under reflux at the temperature (65 \(^\circ{\rm C}\)) and with rapid stirring to achieve fine oil dispersion. 10 g of \({\text{Na}}_{2}{\text{CO}}_{3}\) was first dissolved in 100 mL of distilled water, and the collected samples of Epoxidised (AISO) were dissolved in distilled water to remove the free acids and other unreacted components. A separating funnel separated it (Nwosu-obieogu et al. 2024).

Modeling and Optimization of Epoxidation of Azadirachta indica Seed Oil Using Response Surface Methodology

The experiment was designed using Design-Expert version 10, utilizing the box-behnken technique on three factors and a three-level. The independent variables are the catalyst concentration, time, and temperature; the iodine and oxirane values were considered the response. Seventeen experimental runs were generated from the simulation (Nwosu-obieogu et al. 2020; Oke et al. 2021). Design expert employed a one-way ANOVA to assess the responses independently. Also, the p-value should be less than 0.05 for the model to be significant. The experimental design is presented in Table 1.

Table 1 Summary of the experimental factors coding

Modeling and Optimizing Azadirachta indica Seed Oil Epoxidation Using Particle Swarm Optimization

PSO is a stochastic optimization approach miming birds' dynamic movements and communication. The technique utilizes theoretical models comprising a swarm searching for space to explore the location for the best solution to attain the global optimum solution (Fang et al. 2022; Jalil et al. 2022; Khayati 2020). The particle's position update rule is shown in Eqs. (1) and (2)

$$p\left(k+1\right)=p\left(k\right)+v(k+1)$$
(1)
$$v\left(k+1\right)=wv\left(k\right)+{c}_{1}{r}_{1}\left(pBest-p\right)+{c}_{2}{r}_{2}\left(gbest-p\right)$$
(2)

where p is the particle’s current position; v is the particle’s velocity; c1 and c2 are the cognitive and social acceleration constants; pbest and gbest are the particles and global best position of the swarm, respectively; r1 and r2 are two random numbers, between 0 and 1; empirical results have shown that a constant inertia wmax = 0.9, wmin = 0.4, acceleration coefficient c1 = 2, c2 = 2 and iteration of 10 provides good convergence in the resolution and optimization of systems proven in the literature and our systems (Nassef et al. 2019; Huang et al. 2019; Jalil et al. 2020). The PSO program was executed in MATLAB 8.4 (R2015b) software environment, and the parameters used in this work are illustrated in Table 2.

Table 2 The PSO parameters

Characterization of the Pure and Epoxidized AISO

Standard procedures described by the Association of Official Analytical Chemists (AOAC 2003) were used to characterize the pure and epoxidized AISO.

Iodine Value

Wijs solution was employed to determine the iodine value of the pure and epoxidized AISO. The solution consists of iodine monochloride (ICI) in glacial acetic acid and carbon tetrachloride. The unsaturated bonds present take up the iodine to saturate the double bonds, and the remaining unabsorbed iodine is then titrated using sodium thiosulphate (Nwosu-obieogu et al. 2024).

The iodine value (IV) was calculated from Eq. (3) below.

$$IV=\frac{\left(B-S\right)\times M\times 12.69}{W}$$
(3)

where:

IV = iodine value of samples, S = volume of Na2S2O3 used for sample (mL), B = volume of Na2S2O3 used for blank (mL), W = weight of sample used (g), M = molarity of the Na2S2O3 used.

Oxirane Value

The oxirane value was analyzed by the direct method of HBr in AA (Paquot), as presented in Standard Methods for the Analysis of Oils compiled by the Union of Pure and Applied Chemistry (Nwosu-obieogu et al. 2024).

The oxirane value of the AISO was evaluated using the formula in Eq. (4):

$$OV = \frac{{\left( {B - S} \right) \times M \times A_{o} \times 100}}{1000W}$$
(4)

where:

Ao = atomic weight of oxygen

M = molarity of the NaOH used

W = weight of sample used (g)

S = volume of NaOH used for sample (mL)

B = volume of NaOH used for blank (mL)

Specific Gravity

The specific gravity was obtained using Eq. (5) below, adopted by Nwosu-obieogu et al. (2024).

$$Specific \; gravity=\frac{weight \; of \; oil}{ weight \; of \; the \; equal \; volume \; of \; water}$$
(5)

Fourier Transform Infrared Spectroscopy (FT-IR)

FTIR analytical techniques were complementary methods (after chemical processes) to characterize structural functionalities in the pure and epoxidized AISO (Nwosu-obieogu et al. 2024). FTIR spectrum of the epoxidized oil was recorded with a Shimadzu 8400SFTIR spectrophotometer over the range 4500 – 350 cm−1 using ten scans at a resolution of 4 cm−1.

Gas Chromatography–Mass Spectrometry (GC–MS)

The GCMS of the pure and epoxidized AISO was prepared by dissolving 50 mg of the sample in 10 mL of toluene, 0.2 mL of Tetramethylammonium hydroxide (TMAH), and 4 mL of water placed in a conical flask, the mixture was allowed to settle at a temperature of 80 °C and a flow rate of 1.5 mL/min. The fatty acid profiles of the samples were analyzed. The peaks were identified on a mass-selective detector interfaced with a GCMS (Nwosu-obieogu et al. 2022c).

Results and Discussion

Physicochemical Properties of Pure and Epoxy AISO

The physicochemical properties of AISO are shown in Table 3; the iodine value of 86.73 indicates that the oil is a non-drying oil consisting predominantly of unsaturated fatty acids; it decreased when the oil was epoxidized, which confirms a successful transformation of the unsaturated triglycerides to oxirane rings and reduction in structural residues when epoxidized, the oxirane value of 5.134 indicates the level of oxirane oxygen content available after successful epoxide formation, the specific gravity increased due to the decrease in unsaturation of the AISO. These findings agree with reports of rubber seed oil and huracrepitan seed oil epoxidation by Nwosu-obieogu et al. (2020) and Aguele et al. (2021), respectively.

Table 3 Physicochemical properties of pure and epoxy AISO

One Factor at a Time Analysis for Epoxidation of Azadirachta indica Seed Oil

Table 4 shows the effect of the concentration of the catalyst, time, and temperature on the iodine and oxirane value of the EAISO. The result showed that at a concentration of 1.8, the maximum oxirane value for the catalyst was obtained. As the catalyst concentration increased, the oxirane value increased from 1.56 to 2.10. It then decreased at a catalyst concentration of 2.4; the decrease is due to cleavage on the oxirane ring while time and temperature were kept constant at 21,600 s and 60 °C, respectively, at a reaction time of 14,400 s, constant catalyst concentration (1.8 mol/L) and temperature (60 °C), the maximum oxirane value (4.62) was obtained, hence progressively reduced with increase in time, at a temperature of 50 °C, the highest oxirane value (3.83) was obtained. In comparison, temperature and catalyst concentration were kept constant at 21,600 s and 1.8 mol/L; furthermore, an increase in temperature decreased the oxirane value. The observation may be attributed to the reversible reaction of the peroxyacetic acid formed in situ and the undesired reactions of the ring-opening of the oxirane group. Also, it was observed that as the iodine value decreased, the oxirane value increased, indicating the disappearance of the C=C bonds on the AISO for the attachment of an oxirane ring; these findings indicate that process parameters (catalyst concentration, time, and temperature) had a significant effect on the oxirane value, with the impact of time and temperature more economically feasible. The design of the experiment was developed from the process parameters. This result coincides with the studies of Okieimen et al. (2002) for rubber seed oil, (Matusiak and Milchert 2018) for canola oil, and Nwosu-obieogu et al. (2022a) on the epoxidation of Azadirachta indica oil using microwave sulfonated melon seed peel catalyst.

Table 4 One factor at a time (OFAT) parameter effect on oxirane value

Modeling of Epoxidation of Azadirachta indica Seed Oil Using Response Surface Methodology

The experimental design for the epoxidation of the AISO was analyzed using the Box Behnken design, which implemented the RSM technique in Design Expert 10.0. The experimental values of the dependent variable (iodine and oxirane value) with their corresponding independent parameters are presented in Table 5. The minimum iodine value (8.32 g I2/100g) and the maximum oxirane value (5.134%) were obtained at the concentration of the catalyst (1.2), time (14,400 s), and temperature (50 °C); the results obtained showed the effect of varying the process variables on the epoxide formation (Aguele et al. 2021; Nwosu-obieogu et al. 2024; Nwosu-obieogu and Umunna 2021).

Table 5 Experimental run for the EAISO development

The multiple regression analysis of the data gave a second-order polynomial equation in coded factors shown in Eqs. (6) and (7)

$$\begin{aligned} & Iodine \; value \; \left( {{\text{gI}}_{2} /100{\text{g}}} \right) = + 26.19 - 5.87A - 0.1825B - 3.63C - 6.33AB \\ & \quad + 4.75AC + 2.22BC - 3.41A^{2} - 3.66B^{2} + 5.72C^{2} \\ \end{aligned}$$
(6)
$$\begin{aligned} & Oxirane \; value \; \left( \% \right) = + 3.40 + 0.6968A - 0.5057B + 0.2200C + 0.5910AB - 0.8125AC \\ & \quad - 0.5325BC + 0.7005A^{2} + 0.2505B^{2} - 0.8130C^{2} \\ \end{aligned}$$
(7)

where A is the concentration of the catalyst(mol/L), B—time(s) and C—temperature (°C).

The plot of the predicted vs. the actual response of the iodine and oxirane value of AISO was observed in Figs. 1a and 2a; the figure shows that the predicted values are quite close to the experimental values, which validates the reliability of the model and shows a good fit. The points were distributed around a straight line, indicating the model's high level of predictability. Figures 1b and 2b show the relationship between the model predictions and actual experimental results for the iodine and the oxirane value; the diagonal can be a line of perfect prediction; points above the line represent model under-prediction, while the points below represent model over-prediction. It helped ascertain if the models were satisfactory. The data was plotted against a theoretical normal distribution. The projections formed an approximately straight line, and a departure from this line indicates a falling out from a normal distribution. A closer observation of this plot shows that most points are closer to the line, showing that the values were normally distributed (Aguele et al. 2021; Matusiak and Milchert 2018; Nwosu-obieogu et al. 2022d).

Fig. 1
figure 1

a Predicted against actual plot for iodine value. b Normal plot of residuals for iodine value

Fig. 2
figure 2

a Predicted against actual plot for oxirane value. b Normal plot of residuals for oxirane value

ANOVA Analysis of Epoxidation of Azadirachta indica Seed Oil

ANOVA statistically evaluated each model's significance and their interactions; in Table 6, the iodine value result displayed the high impact of all the terms of the model except for the single term (B), based on the f-value and p-values, the linear terms (A and C), interaction terms, and quadratic terms impacted iodine value significantly. Similar results were reported by Nwosu-obieogu et al. (2020), Aguele et al. (2021), and Matusiak and Milchert (2018) on the epoxidation of rubber, huracrepitan, and canola seed oil, respectively. The standard deviation (1.08), mean (25.5, C.V% (4.23), f-value (65.19), p-value (0.0001), and adequate precision (42.9733) indicate that the model is acceptable and strong for optimization. The lack of fit of the model (8.19), which is not significant, supports a good fit for the model. The models’ fitness was expressed by the coefficient of determination of R2 (0.9908), adjusted R2 (0.9790), and predicted R2 (0.8530), suggesting consistency and a good agreement between the experimental and the predicted data. Table 7 presents the findings of the variance analysis for oxirane value. The model's R2, adjusted R2, and predicted R2 were 0.9882, 0.9731, and 0.8114, respectively. These values indicate a strong fit for the model and a high correlation between the observed and expected values. The whole model demonstrated statistical significance (p-value < 0.05). The single, interaction, and quadratic factors were found to be significant. The standard deviation (0.1669), coefficient of variation (C.V %) (4.82), and adequate precision (27.9199) suggest that the model is acceptable and resilient for optimizing oxirane value, these results corroborate with the findings of Nwosu-obieogu et al. (2024) on melon seed oil epoxidation.

Table 6 ANOVA result of AISO iodine value
Table 7 ANOVA result of AISO oxirane value

Parametric Studies of Epoxidation of Azadirachta indica Seed Oil

The effect of the interaction terms of the process parameter on the iodine value is shown in Fig. 3; it was observed that an increase in catalyst concentration and time led to a reduction in the iodine value; also, in Fig. 3b, an increase in catalyst concentration and temperature led to a decline in the iodine value, in fig c, an increase in time and temperature led to a decrease in the iodine value, this observation can be attributed to C=C bonds present in the oil that is been converted to epoxides, also this results to the more active site with lesser reacting species (Jalil et al. 2022). The effect of the concentration of the catalyst and time on the oxirane value is presented in Fig. 4. The result showed that a rise in the concentration of the catalyst increases the oxirane value; this is attributed to the sufficient catalyst that proceeded the reaction faster; subsequently, a rise in the reaction time increased the oxirane value, depicting the unsaturated fatty acid triglyceride conversion to oxirane (Nwosu-obieogu et al. 2024). Figure 4 also shows the combined effects of the catalyst concentration and temperature on the oxirane value. The 3D plot showed that an increased catalyst concentration increases the oxirane value.

Fig. 3
figure 3

a Effect of catalyst concentration and time (temperature—60 °C). b Catalyst concentration and temperature (time—21,600 s). c Effect of time and temperature (catalyst concentration—1.2 mol/L) on the iodine value

Fig. 4
figure 4

a Effect of catalyst concentration and time (temperature—60 °C). b Catalyst concentration and temperature (time—21,600 s). c Effect of time and temperature (catalyst concentration—1.2 mol/L) on the oxirane value

Similarly, an increase in the reaction temperature increases the oxirane value. The combined effects of reaction time and temperature on the oxirane value, as shown in Fig. 4, depicted that an increase in the reaction time increases the oxirane value, confirming that epoxides are formed at higher temperatures (Oke et al. 2021). In contrast, the reaction's temperature decreases the oxirane value; this observation is attributed to the reversible reaction of the peracetic acid formation. The observations show that the process parameters significantly impacted the oxirane value, and the quadratic effects had more impact on the oxirane value than the interaction terms with negative effects. This corroborates the findings of Nwosu-obieogu et al. (2020) on rubber seed oil epoxidation and Aguele et al. (2021) on huracrepitan seed oil epoxidation.

Optimization of the Epoxidation of Azadirachta indica Seed Oil Using Response Surface Methodology and Particle Swarm Optimization

AISO epoxidation optimization using the RSM and PSO optimization tools is shown in Table 8. At a concentration of catalyst of 1.200 mol/L, 14,400 s reaction time, and temperature of 50 °C, the optimal iodine value—RSM(12.7), experimental (8.25) and PSO (7.9) gI2/100g and oxirane value—RSM, (4.910%), experimental (5.134%) and PSO of 5.172% were obtained. For the performance metrics, both techniques (RSM and PSO) suggested a good agreement with the experimental value at minimal residual error, as the goal of the process was actualized with a reduced iodine value and a high oxirane value even though PSO gave the best optimal condition; the findings also show the efficiency of PSO in optimizing the epoxidation process of AISO. This result conforms with the reports of Matusiak and Milchert (2018) on the optimization of the canola oil epoxidation process and Oke et al. (2021) on the rubber seed oil epoxidation using a hybrid genetic algorithm.

Table 8 Comparison of the optimal values of EAISO by RSM and PSO techniques

Characterization of the Epoxidized AISO

Fourier Transform Infrared Spectroscopy (FTIR)

The FTIR graph for the pure AISO shown in Fig. 5 showed peaks of 2922.2 and 2723.1 cm−1, indicating (=C–H) stretch alkanes. The peak (1744.4 cm−1) validates the presence of carbon–carbon double bonds (C=C) in the pure AISO; this indicates that the oil contains unsaturated fatty triglycerides that can be suitably epoxidized. (Yigezu 2021; Jalil et al. 2022). 1461.1 cm−1 corresponds to the C–C ethylene stretch, indicating that the oil can be used for the epoxidation process; 1159.2 cm−1 stated the presence of C-H. Double bond groups suggest the oil has not been activated or used for any reaction. The FTIR spectra of the H2SO4 epoxy Azadirachta indica oil in Fig. 6 showed the presence of O–H stretching alcohol at 3381.9 peaks indicating that the epoxidation process, as well as the utilization of sulfuric acid, the (C=C) bond disappears, there is an absorption band of 1714.6 cm−1 in the EAISO spectrum which showed the presence of cyclic ether group of the epoxy functionality. This analysis agrees with the findings of Yigezu (2021) for podocarpus falcatus oil, Oke et al. (2021) for Hevea Brasiliensis oil, and Rizwan and Naseem (2018) for Citrullus lanatus oil (Fig. 7).

Fig. 5
figure 5

FTIR for pure Azadirachta indica oil

Fig. 6
figure 6

FTIR for H2SO4 epoxy Azadirachta indica oil

Fig. 7
figure 7

GCMS graph for pure Azadirachta indica oil

Gas Chromatography–Mass Spectrometer (GC–MS)

The GCMS analysis in Table 9 presents AISOs' constituents at various percentages. It showed eight peaks with their corresponding fatty acid values. Oleic acid (5.312%) and linoleic acid (56.32%) showed that Azadirachta indica oil contains fatty acid triglyceride, indicating its suitability for epoxide formation; Table 10 showed the development of the epoxides from AISO confirmed by the presence of pentanone (Serinyel et al. 2010); an epoxide formed during the decarboxylation process of the peroxyacetic acid on the oil. Stigmasterol and sitosterol, which are plant seed oil metabolites with a cholesterol structure, are enhanced during epoxidation and utilized in cosmetics and pharmaceutical industries (Cao et al. 1995; Ramadan 2015; Hang and Dussault 2010). The graphs in Figs. 7 and 8 identify the various peaks where the fatty acids and epoxides are formed. This result coincides with the findings of researchers who worked on the epoxidation of neem seed oil using a microwave-assisted melon seed peel catalyst by Nwosu-obieogu et al. (2022a).

Table 9 Pure AISOs’ GCMS analysis
Table 10 Epoxidized AISOs’ GCMS analysis
Fig. 8
figure 8

GCMS for H2SO4 epoxy Azadirachta indica oil

Conclusion

This study successfully explored the potential of developing epoxides from AISO via process parameter impacts, modeling, optimization, and characterization using FTIR and GCMS. BBD was employed in the RSM analysis to model the relationship between the variables and the response. The 3D, contour, and ANOVA results confirm the model's acceptability and the process parameters significantly affect the response. The maximum oxirane value was actualized at a catalyst concentration (1.8), time (14,400 s), and temperature (50 °C). The normal probability plots depicted high predictability with the distributions of the points within the straight line. The experimental value of oxirane (5.134%) obtained at 1.2 concentration of catalyst, 14,400 s, and 50OC agreed with the predicted (RSM) value of 4.910% and PSO (5.172%) with minimum residual error. These significant findings enable estimating and evaluating epoxides from AISO in the chemical industry and confirm the optimizations' techniques (RSM and PSO) rapid optimization of AISO epoxidation at a reduced time.