1 Introduction

The future gap, between the worldwide energy demand and its availability, has forecast for decades to be filled by alternate sources. Although some new renewable and non-renewable techniques like wind energy, solar energy, hydro energy and nuclear energy and resources like animal and plant waste, animal fat (Bankovic-llic et al. 2014), vegetable oil (Gadge and Raheman 2005; Aicantara et al. 2000; Baladhiya and Joshi 2016; Adewale et al. 2015), which have been proven to be more eco-friendly resources than petro-diesel (Shirneshan et al. 2012; Shirneshan 2013), have become very popular, their high price is becoming an obstacle for them to come into regular use. At the same time, it has been proven that the quantity of biofuels from living sources like vegetable oil, animal fat are not enough to meet world energy requirement for transportation fuel (Smith et al. 2010). On top of that, the conflict of food versus energy (Parman et al. 2011) has been taking place worldwide and it has been reported that the production of biofuel has caused significant increases in the price of regularly used food stuffs like corn and sugar (Seo et al. 2014). So, countries like India (Kumar et al. 2013) which import 43% of their total edible oil in each year cannot produce biodiesel from edible resources from the ethical point of view. Environmental pollution due to conventional and some non-conventional usage in many sectors, especially transport (Conti and Holtberg 2011), has become a threat to many biospheres. So, from these points of view algae are good alternatives for production of biofuel which is eco-friendly [fixes 0.6% CO2 (Ponnusamy et al. 2014)]. Algae lack many drawbacks which are inherited by many other fuel crops. In much research, algal growth supplemented with carbon in the form of carbon dioxide has shown very good growth along with better lipid content (Holbrook et al. 2014; Dassey et al. 2014; Widjaja et al. 2009). Algae take 100–200 times less than the land area required by oil crops like soya bean, jatropha or palm to grow, while it has 10–20 times more oil yield and much better growth rate (Chisti 2007, 2008; Meng et al. 2009). Moreover, it can be grown on nonproductive land (Costa and Moraise 2011)using variety of water sources. Brackish water, wastewater (Woertz et al. 2009; Christenson and Sims 2011), etc., can be used for its growth (Ashokkumar et al. 2014). Although biofuel from algae, especially biodiesel, is not a very new technology, its use is still confined mostly to laboratories mainly for its high oil price and unawareness about the importance of algae as a fuel resource. In most cases, algae, for biodiesel production, are grown in photobioreactors (Podevin et al. 2017) to avoid contamination and increase lipid content in artificially controlled environment. This technology is very costly (Nosker et al. 2011) and causes increases in oil price (Mata et al. 2009). Supply of freshwater, which is a mandatory option for algae culture in these cases, is also not an environment-friendly concept (Chisti 2013). In Punjab, India, algal bloom takes place rapidly in many water bodies including cattle ponds, canals and pisciculture ponds. This huge quantity of algae remains unused and causes pollution in those water bodies by making a film at the surface and not allowing the sun light to penetrate the water. Therefore, those algae are thrown away in vats. In this experiment, these unused algae were collected from some specific sites and used to produce biodiesel to examine their efficiency to produce energy. As the main raw material algae used in this case had no commercial value, it was assumed that the algal oil and thereby algal biodiesel produced in this work would be cheaper in price.

2 Materials and method

2.1 Selection and collection of algal biomass

Algal biomass was primarily collected from ponds which are used for pisciculture at Punjab Agricultural University campus, Punjab, India. In these ponds, culture and experiments on commercial fish take place throughout the year. These ponds get cleaned in winter. Huge algal blooms take place in these ponds at this time. These algae are thrown away to re-prepare the ponds. Some specimens of algae were collected from Simlapuri Nahar (canal) of Ludhiana, Punjab. These algae, collected from these two sites, were chosen for the experiment as they are (1) economically unimportant, (2) easily available and (3) not used by any one for any purpose. Collection of algae was done by a simple algae net, and these algae were brought to the laboratory for drying.

2.2 Identification of algal species

Sample of algae collected from all ponds underwent microscopic examination for the identification of their species. All samples were examined at 10×, 40× and 100× magnifications. Species were identified according to their morphological characters.

2.3 Drying of algae

