Introduction

Today, the management of industrial wastewater has become one of the prime issues of planet Earth (Jayaswal and Sahu 2018; Shrestha et al. 2017). It has been estimated that nearly 80% of global wastewater is disposed of untreated which later creates environmental pollution (Cong and Yu 2018). Parallelly with the growth of the industrial sector, the requirement for freshwater has also increased vis versa. However, modern man has to deal with various diseases driven by lifestyle and sedentary life (Aziz et al. 2019; Egger et al. 2017). To deal with these diseases, certain drugs are required, and here comes the role of the pharmaceutical industry. The pharmaceutical sector produces a variety of medicines like antibiotics, herbal medicines, sedatives, hormone-based, and pills of human and veterinary importance. To meet the increasing demands of the population, recently, the number of pharmaceutical industries has increased, drastically (Patil 2016).

In order to manufacture certain drugs, the pharmaceutical industry utilizes a wide variety of raw materials including natural, synthetic, and biological. In this, active pharmaceutical ingredients (APIs) also called bulk drugs are the key ingredients used in medicine manufacturing. APIs are water-persistent, biochemically active chemical compounds (Carvalho et al. 2018; Pudasaini et al. 2017). Besides this, water is also used in various industrial processes such as manufacturing, cleaning, and washing. The pharmaceutical industry wastewater (PIWW) has a complex composition, therefore difficult to treat. Generally, it contains high chemical oxygen demand (COD), salt content, residual drugs, and organic compounds (Shah and Shah 2020; Dong et al. 2022). Therefore, the pharmaceutical industries produce highly toxic wastewater which is hard to manage using conventional treatment technologies (Dar et al. 2017; Dixit and Parmar 2013). However, the level of pollution and volume of wastewater generated depends on the type and size of the industry. In low-wage countries, most of the industrial wastewater is discharged without adequate treatment (Cong and Yu 2018) which results in environmental pollution, disrupting the normal functioning of aquatic flora and fauna by increasing the nutrient loads of waterbodies thereby causing eutrophication. PIWW may induce mutagenic effects upon entering the food chain via different routes (Sboichakov and Reshetnikova 2020). Therefore, the proper and safe management of industrial wastewater is the need of the hour (Martínez-Pachón et al. 2021; Maity et al. 2021).

Several methods are available for the treatment of PIWW such as membrane separation and adsorption; however, these methods are cost-intensive and are likely to cause secondary contaminations (Liang et al. 2019; Xu et al. 2017). While on the other hand, phycoremediation technology involves the use of algae to remove pollutants from wastewater (Fayyad et al. 2020). Phycoremediation technology is cost-efficient, more proficient in the treatment of wastewater including the removal of anti-inflammatory drugs, antibiotics, etc. (Hom-Diaz et al. 2017) rather than the physical and chemical methods (Sharma et al. 2020; Zeng et al. 2019). Out of several algal species utilized for phycoremediation purposes, Chlorella vulgaris is a green-colored unicellular eukaryotic microalga having a thick cell wall. It is one of the widely studied members of the Chlorophyceae family. It has a fast growth rate and the capability to grow in most nutrient-stressed mediums including contaminated water bodies (Zhu et al. 2020). In order to provide resistance to stressed environments, the thick cell wall of C. vulgaris mediates certain chemical and mechanical processes for its efficient survival (Rana et al. 2017; Sydney et al. 2019). C. vulgaris is reported to have a proficient ability to remove biological oxygen demand (BOD), chemical oxygen demand (COD), and phosphorous and nitrogen-based pollutants from wastewaters within short periods (Liu et al. 2008; Azizi et al. 2020). Previously, various successful studies have been done on the bioremediation efficiency of C. vulgaris using different types of wastewater such as domestic (Miao et al. 2016), municipal (Znad et al. 2018), synthetic (Lee et al. 2020), and petrochemical and textile (Subashini and Rajiv 2018) wastewaters. Algal biomass is a rich source of lipids, proteins, pigments, and vitamins which can be utilized in various applications such as making nutrition supplements, food products, and pharmaceuticals. Along with phycoremediation application, algae are also known for their lipid production efficiency (Mao et al. 2020). Recently, algal lipids are in great demand for the production of biofuels having good fatty acid profiles (Hess et al. 2018; López et al. 2019).

