Introduction

As Bangladesh is located in the subtropical/tropical region with a warm climate (15–35 °C), the biological wastewater treatment process would be the best option for wastewater management. Recently, the anaerobic processes of wastewater treatment have been gained special attention among the researchers due to economic and environmental benefits over conventional aerobic treatment (Khalekuzzaman et al. 2019). Anaerobic treatment of wastewater is very suitable for low-strength wastewaters such as domestic wastewater, and satisfactory removal efficiencies are to be observed (Kassab et al. 2010; Chen et al. 2014). Other advantages are: (a) zero consumption of oxygen which cuts down the cost of energy requirement, (b) very low sludge production that reduces the sludge handling cost, (c) biogas recovery, (d) low maintenance cost, and (e) high solids retention time at low hydraulic retention time (Gopala Krishna et al. 2009; Feng et al. 2009).

Among all high-rate anaerobic reactors, the anaerobic baffled reactor (ABR) is extensively used in treating wastewater. Initially, it was developed by McCarty and co-workers at Stanford University, and it can be described as a series of up-flow anaerobic sludge blanket reactors (UASBs) (Rongrong et al. 2010). The ABR has several numerous advantages over other reactors due to the unique compartmentalized structure, which is capable of separating anoxic denitrification and aerobic nitrification in the same reactor (Barber and Stuckey, 2000a). The other advantages are no special arrangement for gas and sludge separation, lower sludge yields, longer biomass retention times (SRT), lower hydraulic retention time (HRT), and its ability to separate acidogenesis and methanogenesis process longitudinally down the reactor (Langenhoff et al. 2000; Kuşçu and Sponza, 2005; Feng et al. 2008; Mohd Aris et al. 2016).

The major drawbacks of the anaerobic systems are the high concentration of nutrients and sulfur in the treated effluent (Alcántara et al. 2015; Zhu et al. 2015). The continuous discharge of such effluent in the natural water body without adequate treatment may cause severe eutrophication in aquatic ecosystems—the enrichment of nutrients (mainly nitrogen and phosphorus) in the water. In such a way, high levels of nutrients entering into the natural water body are responsible for the growth of algal blooms, spread of aquatic plants, and oxygen depletion, resulting in toxic conditions for wildlife (Saby et al. 2003; Sabumon, 2008; Wu et al. 2016). In order to protect the aquatic ecosystems, a reduction of nitrogen and phosphorus concentrations from the wastewaters before discharging into the natural water bodies is required for a sustainable sanitation system for meeting SDGs by 2030 in Bangladesh.

Therefore in recent years, special attention has been paid to conventional biological nutrient removal (BNR) processes that are based on microalgae–bacteria consortia systems would be an alternative technology with high nutrient removal efficiencies and nutrient recover possibilities (Rada-Ariza et al. 2017). The dual action of microalgae and nitrifying bacteria can reduce nutrient concentration through the process of assimilation and nitrification (Rada-Ariza et al. 2019). The advantage of using microalgae in the biological wastewater treatment process is that microalgae have an excellent affinity to uptake excess nitrogen (N) and phosphorus (P) through biomass assimilation (Lee and Lei, 2019). Although many traditional methods use chemicals to remove nitrogen, these methods are costly and release toxic compounds to the environment. Therefore, the development of algal–bacterial granules is considered as sustainable techniques for wastewater treatment as no energy is required for oxygen supply due to the photosynthetic oxygen production of microalgae (Tiron et al. 2017; He et al. 2018a, b). A general framework of organic matter and nutrient removal technique by microalgal–bacterial symbiosis is depicted in Fig. 1.

Fig. 1
figure 1

Organic matter and nutrients removal by algal–bacterial symbiosis system

