Introduction

Municipal solid waste (MSW) accumulates promptly due to the huge consumption of resources and the low efficiency in recycling worldwide. Polyolefins of polyethylene (PE) and polypropylene (PP) are the most manufactured types of plastics, which accounted for 29.8% and 19.4% of total plastics produced, respectively (PlasticsEurope 2020). Moreover, waste polyolefins (WP) accounted for a large proportion of plastic waste in MSW (Aboulkas and El Bouadili 2010; Wang et al. 2020; Weckhuysen 2020). Also, the gravimetric composition of WP varies in different regions due to different local consumer demands. Therefore, it is highly imperative to find a resolution to valorize plastic waste, especially WP with different gravimetric compositions, into energy properly.

Pyrolysis or thermal decomposition is a useful way to convert WP into value-added fuels (Dobó et al. 2019; Fox and Stacey 2019; Zhang et al. 2020; Pan et al. 2021a), such as oil (gasoline and diesel) and gas (ethane and propane) (Butler et al. 2011; Benavides et al. 2017). Therefore, many studies have been explored extensively in order to better understand the pyrolysis of WP. One way to investigate the effects of operating parameters on pyrolysis is conducting thermogravimetric (TG) analysis. Although this analytical experiment is kinetically governed, some pyrolysis characteristics can be inferred. For instance, PE and PP’s thermal decompositions took place within the temperature ranges of 355–477 °C and 329–467 °C, respectively (Li et al. 2016). Considering the gravimetric composition, 55 wt% of PE in WP changes the pyrolysis temperature range to 329–477 °C. In general, the literature reports that the decompositions of PE and PP were mainly processed from 400 to 500 °C (Jung et al. 2010), with the maximum pyrolysis rates at 462 °C and 451 °C, respectively (Ciliz et al. 2004; Duque et al. 2020). All these previous works were conducted with a low pyrolysis heating rate. Note that the maximum pyrolysis temperature of waste PE/PP is around 450 °C under TG conditions (Seo et al. 2003; Heydariaraghi et al. 2016; Miandad et al. 2016; Miandad et al. 2017; Santos et al. 2018; Milato et al. 2020; Ren and Huang, 2020; Jin et al. 2021).

The pyrolysis conversion is also sensible to other parameters than temperature and heating rate, such as gravimetric composition, carrier gas flow rate, and residence time. Although plenty of studies are devoted to solely determining the gravimetric composition’s effect on pyrolysis oil production, other studies show that the parameters’ interactions are dominated in oil production (Quesada et al. 2019). Nevertheless, most studies were conducted by adopting the one-factor-at-a-time statistical design (Papuga et al. 2016; Lopez et al. 2017; Kassargy et al. 2018; Santos et al. 2018; Parku et al. 2020). This method cannot capture the effects of variable interactions and may lead to misleading conclusions (Montgomery 2017). Therefore, we must implement a statistical method to reveal the parameters’ interactions. Here, we present the use of an artificial neural network to correlate operating parameters and a genetic algorithm to optimize the process to obtain the highest oil yield.

WP gravimetric composition has a complicated impact on the oil production (Abnisa et al. 2019). Plenty of research efforts are devoted to determining the effect of WP gravimetric composition on the oil production. However, the intricate relationship between WP gravimetric composition and oil production is lacking till now. Therefore, this work performs twenty-one experiments, based on the central composition factorial design, to explore the interactive effects of the WP gravimetric composition, carrier gas flow rate, and residence time on oil yield and diesel selectivity (C9–C23). Based on the outcomes of the experiments, a hybrid model of a genetic algorithm coupled to an artificial neural network is used to optimize the oil production’s conditions. Moreover, FTIR and GC/MS were used to qualify the oil’s functional groups and components.

Materials and methods

Plastic samples

The samples of waste polyolefin (Fig. A.1) were purchased from Zhoushan Jinke Renewable Resources Co., Anhui, China. PE and PP were separately recovered from MSW and granulated into ~3 mm particles. The elemental analyses of PE and PP samples are listed in Table A.1.

Pyrolysis experiments