The Ganga River is a sacred water body for Hindus that flows from the Himalayas to the Bay of Bengal within the Indian subcontinent. Its freshwater has a great diversity of flora and fauna including Chlorella sp. The biological diversity present in the river water helps to maintain its water quality through nutrient sequestration (Zhang et al. 2019). From the previously available literature, it is evident that C. vulgaris has the ability to grow in different types of wastewater such as municipal wastewater (Ferro et al. 2019) and slaughterhouse wastewater (Katırcıoğlu Sınmaz et al. 2023) including PIWW by utilizing the available nutrients (Santos et al. 2017; Bansal et al. 2018; Chandel et al. 2022). Therefore, C. vulgaris can be used for the phycoremediation of PIWW along with the potential application of lipid production. Apart from the wastewater type, various environmental conditions (light intensity, temperature) also affect the growth of algal species. Therefore, their optimization using different statistical tools and mathematical models is crucial in order to maximize the wastewater treatment efficiency of C. vulgaris (Liyanaarachchi et al. 2021). The current study explores the nutrient sequestration and lipid production scope of locally isolated C. vulgaris for PIWW which adds novelty to this study. Through a combination of experimental analysis, optimization techniques, and predictive modeling, this study aims to enhance the efficiency of wastewater treatment processes while simultaneously generating valuable lipid resources from microalgae. For this, response surface methodology (RSM) and artificial neural network (ANN) are statistical approaches extensively used to maximize the outputs by optimizing the operational variables (Zhang and Huang 2015; Sabour and Amiri 2017).

As aforementioned, considering the problems associated with the management of PIWW, the present study has been designed to assess the phycoremediation efficiency of isolated Chlorella vulgaris alga under different levels of wastewater loads, temperature, and light intensities. The findings are supported using two different types of optimizations and prediction modeling, i.e., response surface methodology (RSM) and artificial neural network (ANN) tools.

Materials and methods

Organism used

Being a freshwater resource, Chlorella vulgaris naturally occurs in the Ganga River which helps in nutrient sequestration and works as a feedstock for several macro-and microbenthic organisms (Beuckels et al. 2015). For the present experiment, C. vulgaris (NIES:227) microalgae were isolated from the disposal point of Jagjeetpur Sewage Treatment Plant (STP) situated near the Ganga River at Haridwar, India (29° 53′ 58.6″ N and 78° 08′ 28.9″ E). The morphological identification of C. vulgaris (NIES:227) was done by using a digital microscope (Optika, B-383PLi, IN) following Bellinger and Sigee (2015) identification keys and that of genetic identification by 28s rRNA (Fig. S4). For the sequencing, ABI PRISM® BigDyeTM Terminator Cycle Sequencing Kits with AmpliTaq® DNA polymerase (FS enzyme) (Applied Biosystems) was used and it was further purified by ABI 3730xl sequencer (Applied Biosystems) (Talavera and Castresana 2007). The screened algal culture was replicated and maintained on a sterile BG-11 medium under controlled environmental conditions. The purity validation of the BG-11 medium was done by sterilizing it at 25 °C for 3 days to ensure no microbial growth was observed. Standard laboratory sterilization protocols were followed to maintain the purity of the C. vulgaris culture on the BG-11 medium. The composition of BG-11 medium includes 40 mL solution of each of NaNO3 (150 g/L), K2HPO4 (4.0 g/L), MgSO4·7H2O (7.5 g/L), CaCl2·2H2O (3.6 g/L), citric acid (0.60 g/L), ammonium ferric citrate green (0.60 g/L), EDTA (0.1 g/L), Na2CO3 (2 g/L), and 1 mL of each micronutrients solution [2.85 g/L H3BO3, 1.81 g/L MnCl2·4H2O, 0.22 g/L ZnSO4·7H2O, 0.39 g/L Na2MoO4·2H2O, 0.08 g/L CuSO4.5H2O, and 0.05 g/L Co(NO3)2·6H2O] in a 2L Erlenmeyer flask to make 1000 mL of stock solution.