During the treatment process, photosynthesis by microalgae produces oxygen and consumes carbon dioxide. This activity is beneficial in the biological wastewater treatment process since the oxygen produced by microalgae can be used by aerobic bacteria to degrade the organic matters and produce carbon dioxide that can be used by microalgae for photosynthesis (Medina and Neis, 2007; Boelee et al. 2012; Delgadillo-Mirquez et al. 2016). As photosynthesis activities take place between the microalgae and bacteria so no external supply of oxygen is required. Because the oxygen supplied by microalgae is used bacteria and the carbon dioxide produced by bacteria is used microalgae. Thus the photosynthesis cycle involves no cost for aeration during the treatment process in the PABR. Moreover, the microalgal–bacterial aggregate has good settling properties, which allow operating the system at low hydraulic retention time (HRT) without the risk of biomass washout (Nguyen et al. 2019). Also, filter media was used in last two chambers of the PABR to avoid the microalgae washout.

Recently, Khalekuzzaman et al. (2018a, b) have reported the existence of anoxic/aerobic conditions inside the anaerobic baffled reactor (ABR), which is a suitable environment for nitrogen removal without cost involvement. Besides, no external electron donor is required for denitrification as COD is present in the reactor acting as an electron donor that will actually improve COD removal performance by oxidizing a fraction of the COD in order to reduce nitrate (Barber and Stuckey, 2000b). Moreover, the microalgae–bacteria (sludge) harvested after wastewater treatment can be further used for bioenergy production as microalgae is a promising approach for future renewable energy sources (Quijano et al. 2017). In that case, the hydrothermal liquefaction (HTL) is the best alternative option to convert wet microalgae–bacteria into bioenergy at temperatures of 200–350 °C. Not only lipids but also proteins and carbohydrates can be converted into biocrude and biochar during the HTL process (Ponnuswamy et al. 2013; Guo et al. 2015). However, very little information is available on the process of HTL of PABR sludge and the characteristics of these products. So experiments were performed in a batch reactor, and a comparison between the microalgae and sludge samples was studied.

The microalgae–bacteria consortium is a sustainable and cost-effective approach for domestic wastewater treatment in developing countries like Bangladesh. However, there is no significant information available on the process of algal–bacterial symbiosis into the PABR. The process of algal–bacterial symbiosis was significantly affecting the nutrients removal performance on the photo anoxic baffled reactor (PABR). Therefore, the present research aimed to investigate the combined effect of microalgae–bacteria consortium in removing nutrient and organic matter and renewal use of sludge as a form of bioenergy.

Materials and methods

Reactor configuration

A laboratory scale of photo anoxic baffled reactor (PABR) was designed for the current study constructing with clear acrylic plastic. The proposed PABR configuration was the modification of the conventional anaerobic baffled reactor (ABR) by operating in the presence of natural sunlight. The schematic diagram of the proposed PABR is shown in Fig. 2, and the physical properties of the PABR are summarized in Table 1. The external dimensions of the PABR were 90, 20, and 30 cm for length, width, and depth, respectively. The effective volume of the reactor was 36 L. The PABR consisted of one front sedimentation chamber (ch-1), four regular baffled chambers (ch-2–ch-5) followed by two floated filter media chambers (ch-6 and ch-7). The volume of the sedimentation chamber (ch-1) was twice than other chambers. The reactor was rectangular, containing standing baffle, hanging baffle, and inclined baffle. The standing baffles divided the reactor into seven identical compartments. The hanging baffles which were designed in each compartment were divided into two portions, such as down-comer and up-comer zone. The ratio of the up-comer and the down-comer zone was 4:1, and the lower part of the hanging baffle was bent at 45° (called inclined baffle) to route the flow to the center of the up-comer chamber, thus achieving better contact and greater mixing among the substrate and biomass. The last two chambers of the reactor were loosely packed with floated filter media such as shredded plastic soft drink lid (approximately 400 \(\mathrm{g}\)) to reduce solid wash out. These filtered media are locally available, having a high specific surface area and less possible of clogging during wastewater treatment as specific gravity (0.93) is less than water.

Fig. 2
figure 2

The configuration of PABR (1—feeding tank, 2—peristaltic pump, 3—influent, 4—sampling port, 5—sedimentation chamber, 6—standing baffled, 7—hanging baffled, 8—floated filter media, 9—effluent)

Table 1 Physical parameters of the PABR

Reactor operation