This work used the experimental setup developed in Pan et al. (2021b) and followed the same procedure to ensure an inert atmosphere by using the purge gas of nitrogen. The total mass of the gravimetric composition PE:PP used in each experiment was 5 g (± 0.001 g). The pyrolysis experiments were conducted at a moderate temperature of 450 °C and a low heating rate of 6 °C/min. The detailed conditions of the twenty-one pyrolysis experiments can be consulted in Table A.2, where gravimetric composition, carrier gas flow rate, and residence time were studied in the ranges of 20–80 wt%, 20–60 min, and 0–100 mL/min, respectively. Notably, 0 mL/min (non-sweeping atmosphere) indicates the nitrogen supply is stopped when the reactor starts to heat up. Following the central composition factorial design, fifteen experiments (T1–T15) were carried out to obtain the pyrolysis product yields for training the artificial neural network algorithm. Moreover, six other experiments (V1–V6) were carried out to acquire the experimental data for testing the artificial neural network algorithm. Each experiment was performed twice to ensure reproducibility.

Artificial neural network coupled with genetic algorithm

Figure A.2 sketches the methodology of coupling the genetic algorithm and artificial neural network. The artificial neural network was adopted to quantify the interactive effects of three independent variables (gravimetric composition, carrier gas flow rate, and residence time). The artificial neural network could be divided into three layers, i.e., input, hidden, and output (Rezk et al. 2022). Data training in the hidden layers established the mathematical expressions between the dependent and independent variables. Subsequently, the genetic algorithm optimized the relationship established by the artificial neural network (Pan et al. 2021a).

Oil characterization techniques

FTIR and GC/MS analyses were used to characterize oil products. Table A.3 summarizes the specific descriptions of both techniques.

Results and discussion

Accuracy of artificial neural network

Figure 1 depicts the experimental oil yields of the 21 experiments and the artificial neural network predictions in the testing and training sets. The gas and char yields established by the artificial neural network are presented to verify the mass balance and idealize a pyrolysis pathway. Char yield is the percentage of final solid product in the total product. This study investigated the PE/PP co-pyrolysis under PE mass fraction of 20–80 wt%, residence time of 20–60 min, and carrier gas flow rate of 0–100 mL/min. The oil, gas (Fig. A.3a–b), and char (Fig. A.3c–d) yields hovered within the ranges of 64.24–78.87 wt%, 9.90–21.38 wt%, and 6.04–14.90 wt%, respectively. The yield of WP pyrolysis oil obtained by Quesada et al. (2020) was in the range of 56.90–68.10 wt%. Ahmad et al. (2015a) recovered 69.82 wt% and 80.88 wt% oil fractions, and 28.84 wt% and 17.24 wt% gas fractions from PP and PE thermal decompositions, respectively. Singh et al. (2019) conducted PE and PP pyrolysis at 450 °C. Consequently, gas yields of 8.5 wt% and 9.5 wt%, and char yields of 4 wt% and 8 wt% were obtained from PE and PP thermal decompositions, respectively. Mlynková et al. (2008) also carried out the pyrolysis of WP (75 wt% PE) at 450 °C. They recovered 79.7 wt% of oil, 14.4 wt% of gas, and 5.9 wt% of char, comparable to this study’s values.

Fig. 1
figure 1

Experimental and artificial neural network predicted productions of pyrolysis products in a training set and b testing set

Compared with the artificial neural network predictions, the relative errors for oil yields — the target product of this work — were 1.1% in training and 2.6% in testing sets, while the predicted gas and char yields had the maximum absolute relative errors of 6.07% and 2.65%, and 9.68% and 12.37% in the training and testing sets, respectively. Nonetheless, the global R-squared values and the average absolute relative deviations (AARD) between the experiments and the artificial neural network predictions were 0.9999 and 1.03%, and 0.9985 and 5.65% in training and testing sets, respectively. It indicated that the artificial neural network predictions were very accurate.

Interactive effects of conditions on oil yield

Figures 2 and A.46 depict the interactive effects of conditions on oil, gas, and char yields, respectively. The oil production raised from 64.20 to 79.00 wt% as the PE mass fraction increased (Figs. 2a and A.4a–b). The increase in oil production could be ascribed to the PE pyrolysis oil yield being higher than the PP pyrolysis oil yield under the same operating conditions in the case of being wholly decomposed at a moderate temperature (450–500 °C) (Kassargy et al. 2018; Singh et al. 2019; Quesada et al. 2020; Antelava et al. 2021). Figure A.5a–c show that the gas production decreased with the increasing PE mass fraction under longer residence times because the pyrolysis of PP could generate more gas products than PE pyrolysis (Quesada et al. 2020).

Fig. 2
figure 2

Interactive effects of different conditions on oil yield under a 0 mL/min, b 20 wt% PE, and c 20 min, respectively

