Enhancing Bioenergy Production from the Raw and Defatted Microalgal Biomass Using Wastewater as the Cultivation Medium

Improving the efficiency of using energy and decreasing impacts on the environment will be an inevitable choice for future development. Based on this direction, three kinds of medium (modified anaerobic digestion wastewater, anaerobic digestion wastewater and a standard growth medium BG11) were used to culture microalgae towards achieving high-quality biodiesel products. The results showed that microalgae culturing with anaerobic digestate wastewater could increase lipid content (21.8%); however, the modified anaerobic digestion wastewater can boost the microalgal biomass production to 0.78 ± 0.01 g/L when compared with (0.35–0.54 g/L) the other two groups. Besides the first step lipid extraction, the elemental composition, thermogravimetric and pyrolysis products of the defatted microalgal residues were also analysed to delve into the utilisation potential of microalgae biomass. Defatted microalgae from modified wastewater by pyrolysis at 650 °C resulted in an increase in the total content of valuable products (39.47%) with no significant difference in the content of toxic compounds compared to other groups. Moreover, the results of the life cycle assessment showed that the environmental impact (388.9 mPET2000) was lower than that of raw wastewater (418.1 mPET2000) and standard medium (497.3 mPET2000)-cultivated groups. Consequently, the method of culturing microalgae in modified wastewater and pyrolyzing algal residues has a potential to increase renewable energy production and reduce environmental impact.


Introduction
In total, 84% of the world's energy demand is still met by non-renewable energy sources, and the ever-growing energy consumption is depleting the total fossil energy storage [1]. In the meantime, the consequences of the large utilization of fossil fuels have led to serious environmental issues, such as toxic compound discharge, global warming, the extinction of species, desertification etc. [2]. Renewable energy could contribute significantly to adjusting the global energy structure, thus, has been regarded as the inevitable choice for sustainable development. Renewable energy includes biomass energy, wind energy, solar energy, water energy, geothermal energy, etc., and has the characteristics of wide resource distribution, great utilization potential and small environmental impacts. Among these, biomass energy is a significant source of renewable carbon that can be transformed into endless conventional solid, liquid, and gaseous fuels [3].
Traditional biomass energy sources, e.g., crops, are always criticized due to the concern of land use competition for food production and slower rates of plant growth [4]. Microalgae, as a major class of biomass energy, are outstanding attributed to their various advantages, e.g., rapid growth, high lipid content, carbon sequestration ability, and low demands of environmental conditions (barren land, saline-and waste-water) [5]. The esters and glycerol rich in microalgae are good raw materials for the preparation of liquid fuels. The calorific value of bio-oil prepared by microalgae pyrolysis is relatively high. Moreover, the nutrients from wastewater can be effectively used by microalgae for its biomass growth. Consequently, the concept of utilizing wastewater for the cultivation of microalgae has drawn much attention in terms of the simultaneous treatment of wastewater and producing renewable energy.
Effluent from anaerobic digestion reactors has been seen as an ideal medium for microalgal growth regarding the reduced level of organics and variety of residual nutrients (e.g., N, P) in the liquid [6]. Although the challenge of lacking key elements in the wastewater can bring a negative impact on the growth of microalgae [7], the approach of artificial wastewater adjustment, e.g., addition of a certain amount of missing elements, has been deployed and proven to be an efficient way to address this problem to cultivate a good amount of algal biomass [8]. When considering the entire life cycle, barriers such as algal residues after lipid extraction have hitherto hindered the application of microalgal biomass energy. Algal residues account for about 70% of the dry weight of microalgae biomass and still contain large amounts of carbohydrates and proteins [9]. In most studies, the subsequent utilization of algae residues was not mentioned after culturing microalgae and extracting lipids. The energy held by photosynthesis in the biomass may be recovered quickly and cleanly using the pyrolysis method, which outperforms biological methods in terms of effectiveness, cost, and energy balance [10]. Therefore, quantifying the potential of biofuel generation from defatted algal biomass would be important for renewable energy production.
Besides the biofuel generation from microalgal biomass, the environmental impact of the pyrolysis process needs to be assessed to identify any trade-offs [11]. Some drawbacks have been reported; for example, the relative contents of nitrogen compounds in the residues of defatted microalgae could increase during the pyrolysis [12]. Furthermore, the addition of a catalyst would increase the contents of CO in pyrolysis products of Haematococcus pluvialis residues [13]. Moreover, the pyrolysis of Isochrysis after oil extraction required 2591 kJ/kg of energy [14]. The whole process of bioenergy production from microalgae residues can be fully understood by using life cycle assessment (LCA) [15,16]. In different culture conditions, such as using different wastewaters or modified wastewater, the compositions of microalgae and subsequent microalgae residues would be impacted [17]. Consequently, the properties of the compositions of microalgae have a direct effect on pyrolysis products [18]. The assessment of the pyrolysis of microalgae residues gained by different culture methods has not hitherto been sufficiently investigated.
In this study, the algae strain Desmodesmus sp. was chosen as the model microalgal species and cultured in modified anaerobic digestion wastewater (MAW), original anaerobic digestion wastewater (AW), and BG11 media, respectively. The lipid was firstly extracted from the microalgae cultivated in three culture medias, then, the algae residues were pyrolyzed at a temperature range of 350 • C to 750 • C. The lipid contents and compositions of microalgae were compared, and the differences in thermal decomposition behaviour of three kinds of microalgae residues were evaluated. Through the evaluation of the pyrolysis products, the optimum pyrolysis temperature was determined, and the life cycle assessment was carried out. This study provides a new insight into the thorough utilization of microalgae to produce high-quality biodiesel through the improvement of the microalgae culture medium and the reuse of the defatted microalgal biomass. A follow-up LCA analysis provides an environmentally sustainable view of the proposed strategy. The results have great significance to the improvement of the microalgae culture medium, the optimization of the technological process of biofuel production, and the strategy of environmental control in the pyrolysis process.

