Introduction

The microalgae were known as a biofuel production source to replace conventional petroleum fuel. They are well known as producers for several natural compounds used in food technology, (Yen et al. 2013). Microalgae have a big tolerance at various conditions of environmental and can be grown in arid regions. (Delgadillo-Mirquez et al. 2016). Microalgae have a way of removing carbon, nitrogen, and phosphorus from the wastewater with increasing their biomass for biofuel and bio-active compound production (Marazzi et al. 2020; Yoshitani 2014). The algae growing in high rate algal pond (HRAP) produce oxygen as a photosynthesis by-product. This oxygen oxidizes the organic compounds in the wastewater and the carbon dioxide is fixed in the algal cells (Molazadeh et al. 2019). The high rate algal ponds (HRAPs) are one of the best wastewater treatment systems to produce a large amount of algal biomass (Craggs et al. 2011; Kiepper 2013). HRAPs are a more efficient sterilization system than the conventional one because they are enhancing the rate of sunlight and rest the photo-oxidation for contaminants of dissolved organic compounds (Wollmann et al. 2019).

Many species of microalgae are capable of growing in wastewater media by utilizing the present carbon, phosphorus (P) and nitrogen (N) (Whitton et al. 2015).

The microalgae for wastewater remediation are a source of biofuel and multiple bio-active compounds that can be used in the nutraceutical and pharmaceutical industries (Delrue 2016; Mata-Gómez 2014).

Microalgae biomass can be used directly as feedstock in different chemical conversion processes as, pyrolysis, gasification, fermentation, liquefaction, or extraction of oil to produce biodiesel (Halim et al. 2011). Algal biodiesel is non-toxic, biodegradable, and reduced levels of CO2, CO, and SOx emissions (Pittman et al. 2012).

Due to the high physiological diversity of microalga, they are one natural source providing novel biologically active substances such as carotenoids, phenols, flavonoids, proteins, and carbohydrates (Michalak and Chojnacka 2015; Hielscher-Michael et al. 2016). The concentration of each compound depends on the nature of the organism, the environmental conditions, and the physiological state of the culture itself (Zhang et al. 2019)

Carotenoids, also called tetraterpenoids, are organic pigments (yellow, red, orange) that are produced by plants and algae, so they can be used as natural food colorants. They have several industrial uses in health supplements and cosmetics products, with high antioxidant properties. The main algal carotenoids are astaxanthin, β-carotene, and lutein (Markou and Nerantzis 2013). Carotenoids are widely used in suntan, skincare, hair care, and anti-aging products. (Guedes et al. 2011).

Phenolic and flavonoid compounds in algal cells are secondary metabolites and reported as antioxidants, antibacterial, anti-inflammatory, anti-cancer agents, and free radical scavengers (Abd El-Baky et al. 2009; Goiris et al. 2012).

Proteins and carbohydrates are the main components of algal cells, which are characterized by antibacterial, antioxidative, anti-inflammatory, antitumor, and antiviral properties (Lopez et al. 2010).

Recently, it is necessary to achieve a potent economic analysis that can cover the conversion process of all algal biomass to biodiesel and bioactive products. Such analysis must be supplied at every step of the process for supporting the research and the investment and consequently, to the success of this technology.

The work aims to evaluate the economic investment of the microalgae community for the production of biodiesel and bio-active compounds without cost for algae cultivation and obtaining of a clean environment. The microalgae communities are collected from the high rate algal pond (HRAP) to treat municipal wastewater at Zenin wastewater treatment plant, Giza.

Materials and methods

Microalgae communities (Bloom) were collected from the high rate algal pond (HRAP) constructed to treat municipal wastewater at Zenin wastewater treatment plant, Giza, through the project of “Biodiesel production from microalgae in stabilization pond for municipal wastewater treatment” in Water Pollution Research Department, NRC, and Giza, Egypt., and the wet biomass was dried overnight at 60 °C. Jojoba oil, citric acid, potassium hydroxide, and solvents used for extraction were of analytical grade, and those used for chromatography were of HPLC grade.

Extraction of carotenoids