The system was set up at the roof of the Civil Engineering Building, KUET (Khulna University of Engineering and Technology, Khulna, Bangladesh) to provide sufficient sunlight during the entire experiment. The PABR was operated under ambient temperature (29.7 \(\pm\) 4.2 °C) during the day with light irradiation of 34 \(\pm\) 4.8 µmoles/m2/s at morning, 26 \(\pm\) 5.2 µmoles/m2/s at noon, and 14 \(\pm\) 4.2 µmoles/m2/s at afternoon, respectively, at the outer wall of the PABR. Domestic wastewater was collected from the residential area of the KUET campus and stored at a feeding tank, which was equipped at a mixture pump for uniform feeding. The feeding tank was loaded every 15 days interval. The characteristics of raw domestic wastewater and effluent water are summarized in Table 2. The PABR was then fed by a peristaltic pump (WT600-1F, Longer pump Co., China) and was running the system 10 min in every hour, which was maintained by a Sino-timer (Sino timer, China). During the experiment, the hourly flow rate was 1.2 L for 30 h HRT.

Table 2 Characteristics of raw and effluent sample

Reactor inoculation

In the beginning, the PABR was inoculated with anaerobic septic sludge collected from the KUET residential area. Approximately 9 L of sieved sludge (using 2.0 mm mesh) was added to the reactor (3.0 L in the first chamber and 1.5 L in chamber 2–5), the remaining volume being filled with the effluent of septic tank including the chambers 6 and 7. The seeded sludge was containing total suspended solids (TSS) of 8960 \(\pm\) 1824 mg/L and volatile suspended solids (VSS) of 6880 \(\pm\) 1137 mg/L with a VSS/TSS ratio of 0.77. After inoculation, the reactor was allowed to stabilize at ambient temperature for 30 days without further modification. As septic tank effluent was used to inoculate the reactor so native microalgae species were grown automatically inside the reactor. Two major microalgae species of Chlorella sp. and Scenedesmus sp. were identified with the help of microscope at a magnification of 40x.

Hydrothermal liquefaction processes

Hydrothermal liquefaction (HTL) is a promising approach to degrade the wet wastes (such as sludge and microalgae) and recovery energy in the form of biocrude or biochar. In this study, HTL was done for three samples in which two sludge samples (solids content of 17%) were collected from PABR (at ch-1 and ch-2), and the microalgae sample (solids content of 15%) was collected from photobioreactor. Here, the microalgae sample makes a notable comparison with sludge samples in the case of functional group analysis. The experiments were performed in a 304-grade stainless steel batch reactor with a capacity of 25 ml. The reactor was specified as a 25 mL ppl liner that has been used to store the microalgal solution and sludge (Ch-1 and Ch-2), and the reaction occurred inside the liner with high pressure and temperature. The reactor had uniform wall thickness, which allowed the uniform heating of the reactor.

Approximately 15 ml of sample was taken into the reactor in each experimental run under hydrothermal conditions. The reactor was then taken into the muffle furnace and heated at 280 °C temperature for 60 min. After that, the reactor was taken out from the muffle furnace and cooled rapidly to room temperature by circulating water through the reactor before the product collection. Then, the reactor headspace gases were carefully released, and 30 mL of dichloromethane (DCM) was added to collect the liquefaction products. Here, DCM was used for solvent extraction purposes. The DCM not only extracted the organic components from liquid and solid products but also formed a homogeneous mixture with the organic solvents. Then, the mixed sample was collected into four separate centrifuge tubes. Finally, the tubes were centrifuged at 4000 rpm for 10 min in order to separate the phases (He et al. 2018a, b; Xu et al. 2019). After centrifugation, the organic phase dissolved in dichloromethane stays at the bottom, and the aqueous phase stays at the top, and the biochar stays in the middle that separates the organic phase with the aqueous phase. Then, the aqueous phase was carried out of the tube using a pipette. Afterward, the DCM soluble organic phase was taken out through filtering and then moved into a petri dish. Later on, the DCM soluble organic phase was dried at 40 °C for 1 h to evaporate the DCM solvent. Thus, the biocrude would be separated from DCM, and then FTIR analysis was conducted to find out the characteristics. The solids retained on the filter paper which were later dried at 100 °C for 24 h before conducting FTIR analysis (He et al. 2018a, b). This study was focus on the characteristics of the obtained biocrude and biochar, so the gases and aqueous phases were not further characterized.