Algal Strain and Culture Conditions
Desmodesmus sp. EJ 8-10 (hereinafter referred to as EJ 8-10) is an algal strain that was identified in a river in Beijing, China. With an initial inoculum ratio of 10% (v/v), EJ 8-10 was pre-cultivated in flasks (250 mL). The following steps were the precise cultivation conditions: BG11 medium (autoclaved) (Appendix A, Table A1); lighting intensity: 120 ± 2 mmol/m 2 /s; temperature: 27 ± 1 • C; lighting period: 14 h:10 h (light:dark); pH: 7.5 [19]. Anaerobic digestion wastewater (AW) was gathered from a pig farm in the Shunyi District of Beijing. The supernatant was collected for microalgae cultivation after centrifugation (10,000 rpm, 15 min). The composition is shown in Table A2 (Appendix B). High concentrations of NH 4 + -N could reduce microalgal vitality; the collected supernatant was diluted to 10% with deionized water [20]. To address the nutritional deficit in wastewater, the modified anaerobic digestion wastewater (MAW) medium was created by additionally adding ammonium ferric citrate (C 6 H 8 FeNO 7 ), dipotassium hydrogenphosphate (K 2 HPO 4 ), and magnesium sulfate heptahydrate (MgSO 4 ·7H 2 O) [21]. The standard medium of BG11 was used as a control group, and 0.1 OD 680 of initial microalgal biomass was inoculated into three mediums (AW, MAW, and BG11) and cultured for 14 days under identical circumstances as previously indicated. The experiments were run three times for each group.

Lipid Extraction and Fatty Acid Analysis
After culture, microalgae were collected by centrifuging at 10,000 rpm for 10 min. The total lipid content was then determined by using an improved approach based on Abou-Shanab et al. [22]. The mixed solvent (volume ratio of chloroform, methanol, and water was 1:2:0.8) was added to ground algae powder (mass ratio of algae powder to quartz sand was 1:3) and then oscillated for 5 min [23]. After standing for 15 min, the mixture was centrifuged (6000 rpm, 2 min) and the upper extract was collected. After the above operation was repeated for precipitation two times, all extracts were merged. Extracts were mixed thoroughly with chloroform, methanol, and water until the final volume ratio was 1:1:0.9. Chloroform solution was gathered following delamination of the combination. Solvent chloroform was evaporated in a rotary evaporator (vacuum, 60 • C), and the obtained lipid was weighed. We collected algae residues (hereinafter referred to as AR) and used them for subsequent pyrolysis to prepare bio-oil. The experiments were carried out three times for each group. The lipid contents were calculated by the following formula: where the lipid mass (mg) is W1, the algae mass (mg) is Wb, and the lipid content (%) is C. Preparative FAMEs and gas chromatography-mass spectrometry (GC-MS) analyses were used to assess the fatty acid composition. The preparation process of FAMEs refers to a method of Wang et al. [24]. We added 10 mL of the mixture (methanol, concentrated sulfuric acid, and chloroform had a volume ratio of 4.25:0.75:5) to a screw-top glass bottle (25 mL) containing 0.1 g of the sample [25]. In a 90 • C water bath (Cole-Parmer, Vernon Hills, IL, USA), transesterification was performed for 90 min. A meticulous collection of the FAME-containing chloroform layer was made for GC-MS analysis. A flame ionization detector and an RTX-Wax capillary column (30 m 0.32 mm 0.25 mm; Restek Corp., Bellefonte, PA, USA) were placed in the GC (QP2010; Shimadzu Corp., Kyoto, Japan). The oven's temperature was initially set at 100 • C (held for three minutes), then was increased to 200 • C at 4 • C/min, and increased to 250 • C (held for five minutes) at 3 • C/min. The carrier gas (helium) flow rate was regulated at 30 mL/min, and the injector temperature was fixed at 230 • C. The NIST Mass Spectral Database was used to identify the FAME compounds, and the peak regions of the compounds were compared to those of the external standard (C18:2) (Sigma Aldrich, Saint Louis, MN, USA) to determine their amounts [19]. The experiments were conducted three times for each group.