To make this process eco-friendly and economically cheap, all collected algae were divided to small chunks and partially dewatered manually by pressing. These were kept in the sun on the roof top for 2–3 days for complete drying. The daytime temperature of the area varied from 7 to 12 °C at that time. As in summer days (day temperature 30–45 °C), keeping algae in the sun for 1–1.5 days was found to be enough for complete drying, use of electric oven for drying was completely avoided.

2.4 Oil extraction

Dried algal biomass was ground to powder (Fig. 1) by a mixer grinder and stored in dry, airtight glass vessels. Solvent extraction was used for extracting oil from this algae powder. Digital Soxtherm apparatus (Gerhardt) (Fernández et al. 2010; Silva et al. 2011) was used for conducting this part of the experiment. Oil from algae was extracted by using hexane and acetone. Algae (5 gm) were taken in each Soxtherm-thimble. The weights of the collection vessels were taken at the beginning and after 2–3 repetitions of the oil extraction procedure. After extraction, oil was collected in glass vessels for further experiment. Excess solvents were collected by Soxtherm in the collection tank. The solvents were recovered for further experiments. Recovery of 80%–92% of solvents was done by this machine which helped to stop the wastage of solvents and keep the whole process cheap.

Fig. 1
figure 1

Dried algae and its powder

2.5 Biodiesel production from algal oil

Biodiesel was produced from crude algal oil by transesterification. The free fatty acid (FFA) content of the crude oil was measured before transesterification. FFA of the oil was 21.3%. As the FFA was very high, a two-step esterification procedure, i.e., acid esterification followed by a conventional base esterification or transesterification in other word (Sorguven and Ozilgen 2010) was performed (Dhawane et al. 2016; Suganya et al. 2013; Berchmans and Hiratab 2008). Different parameters like alcohol (methanol)-to-oil molar ratio (3:1; 4:1; 5:1; 6:1, 7:1, 8:1 for both acid esterification and alkaline esterification), catalyst amount (0.5, 1.0, 1.5, 2.0, 2.5, 3.0 and 3.5 wt%), reaction time (30, 45, 60, 75, 90, 105 and 120 min), reaction temperature (40, 45, 50, 55, 60 and 62 °C) and settling time (60, 90, 120, 150, 180, 210, 240, 270 and 300 min) were used to optimize the procedure. Potassium hydroxide (KOH) was used as a base catalyst, and concentrated sulfuric acid (conc. H2SO4) was used as an acid catalyst in this experiment. All the acid esterification and transesterification reactions were done in a water bath shaker. The reactants were put inside screw-capped conical flasks, and the flasks were fastened in the slots of the water bath shaker (Ragit et al. 2011). The conical flasks were stirred at 250 rpm (Musa 2016) inside the water bath at a preset constant temperature for the reaction to take place inside the conical flask. When one parameter was being optimized, all other parameters were kept constant and the optimized parameters were kept constant at the time of optimization of next parameters. Just after the transesterification reaction, the solution was put in a separating funnel to separate glycerol. The settling time for complete separation of glycerol from the ester was also optimized. The final product was washed with hot distilled water followed by heating at 100 °C in the oven to remove water and get crystal clear biodiesel. The flowchart of this experiment is given in Fig. 2.

Fig. 2
figure 2

Flowchart of acid and alkaline treatment of oil for biodiesel production

Besides this practical experiment (non-statistical), a statistical analysis for the optimization of transesterification procedure was performed using the Taguchi method (Ross 1989; Buasri et al. 2009). Four factors namely molar ratio (X1), catalyst concentration (X2), reaction time (X3) and reaction temperature (X4) were considered as variables for this analysis (Table 3).

2.6 Fuel characterization

Produced biodiesel was stored in closed airtight dry glass vessels. Different characteristics (Ragit et al. 2012) of biodiesel were tested by standard methods (Table 1) to check its eco-friendliness and suitability in a CI engine. All characters of the biodiesel were tallied with BIS/ASTM standards.

Table 1 Properties and standard methods for fuel characterization

3 Result and discussion

3.1 Identified algal species