FTIR (Fourier transform infrared spectroscopy) analysis

The composition of biocrude and biochar, and the functional group present in biocrude and biochar obtained from microalgae and sludge (Ch-1 and Ch-2) were assessed through FTIR spectroscopy study (Mahapatra and Ramachandra 2013; Prajapati et al. 2013). The FTIR analyses were conducted on biocrude and biochar at room temperature using Shimadzu (IRTracer-100) FTIR spectrophotometer (Ansari et al. 2017b). The extracts from these samples were observed for their functionalities in the spectrogram. The spectra were collected in the mid-IR range from 4000 to 800 cm−1 (at a spectral resolution of 2 cm−1), and data were analyzed using Microsoft Excel, irAnalyze-RAMalyze (Lab-Cognition GmbH and Co. KG), and Essential FTIR (Operant LLC).

Sampling and analysis

In order to investigate the nutrients removal performances in every chamber of the PABR, ammonia–N (\({\mathrm{NH}}_{3}-\mathrm{N})\), nitrate–N (\({\mathrm{NO}}_{3}^{-}-\mathrm{N})\), oxygen redox potential (ORP), orthophosphate \({(\mathrm{PO}}_{4}^{3-})\) and chemical oxygen demand (COD) analyses were performed chamber-wise (ch-1–ch-7) according to the standard methods for the Examination of Water and Wastewater (APHA et al. 2005). Also, biochemical oxygen demand (BOD), total nitrogen (TN), pH, electrical conductivity (EC), turbidity were analyzed for raw and effluent samples during the entire experiment.

Results and discussion

Samples were collected from the sampling port of each reactor chamber and analyzed in the laboratory followed standard methods. In this study, pH, electrical conductivity (EC), turbidity, total nitrogen (TN), biochemical oxygen demand (BOD, 5 days basis) were monitored for raw and effluent samples. The results showed pH 8.1 \(\pm\) 0.2 and 8.\(1\pm\) 0.1, EC 2.62 \(\pm\) 0.06 and 2.53 \(\pm\) 0.14 mS/cm, and turbidity 414.6 \(\pm\) 224.2 and 6.74 \(\pm\) 4.4 NTU for raw and effluent samples, respectively.

Real-time indication of ORP for nutrient removal

Zhao et al. (2016) have been already reported the correlation between the ORP value and nutrient removal performance. When ammonia is oxidized (during nitrification), the reactor will show positive OPR (e.g., mV) reading. On the contrary, negative ORP reading is observed when nitrate is reduced (during denitrification). During the study period, the ORP value was monitored every chamber of PABR (ch-1–ch-7), and the average, maximum, and minimum values are shown in Fig. 3. And the environmental conditions along with the chamber are shown in Table 3. These values indicated that there existed an anoxic/oxic condition in ch-1–ch-3, which is favorable for nitrification and denitrification. ORP value was dropped up to −215 mV in ch-1, indicating anaerobic conditions for NO3 depletion and phosphorus released. Moreover, the ORP values of ch-1–ch-3 clearly indicated that simultaneous nitrification and denitrification (SND) occurred inside these chambers were the main responsible for nitrate–N removal.

Fig. 3
figure 3

ORP concentration along with the chamber

Table 3 Biological environmental conditions along with the chamber

On the other hand, the ORP values of ch-4–ch-7 indicated that there existed an oxic environment inside the chambers, which was favorable for nitrification and microalgal assimilation. As ORP value was considered real-time control parameter for SND (Zhao et al. 1999), so it was concluded that ORP value automatically divided the PABR into two unit systems generally consist of an anoxic zone (ch-1–ch-3) and aerobic zone (ch-4–ch-7).

Organic matter removal

The organic matter present in wastewater is associated with two components, such as dissolved organic matter (soluble BOD) and suspended organic matter (particulate BOD). The part of suspended organic matters (particulate BOD) was settled down at the bottom of the reactor and decomposed by anaerobic microorganisms and converted into carbon dioxide, methane, and other compounds. The non-biodegradable (inert) fractions stayed at the bottom of the reactor. The dissolved organic matters (soluble BOD) did not settle down and dispersed in the wastewater liquid mass. They were decomposed by facultative microorganisms that have the ability to survive in the present as well as in the absence of dissolved oxygen. In the absence of dissolved oxygen, these facultative bacteria used nitrate as an electron acceptor to degrade the soluble organic matter (anoxic condition).