Collection of pharmaceutical industry wastewaters

In the present study, pharmaceutical industry wastewater (PIWW) was collected from Unicure India Pvt. Ltd situated at Bhagwanpur, Haridwar, India (29° 57′ 14.2″ N and 77° 48′ 00.1″ E). The wastewater samples were collected in 20 L capacity non-reactive polyvinyl chloride (PVC) containers. The samples were transported to the laboratory and stored at 4 °C until further utilization in the phycoremediation experiments.

Experimental design and conditions

The phycoremediation experiments were carried out in the Agro-ecology and Pollution Research laboratory of the Department of Zoology and Environmental Science, Gurukul Kangri (Deemed to be University), Haridwar, India (29° 55′ 11.9″ N and 78° 07′ 09.7″ E). In this regard, Design-Expert software (Stat-Ease, USA) was used for obtaining the suggested design matrix (16 experimental trials). Glass aquariums (25 × 30 × 28 cm; length × height × width) of 20 L capacity were used as photo-bio-reactor having. For the optimization experiments, a total of three control variables, i.e., pharmaceutical wastewater concentration (A: 0, 50, and 100%), reactor temperature (B: 20, 25, and 30 °C), and light intensity (C: 2000, 3000, and 4000 lx) were used to optimize the total phosphorous (Y1: TP; %), total Kjeldahl’s nitrogen (Y2: TKN; %), and lipid production (Y3: %) efficiency of isolated C. vulgaris, respectively (Table 1). Purposely, wastewater concentration was adjusted using the addition of borewell water (BWW) (29° 55′ 11.8″ N 78° 07′ 10.0″ E) to achieve high (+1) and medium (0) levels. BWW is typically groundwater extracted from a borehole, and its quality is often uncontaminated. The DO of BWW was 2.47 mg/L. Using BWW for dilution is considered best practice in bioremediation experiments as previously outlined by several researchers (Singh et al. 2021; Kumari et al. 2022). The glass reactors were filled with a 15 L working volume of pharmaceutical wastewater followed by the addition of 150 mL stock algal culture (cell density 0.375 g/L). The experimental layout of the glass bioreactor used for C. vulgaris cultivation is given in Fig. 1. The light source was fitted at the top surface of the reactor and algae was manually stirred daily 5 times so all cells get light exposure and do not get settled at the bottom. The glass reactors were equipped with a 150W aquarium heater and light-emitting diode (LED-white) bulb (2W G4, VRCT, IN) for controlling the temperature and light intensity (calibrated using digital LUX meter; LX-1010B, MEXTECH, IN), respectively. C. vulgaris was provided with 6 h dark and 18 h light period till the 16th day with 3% CO2 with a rate of 0.5 L/min. Previous studies showed that C. vulgaris is best grown in 6/18 h dark to light period under laboratory conditions (Kumari et al. 2022; Sharma et al. 2022). Likewise, Sánchez-Bayo et al. (2020) showed that photoperiod having a higher number of light/dark hours, i.e., 18:6, 12:12 resulted in maximum biomass accumulation in A. maxima, C. vulgaris, and N. gaditana as compared to 6:18 which is in line with the present study.

Table 1 Design of the independent and dependent variables used for the central composite design of response surface methodology
Fig. 1
figure 1

Design of the reactor used for algal cultivation

Mathematical models for optimization and prediction studies

Nowadays, mathematical models are being widely used to optimize the bioremediation of industrial effluents. In this, response surface methodology (RSM) and artificial neural network (ANN) are some of the most feasible tools that can be used to maximize the pollution reduction efficiency of bioremediation systems (Seragadam et al. 2021). In the present study, the experimental trials were randomly organized according to the face-centered (k = 1) central composite design (CCD) of response surface methodology (RSM). The prediction and optimization of the developed RSM model were done by using the following quadratic model (Eq. 1):