In the mixed indigenous culture of algae collected from PAU, ten species were found to be present. The identified species were Chlorella sp., Closterium sp., Ocillatoria sp., Spirulina sp., Navicula sp., Pinullaria sp., Zygnema sp., Spyrogyra sp., Scenedesmus sp., Gomphonema sp.

In Simlapuri Nahar, Euglena sp., Spirulina sp., Chlorella sp., Spyrogyra sp. Urenoma sp., Frustulia sp., were present.

3.2 Weight of dried algal biomass

A huge reduction in the weight of algal species took place after the drying of algae. The weight of fully dried algal mass was found to be one-tenth of the primary weight. After complete dewatering, 1–1.5 kg of dried algae was obtained from every 10 kg of wet algae.

3.3 Yield of algal oil

Yield of the oil was calculated as the fraction of weight of the oil produced per kilogram of dried algal mass from which the oil was extracted \(({\text{Oil}}\,{\text{yield}} = \frac{{{\text{Oil}}\;{\text{extracted}}}}{{{\text{Dried}}\,{\text{algal}}\,{\text{biomass}}\,{\text{taken}}}} \times 100)\). It was found that the oil extraction capacity of hexane is the higher (9%) of the two solvents. The acetone was able to extract almost 8.5% of the algal oil. For the rest of the experiment, acetone was used to extract oil as it is much cheaper than hexane.

3.4 Optimization of biodiesel production process

3.4.1 Acid treatment

Acid treatment was done to decrease the FFA of algal oil to a certain level from where transesterification can be initiated. This step also helped to remove the impurities present in the oil.

3.4.1.1 Optimization of methanol-to-oil molar ratio

Six methanol-to-oil molar ratios (3:1, 4:1, 5:1, 6:1, 7:1, 8:1) were compared in a row. At this time, all other parameters were kept constant (catalyst concentration of 2 wt%; reaction temperature of 55 °C; reaction time of 75 min). There was a huge change in FFA while the methanol-to-oil molar ratio increased from 3:1 to 6:1. At molar ratio of 7:1, the FFA of the oil was reduced to 3.12%. No remarkable change of FFA was observed by further increasing the molar ratio (Fig. 3). In each of the next optimization experiments in acid esterification, a methanol-to-oil molar ratio of 7:1 was used.

Fig. 3
figure 3

Optimization of methanol-to-oil molar ratio (acid esterification)

3.4.1.2 Optimization of catalyst concentration

Four catalyst concentrations (0.5, 1.0, 1.5 and 2.0 wt%) were taken for the optimization of acid treatment procedure. The FFA content of the algal oil dropped down to 1.83% when 1.5 wt% of catalyst was used. No further decrease was found by using more H2SO4 (Fig. 4). In the next experiments of acid esterification, methanol to oil molar ratio of 7:1 and catalyst concentration of 1.5% were taken.

Fig. 4
figure 4

Optimization of acid catalyst concentration (acid esterification)

3.4.1.3 Optimization of reaction temperature

Among six reaction temperatures, the lowest FFA was seen at 55 °C. But at the same time, it gave exactly same FFA (1.72%) when the reaction was done at 60 °C. So, at the time of optimization of reaction time, both reaction temperatures (55 and 60 °C) were observed and examined again with all reaction times along with previously optimized parameters (molar ratio and catalyst concentration) (Fig. 5).

Fig. 5
figure 5

Optimization of reaction temperature (acid esterification)

3.4.1.4 Optimization of reaction time

It was found that 90 min was enough to complete the reaction. The FFA dropped to 1.06% (55 °C) and 1.09% (60 °C). No further significant change was found by increasing the time any further (Fig. 6). Although there was a very minute difference between the FFA values derived from the esters produced at 55 and 60 °C, the former one was taken as the optimized parameter for forthcoming reactions (Table 2).

Fig. 6
figure 6

Optimization of reaction time (acid esterification)

Table 2 Optimized parameters of algal biodiesel production
3.4.1.5 Optimization of settling time

Ester produced in the acid esterification reaction was settled completely after 3 h (180 min). Two completely separate phases were appeared. The ester was separated and used in the optimization of transesterification process.

3.4.2 Alkaline treatment (transesterification)