Elemental Analysis, Thermogravimetric Analysis (TGA), and Pyrolysis of Algal Residues
Each lipid-extracted AR sample's primary elements composition (C, H, N, and S) was determined using an elemental analyzer (EA; Flash EA-1112, Thermo Scientific, Waltham, MA, USA). The experiments were performed three times for each group. Using Equations (2)-(4), the higher heating values (HHV) of AR samples were determined [26,27]: where C, H, and N stand for the sample's respective carbon, hydrogen, and nitrogen contents (%), respectively. In the TGA procedure, nitrogen (99.999% purity, 100 mL/min) was used as a shielding gas while 2-4 mg samples were pyrolyzed from 50 • C to 800 • C at 20 • C/min. The samples were pyrolyzed and examined using pyrolysis-gas chromatography-mass spectrometry (Py-GC-MS), which consists of a rapid pyrolyzer (Frontier Labs 3030i, Koriyama, Fukushima, Japan) coupled with a GC-MS (Agilent 7890A/5975C, Santa Clara, CA, USA) in order to describe thermal decomposition behaviour and pyrolysis products of AR.
The pyrolysis products at various pyrolysis temperatures (350 • C, 450 • C, 550 • C, 650 • C, and 750 • C) were examined to find the best pyrolysis conditions for AR. The GC-MS was operating under the same circumstances as before. Pyrolysis products were located by scanning the NIST11 database (National Institute of Standards and Technology, Gaithersburg, MD, USA) for the resulting mass spectra [28].

Life Cycle Assessment (LCA)
To achieve a more comprehensive overview of energy consumption and environmental impacts caused by the pyrolysis process (under corresponding optimal temperature) of ARs obtained under different culture conditions, an LCA investigation was conducted [11]. The study's chosen objectives and field of inquiry were compliant with the international standards for life cycle assessments, i.e., ISO 14040 [29].

LCA Goals and System Boundaries
Utilizing LCA serves the objective of assessing the environmental impact of AR gathered in various media on the manufacture of the best pyrolysis products. Figure 1 depicts the boundary of the system, and the energy consumption during system operation is regarded as the input. The depreciation of pyrolysis equipment, the energy consumption of adding additional nutrients to the modified medium, and the impact of microalgae growth on the environment were excluded [30]. It is worth noting that the pollutants in the process were not treated as extras.

LCA Stages
In order to examine the pyrolysis stage of AR, this study's assessment ignored the energy transfer in the pyrolyzer and instead focused on the energy consumption of the pyrolysis furnace and online analysis [30]. The average energy consumption is 2.2 kWh for each real-time analysis. Based on the pyrolysis product results, the energy required to raise the temperature from ambient (25.6 °C) to each group's optimum conditions was estimated, and air pollutant emissions were determined using data from a prior study [11].

LCA Model
The formula below was used to determine environmental impact.: where EI stands for the environmental impact, Qi for the ith emission's quantity, and Fi for the influence of the ith emission on the environment as a whole [11]. Equation (6) was used to further standardize the EI for the comparative assessment of various sorts of impacts [30]: where R is the accepted benchmark and SEI stands for the standardized environmental effect.

Selected Parameters to Describe the Environmental Impacts
The evaluation details four aspects of environmental impact, including photochemical ozone synthesis (kg VOC, CO, CH 4 -eq), acidification (kg SO 2 , NO X -eq), eutrophication (kg PO 4 , NO X -eq), and global warming (kg CO 2 , CH 4 , NO X , CO-eq) [31]. The energy consumption and environmental impact was determined using 1 kg biomass dry weight EJ 8-10 residue for assessment.

LCA Stages
In order to examine the pyrolysis stage of AR, this study's assessment ignored the energy transfer in the pyrolyzer and instead focused on the energy consumption of the pyrolysis furnace and online analysis [30]. The average energy consumption is 2.2 kWh for each real-time analysis. Based on the pyrolysis product results, the energy required to raise the temperature from ambient (25.6 • C) to each group's optimum conditions was estimated, and air pollutant emissions were determined using data from a prior study [11].