$$Y={\beta}_0+\left({\beta}_aA\right)+\left({\beta}_bB\right)+\left({\beta}_cC\right)+\left({\beta}_{ab} AB\right)+\left({\beta}_{ac} AC\right)+\left({\beta}_{bc} BC\right)+\left({\beta}_a{A}^2\right)+\left({\beta}_b{B}^2\right)+\left({\beta}_c{C}^2\right)$$
(1)

where Y is the optimizable response variables in terms of TP/TKN removal and lipid production, β0, βa, βb, and βc are the estimated quadratic regression coefficients, while A, B, and C correspond to wastewater concentration, reactor temperature, and light intensity, respectively.

On the other hand, a feed-forward and back-propagation (FFBP) method of ANN was used to construct the prediction model based on the variables given in Table 1. The ANN model was composed of three different layers including the input layer (3 neurons), hidden layer (10 neurons), and output (1 neuron) as given in Fig. 2. The dataset was divided into three different groups viz., 70, 15, 15% referring to training, testing, and validation groups, respectively. The maximum number of epochs tested during the model training was 100. For this, the logistic activation function was used to train the model. The output layer corresponds to the response variable, i.e., TP/TKN removal and lipid production (Fig. S1, Fig. S2, and Fig. S3). For this, the “nntool” module of MATLAB Version 2020b (MathWorks, USA) was used.

Fig. 2
figure 2

Configuration of the ANN with different numbers of layers and neurons

Moreover, the prediction feasibility of both RSM and ANN models was estimated using the minimum difference between a measure and predicted response values and coefficient of determination (R2) tools (Eq. 2).

$${R}^2=1-\frac{\sum {\left({y}_i-\hat{y}\right)}^2}{\sum {\left(y-\overline{y}\right)}^2}$$
(2)

The validation of the models was carried out using mean square error (MSE) and root mean square error (RMSE) tools as per the following formula (Eqs. 34):

$$MSE=\frac{1}{N}\sum\nolimits_{i=1}^n{\left({y}_i-\hat{y}\right)}^2$$
(3)
$$RMSE=\sqrt{MSE}=\sqrt{\frac{1}{N}}\sum\nolimits_{i=1}^n{\left({y}_i-\hat{y}\right)}^2$$
(4)

where \(\hat{y\ }\) and \(\overline{y}\) are predicted and mean values of the y response variable while N is the number of observations, respectively (Kim et al. 2019).

Wastewater analytical methods

In this study, the water and wastewater samples were analyzed for selected physicochemical and nutrient parameters such as pH, electrical conductance (EC: dS/m), total dissolved solids (TDS: mg/L), total Kjeldahl’s nitrogen (TKN: mg/L), total phosphorus (TP: mg/L), magnesium (Mg: mg/L), sodium (Na: mg/L), calcium (Ca: mg/L), and potassium (K: mg/L) following standard methods (Latimer, 2019; APHA 2017) (Table 2). Purposely, a microprocessor-based digital multi-meter (1615, ESICO, IN) was used for pH, EC, and TDS estimation. The spectrophotometric (Agilent Cary 60, USA) method was used for TP (470 nm) and COD (600 nm) analysis whereas the contents of K and Na were analyzed using the flame photometric method (1382, ESICO, IN). Moreover, TKN was determined by using Kjeldahl’s acid-digestion and distillation method. Despite this, the titrimetric method was used for the determination of Ca and Mg contents. Laboratory-grade reagents procured from Sigma-Aldrich (IN) were used in all chemical analyses of this experiment.

Table 2 Physicochemical characteristics of borewell water and pharmaceutical industry wastewater

Determination of pollution removal efficiency and lipid content