Ten milliliters of distilled water was added to 10 g of dry algae cells to form a slurry, 5 g of dry granular citric acid was further added to the slurry, and then jojoba oil was added as (1:1) w/w of algal biomass. The mixture was homogenized at (1000 rpm) for approximately 15 min [Homogenizer Model Wise Tis HG-150, Germany]. The slurry reaction mixture is stirred for 45 minutes at a temperature of 80 °C; then, the mixture is neutralized using potassium hydroxide, and the temperature is reduced to 45 °C. Centrifugation of the mixture to obtain two layers, the upper layer was the carotenoid with jojoba oil; the lower layer was biomass and water. The upper layer is decanted and stored for HPLC analysis (Basily et al. 2018), and the remaining biomass is then used for getting of lipid, phenolic flavonoid, protein, and carbohydrate.

Ultrasound-assisted bath lipid extraction (UABE)

The remaining algal biomass is mixed with a 60 ml mixture of n-hexane and isopropanol (3:2 v/v). The extraction process is performed in the ultrasonic bath (Model WUC-D10H, 60 Hz, 230 volts, 665 W, 3 AMPS, Germany) at room temperature (30–35 °C) under a reflux condenser for 30 min. Cell residue was removed by filtering through filter paper. The filtrate of the solvent mixture was evaporated using a rotary evaporator to enable the gravimetric quantification of total lipid extract (Abo El-Enin et al. 2016) .The crude lipid was re-dissolved in n-hexane (approximately 5 ml) for further analysis. The remaining biomass is used for getting of phenolic flavonoid, protein, and carbohydrate.

Biodiesel production

After lipid extraction, the conventional transesterification reaction is carried out using H2SO4 acid (98% concentration) as a catalyst (100% of the lipid mass) and methanol as solvent (methanol/lipid 30:1 ml/g). When the reaction mixture (oil and methanol) reached 60 °C, sulfuric acid was added to start the reaction time (4 h). After complete reaction, the excess alcohol is removed by evaporation using a rotary evaporator. The reaction mixture was transferred to a separating funnel after adding hexane to facilitate settling. Then, the mixture was partitioned into two distinct phases: a top hexane layer containing fatty acid methyl ester FAME and a bottom layer containing glycerol. Then, hexane phase was washed with distilled water and collected in a pre-weighed flask and left to dry at 60 °C till constant weight (Doma et al. 2016).

Determination of total phenolic content

One gram of algal cells was re-suspended in 20 ml of 80% ethanol, homogenized for 3 min at 4 °C to disrupt cells. The homogenate was centrifuged at 2000 rpm for 15 min at 4 °C. The resulting supernatant was centrifuged again at 2000 rpm for 10 min. the residue was repeatedly extracted with the same solvent until they were colorless. Then, the supernatant was filtered through Millipore filters. The filtrate was evaporated to dryness to give a crude algal ethanolic extract (enrich in phenolic compounds) and immediately analyzed. Total phenolic content was determined with Folin-ciocalteu reagent (Basily et al. 2018) using gallic acid as a standard phenol compound. The concentration of total phenol content was measured as milligram of gallic acid equivalent (GAE in mg/g of the sample). All the determinations were carried out in triplicates (Sarojini et al. 2013).

Determination of total flavonoids

One gram of algal biomass was crushed in the motor, added 5 ml of distilled water, centrifuged at 1000 rpm for 15 min, and incubated at 4 °C for 20 min. Then, it was transferred to a water bath adjusted at 100 °C for 20 min. The supernatant was filtrated through filter paper No. 1; the filtrate was adjusted to 25 ml with 95% methanol solution and incubated at room temperature for 48 h for the determination of flavonoid content. Total flavonoid was measured by a colorimetric assay (Shashank and Abhay 2013).

Determination of carbohydrates content

A sample of algae biomass weighing 0.1 g was added to 25 ml of 1 N H2SO4, and the mixture was hydrolyzed for 2 h on a boiling water bath. At the end of hydrolysis, a flocculent precipitate was noticed. This was freed of sulfate by precipitation with barium carbonate, filter and complete to 100 ml, and mix 1 ml of the filtrate with 1 ml 5% phenol and 5 ml concentrated H2SO4 to measure the carbohydrate content at 485 nm (Basily et al. 2018).

Determination of total protein content