LCA Model
The formula below was used to determine environmental impact.: where EI stands for the environmental impact, Q i for the ith emission's quantity, and F i for the influence of the ith emission on the environment as a whole [11]. Equation (6) was used to further standardize the EI for the comparative assessment of various sorts of impacts [30]: where R is the accepted benchmark and S EI stands for the standardized environmental effect.
The weighting factor was determined by the method of target distance as the following equation (Equation (7)): Bioengineering 2022, 9, 637 6 of 15 the unit (mPET2000) of standardized environmental potential impact is represented by the standard person equivalent, and W is the weighting factor for each particular parameter. E is the overall regional environmental impact potential in 1990, whereas EN is the regional environmental impact potential in 2000 [31].

Plotting and Statistical Analysis
Origin 9.8 (OriginLab, Northampton, Massachusetts, USA) was used for plotting, and data analysis was done by using SPSS 19.0 (IBM Corporation, Armonk, NY, USA). Prior to statistical analysis, the data were examined for normality and homogeneity of variance. Nonparametric test methods were employed for the analysis if the variables were not normally distributed. If variables were normally distributed, the F-test (ANOVA) was used to assess the significant difference in data. The significance level was 0.05. Data are presented as mean ± standard deviation.

Microalgal Growth, Lipid Accumulation and Fatty Acid Composition
Overall, culturing microalgae with AW can obtain the highest lipid accumulation (21.8%, Figure 2). Furthermore, the microalgae cultured in the modified anaerobic digestion wastewater (MAW) had the highest biomass production (0.78 ± 0.01 g/L) compared with those (0.35-0.54 g/L) in the other two groups. The outcomes demonstrated that anaerobic digestion of wastewater could increase lipid accumulation when used to cultivate microalgae. Tan et al. [32] explained that the anaerobic wastewater had balanced nutrients with many trace elements that were not present in the medium, but the low content of trace elements such as P, Fe and Mg in AW could not guarantee the rapid growth of microalgae. Those nutrients are all necessary for photosynthesis at the growth stages of microalgae, therefore, the biomass production of microalgae with the addition of P and Mg was the highest in MAW [32]. However, the lipid content (14.2%) of microalgae decreased after culturing in MAW. The main elements added to the modified medium were Mg and P, and P could promote lipid accumulation [33]. However, Mg was related to photosynthesis, and microalgae might first choose to accumulate carbohydrates instead of lipids in the case of sufficient carbon sources [34]. Therefore, it was possible that lipid content was lower in modified wastewater. In this experiment, the lipid productivity of microalgae in MAW was higher than that found in the study by Chinnasamy et al. [35], which may be due to the nutrient shortage in the medium during the microalgae growth.
ing equation (Equation (7)): the unit (mPET2000) of standardized environmental potential impact is represented by the standard person equivalent, and W is the weighting factor for each particular parameter. E is the overall regional environmental impact potential in 1990, whereas EN is the regional environmental impact potential in 2000 [31].

Plotting and Statistical Analysis
Origin 9.8 (OriginLab, Northampton, Massachusetts, USA) was used for plotting and data analysis was done by using SPSS 19.0 (IBM Corporation, Armonk, NY, USA) Prior to statistical analysis, the data were examined for normality and homogeneity of variance. Nonparametric test methods were employed for the analysis if the variables were not normally distributed. If variables were normally distributed, the F-test (ANOVA) was used to assess the significant difference in data. The significance level was 0.05. Data are presented as mean ± standard deviation.