Longer residence time aggravated the WP pyrolysis oil’s secondary cracking (Mastral et al. 2002; Hasan et al. 2021; Maqsood et al. 2021), thereby resulting in a reduction in the oil production (Figs. 2b and A.4c–d) and an enhancement in gas production (Fig. A.5d–e) under the PE mass fractions of 20 wt% and 50 wt%, respectively. Prolonged residence time might also convert oil into char through charring reactions (Williams and Slaney, 2007). Therefore, the char production increased with the increasing residence time (under 20 wt%, Fig. A.6d). The residence time had complex impacts on the oil (Fig. A.4d) and gas (Fig. A.5f) productions under 80 wt% PE. In the investigated residence time range, the oil production enhanced from 73.54 to 78.87 wt% under 0 mL/min and decreased from 77.25 to 75.91 wt% under 100 mL/min. Oppositely, the gas production reduced from 12.39 to 11.25 wt% under 0 mL/min and raised from 15.77 to 17.87 wt% under 100 mL/min. Extending the residence time would affect the oil and gas production in two ways: (i) exacerbating the oil’s secondary cracking for oil depletion and gas generation (Pan et al. 2022), and (ii) promoting the gas recondensation for oil formation and gas consumption (Wang et al. 2019). The gas recondensation reaction dominated under lower carrier gas flow rates, which increased oil production and decreased gas production as the residence time prolonged. However, the oil secondary cracking reaction held a dominant position under higher flow rates of carrier gas, which were responsible for the reduction in oil production and the enhancement in gas production when the residence time extended. Char production was regulated by two reactions: (i) the char gasification reaction for char consumption and (ii) the oil charring reaction for char formation (Pan et al. 2021b). The char gasification reaction dominated the char production, thereby increasing the residence time resulted in a reduction in char production (6.46–6.07 wt%, Fig. A.6f).

The flow rate of carrier gas determines the duration of volatiles in the main reaction zone (Xu et al. 2020). Therefore, raising the flow rate of carrier gas could determine the oil production through three aspects: (i) shortening the duration of oil in the main reaction zone to suppress the oil secondary cracking for oil consumption (Pan and Debenest 2022), (ii) shortening the duration of gas in the main reaction zone to suppress the gas polycondensation and repolymerization for oil generation, and (iii) suppressing the oil charring for oil consumption (Pan et al. 2021b). Figures 2c and A.4e–f show that the oil production reduced with the raising carrier gas flow rate under shorter residence times (20–40 min) and lower PE mass fractions (20–68 wt%), indicating the suppressing of gas polycondensation and repolymerization dominated the oil production. However, the enhancement in carrier gas flow rate resulted in a rise in oil production under shorter residence times (20–40 min) and higher PE mass fractions (68–80 wt%), indicating the suppressing of oil secondary cracking and charring dominated the oil production. Figure A.4f shows that the oil production reduced with the improving carrier gas flow rate under the longest residence time (60 min), despite of the PE mass fraction’s variation, which revealed that the oil production was dominated by the suppressing of gas polycondensation and repolymerization. On the other hand, the increase in carrier gas flow rate resulted in an enhancement in gas production (Fig. A.5g–i) due to the mass conservation of volatiles. Increasing the flow rate of carrier gas resulted in a decrease of 0.8 wt% in char production (Fig. A.6g–i), which could be contributed to the suppressing of oil charring reaction (Cheng et al. 2021).

Optimization of oil production by genetic algorithm

As discussed in the “Interactive effects of conditions on oil yield” section, it can be concluded that the gravimetric composition (PE mass fraction) and operating conditions (carrier gas flow rate and residence time) had a complicated interaction on the oil production. Therefore, a genetic algorithm coupled to an artificial neural network was adopted to optimize oil production. Figure 3 exhibits that the highest oil production of 78.87 wt% was obtained under the PE mass fraction of 80 wt%, the residence time of 60 min, and the carrier gas flow rate of 0 mL/min. Table A.4 indicates that the optimized oil production obtained in this work is comparable to other studies. It should be noted that the volatiles could spontaneously flow out of the reactor at 0 mL/min because of the differential pressure arising from the WP pyrolysis process (Muhammad et al. 2019; Singh et al. 2019).

Fig. 3
figure 3

Optimization of oil production by genetic algorithm

FTIR analysis