Transesterification reaction for biodiesel production takes place as a result of exchange of organic R group of particular oil with an R′ group of an alcohol (Fig. 7). In this experiment, FFA along with the viscosity of biodiesel was considered as the yardsticks to optimize the procedure as viscosity plays a major role to carry out the functions and the performance of the CI engine.

Fig. 7
figure 7

Transesterification reaction

3.4.2.1 Optimization of methanol-to-oil molar ratio

Here, again all the six methanol-to-oil molar ratios (3:1–8:1) were applied. The FFA of the biodiesel started decreasing for the application of 3:1 molar ratio and reached almost its lowest value (0.25%) when 6:1 molar ratio was applied. The viscosity of the ester was also almost lowest (4.35 mm2/s) at 6:1 this time. No further increase in molar ratio could cause any effective change in FFA content and viscosity (Fig. 8).

Fig. 8
figure 8

Optimization of methanol-to-oil molar ratio

3.4.2.2 Optimization of catalyst concentration

Catalyst concentration was varied from 1.0 wt% to 3.5 wt%. The FFA came down to 0.21% while 3 wt% of catalyst and methanol-to-oil molar ratio of 6:1 were used. Using 3.5 wt% of catalyst resulted in no cut down in FFA of the ester, but formation of soap. The repetition of the experiment with same catalyst concentration yielded same result. So, KOH of 3.5 wt% was not considered in this experiment anymore and FFA along with the viscosity of the same was not calculated. So, the catalyst concentration of 3 wt% was noted as the optimum catalyst concentration for transesterification (Fig. 9). The viscosity of the ester was 3.96 mm2/s at this time.

Fig. 9
figure 9

Optimization of catalyst concentration

3.4.2.3 Optimization of reaction temperature

A steep fall of FFA and viscosity of the biodiesel was found while the reaction temperature increased from 40 °C to 62 °C. A reasonable change in FFA content (0.18%) and viscosity (3.12 mm2/s) was found by increasing the temperature up to 60 °C. A negligible decrease in FFA and viscosity was observed while the transesterification was done at 62 °C (Fig. 10). Therefore, 60 °C was considered as the optimum value of reaction temperature and used for optimizing the reaction time along with methanol-to-oil molar ratio of 6:1 and catalyst (KOH) concentration of 3 wt%.

Fig. 10
figure 10

Optimization of reaction temperature

3.4.2.4 Optimization of reaction time

Soap formation (Deng et al. 2010) was found when transesterification was done for 30 min. Hence, the reaction was repeated to confirm the first result. When the result was the same, the reaction time of 30 min was also not considered any more in this experiment. The best result was yielded when the reactants were reacted for 60 min. The FFA of ester was 0.18%, and the viscosity of the same was 3.12 mm2/s after this reaction (Fig. 11). As the FFA did not change by increasing the time of reaction to 75 min, 60 min was considered as the optimum time by considering the concept of energy saving (Table 2).

Fig. 11
figure 11

Optimization of reaction time

3.4.2.5 Optimization of settling time

It took 150 min to deposit all the glycerol produced at the bottom of the separating funnel. After this, the glycerol was separated and the biodiesel was water washed to remove KOH. A 96.4% biodiesel was obtained from the procedure, and the presence of fatty acid methyl ester (FAME) was confirmed by using NMR (nuclear magnetic resonance) technique.

3.5 Statistical analysis

To set the levels of the statistical analysis, the appropriate upper and the lower values (7:1 and 5:1 for methanol-to-oil molar ratio, 3.5 and 2.5 wt% for catalyst concentration, 75 and 45 min for reaction time, 62 and 55 °C for reaction temperature) of the optimized values (derived from the non-statistical experiment) along with optimized values (methanol-to-oil molar ratio of 6:1, catalyst concentration of 3 wt%, reaction time of 60 min and reaction temperature of 60 °C) of all these parameters itself were used (Table 3).

Table 3 Process parameters taken and their levels

L9 orthogonal array was used for designing the experiments to see the effect of four parameters to achieve the highest yield of biodiesel along with lowest free fatty acid content (Table 4). Experiments were conducted again to observe the yield and the FFA content of algal biodiesel resulted for all nine sets of parameters provided by the Taguchi method. Three trials of both yield (%) and FFA (%) of the biodiesel were performed, and their results were noted. Corresponding means of the trials were calculated thereafter.