Total protein content was determined by the Kjeldahl method and then multiplied with a factor 6.25 to give the total protein content (Dubois et al. 1956) 0.5 g of catalyst, and 2 ml H2SO4 was added to 0.2 g of algal sample, digested until the color becomes clear. Two drops of methyl orange indicator and 15 ml of 40 % NaOH solution were added to the clear sample and transfer to the distillation apparatus. The liberated ammonia is received in 10 ml of 4% boric acid and 2 drops of Tashiro’s indicator. When the liberation of ammonia stopped, the solution was titrated against 0.01 N HCl (catalyst − 10 g K2SO4 + 1 g CuSO4.5H2O + 0.5 g selenium) (Tashiro’s indicator 0.24 g methylene blue + 0.375 g methyl red in 30 ml methyl alcohol).

High-performance liquid chromatography (HPLC)

HPLC analysis was carried out using Agilent Technologies 1100 series liquid chromatograph equipped with an autosampler and a diode-array detector (461 nm). The analytical column was Eclipse XDB-C18 (150 × 4.6 μm; 5 μm) with a C18 guard column (Phenomenex, Torrance, CA). Chromatograms were monitored at 450 nm; the mobile phase was acetonitrile-2-propanol-ethyl acetate (40:40:20, v/v/v); the flow rate was 0.8 mL min−1, the pressure as 850–1050 psi; and the recorder chart speed was 0.5 cm min−1. The carotenoid extracts obtained as mentioned above were dissolved in the mobile phase (1 mL), filtered through a 0.450μm membrane disc (Schleicher and Schull, Dassel, Germany), and injected into chromatograph (injection volume, 10 μL). The column was regenerated by washing with 2-propanol after analysis, then equilibrated with the mobile phase.

Gas chromatography analysis

The fatty acid profiles of algal oil are determined using gas chromatography (GC) provided with a split automatic injector and silica capillary column DB-5 (length 60 m; ID 0.32 mm). Helium is used as carrier gas at a flow rate of 1 mL/min. The column was held at 150 °C for 1 min and ramped to 240 °C, at a rate of 30 °C/min, and held at 240 °C, for 30 min. Standards are used to give rise to well-individualized peaks that allow the identification of the fatty acid composition.

Results

Carotenoid and lipid content in algal biomass collected from HRAP

The carotenoid and lipid extraction from the algal cells are affecting each other, as shown in Table 1, where the lipid percentage extracted before carotenoid recorded higher value than its percentage if extracted after the carotenoid extraction. The same conclusion for carotenoid content, but the decreasing percentage of carotenoid content if extracted after lipid extraction is very high.

Table 1 Lipid % and carotenoid content in algal biomass from HRAP

Biodiesel properties

The fatty acid methyl ester (FAME) obtained from algal oil (collected from the HRAP) has a brownish-yellow color with a yield 70.6 % and purity percentage 85%.

Total phenolic and flavonoid content

As shown in Table 2, the total phenolic (5.3 mg/g) higher than the total flavonoid content (1.5 mg/g) in the microalgae cells was collected from the HRAP (Rahul et al. 2016).

Table 2 Total phenolic and flavonoid content in algal biomass from HRAP

Total carbohydrates and protein content

The total carbohydrates content of the biomass collected from HRAP was 600 mg/g (Table 3). The higher amount of algal biomass from carbohydrates is present in different forms, such as glucose, sugars, polysaccharides, and starch (de Jesus Raposo et al. 2013). The dry microalgae can be used as foods or feeds without restrictions since their sugars are digestible (Skjanes et al. 2013).

Table 3 Total carbohydrates and protein content in algal biomass from HRAP

The results showed that the total protein content was 78.57 mg/g. Microalgae are able to enhance the nutrition value of food industries and thus affect positively on the human and animal health.

Techno-economic feasibility study

Feasibility analysis is a useful technique which used to guide the research for achievement economical and viable outcome. The economic modeling can be used to estimate different processes, in order to define the project balance through the economic value and measure the obscurity of project risks financially and technically. It will provide and describe the feasibility study of the process for using in our investigation.

The analysis steps will be as follows:

  • Collect all data of the laboratory experiments.

  • Use the Aspen HYSYSTM software of process engineering to design the model.

  • According to the principles in the literature, it can define the process’ equipment size (Kern 1950; McCabe et al. 1993; Bleakley and Hayes 2017).

  • Both the costs and investments of the operation will be determined.

  • In the end, the return of investment (ROI %) and breakeven point are calculating to evaluate the process.

The model of process