Microalgal Growth, Lipid Accumulation and Fatty Acid Composition
Overall, culturing microalgae with AW can obtain the highest lipid accumulation (21.8%, Figure 2). Furthermore, the microalgae cultured in the modified anaerobic digestion wastewater (MAW) had the highest biomass production (0.78 ± 0.01 g/L) compared with those (0.35-0.54 g/L) in the other two groups. The outcomes demonstrated that anaerobic digestion of wastewater could increase lipid accumulation when used to cultivate microalgae. Tan et al. [32] explained that the anaerobic wastewater had balanced nutrients with many trace elements that were not present in the medium, but the low content of trace elements such as P, Fe and Mg in AW could not guarantee the rapid growth of microalgae. Those nutrients are all necessary for photosynthesis at the growth stages of microalgae, therefore, the biomass production of microalgae with the addition of P and Mg was the highest in MAW [32]. However, the lipid content (14.2%) of microalgae decreased after culturing in MAW. The main elements added to the modified medium were Mg and P, and P could promote lipid accumulation [33]. However, Mg was related to photosynthesis, and microalgae might first choose to accumulate carbohydrates instead of lipids in the case of sufficient carbon sources [34]. Therefore, it was possible that lipid content was lower in modified wastewater. In this experiment, the lipid productivity of microalgae in MAW was higher than that found in the study by Chinnasamy et al. [35], which may be due to the nutrient shortage in the medium during the microalgae growth.  The first step of lipid extraction was conducted to evaluate the content of different compositions. The AW group had the largest amounts of saturated fatty acids (SFAs), polyunsaturated fatty acids (PUFAs), and monounsaturated fatty acids (MUFAs) of the three groups (Appendix C, Table A3). These three fatty acids were frequently used in skin care products, and when cultured with AW, their production was boosted (Figure 3a). When compared with Desmodesmus sp. cultured with 10% original wastewater (48.37 mg/g) in the study of Li et al. [19], the total fatty acids content was lower than that of microalgae harvested from the AW medium (74.74 mg/g); higher P content in AW medium may contribute to the higher fatty acids content in the microalgae. Microalgae cultured in wastewater had advantages in their contents of pentadecanoic acid, heptadecanoic acid, heptadecenoic acid (cis-10), eicosenoic acid and linoleic acid (Figure 3a), among which pentadecanoic acid, margaric acid, paullinic acid and linoleic acid are widely used in medical, pharmaceutical, and nutritional fields [36]. Heptadecenoicacid (cis-10) could balance the low temperature resistance and combustion performance of biodiesel, and play an important role in the production of biodiesel. In addition, the contents of pentadecenoic acid, hexadecanoic acid and octadecadienoic acid (anti-9,12) were significantly increased (p < 0.05) after culturing microalgae with modified wastewater (Figure 3b). These fatty acids are important industrial raw materials for the preparation of medicines, emulsifiers, and detergents, respectively. Hexadecanoic acid and octadecadienoic acid (anti-9,12) were two of the most suitable biofuel sources extracted from microalgae, and ARs obtained from modified anaerobic digestion wastewater were advantageous for these molecules, which coincide with the research of Wang et al. [24]. The lipid contents of microalgae from MAW (129.20 mg/g) were higher than those cultured with original piggery effluent (48.37 mg/g); the MAW (4.91 mg/L) contained higher P contents compared with the original piggery effluent (3.10 mg/L), which could theoretically contribute to a higher accumulation of lipid content in the microalgae [19]. Similar to the research of Moradianetal et al. [3], microalgal biomass has received much attention and esteem because of their powerful capabilities in various aspects of life and industry. The first step of lipid extraction was conducted to evaluate the content of different compositions. The AW group had the largest amounts of saturated fatty acids (SFAs), polyunsaturated fatty acids (PUFAs), and monounsaturated fatty acids (MUFAs) of the three groups (Appendix C, Table A3). These three fatty acids were frequently used in skin care products, and when cultured with AW, their production was boosted (Figure 3a). When compared with Desmodesmus sp. cultured with 10% original wastewater (48.37 mg/g) in the study of Li et al. [19], the total fatty acids content was lower than that of microalgae harvested from the AW medium (74.74 mg/g); higher P content in AW medium may contribute to the higher fatty acids content in the microalgae. Microalgae cultured in wastewater had advantages in their contents of pentadecanoic acid, heptadecanoic acid, heptadecenoic acid (cis-10), eicosenoic acid and linoleic acid (Figure 3a), among which pentadecanoic acid, margaric acid, paullinic acid and linoleic acid are widely used in medical, pharmaceutical, and nutritional fields [36]. Heptadecenoicacid (cis-10) could balance the low temperature resistance and combustion performance of biodiesel, and play an important role in the production of biodiesel. In addition, the contents of pentadecenoic acid, hexadecanoic acid and octadecadienoic acid (anti-9,12) were significantly increased (p < 0.05) after culturing microalgae with modified wastewater (Figure 3b). These fatty acids are important industrial raw materials for the preparation of medicines, emulsifiers, and detergents, respectively. Hexadecanoic acid and octadecadienoic acid (anti-9,12) were two of the most suitable biofuel sources extracted from microalgae, and ARs obtained from modified anaerobic digestion wastewater were advantageous for these molecules, which coincide with the research of Wang et al. [24]. The lipid contents of microalgae from MAW (129.20 mg/g) were higher than those cultured with original piggery effluent (48.37 mg/g); the MAW (4.91 mg/L) contained higher P contents compared with the original piggery effluent (3.10 mg/L), which could theoretically contribute to a higher accumulation of lipid content in the microalgae [19]. Similar to the research of Moradianetal et al. [3], microalgal biomass has received much attention and esteem because of their powerful capabilities in various aspects of life and industry.