Table 4 Yield and FFA of the algal biodiesel resulted using orthogonal L9 array and their means (X = parameters; T = trials; Y = mean of corresponding trials)

3.5.1 Effect of parameters

The yield and FFA of the biodiesel were plotted for nine experimental runs. The signal-to-noise ratio (SNR) achieved from the experiment is plotted in Table 5. The ranks in the table indicate the effect of the parameters on two factors, i.e., the yield and FFA content of algal biodiesel. As our goal was to achieve biodiesel with highest yield and lowest FFA content, the ‘larger is better’ model (SNR) was used for Y1 (yield) and the ‘smaller is better’ for Y2 (FFA).

Table 5 Signal-to-noise ratio for process parameters at different levels

The ranks indicated that ‘catalyst concentration (X2)’ was the foremost influencing factor for the highest yield and the ‘molar ratio (X1)’ affected the FFA content of the biodiesel the most in comparison with other parameters.

In Fig. 12, the contribution of four parameters to the yield (Fig. 12a) and FFA (Fig. 12b) of biodiesel is shown where higher signal-to-noise ratio shows better effect of that parameter and the optimum level is indicated by the maximum value of SNR in all the graphs. According to the graphs, the optimum level of a parameter for highest biodiesel yield was X1 (methanol-to-oil molar ratio) at 6:1, X2 (catalyst concentration) at 2.5 wt%, X3 (reaction time) at 45 min and X4 (reaction temperature) at 62 °C. The optimum level of a parameter for lowest FFA was X1 at 6:1, X2 at 2.5%, X3 at 45 min, X4 at 55 °C.

Fig. 12
figure 12

SNR for each parameter (X1—methanol-to-oil molar ratio; X2—catalyst concentration; X3—reaction time; X4—reaction temperature) for a yield, %, and b FFA

3.5.2 Analysis of variance by ANOVA

The significance of parameters was calculated by the percentage of contribution of those parameters on the yield (Y1) of biodiesel as well as the FFA content (Y2) of it (Table 6). The highest contribution (67.7%) for biodiesel yield was due to catalyst concentration (X2), whereas molar ratio (X1) was the second most contributing (17.3%) parameter which was followed by reaction time (X3) and reaction temperature (X4) providing contribution of 8.9% and 6.1%, respectively. On the other hand, molar ratio with 58.3% contribution was the most significant parameter for lowest FFA. Among the rest of parameters, catalyst concentration (33.7%), reaction temperature (4.5%) and reaction time (3.4%) were significant consecutively.

Table 6 Percentage of contribution of parameters

The equation of the mathematical model below stands for regression analysis of observed data of biodiesel yield (Y1):

$$Y1 \, = \, 179 \, + \, 12.5X1 - 68.5X2 \, + \, 0.035X3 \, + \, 0.06X4,$$
$$R^{2} = \, 0.69.$$

To find the effect of parameters (X) on factor Y1 and factor Y2, six 3D graphical plots were prepared using the three most contributing parameters (catalyst concentration, methanol-to-oil molar ratio and reaction time for the highest yield of the biodiesel; molar ratio, catalyst concentration and reaction temperature for the lowest FFA content of algal biodiesel) derived from Table 5 and Fig. 12a, b. The best yield of biodiesel was found to be achieved when the methanol-to-oil molar ratio, catalyst concentration and reaction time increased from 5:1, 2.5 wt% and 60 min to 6:1, 3 wt% and 75 min (Fig. 13). From the previous tables, it has become evident that catalyst concentration was the most contributing parameter for yielding highest amount of biodiesel. So, it can also be observed from the 3D graph that the highest yield of biodiesel is plotted at 3 wt% catalyst concentration and increase in its amount causes significant cut down in the yield. Following the same procedure, 3D plots for FFA were also prepared using three parameters (methanol-to-oil molar ratio, catalyst concentration, reaction temperature consecutively) which exerted most contribution. The least FFA was seen at methanol-to-oil molar ratio of 6:1, catalyst concentration of 3 wt% and reaction temperature of 55 °C.

Fig. 13
figure 13