As the actual domestic wastewater was used during the experiments, the influent BOD concentrations were observed to be varying (in Fig. 4). The concentration of influent BOD was varying from 251 to 461 mg/L, and the organic loading rate (OLR) was 0.20–0.37 kg BOD/m3/day during the study period of 6 weeks. Figure 4 shows that removal efficiency directly depends on the organic loading rate (OLR). It was noticed that the increase in the organic loading rate (OLR) decreased in removal efficiency (%) (Gopala Krishna et al. 2009).

Fig. 4
figure 4

Influent and effluent BOD concentration and removal efficiency

Figure 5 shows the average COD concentration, and COD/NO3–N ratio (C/N ratio) of each chamber as the COD/nitrate ratio significantly affects the biological denitrification process (Chiu and Chung, 2003). It appeared that the COD concentration decreased along with the chambers when the wastewater passed through the ch-1–ch-7. The significant decrease in COD value was observed in the first chamber, as this chamber was designed as a sedimentation chamber. Most of the organic matter was removed in the first three chambers, and COD removals in the first three chambers were 70, 9, and 4%, in ch-1, ch-2, and ch-3, respectively. The COD concentration of the last four chambers was fluctuated due to biomass washout from these chambers.

Fig. 5
figure 5

Chamber-wise variation of COD and C/N ratio

Nitrogen removal

Nitrification (oxidation of ammonia) and algae assimilation were the main removal mechanism of ammonia–N. Oxygen supplied by microalgal–bacterial consortia was used by nitrifiers during the nitrification process. This is one of the main benefits of using the symbiosis of algae and bacteria in the reactor (Rada-Ariza et al. 2019). The average chamber-wise ammonia–N and nitrate–N concentration is plotted in Fig. 6. It was noticed that the concentration of ammonia–N was reduced down to the chamber of the PABR, but the value significantly fluctuated along with the chamber. The rate of ammonia–N reducing was high in the first three chambers (ch-1–ch-3), then slightly low in the middle chambers (ch-4 and ch-5), and again high in the last two floated media chambers (ch-6 and ch-7). Previously reported by Barber and Stuckey, (2000a) that a linear relationship between ammonia oxidation and mixing rate where ammonia removal improved with increased mixing rate. This indicated that the oxidation of ammonia was increased at a high mixing rate or high turbulence. At the same time, the hydrodynamic behavior of reactor was investigated by Khalekuzzaman et al. (2018a, b) and was reported that the dispersion number (mixing rate) was high in the first three chambers (ch-1–ch-3), then intermediate dispersion number in the middle chambers (ch-4 and ch-5) and no influence of dispersion number was observed in the last two floated filter media chambers (ch-6 and ch-7). As dispersion number was high in the first three chambers (ch-1–ch-3), so high removal of ammonia–N was noticed in the first three chambers rather than middle chambers due to the high oxidation of ammonia–N. On the other hand, the reducing rate of ammonia–N was high in the last two floated filter media chambers (ch-6 and ch-7) due to the uptake of ammonia–N by algae in the attached growth of algal biofilm inside the floated filter media. And the main ammonia–N removal mechanism in the last chambers was through algae assimilation followed by nitrification, while nitrification was the main ammonia–N removal mechanism in the first three chambers. Moreover, the average effluent ammonia–N was 34.9 mg/L, with the removal efficiency of 48.4%. Also, the ORP value was indicated that every chamber of the reactor was suitable for nitrification and algae assimilation.

Fig. 6
figure 6

Ammonia–N and nitrate–N concentration along with the chamber