Properties and Thermogravimetric Analysis of Microalgal Residues
Though with economic advantages, AW could significantly (p < 0.05) reduce the content of C, H, and N, leading to a decreased HHV when compared with the BG11 group. However, MAW could address this issue by increasing the C and H content to 47.24 ± 0.01% and 7.49 ± 0.28%, respectively. Notably, the contents of C and H were the key parameters determining the HHV of material, and the AR of MAW had a higher HHV, indicating a higher energy density, which would promote further pyrolysis products. The samples of Huang et al. [12] showed no significant difference in HHV before and after lipid extraction, indicating a similar energy potential of the material and residues of microalgae. It was clear from the results that further studies to convert microalgal residues into energy-related products are feasible.
TGA data, meanwhile (Figure 4a), added to the argument. In comparison to those harvested in BG11 and AW, microalgal residues harvested in MAW medium showed a slower rate of weight loss throughout the pyrolysis stage. Due to the continuing decompositions and carbonizations of AR, TG decreased slowly at the stage above 550 • C [37]. Microalgal residues obtained from the MAW had the highest contents of C (Table 1), which improved the thermal resistance of the AR and resulted in the highest amounts of thermal residues (46.75 wt%) [38]. Notably, the contents of N and S were also elevated in the group of MAW, indicating a potential higher production of harmful compounds, e.g., NO x , SO 2 , and HCN, during pyrolysis or subsequent combustion and upgrading processes. Therefore, a pyrolysis compound analysis for both valuable and toxic compounds was conducted.
Though with economic advantages, AW could significantly (p < 0.05) reduce the content of C, H, and N, leading to a decreased HHV when compared with the BG11 group. However, MAW could address this issue by increasing the C and H content to 47.24 ± 0.01% and 7.49 ± 0.28%, respectively. Notably, the contents of C and H were the key parameters determining the HHV of material, and the AR of MAW had a higher HHV, indicating a higher energy density, which would promote further pyrolysis products. The samples of Huang et al. [12] showed no significant difference in HHV before and after lipid extraction, indicating a similar energy potential of the material and residues of microalgae. It was clear from the results that further studies to convert microalgal residues into energy-related products are feasible.
TGA data, meanwhile (Figure 4a), added to the argument. In comparison to those harvested in BG11 and AW, microalgal residues harvested in MAW medium showed a slower rate of weight loss throughout the pyrolysis stage. Due to the continuing decompositions and carbonizations of AR, TG decreased slowly at the stage above 550 °C [37]. Microalgal residues obtained from the MAW had the highest contents of C (Table 1), which improved the thermal resistance of the AR and resulted in the highest amounts of thermal residues (46.75 wt%) [38]. Notably, the contents of N and S were also elevated in the group of MAW, indicating a potential higher production of harmful compounds, e.g., NOx, SO2, and HCN, during pyrolysis or subsequent combustion and upgrading processes. Therefore, a pyrolysis compound analysis for both valuable and toxic compounds was conducted.

Valuable and Toxic Pyrolysis Products of Algal Residues
Ingredients of the medium and pyrolysis temperatures could affect pyrolysis products, and forasmuch, the present study compared the pyrolysis products of microalgal residues from different microalgae media (BG11, AW and MAW) and different pyrolysis

Valuable and Toxic Pyrolysis Products of Algal Residues
Ingredients of the medium and pyrolysis temperatures could affect pyrolysis products, and forasmuch, the present study compared the pyrolysis products of microalgal residues from different microalgae media (BG11, AW and MAW) and different pyrolysis temperatures (over the range 350-750 • C). Consistent with other research results [39], aromatic hydrocarbons (benzenes, indenes, and their derivatives), aliphatic hydrocarbons (alkanes and olefins), phenols, fatty acids, nitrogen-containing compounds (amides, nitriles, and pyridines), polycyclic aromatic hydrocarbons (PAHs), and other trace components made up the majority of the pyrolysis products of ARs (ketones, alcohols, aldehydes, and furans).

Valuable Compounds
Among all pyrolysis products, aliphatic hydrocarbons are some of the products with economic value, which have great significance in the production of bio-oils. The percentage of valuable compounds in the pyrolysis products of microalgal residues from the MAW medium increased as the pyrolysis temperature rose from 350 to 750 • C and showed a single peak at 650 • C (39.47%, Figure 5a, Table A4 in Appendix D); compared with results of the BG11 (38.08%, 750 • C) and AW (36.05%, 750 • C) groups, MAW groups significantly reduced the pyrolysis temperature of optimal content and increased the relative content of valuable compounds in the pyrolysis products. The content of valuable compounds obtained by pyrolysis in microalgae residues from the MAW medium (39.47%) was higher than that from original anaerobically digested effluent medium (19.83%). The results agreed with the previous study that the content of valuable compounds from pyrolysis production in MAW medium increase by adding chemical components (ammonium ferric citrate, dipotassium hydrogenphosphate, and magnesium sulfate heptahydrate) [12]. Moreover, aromatic hydrocarbons in pyrolysis products are also high-value compounds, which can be used as transportation fuel additives in industry, and can also elevate octane numbers, thereby enhancing combustion efficiency [40]. The results showed that contents of aromatic hydrocarbons in the pyrolysis products of three groups of AR showed similar trends; aromatic hydrocarbons were the most abundant components in all pyrolysis products, and achieved the maximum value at 750 • C with the increase of pyrolysis temperature. The contents of aromatic hydrocarbons in the pyrolysis products of ARs in both BG11 (27.16%) and AW (24.54%) media were all lower than those in the MAW (32.07%) groups by comparison.