Figure 4 shows that the FTIR spectral peaks’ abscissas (wavelength) were the same in different oil samples, indicating that the main functional groups’ types were not affected by the gravimetric composition and operating conditions (Pan et al. 2021b). Table A.5 lists the specific main functional groups of the oil sample under the optimal condition (80 wt% PE, 60 min, and 0 mL/min), which are −CH2−, −C=C−, −C=CH2, −CH3, and =C−H. The WP pyrolysis oil samples were mainly composed of alkanes and alkenes (Ahmad et al. 2015b; Alves et al. 2021).

Fig. 4
figure 4

FTIR spectra of oil samples

GC-MS analysis

Figure 5 depicts the carbon number’s distributions of the oil samples under different conditions. The oil from the thermal cracking of WP was composed of hydrocarbons ranging from C8 to C34 (Costa et al. 2021; Gu et al. 2020; Zhou et al. 2021). Hydrocarbons of C9, C10, C13, C15, and C17 accounted for the most significant proportions in the oil. Figures 5a and A.7 show that the carbon number distributions were similar under the same gravimetric composition, regardless of the changes in operating conditions. The increase in PE mass fraction in WP resulted in a dramatic reduction in C9, C10, and C13. When the PE mass fraction enhanced from 20 wt% (T4) to 80 wt% (T14), C9, C10, and C13 proportions reduced from 13.46 to 4.03%, from 7.66 to 5.13%, and from 17.92 to 8.38%, respectively. This could be ascribed to the reduction of PP content, which can generate large proportions of C9, C10, and C13 (Zhou et al. 2021; Rezk et al. 2022). It is worth noting that when hydrocarbons exceeded C21, the enhancement in the carbon number resulted in a reduction in the proportion of hydrocarbons. Taking sample T14 into consideration, the proportion of hydrocarbons reduced from 6.23 to 0.10% as the carbon number increased from C21 to C34.

Fig. 5
figure 5

Carbon number distributions of the oil samples under different conditions: a T1–5 under 20 wt% PE; b WP and WPE pyrolysis oils (Pan et al. 2021b)

Figure 5b illustrates the difference in carbon number distribution between WP (sample T14) and waste PE (WPE) (Pan et al. 2021b) pyrolysis oil samples. The WP pyrolysis oil had higher contents of hydrocarbons ranging from C9 to C21. On the other hand, hydrocarbons ranging from C23 to C36 accounted for more enormous proportions in the WPE pyrolysis oil, attributing to the long carbon chain structure in WPE (Miandad et al. 2017).

The oil can be classified into different fractions based on the carbon number (Yang et al. 2016; Luo et al. 2020). In this study, the oil was categorized as light (C8–C12), middle (C13–C20), and heavy (C21–C34) fractions (Costa et al. 2021; Zhou et al. 2021). Figure A.8 shows that the middle fraction occupied the most significant proportion in oil. The light, middle, and heavy fractions hovered within the ranges of 13.87–32.09%, 42.81–52.85%, and 19.58–43.12%, respectively. Consequently, the mean molecular weight of WP pyrolysis oil fluctuated within a relatively wide range of 215.62–270.79 g/mol. The light, middle, and heavy fractions were 32.56%, 44.99%, and 23.30% in sole PE pyrolysis oil; and 15.16%, 51.81%, and 33.02% in sole PP pyrolysis oil, respectively (Ahmad et al. 2015a). These results were within the ranges of WP pyrolysis oil fractions obtained in this study.

Figure 6 depicts the effects of operating conditions and gravimetric composition on the distributions of mean molecular weight and oil fractions. Figure 6a demonstrates that the raise in PE mass fraction led to a reduction in the light fraction and an enhancement in the heavy fraction, whereas it had little effect on the middle fraction. Consequently, the oil’s mean molecular weight raised from 224.45 to 252.65 g/mol as the PE mass fractions increased, which could be ascribed to the PE pyrolysis oil being heavier than the PP pyrolysis oil (Zhou et al. 2021). The WP pyrolysis oil was much lighter than the PE pyrolysis oil, of which the mean molecular weight hovered within the range of 291.00–325.23 g/mol (Pan et al. 2021b).

Fig. 6
figure 6

Effects of gravimetric composition and operating conditions on the distributions of oil fractions and mean molecular weight: a PE mass fraction (samples of T4, T9, and T14); b residence time (samples of T6, V4, and T10); c carrier gas flow rate (samples of T7, V4, and T8)