On the other hand, nitrate–N was produced in every chamber of the reactor via the nitrification process, where released oxygen during the photosynthesis process was consumed by Nitrosomonas and Nitrobacter bacteria. The concentration of nitrate–N was firstly increased up to ch-4; after that, the concentration was decreased along with the chamber. Raw wastewater was stored in a feeding tank, so during this time, nitrification took place inside the feeding tank. That’s why a small quantity of nitrate–N was presented in the raw wastewater. The amount of nitrate–N presence in the chamber depends on the balance of the simultaneous nitrification and denitrification process (Zhang et al. 2007). And the concentration of nitrate–N was high in ch-4, up to 22.3 mg/L. It indicated that the amount of COD required as carbon sources were not enough for denitrification. Chiu and Chung (2003) also pointed out that sufficient COD/NO3–N was required to provide enough degradable carbon sources as an electron donor for denitrification. It was noticed in Fig. 5 that the COD/NO3–N ratio was very low in the middle two chambers (ch-4 and ch-5), as a result no denitrification occurred in those chambers. As a result, the concentration of nitrate–N was comparatively high in the middle two chambers (ch-4 and ch-5). At the same time, simultaneous nitrification and denitrification (SND) occurred in the first three chambers (ch-1–ch-3) due to the high COD/NO3-N ratio; as a result, the concentration of nitrate–N was comparatively lower than other chambers. The efficiency of the SND process in the first three chambers was 125, 58, and 51%, respectively. Although there existed a very low COD/NO3-N ratio in the last two floated filter media chambers, the nitrate–N concentration was reducing due to microbial assimilation of nitrate–N.

However, it was also observed that a very low value of ORP has prevailed only in the first three chambers of the PABR, indicating a suitable environment for denitrification. The rest chambers of the reactor were less effective for denitrification because of the low COD/NO3–N ratio (Qingjuan et al. 2008). As a result, the concentration of nitrate–N was quite high in the middle chambers. But the concentration of nitrate–N was reduced last two chambers due to microbial assimilation of nitrate–N in the attached growth of algal biofilm inside the floated filter media. In addition, the ORP value of the last four chambers indicated that the chambers of the reactor were suitable for microbial assimilation.

The NOx–N was produced in every chamber of the PABR via nitrification process, where it was to convert into nitrogen gas or microbial assimilation leading to the TN removal process. Figure 7 shows the TN concentration in both influent and effluent as well as removal efficiencies of the PABR during the study period. The results showed that the total nitrogen removal was not high, either ammonia–N or nitrate–N present in the effluent. As using domestic wastewater, the concentration of total nitrogen (TN) of the influent significantly fluctuated, and that would affect the TN removal efficiency. The average effluent TN concentration was 50.2 mg/L, with a removal efficiency of 36.8%.

Fig. 7
figure 7

Influent and effluent TN concentration and removal efficiency

Phosphate removal

Phosphate (Orthophosphate,\({\mathrm{PO}}_{4}^{3-})\) was firstly released in the anoxic zone by the phosphate accumulating organisms (PAOs) and then decreased in the oxic zone due to phosphate uptake by the denitrifying phosphate accumulating organisms (DPAOs) (Wu et al. 2016). The average influent and effluent, as well as the chamber-wise concentration of phosphate, are shown in Fig. 8. The results showed that the concentration of phosphate was decreasing along to the chamber. The average effluent concentration of phosphate was 15.3 mg/L, with a removal efficiency of 42%. However, the pH levels were 8.0 ± 0.2, 8.0 ± 0.1, 8.0 ± 0.1, 8.0 ± 0.1, 8.0 ± 0.1, 7.9 ± 0.2, and 8.0 ± 0.2 at ch-1–ch-7, respectively. When the pH value was increased up to 9, the phosphate gets precipitated due to increased pH (Su et al. 2012). Still, this effect is not significant in the present study since the pH level was below 9 during the treatment process.

Fig. 8
figure 8

Phosphate concentration along with the chamber

Fourier transform infrared spectroscopy (FTIR) analysis

The FTIR spectroscopic analyses were conducted to observe the distribution of functional groups present in HTL products (biocrude and biochar) (Ansari et al. 2017a). The peaks found in different wavenumbers indicated active functional groups (including (CH2)4–C, C–H Stretch, –CH2/–CH3 Stretch, COO (Esters), C–O–C, C=O, C=C, C–S, N=O) in the biochar and biocrude samples. It was also noticed that all the samples were contaminated with dissolved CO2 (at 2250 cm−1–2450 cm−1). After eliminating the dissolved CO2 contamination and manual baseline correction, the peaks were analyzed for active functional groups.