Toxic Compounds
Due to insufficient breakdown during pyrolysis, microalgae leftovers may potentially produce hazardous chemicals such as nitrogen-containing compounds and polycyclic aromatic hydrocarbons (PAHs), in addition to beneficial molecules, affecting the quality of bio-oil products and affecting environmental pollution with excessive emission of nitrogen oxides [41]. In the current investigation, there was a strong association (r = 0.93, 0.89, 0.87; p < 0.01) between pyrolysis temperatures and the relative concentrations of nitrogencontaining chemicals; the contents of nitrogen-containing compounds and PAHs produced by pyrolysis of microalgae residues in MAW groups (16.48%, 0%; 650 • C) were lower than those in the BG11 groups (26.60%, 2.15%; 750 • C) and AW groups (24.33%, 2.97%; 750 • C) at the temperature at which the maximum quantity of valuable pyrolysis products emerged. Except for nitrogen-containing compounds and PAHs, sulphides were also toxic products to consider. The ARs of MAW groups had the highest sulphur contents (0.95 ± 0.01%, Table 1), indicating that there might be a high potential for the production of sulphur dioxide, SO 2 , during the pyrolysis process, and further improvement was needed [42].
In conclusion, when compared to BG11 and AW media, ARs from the MAW medium promoted higher levels of valuable compounds (such as aromatic hydrocarbons and aliphatic hydrocarbons), while the levels of toxic substrates (such as nitrogen-containing compounds and PAHs) were not significantly different (p > 0.05). It is important to note that choosing the ideal pyrolysis temperature involves more than just balancing the needs of the goal product with the trade-offs between harmful substances, valuable products, and energy consumption. of the goal product with the trade-offs between harmful substances, valuable products, and energy consumption.  Table A4 (Appendix D).

Life Cycle Assessment of Microalgal Residues Pyrolysis
LCA was applied to the process of pyrolysis of microalgal residues in three media at the optimum pyrolysis temperature (650 °C), and the pyrolysis of ARs in the BG11 medium required the most energy (7463.5 MJ/kg); directly using anaerobic digestion wastewater (AW) reduced the required energy by 15.93%, and in the modified anaerobic digestion wastewater (MAW) group, it was further reduced by 7.09%. This was mostly related to an increase in biomass output in wastewater that had been modified and included more plentiful and balanced nutrients for microalgal growth [31]. The pyrolysis products from MAW groups generated overall lower environmental impacts (total, 388.9 mPET2000, Figure 6) for all four parameters selected, and led to a lower total environmental impact than the pyrolysis processes of AR obtained from AW (total, 418.1 mPET2000) and BG11 (497.3 mPET2000) media. The relative distribution of each environmental category during the pyrolysis operations did not differ significantly (p > 0.05) across the various groups ( Figure 6). Eutrophication, which was primarily brought on by NOx emissions, was induced by all groups' combined largest contributions (285.3, 239.8, and 222.8 mPET2000 by BG11, AW, and MAW, respectively) [41]. While the microalgae were given the ability to photosynthesise, the effects of pyrolysis product creation on global warming (13.6, 11.4, and 10.6 mPET2000 by BG11, AW, and MAW, respectively) were minimal. In summary, compared with the other two cultivation methods, modified anaerobic digestion wastewater could not change the proportion of a single environmental impact, but could significantly reduce total environmental impacts.