3D plots of yield of biodiesel with respect to a methanol-to-oil molar ratio (X1) and catalyst concentration (X2), b catalyst concentration (X2) and reaction time (X3), c reaction time (X3) and methanol-to-oil molar ratio (X1); and FFA with respect to d methanol-to-oil molar ratio (X1) and catalyst concentration (X2), e catalyst concentration (X2) and reaction temperature (X4), f reaction temperature (X4) and methanol-to-oil molar ratio (X1)

3.6 Biodiesel characteristics

All characteristics of algal biodiesel were almost equally good or better than conventional diesel fuel. Moreover, all of them were within the limit of ASTM/ BIS standards (Table 7) (McCurdy et al. 2014; Diesel Net Technology Guide 2009). The kinematic viscosity of the biodiesel was just a little higher than the petroleum diesel (3 mm2/s). At the same time, the acid value of biodiesel was also very low (0.36%) which indicates the chance of corrosion of the parts of engine is less in this case. The ash content and carbon residue content were also very low (0.01% and 0.03%, respectively), and thus the fuel results in very low deposition of carbon in the engine which is good for the engine as well as the environment. Therefore, it indicates that the fuel produced can be used in the CI engines with very nominal modifications of the engine. As the flash point of the biodiesel produced from algae was very much higher than that of fossil fuel diesel (54–96 °C), it is much safer than fossil fuel diesel because it decreases the chance of fire hazards many folds (Lee and Ha 2003). Although the calorific value of the biodiesel (40,882 kJ/kg) is lower than that of conventional petroleum diesel (44,800 kJ/kg), it is much higher than that of the biodiesel produced from commonly used feed stocks like palm oil (36,764 kJ/kg) and Jatropha (39,300 kJ/kg). On top of all these, lower cloud point and pour point (−1 and –6 °C) would let it to be used in winter with no modification of engine or addition of additive (Sarin et al. 2009).

Table 7 Algal biodiesel characteristics along with ASTM/ BIS standards

4 Conclusion and future research scope

As the diesel engine plays an important role with its high thermal efficiency and low price in energy sector (An et al. 2012), supply of sufficient non-renewable petro-diesel or substitutions of petro-diesel in today’s scenario is very important. Algae from that perspective are very promising resource for the production of biodiesel. In this experiment, one of the biofuels of algae, i.e., biodiesel produced, can be a good alternative fuel as it solves the problem of solid waste disposal on the one hand and the problem of environmental pollution on the other.

The ‘non-statistical approach’ was used to set the levels of the parameters for ‘statistical analysis’ in this experiment as no research work was done before on this particular culture of feedstock of unused indigenous mixed culture of algae. Although the results derived from the two approaches were different, there was a least difference in the yield of biodiesel produced using both approaches and both were quite satisfactory (>90%). The little difference took place because of the different sets of levels of parameters which were set by the software. As the yield of the biodiesel was good enough (96% obtained from the non-statistical method and 93% obtained from the statistical method) and properties of the same were within the limits of ASTM or BIS standards and were almost similar to petro-diesel, only minor modifications will be required in the engine to run it with B100 (100% biodiesel). It can be assumed that blending of less than 30% will not require any modification of the engine parts. Moreover, the properties of this biodiesel were better than many other commercially used biodiesels. So, this fuel can replace all those biodiesels and create a very good industry and business market. At the time when the economic feasibility of all biofuels including biodiesel from algae is under question mark (Amano-Boadu et al. 2014), this completely unused mixed culture of algae can be used to produce biodiesel as the feed stock in this case has no price value. Since the acid value and the FFA content of this algal oil are very high, it was mandatory for us to go for a two-step biodiesel production process. But more research in future can help produce biodiesel in single step from this mixed culture of algae. The only constraint in that case would be the oil content of these algae which is comparatively lower than that can be yielded from monocultures of some algal species. So, experiments can be done on the culture of these algae to increase its oil content and the growth rate. Experiments with modern approach like making the procedure carbon neutral by providing the energy of oil extraction and biodiesel production using solar power (Taylor et al. 2013) have been proven in previous experiments. Similar experiments using this feedstock can be performed on these algae which may make the price of the final product reasonably cheaper.