Characterization of biochar

The biochar from HTL of microalgae and sludge samples (Ch-1 and Ch-2) was characterized by FTIR and is presented in Fig. 9 and Table 4. The sludge samples showed almost similar peaks, but the difference was found when compared to the microalgal biochar sample. Again, the peak intensity for sludge biochar was very stronger than microalgal biochar. The peak occurring at 2860–2970 cm−1, which indicates the C–H alkyl functional groups, was almost absent in the biochar samples. Both microalgae and sludge biochar samples showed peaks at the range 1640–1690 cm−1 and 1500–1580 cm−1, which denoted the C=C and N=O stretching of p-nitrophenol compound (Mahapatra and Ramachandra 2013). Both the microalgae biochar and sludge biochar samples showed peaks for Si–O/C–O (at 1000–1100 cm−1), which is presented in the microalgae outer cell membrane (Si–O-C) (Annenkov et al. 2015). So, the sludge might contain microalgae cells in them. The sludge samples also showed peaks for the C–C ring (at 1475–1505 cm−1), C–N stretching (at 1035–1070 cm−1), and N–H stretching (at 1560–1640 cm−1) which proved the presence of aromatic nitrile, aliphatic amine salt, and N-methyl amino compound. The researchers also found the same functional groups for FTIR of biochar (Lu et al. 2018; Jena et al. 2012; Vardon et al. 2011). The presence of nitrogen compounds in the sludge biochar samples suggested that it could be utilized to make fertilizers.

Fig. 9
figure 9

FTIR absorbance spectroscopy on biochar samples of microalgae and sludge after hydrothermal liquefaction

Table 4 FTIR band assignments for biochar of microalgae and sludge samples

Characterization of biocrude

The FTIR analysis and the spectroscopy of biocrude oil from sludge (Ch-1 and Ch-2) and microalgae are illustrated in Fig. 10 and Table 5. Similar peaks were observed in both biocrude samples with long-chain alkyl hydrocarbons (2916–2936 cm−1, 2845–2975 cm−1, 1360–1390 cm−1, 1415–1475 cm−1). Moreover, when comparing with microalgal biocrude, the peaks for sludge biocrude were 32 times more intense. The peaks at 1080–1135 cm−1, 1640–1800 cm−1, and 1470–1590 cm−1 represented the C–O, C=O, and C=C ring stretching of aromatic carboxylic acid. The 1050 cm−1 and 1557 cm−1 peaks denoted the C–N and N–H stretching of the amino group. The carbonyl compound was observed at peaks for the wavelength of 1720–1770 cm−1. These chemical compounds presented in biocrude were observed by many researchers (Guo et al. 2015; Lu et al. 2018; Vardon et al. 2011).

Fig. 10
figure 10

FTIR absorbance spectroscopy on biocrude samples of microalgae and sludge after hydrothermal liquefaction

Table 5 FTIR band assignments for biocrude of microalgae and sludge samples

Conclusion

This study investigated the combined effect of microalgae–bacteria consortium in removing nutrient and organic matter from domestic wastewater. An average BOD, NH3–N, TN, and phosphate removal efficiencies were more than 88, 48, 36, and 42%, respectively. The ORP values indicated that the reactor was automatically divided into two unit systems that generally consist of an anoxic zone (ch-1–ch-3) and aerobic zone (ch-4–ch-7) due to the unique compartmentalized structure of the PABR. Simultaneous nitrification/denitrification (SND) and microbial assimilation were the main nutrients removal mechanism in the PABR where nutrients removed by SND occurred in the first three chambers, and microbial assimilation was governed in the last four chambers. The experimental results of the PABR show that the algal–bacterial symbiosis system was more effective for organic waste removal and partially effective for nutrients removal. But this problem can be resolved by increasing the light intensity and hydraulic retention time (HRT). Moreover, the sludge accumulated from PABR was converted into biocrude and biochar by HTL process. The FTIR analysis suggests that the biocrude and biochar derived from sludge are better than that of microalgae.