Life Cycle Assessment of Microalgal Residues Pyrolysis
LCA was applied to the process of pyrolysis of microalgal residues in three media at the optimum pyrolysis temperature (650 • C), and the pyrolysis of ARs in the BG11 medium required the most energy (7463.5 MJ/kg); directly using anaerobic digestion wastewater (AW) reduced the required energy by 15.93%, and in the modified anaerobic digestion wastewater (MAW) group, it was further reduced by 7.09%. This was mostly related to an increase in biomass output in wastewater that had been modified and included more plentiful and balanced nutrients for microalgal growth [31]. The pyrolysis products from MAW groups generated overall lower environmental impacts (total, 388.9 mPET 2000 , Figure 6) for all four parameters selected, and led to a lower total environmental impact than the pyrolysis processes of AR obtained from AW (total, 418.1 mPET 2000 ) and BG11 (497.3 mPET 2000 ) media. The relative distribution of each environmental category during the pyrolysis operations did not differ significantly (p > 0.05) across the various groups ( Figure 6). Eutrophication, which was primarily brought on by NO x emissions, was induced by all groups' combined largest contributions (285.3, 239.8, and 222.8 mPET 2000 by BG11, AW, and MAW, respectively) [41]. While the microalgae were given the ability to photosynthesise, the effects of pyrolysis product creation on global warming (13.6, 11.4, and 10.6 mPET 2000 by BG11, AW, and MAW, respectively) were minimal. In summary, compared with the other two cultivation methods, modified anaerobic digestion wastewater could not change the proportion of a single environmental impact, but could significantly reduce total environmental impacts.

Future Perspectives
In the process of microalgae growth, C source and N sources are the main nutrien sources for microalgae. The effluent of anaerobic digestion is a cheap and directly appl cable nutrient source, and the cost of microalgae culture will be greatly reduced. In a rea biogas project, while producing clean energy, the anaerobic digestion broth could be use to culture microalgae [43]. After extracting oil, the pyrolytic algae residues could also con vert wastes into industrial available energy. This could solve problems of the high trans portation cost of anaerobic digestion broth, as well as increased pollution to the surround ing environment in biogas engineering. Industries could avoid the loss and waste of ben eficial elements, and produce new bioenergy at the same time, which could not only mee the goal of sustainable development, but also reduce carbon emissions. In the conversio process of biodiesel, biomass needs to be separated or purified. The transesterificatio reaction requires the installation of methanol recovery equipment, and due to the for mation of soap, the treatment process is complex, and the purification of the product i difficult. In addition, with the increase of contents of S and N in ARs, harmful substance produced during pyrolysis will increase, such as sulphides and nitrogen-containing com pounds [44]. The technological process should be further optimized to avoid the increas of harmful substances and increase the content of bio-oil at the same time.

Conclusions
The modified anaerobic digestion wastewater (MAW), through the extra addition of C6H8FeNO7, K2HPO4, and MgSO4·7H2O, could significantly promote lipid quality i microalgal biomass, towards enhancing the quality of biofuels. The modified medium als improved the composition and properties of microalgal residues after the first step of lipi

Future Perspectives
In the process of microalgae growth, C source and N sources are the main nutrient sources for microalgae. The effluent of anaerobic digestion is a cheap and directly applicable nutrient source, and the cost of microalgae culture will be greatly reduced. In a real biogas project, while producing clean energy, the anaerobic digestion broth could be used to culture microalgae [43]. After extracting oil, the pyrolytic algae residues could also convert wastes into industrial available energy. This could solve problems of the high transportation cost of anaerobic digestion broth, as well as increased pollution to the surrounding environment in biogas engineering. Industries could avoid the loss and waste of beneficial elements, and produce new bioenergy at the same time, which could not only meet the goal of sustainable development, but also reduce carbon emissions. In the conversion process of biodiesel, biomass needs to be separated or purified. The transesterification reaction requires the installation of methanol recovery equipment, and due to the formation of soap, the treatment process is complex, and the purification of the product is difficult. In addition, with the increase of contents of S and N in ARs, harmful substances produced during pyrolysis will increase, such as sulphides and nitrogen-containing compounds [44]. The technological process should be further optimized to avoid the increase of harmful substances and increase the content of bio-oil at the same time.

Conclusions
The modified anaerobic digestion wastewater (MAW), through the extra additions of C 6 H 8 FeNO 7 , K 2 HPO 4 , and MgSO 4 ·7H 2 O, could significantly promote lipid quality in microalgal biomass, towards enhancing the quality of biofuels. The modified medium also improved the composition and properties of microalgal residues after the first step of lipid extraction, resulting in higher thermal resistance (thermal residue was 46.75 wt%) when compared to that from anaerobic digestion wastewater (AW) (17.61 wt%) and the standard BG11 (36.72 wt%) cultivation medium. MAW groups significantly reduced the pyrolysis temperature (650 • C) of optimal content and increased the relative content of valuable pyrolysis products, of which aliphatic hydrocarbons were 1.9 and 2 times as abundant as other groups, respectively, along with decreasing the contents of toxic compounds (nitrogen-containing compounds and PAHs) in products. Moreover, compared with the other two cultivation methods, MAW could not change the proportion of single environmental impacts, but could significantly reduce total environmental impacts when compared with the BG11 (reduced by 21.79%) and AW (reduced by 6.97%) groups, as indicated by the LCA.