Figure 6b shows that prolonging residence time would decrease the light fraction and increase the heavy fraction, whereas it slightly impacted the middle fraction. Accordingly, the extension of residence time resulted in a persistently increase (from 239.90 to 256.44 g/mol) in the mean molecular weight of WP pyrolysis oil, which was contributed to the intensified secondary cracking of oil’s light fraction (López et al. 2011; Wang et al. 2021).

Figure 6c illustrates that the increase in carrier gas flow rate resulted in a reduction in both light and middle fractions and an increase in the heavy fraction. Improved flow rate of carrier gas shortened the duration of pyrolytic volatiles in the main reaction zone, which regulated the oil fractions in four ways: (i) inhibiting the heavy fraction’s secondary cracking for the formation of middle and light fractions, and for the consumption of heavy fraction, (ii) inhibiting the middle fraction’s secondary cracking for the light fraction formation and the middle fraction consumption, (iii) inhibiting the light fraction’s secondary cracking for the light fraction consumption, and (iv) suppressing the gas polycondensation for the light fraction formation (Xu et al. 2020; Pan et al. 2021b). The experimental results revealed that (i) and (iv) dominated the formation of oil fractions when the carrier gas flow rate changed. Therefore, the mean molecular weight of pyrolytic oil increased from 237.52 to 254.68 g/mol as the carrier gas flow rate raised.

Diesel selectivity

The WP pyrolytic oil could be served as a proxy for commercial diesel (ranging from C9 to C24 (Milato et al. 2020)). Therefore, the interactions of operating conditions and gravimetric composition on the oil’s diesel selectivity had been evaluated through the artificial neural network. Figure A.9 shows that the pyrolytic oil’s diesel selectivity varied from 79.02 to 91.18%. Moreover, Fig. 7 shows that the highest diesel selectivity of 91.42% was obtained under the PE mass fraction of 20 wt%, the residence time of 20 min, and the carrier gas flow rate of 0 mL/min (non-sweeping atmosphere).

Fig. 7
figure 7

Optimization of diesel selectivity by genetic algorithm

Reaction pathways

Figure 8 shows that the random and chain-end scissions predominated in the initial stage of WP pyrolysis. WP was decomposed into a small amount of volatiles (gas and oil) and a large amount of intermediate product (wax) (Wong and Broadbelt 2001; Onwudili et al. 2009). The oil produced was mainly composed of low-molecular alkenes (Das and Tiwari 2018). The experimental results showed that the increase in residence time led to a decrease in light fraction and an increase in heavy fraction. This is because that the proportion of low-molecular alkenes generated in the initial stage was decreased under longer residence times. In the mid-stage of WP thermal decomposition, the intermediate was further pyrolyzed into oil (alkanes and alkenes) through hydrogen transfer reactions to a great extent. As shown in Fig. A.11, the formations of alkanes and alkenes were attributed to intermolecular and intramolecular hydrogen transfer reactions (Zolghadr et al. 2021; Rodríguez-Luna et al. 2021), respectively. Part of char and gas were simultaneously generated through the intermediate’s charring and β scission reactions. Subsequently, part of the oil’s light fraction was ulteriorly decomposed into gas and char through the secondary cracking and charring reactions in the late stage of WP pyrolysis, respectively. Therefore, the experimental oil production decreased, gas production increased, and char production increased with the increasing residence time. In the meantime, part of the gas (olefins) was synthesized into light-fraction oil through the polycondensation and repolymerization reactions. A small part of char was also pyrolyzed into gas through the gasification reactions in this stage.

Fig. 8
figure 8

Schematic diagram of pyrolysis mechanism of WP

Conclusion

This study quantitatively investigated the interactions of operating conditions and gravimetric composition on the oil production from the WP pyrolysis. The ANN-GA coupled with a central composition factorial design was utilized to obtain the highest oil yield. The findings revealed that the highest oil yield of 78.87 wt% was obtained under 80 wt% PE, 60 min, and 0 mL/min. The increases in PE mass fraction, residence time, and carrier gas flow rate resulted in a decrease in light fraction and an increase in heavy fraction, thereby leading to the production of heavier oil with a larger mean molecular weight. The oil’s diesel selectivity was used as a quality index of WP pyrolysis oil. The highest diesel selectivity of 91.42% was obtained under 20 wt% PE, 20 min, and 0 mL/min. Moreover, the WP optimal pyrolysis conditions for specific regions could be obtained via ANN-GA coupled with a central composition factorial design.