The efficiency of selected C. vulgaris in the removal of TP and TKN pollutants from pharmaceutical wastewater was enumerated based on the pollutant removal efficiency index (Re: %). The form of the formula (Eq. (5) is given below (Faiz et al. 2017):

$$\textrm{Removal}\ \textrm{efficiency}\left(\%\right)=\left(\frac{{\textrm{C}}_0-{\textrm{C}}_{\textrm{t}}}{{\textrm{C}}_0}\right)\times 100$$
(5)

where C0 and Ct were the initial and residual (after t time) concentrations of TP and TKN of pharmaceutical wastewater.

On the other hand, the cultivated algal biomass was harvested through the anhydrous Al2(SO4)3 flocculation method (150 mg/L; 100 rpm; 5 min). Further, the harvested algal biomass was used for lipid extraction using the Soxhlet method. For this, n-hexane was used as an extraction solvent under a total of 10 cycles at 70 °C for 1 h. The quantification of the extracted lipids was done by calculating the weight of lipids left after the evaporation of the extraction solvent used, i.e., n-hexane. Finally, the lipid content was estimated using the gravimetric method as previously described by Karpagam and Jawahar (2015).

Software and statistics

For the present study, different software packages such as Design Expert (12, State Ease, USA), Microsoft Excel (2019, Microsoft Corp, USA), MATLAB (MathWorks Inc., USA), and OriginPro (2021b, Origin Corp., MX) were used for experimental designing, statistical, modeling, and graphical works. All experiments were performed in a triplicated random design and the level of statistical significance was adjusted to the prob. (P) < 0.05.

Results and discussion

Characteristics of borewell water and pharmaceutical industry wastewater

Table 2 provides the physicochemical and nutrient parameters of PIWW and BWW used for phycoremediation experiments. Results indicated that BWW contains a lesser pollution load than that PIWW used in this study. In general, values of various physicochemical and nutrient parameters of BWW viz., EC (0.33 ± 0.03 dS/m), pH (7.62 ± 0.01), BOD (2.56 ± 0.24 mg/L), COD (5.76 ± 0.59 mg/L), TDS (114.35 ± 7.62 mg/L), TKN (4.12 ± 0.03 mg/L), TP (2.57 ± 0.19 mg/L), Mg (5.14 ± 0.02 mg/L), Na (5.16 ± 0.24 mg/L), Ca (4.28 ± 0.26 mg/L), and K (2.58 ± 0.03 mg/L) were significantly lower (P < 0.05) as compared to PIWW which had EC (0.6 ± 0.02 dS/m), pH (6.8 ± 0.4), BOD (9435.2 ± 549 mg/L), COD (15,423.6 ± 1121 mg/L), TDS (940.34 ± 124 mg/L), TKN (825 ± 52 mg/L), TP (215 ± 13 mg/L), Mg (23.6 ± 0.11 mg/L), Na (184.08 ± 3.12 mg/L), Ca (69.5 ± 1.05 mg/L), and K (159.04 ± 1.23 mg/L) contents much higher, respectively. The sources of various pollutants in pharmaceutical wastewater might be the residual chemicals during drug production. While the nutrients might be the result of the processing and manufacturing of herbal medicines using plant-based raw materials.

The above findings suggest that the discharge of improperly treated PIWW in water bodies may lead to several environmental issues in the study province including arable land pollution and pollutant accumulation in aquatic bodies. Therefore, there is an urgent necessity to implement efficient PIWW treatment technologies before discharging them in the open environment. Studies from the past few years showed that being rich in several nutrients, PIWW can be utilized in algal cultivation. Out of them, Pal (2018) studied the physicochemical and nutrient parameters of PIWW which contained several organic and inorganic nutrients. Hence, the physicochemical and nutrient profile of PIWW used in this study showed that it can be used as a nutrient medium for algal growth.

Phycoremediation and lipid production efficiency of isolated C. vulgaris

In this study, the isolated C. vulgaris was efficient enough for the phycoremediation of PIWW in terms of TP/TKN removal and lipid production. Table 3 depicts the results of PIWW phycoremediation experiments conducted using the CCD method of RSM. In this, varied ranges of TP/TKN removal and lipid yield were seen amongst different experimental trials while considering the control. More specifically, run number 1 showed the highest reduction of TP and TKN which was observed as 91.11 and 82.41%, respectively, along with 1.230 g/L of dry microalgal biomass using 50% wastewater concentration. Other than this, the maximum lipid yield was 20.6% extracted using the Soxhlet extraction method (Fig 4).

Table 3 Comparative analysis of RSM and ANN (central composite design matrix) for the phycoremediation of pharmaceutical industry wastewater using C. vulgaris

Generally, TP and TKN are the major nutrients that are extremely necessary for the growth and reproduction of living organisms including algal cells. TP plays an important role in the formation of genetic material while TKN is required for amino acid, lipid, and protein synthesis. Algae evolved to utilize these nutrients from water bodies and grow simultaneously. However, they can survive up to a certain level of TP and TKN nutrients. That might be the reason why a slight growth inhibition was observed using absolute PIWW treatment which contained high TP and TKN loads. Thus, the optimum nutrient uptake helps in the algal biomass and lipid production (Escapa et al. 2017; Chen et al. 2020).

There are very limited studies on the phycoremediation of PIWW using algal species. However, no study focused on TP and TKN removal by C. vulgaris using the RSM-CCD method. A report by Xiong et al. (2017) investigated multiple exposures of C. vulgaris to levofloxacin-contaminated PIWW. Their findings showed that the biodegradation of levofloxacin improved significantly after acclimation. Besides this, Nayak and Ghosh (2019) also studied the phycoremediation efficacy of Scendesmus abundans using PIWW under 21 days of hydraulic retention time. They observed that the contents of nitrate and phosphate were significantly removed by 97.12 and 93.71% along with 0.97 ± 0.01 g/L of biomass production, respectively. The cultivated algal biomass had a good fatty acid profile which can be further used for secondary purposes such as bioenergy production.

Effects of different control variables on C. vulgaris performance

Effect of pharmaceutical industry wastewater concentration

The PIWW concentrations as a control variable significantly (P < 0.0001) affected all three response variables viz., TP/TKN removal and lipid yield, respectively. The results of the CCD matrix given in Table 3 showed that a medium level (0) of PIWW concentration, i.e., 50% gave the maximum pollutant removal along with the highest production of lipid yield. However, the growth of isolated C. vulgaris was slightly retarded using a high dose (+1) of PIWW (100%). The absolute PIWW contained a high load of TP and TKN nutrients which might not be feasible for efficient algal growth experiments. Since the alga was isolated from the confluence points between freshwater and polluted water environments, it might have been adopted to grow under a nutrient-stressed environment up to an optimum level. On the other hand, the lowest growth in control, i.e., 0% PIWW may be due to the lesser availability of nutrients in borewell water.

Recently, Madadi et al. (2021) analyzed C. vulgaris growth potential in their experiments on the phycoremediation of petrochemical wastewater. The most feasible concentration was 50% resulting in the highest concentration of lipid production. However, the removal of nutrients showed varied trends such as 25% dilution for P removal and 50% removal for remaining parameters including BOD. This report showed that the P tolerance of Chlorella sp. was much higher as compared to other pollutants. Our results are also in line with their findings as TP removal in 50% PIWW dilution was 91.11% as compared to TKN’s 82.41%. Another study by Singh et al. (2017) investigated the nutrient removal efficiencies of C. vulgaris cultivated under different dilutions of urban wastewater such as 10, 20, and 30%. They observed that maximum nutrient removal was achieved using 30% dilution, i.e., 87.9% (from 59.31 to 9.61 mg/L) and 98.4% (7.14 to 0.15 mg/L) for N and P, respectively. This report also supported our results as PIWW concentration was one of the most deterministic factors which affected the removal of pollutants along with lipid production.

Effect of reactor temperature

Temperature is one of the major factors that strongly affect the rate of biochemical changes happening within the algal cells (Duan et al. 2018; Liang et al. 2021). In the present study, we observed that out of the three applied temperatures viz., 20, 25, and 30 °C, the highest algal growth was found at 25 °C. The growth of isolated C. vulgaris exponentially increased from 20 to 25 °C while it again reduced up to 30 °C. The reactor performance was robust at 25 °C in terms of TP and TKN removal along with the highest production of lipid content within algal cells. The interactive effect of temperature on growth performance and pollutant reduction of selected C. vulgaris is given in Fig. 3. Temperature as a climatic parameter affects the diversity and composition of aquatic microorganisms. The phytoplankton is one of the most dominating microbial communities of the Ganga River. C. vulgaris is also one of the commonly found microorganisms which act as food for upper trophic levels. It is found that C. vulgaris can grow most efficiently within a temperature range of 23–26 °C. Therefore, its in situ cultivation should also be done under conditions that mimic its natural temperature environments.

Fig. 3
figure 3

3D-surface plot for interactive effects of PWW concentration, temperature, and light intensity on TP/TKN removal and lipid production by C. vulgaris

In the previous reports, the effect of temperature on the growth performance of Chlorella sp. is widely investigated. However, its response under PIWW treatment using different temperature ranges has not been done to date. In a study, Asadi et al. (2019) assessed the effect of temperature on two algal species viz., C. vulgaris and C. sorokiniana pa.91 during phycoremediation of dairy wastewater. It was observed that the best performance of C. vulgaris and C. sorokiniana pa.91 was observed within a temperature range of 25–28 °C, respectively. During their experiment, Bamba et al. (2015) studied the effect of temperature ranges (25 to 35 °C) and CO2 delivery rate (2%) on biomass production, pH, and nitrate removal by C. vulgaris. They found that at 25 and 30 °C temperature ranges, the maximum biomass production of 950 ± 12 and 1000 ± 15 mg/L and nitrate consumption of 42.5 and 44.2% were achieved after 12 days, respectively.

Effect of reactor light intensity

Light intensity is an important growth parameter and has a direct impact on the growth performance of alga. It is one of the major requirements since green algae require light to undergo photosynthesis (Badar et al. 2018). This study investigated the optimization of three different light intensities viz., 2000, 3000, and 4000 lx using RSM in order to identify the best growth conditions for C. vulgaris. From the results, it was evidenced that algal growth was positively correlated to light intensity up to saturation point, i.e., increases from 2000 to 4000 lx. The artificial LED light was sufficient to grow C. vulgaris without any restricted growth. The factor-response interaction study showed that light intensity had an exponential effect on lipid production and TP/TKN removal. However, light intensity as a control variable showed a moderately significant effect (P < 0.1586) compared to PIWW concentration (P < 0.0001) and reactor temperature (P < 0.3325) (Table 4). The 3D-surface plots given in Fig. 3 also revealed that the light intensity showed an inclining trend of lipid production and TP/TKN removal from 2000 to 4000 lx, respectively.

Table 4 ANOVA results of the quadratic model used for the phycoremediation of pharmaceutical industry wastewater using C. vulgaris

Numerous studies support the effect of light intensity on algal growth. In a study by Metsoviti et al. (2020), an increase in light intensity from white to red LED lamps (130 to 520 μmol photons/m2/s) has resulted in a faster growth rate of C. vulgaris, along with an increase in lipid content from 7.9 to 22.2%, respectively. Similarly, Chang et al. (2016) in their experiment optimized the light intensity to achieve maximum biomass production and a specific growth rate. They concluded that C. vulgaris showed maximized biomass production and growth rate at a light intensity of 120 μmol/m2/s.

Comparative assessment of RSM and ANN prediction models

Optimization modeling using RSM and ANN is one of the most commonly used tools to maximize the desired processes using different control variables (Sabour and Amiri 2017; Song et al. 2023). In our study, the phycoremediation efficiency of isolated C. vulgaris was tested using three different reactor control factors as the independent variable (A: PIWW concentration, B: reactor temperature, and C: light intensity). The effect of these parameters was investigated in order to maximize the TP/TKN removal and lipid production of C. vulgaris. For this, a quadratic model was constructed for the prediction and optimization of the desired response. On the other hand, the ANN architect having three different layers was also used for predicting the same response variables.

The findings of this study revealed that both the RSM and ANN models were efficient in predicting the TP/TKN removal and lipid production of C. vulgaris. In this, the comparative analysis results shown in Table 5 showed that ANN models had relatively higher values of coefficient of determination (R2 > 0.9894), lesser MSE (<1.976), and RMSE (<1.406) as compared to RSM models which had a coefficient of determination (R2 > 0.9870), lesser MSE (<5.330), and RMSE (<2.309), respectively. The RSM models had a highly significant P value, i.e., <0.0001 for all three responses. The following quadratic equations can be used for the maximization of TP/TKN removal and lipid production of C. vulgaris grown in PIWW:

Table 5 Prediction performance and validation analyses of RSM and ANN models for the phycoremediation of pharmaceutical industry wastewater using C. vulgaris

Y (TP removal) = 83.89 + (15.46 A) + (1.19 B) + (3.16 C) – (1.40 AB) – (0.20 AC) + (0.73 BC) – (35.18 A2) – (6.46 B2) – (1.55 C2)

Y (TKN removal) = 76.37 + (13.90 A) + (1.75 B) + (1.92 C) – (0.87 AB) + (0.19 AC) + (0.53 BC) – (33.25 A2) – (6.66 B2) + (3.61 C2)

Y (Lipid production) = 19.09 + (3.48 A) + (0.43 B) + (0.48 C) – (0.21 AB) + (0.04 AC) + (0.13 BC) – (8.31 A2) – (1.66 B2) + (0.90 C2)

On the other hand, the development of ANN models showed that for TP/TKN and lipid production models, the architect worked efficiently for all three phases, i.e., training, testing, and validation. Overall, the R2 values were above 0.9800 for all the development steps. However, the errors were minimal while using 6, 6, and 5 epochs at gradient levels of 0.4896, 47.0075, and <0.0001, respectively for TP/TKN and lipid production models (Supplementary information 1). The minimum difference between the experimental and predicted response values was also encountered for ANN models. The comparative assessment of experimental vs. predicted model values in terms of TP/TKN removal and lipid production of C. vulgaris is given in Fig. 4. The optimization studies revealed that maximum reduction of TP (90.35%) and TKN (83.55) along with maximum enrichment of lipid contents in C. vulgaris (20.88%) can be achieved by adjusting the PIWW concentration at 60.73%, reactor temperature of 25.62 °C, and light intensity of 4000 lx, respectively (Table 6).

Fig. 4
figure 4

Comparative feasibility of RSM and ANN models in predicting total phosphorus, total Kjeldahl’s nitrogen, and lipid production of Chlorella sp

Table 6 Optimization results for maximized phycoremediation of pharmaceutical industry wastewater and lipid production using C. vulgaris

Previous studies have shown that the efficiency of artificial neural network models is much higher as compared to RSM models (Kumar et al. 2021). The same justification was observed from the results of this study. In a recent study, Liyanaarachchi et al. (2021) constructed RSM and ANN-based models for the optimization of algal biomass, total lipid, unsaturated lipid, and oleic acid production along with time and pH. After 16 days, the optimum oleic acid concentration of 745.21 mg/L was noticed at pH 7.46. On the other hand, 2663.34, 1266.33, and 1072.58 mg/L of algal biomass, total lipid, and unsaturated lipids production were observed, respectively. Since the above studies also support the findings of our study, therefore, both the RSM and ANN models can be effectively used in the optimization of PIWW phycoremediation experiments using isolated C. vulgaris.

Conclusion

This study concluded that the isolated C. vulgaris was capable of eliminating the TP (91.11%) and TKN (82.41%) pollutants of PIWW wastewater along with significant enrichment of lipid contents (20.60%). Based on the reactor optimization studies, the optimum values of PIWW concentration, temperature, and light intensity were 60.73%, 25.62 °C, and 4000 lx, respectively. RSM and ANN modeling showed that both models can be used for designing and optimizing phycoremediation experiments. However, ANN models were identified as more robust in terms of high accuracy and fewer error parameters as compared to RSM models. Overall, the study suggests that phycoremediation might be a suitable option for the biological treatment of PIWW. Moreover, the harvested algal biomass showed a good amount of lipid content; therefore, it can also be utilized for biofuel production. Further studies, on specific removal of BOD and COD loads of PIWW, should also be addressed. Also, studies on the occurrence of different pharmaceutical compounds such as antibiotics and their effects on algal growth are highly recommended.