The process model was constructed by using a simulation of the Aspen HYSYSTM V8.4 software. Defining the chemical components is the first step in setting up a process model. The microalgae oil obtained will be considered as triolein (C57H104O6 as the most triglycerides present in microalgae oil and the product of biodiesel as methyl oleate (C19H36O2). The “Hypo Manager” tool of HYSYSTM was used to define these components which are not present in the library, like carotenoids.

The model of NRTL thermodynamic was used due to the presence of methanol as a very high polar component (Sinnott 2005). On the other hand, the operating conditions according to the laboratory experiments that % oil content in algae is 5, the % carotenoids in algae are 0.00655, and 20% of algae solution, of concentration 2 g/L, is removed per day from the ponds; the acid catalyzed transesterification process was used due to the high free fatty acids in microalgae oil.

Biodiesel production in industrial scale in Egypt is the first step. The capacity of built plants will be small or medium. The study is based on 10,000 ton/year of biodiesel production, where the process of biodiesel production from microalgae is divided into five steps: cultivation (Fig. 1), harvesting and extraction of carotenoids (Fig. 2), extraction of oil (Fig. 3), transesterification (Fig. 4), and purification of products (Fig. 5).

Fig. 1
figure 1

Cultivation flow sheet

Fig. 2
figure 2

Harvesting and extraction of carotenoids flow sheet, where (X-100)centrifuge, (X-101) decanter centrifuge, (V-100) sand bed dryers, (MIX-100) mixer, and (X-102) gravity settler

Fig. 3
figure 3

Extraction of oil flow sheet, where (MIX-100) microalgae/solvent mixer, (MIX-101) recycled/make-up solvent mixer, (X-102) settling tank, (V-101) hexane evaporator, (E-100) recycled hexane cooler, and (E-101) oil cooler

Fig. 4
figure 4

Transesterification flow sheet, where (MIX-102) make-up alcohol/catalyst mixer, (MIX-103) recycled alcohol/catalyst and fresh alcohol mixer, (P-100) alcohol and catalyst pump, (P-101) oil pump, (P-102) recycled alcohol pump, (CRV-100) transesterification reactor, (T-100) methanol recovery distillation tower, and (E-102) cooler

Fig. 5
figure 5

Product purification flow sheet, where (CRV-101) neutralization tank, (X-103) settling tank, (T-102) water washing tower, (T-103) biodiesel purification distillation tower, and (T-104) glycerol purification distillation tower

The main units for the process are reactors, separators, distillation column, pumps, and heat exchangers. The microalgae was cultivated using an open ponds system with 20% removed continuously to maintain a constant growth rate. The water was then removed using two stages of filtration (centrifuge then decanter centrifuge) and was dried before oil extraction step.

Since complete information about the process kinetics was not accessible, the transesterification reaction was described by a simple reactor model for oil conversion 97% to FAME. Methanol recovery was done using multi-stage distillation. The simulations of biodiesel purity could not be reached with a simple unite of flash, because of the high difference between the boiling point of methanol (65 °C) and that of FAME (320 °C) at 1 atmosphere. So, the produced biodiesel purity (i.e., 99.65 wt.%) in the present study was measured using ASTM standard method (Aspen Tech Inc. 2005). The steady-state simulation process was concluded by HYSYSTM, after setting up the models of operating units and input information to obtain operating conditions for each step as well as energy and mass balance.

Economic estimation

There are different factors to evaluate the project such as environmental and technical factors besides the economic evaluation as an important one. The economic estimation is indicating either the project will loss or profit money. For biodiesel plant, the total manufacturing cost, fixed capital cost, and the breakeven point (i.e., the economic evaluation) can be determined through some factors, such as process technology, plant capacity, and cost of raw material and chemical.

Some assumptions were used for this economic evaluation:

  • Operating time was set at 8000 h/year.

  • Heating media were set from pressure steam (low and high).

  • For cooling, the water was used.

Table 4 is showing the cost of catalysts, raw materials, and products as in the Egyptian local market. According to the total manufacturing cost (TMC), total capital investment (TCI), return on investment (ROI %), and breakeven point, the process was evaluated. In this work, the assessment performed is assorted as a “study estimate” with accuracy expected from + 30% to − 20% (Turton et al. 2009). Although the results of such a study do not reflect the final cost of chemical plant constructing, the technique is useful to compare competing processes.

Table 4 Costs of raw materials, utilities, and products used in the process

The process evaluation

The investment of total capital (TCI) as shown in Table 5 is involving the costs of everything like installation, instrumentation, electrical, buildings, designs, storage, contingencies, utilities, and contractor’s fee (Zhang et al. 2003) besides the investment of working capital (WCI) which is recording 8% of TCI.

Table 5 Equipment costs, fixed capital costs, and total capital investment

The cost of manufactured products must be calculated in order to decide their selling price including the profit. As shown in Table 6, the manufacturing cost is including the outlay of shipping process, supervision, labor, plant overhead, depreciation, rent costs of raw materials, insurance, maintenance, royalties, and the raw materials cost, besides cost of indirect manufacturing (IDMC) which is being 20% of TMC. The cost of labor was evaluated by $546,965, for a continuous plant with three 8-h shifts/day and the operators worked 48 weeks per year.

Table 6 Total manufacturing cost

To get ROI, total profit must be calculated. Biodiesel was the main product in this process and cost about $1235/ton, while jojoba oil with carotenoids cost $4500/ton. The extracted microalgae cake and produced glycerol are considered as byproducts for the process. The total products’ sales cost equals to $1,077,259,539, and the net profit will be the result of subtracting TMC from total sales’ cost.

ROI is calculating using the following Eq. (1) (Turton et al. 2009), to find it equal to 549.813%.

$$ ROI\%=\frac{NetProfit}{TCI}\times 100 $$
(1)

Discussion

Referring to carotenoids and lipid content, it was found that carotenoid extraction must be done as a first step for increasing the economic value of the biomass (Christaki et al. 2013). As mentioned in the “results” section, biodiesel yield was 70.6% with purity of 85%. The results of Doma et al. (2016) that biodiesel from the HRAP will have a high combustion efficiency due to high cetane number and low viscosity. Algal species and growth conditions affect the amount of phenolic compounds in algal biomass (Doma et al. 2016). Other studies showed that total phenolic content of the algal strains is responsible for their antioxidant activity (Safafar et al. 2015). Phenolic compounds are biologically active with different health services (Ling et al. 2013).

Flavonoids are strong antioxidants able to react with scavenging oxygen species because of their phenolic hydroxyl group (Rahul et al. 2016). They have multiple activities such as anti-microbial, anti-cancer, and anti-diabetic which are making them significant for various pharmaceutical applications (Karamian and Asadbegy 2016). Carbohydrates and protein content in microalgae biomass were studied in Scenedesmus sp. and different microalgae species, and the results showed that some types of polysaccharides have medical services (Ibanez et al. 2012). These polysaccharides have protection against oxidative stress and have efficacy on gastric ulcers, wounds, and constipation (Kraan 2012). Microalgae species have a high content of protein; therefore, they are considered as an untraditional protein source. The algal cells can be providing humans and animals with the essential amino acids due to their ability to synthesize all types of amino acids (Chia et al. 2019).

The project feasibility is estimated through the comparison between the value of the return of investment (ROI) and value of minimum acceptable rate of return (MARR). The results of this project observed that ROI is higher than MARR which was assumed to be 20%.

The stage at which the cost of production equals sales income is known as break-even (Abdo et al. 2016). In the present process, this stage is being at the production of day number 61 and after 1819 t of biodiesel production.

In other words, the biodiesel production from using acid catalyzed transesterification with the extraction of carotenoids using jojoba oil form the algae cell can be considered from the studied cost indicators as a techno-economic feasible process.

Conclusion

It can be concluded from the study that the extraction of valuable products contained in the microalgae before the lipid extraction shows an additional profit to the biodiesel production and can turn the process to be highly feasible which is indicated by the high ROI estimated through the preliminary economic evaluation.

The content of total carotenoids extracted with jojoba oil from the microalgae community collected from HRAP constructed to treat municipal wastewater reached 81.44 microgram/g dry microalgae which can be used in cosmetic purposes.

Following this step, a lipid of concentration 5.5% is further extracted and used for biodiesel production.

In further study, all other valuable products can be also extracted and considered in the economic evaluation.

Added to the products obtained, the microalgae have a great environmental effect in purifying the municipal wastewater by minimizing the organic load of the water which they use as nutrients for their growth.