Production of Biodiesel from Castor Oil: A Review

: An attractive alternative to the use of fossil fuels is biodiesel, which can be obtained from a variety of feedstock through di ﬀ erent transesteriﬁcation systems such as ultrasound, microwave, biological, chemical, among others. The e ﬃ cient and cost-e ﬀ ective biodiesel production depends on several parameters such as free fatty acid content in the feedstock, transesteriﬁcation reaction e ﬃ ciency, alcohol:oil ratio, catalysts type, and several parameters during the production process. However, biodiesel production from vegetable oils is under development, causing the ﬁnal price of biodiesel to be higher than diesel derived from petroleum. An alternative to decrease the production costs will be the use of economical feedstocks and simple production processes. Castor oil is an excellent raw material in terms of price and quality, but especially this non-edible vegetable oil does not have any issues or compromise food security. Recently, the use of castor oil has attracted attention for producing and optimizing biodiesel production, due to high content of ricinoleic fatty acid and the possibility to esterify with only methanol, which assures low production costs. Additionally, biodiesel from castor oil has di ﬀ erent advantages over conventional diesel. Some of them are biodegradable, non-toxic, renewable, they can be used alone, low greenhouse gas emission, among others. This review discusses and analyzes di ﬀ erent transesteriﬁcation processes, technologies, as well as di ﬀ erent technical aspects during biodiesel production using castor oil as a feedstock.


Introduction
Biodiesel definition according to the American Society for Testing and Materials (ASTM) is a fuel composed mainly of mono-alkyl esters derived from renewable vegetable oils or animal fats meeting the ASTM D6751 requirements.Biodiesel is an environmentally friendly biofuel as the net greenhouse gas emission is lower than that of fossil fuels [1].Biodiesel is produced from renewable sources, is biodegradable, non-toxic, free of aromatic compounds, and for instance biodiesel from castor oil has a lower cetane number (43.7) than that of conventional diesel (51) [2].One of the main advantages of biodiesel is its high content of oxygen (>10%) that promotes and improves combustion processes in diesel engines.In addition, it does not contain sulphur, therefore no harmful sulphur oxides are generated during its combustion and released into the environment [3,4].Several raw materials are used to produce biodiesel, such as glycerides or vegetable oils as they have a high calorific value.Additionally, the use of feedstocks as vegetable oils can contribute to decreasing greenhouses gases

Vegetable Oils to Produce Biodiesel
During biodiesel production it is necessary to consider the ecological and economic benefits during its production and its use as a biofuel.The biodiesel production cost depends greatly on the feedstock price.It is advisable to produce biodiesel in the same regions where the feedstock is located to decrease costs and environmental footprint related to feedstock transport [10].
The preferred characteristics of oily raw materials to produce biodiesel are crop adaptability to grow under local conditions (precipitation, soil, latitude, temperature, etc.), availability, high oil content, appropriate composition, high adaptability with agricultural infrastructure, access to agricultural supplies (water, fertilizers, pesticides), potential to commercialize the different agricultural co-products generated as well as to obtain crops from marginal land [25].R. communis meets most of the properties considered desirable to produce useful feedstocks in biodiesel production, except the high viscosity of oil that may limit its use.They are composed mainly of triglycerides and slight amounts of free fatty acids.Table 2 shows the most abundant fatty acids in vegetable oils (palmitic, oleic, and linoleic acids) from several sources.As mentioned above, castor oil, unlike other vegetable oils, has little variability in fatty acid content as compared to other species.In addition to ricinoleic acid, depending on its origin, R. communis may contain small quantities of oleic, linoleic, palmitic, stearic, and linolenic acids [26].Vegetable oils as a feedstock for biodiesel production is a promising source.However, most of them are used for food purposes and their use is restricted for this activity.Hence, castor oil for biofuel production shows several advantages over conventional edible oils.Due to its non-edible oil and its main fatty acid (ricinoleic acid) with hydroxyl groups which have a higher solubility in alcohols, it represents a great advantage to obtain methyl esters at low temperatures.

Oil Extraction Processes
Technologies such as pressing extraction, solid-liquid extraction, and a combination of both are generally used to extract oils from seeds.Originally, technological development in processes to extract efficiently different vegetable oils was specifically to satisfy human consumption.However, during the last decades, non-edible oils have been used for producing other items, such as biodiesel from castor oil.Extraction method efficiency varies according to the moisture content in the seeds as well as extraction temperature.
For mechanical extraction, the oil is extracted using pressure and there is a wide variety of presses.When a screw press is used, the seeds can be preheated at 40-50 • C with the aim of decreasing the oil viscosity to enhance the extraction [33,34].Other kinds of presses are the oil expellers, which could have an extraction efficiency as low as 8-14%.In this case, oil is held in the "defatted cake".This problem increases with the oil viscosity and is critical in the case of castor oil.To solve this, expellers of dual-stage compression are used.After mechanical extraction, fresh oil may contain contaminants, such as fine pulp particles, which should be removed by decantation or filtration because their presence causes deterioration of the oil.
Vegetable oil extraction using solvents is commonly used at the industrial scale.This method offers up to 99% of extraction efficiency and high quality and purity of the oil, compensating the high costs of these extraction processes [35,36].Between all solvents used to extract vegetable oils, hexane is the most used.After extraction, the solvent is removed by distillation and can be condensed and reused.However, in the case of castor seeds, the solvent can also extract toxic compounds such as ricin and contaminate the oil [33,37].
Ethanol is an attractive solvent for oil extraction because it has low toxicity, is safe to manage, and can be produced from renewable sources.When ethanol is used for oil extraction, the distillation and solvent recovery steps can be replaced by a cooling process to form two phases, an oil micelle (the rich micelle) and an ethanol micelle (the lean micelle).Ethanol micelle is recycled for subsequent extractions.The rich micelle may contain up to 91% of oil, about 8% of ethanol, and 0.4% of free fatty acids.When the oil is used to produce biodiesel, the remaining ethanol may be an acyl acceptor in the transesterification reaction [38,39].Danlami et al. [40] compared the efficiency of castor oil extraction using three different solvents (hexane, petroleum ether, and ethanol).The results obtained show that the maximum yield of castor oil extraction was obtained using methanol.
In recent years, processes with high extraction efficiency have been developed, such as supercritical fluids, ultrasound, and microwave [36,39,40].Oil extraction using supercritical CO 2 as a solvent is an attractive alternative as it is non-toxic, easy to obtain, inexpensive, and non-flammable.Additionally, the refining steps are simpler than those of conventional processes, because some steps, such as distillation are not necessary.However, the main inconvenience of this process is that it requires a high capital investment and energy consumption causing high production costs [37].For instance, Del Valle et al. [41] performed an economic analysis focused on operational cost and mass transfer in a process of oil extraction from pre-pressed oleaginous seeds, using supercritical CO 2 as a non-conventional solvent.Likewise, Nunez and del Valle [42] calculate the production cost in an industrial vessel during oil extraction using supercritical CO 2 .They calculate a total CO 2 production cost from 3.53% to 4.31% using 3000 kg/h of CO 2 /vessel.In addition, when they increase to 6000 kg/h of CO 2 /vessel CO 2 in the system, the total cost only increases by 1.33%.Nevertheless, so far it is not possible to establish a fixed cost for supercritical CO 2 on castor seed oil extraction, as to calculate the cost, several parameters need to be considered.Some of the most important are vessels (unit number and capacity), scale (laboratory, pilot or industrial), CO 2 characteristics (density, kg used/kg of feedstock, superficial velocity, residence extraction time), among others.
The use of ultrasound-assisted extraction promotes the breakdown of cell walls in mashed castor seeds, facilitating the release of intracellular material and favoring the mass transport of solvent [4].In microwave-assisted extraction, the quickly generated heat creates pressure forces in the interior of the biological matrix, producing high-quality extracts and high recovery efficiency of oil.It has been reported that this type of process has allowed extracting higher amounts of soybean and rice oil in less time (20 min) as compared to conventional solvent extraction [43].According to Ali et al. [34], considering the power consumption during vegetable oil extraction, microwave-assisted extraction (MAE) is more efficient than mechanical (22.6%), solvent (36.3%), or ultrasonic extraction (10%).
Although it has been reported that the most efficient method for the extraction of castor oil is through organic solvents such as hexane, toluene, petroleum ether, or heptane, the cost of the process increases the final biodiesel cost.Due to this reason, so far, cold-pressing has been the best method from the process point of view.This method has several advantages, such as low investment cost, low labor, continuous oil extraction and low or no impact on the chemical characteristics of the oil.Likewise, similar yields have been reported for those obtained using a solvent extraction process.

Transesterification
Among all the methods for the production of biodiesel using vegetable oils as a feedstock, the most used is a transesterification reaction, where triglycerides (TGA) are transformed into fatty acid methyl esters (FAMEs) with a chemical or biological catalyst.Transesterification reaction usually has been used to produce biodiesel from different vegetable oils including castor oil.Transesterification is a key step of biodiesel production and three important conditions that need to be considered for this step are temperature, reaction time, and catalysts [44].In addition, triglycerides transesterification can be performed using methanol (FAMEs) or ethanol (FAEEs) in the presence of different types of catalysts, such as sodium hydroxide, potassium hydroxide, or sulfuric acid.Nevertheless, the use of methanol presents some advantages, for example the reaction time is shorter, and the temperature is smaller.For instance, Meneghetti et al. [45] evaluated methanolysis and ethanolysis for biodiesel production using castor oil as a feedstock.They reported that the high yield of biodiesel production using methanol was 90% with 1 h of reaction time at 60 • C.However, when they used ethanol the reaction time and temperature increased up to 5 h and 80 • C, respectively.They attributed the catalytic difference due to water molecules production when the active species are formed in the presence of hydroxide groups because they can form soaps or esters provoking an important decrease in biodiesel yield.Likewise, biodiesel production through ethanolysis shows more problems during the by-product separation process [46].

Homogeneous Catalysis
In this method, an acid or alkaline solution is used as a catalyst.Alkaline catalysts such as potassium hydroxide and potassium methoxide are normally used for the production of biodiesel as they are more efficient and cheaper than acids.Alkaline catalysts can give high reaction yields (over 97%) in relatively short periods (from 10 min to 2 h), under moderate temperatures (25-70 • C) [10,12,47].In the reaction, nucleophilic alkoxide ion attacks the electrophilic part of the carbonyl group present in a triglyceride molecule.Figure 1 shows the breakdown of triglycerides using microwaves and alkaline catalyst.In the first stage, a tetrahedral intermediate is produced when the alkoxide ion is attached to the carbonyl group of triacylglycerol molecules.Subsequently, the tetrahedral intermediate reacts with alcohol and the alkoxide ion is regenerated, and finally during the last step tetrahedral intermediate is rearranged, to obtain fatty acid alkyl esters (FAAE) and diacylglycerol (DAG) molecules.These mechanisms occur for the breaking of each fatty acid and at the end, three esters of fatty acids (FAEs) and glycerol are formed The alkaline-catalyzed transesterification requires raw materials with moisture content lower than 0.3% (w/w) and less than 0.05% free fatty acids (FFA) to avoid the formation of soap, which hinders the separation of biodiesel from the glycerol and other by-products.Table 3 shows different works using alkaline transesterification to produce biodiesel.In a study using rapeseed oil, it was observed that the basic transesterification may produce yields of up to 95% in reaction time shorter than 2 min.For higher reaction time, the saponification occurs.This means that the transesterification reaction must be stopped at the exit point of the reactor to avoid the formation of soap, which could cause significant losses [41].Therefore, the most important step during acid catalysis is protonation reaction from the carbonyl group in the triglyceride molecule as well as the reaction between alcohol and protonated group to create a tetrahedral intermediate [42].Acid catalysis generally requires sulfuric acid, sulfonic acid, or hydrochloric acid.Acid catalysis is considered more appropriate to transesterify vegetable oils with a high amount of free fatty acids (FFA) because no soap is produced.However, it requires prolonged reaction times as well as high amounts of alcohol [43].For raw materials rich in FFA, the use of two catalytic steps is recommended, first acid esterification of fatty acids (sulphuric acid, with a reaction time from 4 to 69 h, with a yield up to 99%), followed by alkaline transesterification of triglycerides.This combination allows reaching conversions near to 100% [1,22,44].

Heterogeneous Catalysis
Heterogeneous catalysis is an alternative to produce biodiesel without producing aqueous wastes.This process makes it possible to recover, regenerate, and reuse the catalyst.It can be performed in batch or continuous processes without needing additional purification steps, and high yields of high-quality biodiesel can be obtained.A key advantage of this catalysis is that it allows performing the esterification of free fatty acids and triglyceride transesterification simultaneously, and thus decreases time and energy consumption [52,53].Solid catalysts are commercially available for heterogeneous esterification and transesterification, such as those of families of Amberlyst ® and Nafion ® .Different solid acids such as mesoporous silica with sulfonic acid, carbon modified metal oxides, heteropolyacids, metal-incorporated porous oxides, zeolites, ion exchange resins, inorganic-oxide solid acids, and supported noble metal oxides have been synthesized to use as a catalyst during biodiesel production using low-quality oils [1,54].
Du et al. [55] reported biodiesel production with heterogeneous catalysts using NaY zeolite as support and La 2 O 3 as a catalyst.The result showed that the catalyst has good reusability and strength, two essential characteristics for industrial scale-up.The optimal conditions that they found to obtain a yield of 84.6% were using 10% of catalyst concentration, a molar ratio of 15:1 ethanol:oil, 50 min of reaction time and 70 • C as reaction temperature.Likewise, Baskar et al. [56] investigated Ni-doped ZnO nanocatalyst for biodiesel production using castor oil as a feedstock.The results obtained show a 95.20% yield under optimal conditions (1:8 oil:methanol, 11% of catalyst, 60 min, and 55 • C).Additionally, they observed that the catalyst can be used for three cycles without losing its efficiency.
Moreover, heterogeneous catalyst has been used for biodiesel production using several vegetable oils.For instance, Sun et al. [53] reported that heterogeneous catalysts such as potassium oxide (K 2 O) and potassium aluminate ( K 2 Al 2 O 4 ), Mo-Mn/γ-Al 2 O 3 -MgO, potassium carbonate (K 2 CO 3 ), magnesium aluminide (Mg-Al) calcined hydrotalcite, CaO-MoO 3 -SBA-15, Li/ZnO, KF/Ca-Al hydrotalcite, KF/Ca-Mg-Al, CaO/KI/γ-Al 2 O 3 , and aluminum-silicon (Al/Si) supported in potassium carbonate (K 2 CO 3 ) have been used.Recently, a process was developed using sodium methoxide (CH 3 ONa) formed through crystallization with dimethyl carbonate (DMC) as a catalyst in biodiesel production using canola oil.This process helps to obtain conversions above 95% without generating glycerol as a by-product, however, the efficiency of the catalyst is reduced at each reaction cycle [57].Some vegetal derived materials have also been proposed as catalysts.For example, Li et al. [20] tested a solid acid catalyst (RHC-SO 3 H) obtained from rice husk activated carbon (RHC) with concentrated sulfuric acid.This catalyst presented high catalytic performance and high stability in the biodiesel production process using waste cooking oil.
One of the main disadvantages of heterogeneous catalysis is the low reaction rate, caused mainly by the use of high amounts of catalysts and methanol under severe operating conditions which affects the stability of catalysts [1].

Parameters Affecting Transesterification Reactions
The main parameters which influence the chemical transesterification are temperature, alcohol-triglyceride ratio, reaction time, catalyst, moisture, and free fatty acid content [58].Table 4 shows the effect of several parameters during biodiesel production.Alcohol triglyceride molar ratio The stoichiometric ratio needs a 3:1 alcohol:oil molar ratio to produce three moles of alkyl esters of fatty acids and one mole of glycerol.
To perform the best transesterification reaction is necessary for an alcohol excess to promote the product's equilibrium.However, residual alcohol interferes during glycerol separation from biodiesel because it is highly soluble in alcohol [2] Time Has been reported that longer reaction times increase the conversion of fatty acids to fatty acid methyl esters [51] Catalyst Alkaline catalysts increase the reaction rates in comparison with an acid catalyst.However, when the vegetable oil has a high free fatty acid content as well as high water content, an acid transesterification is recommended because soap is not formed [60] Moisture content For alkaline catalysis, both compounds (triglycerides and alcohol) need to be anhydrous, due to water induces saponification [44] Content of free fatty acids In the alkaline catalysis, the content of free fatty acids should be as low as 0.5% w/w of oil, to avoid the formation of soaps. [61]

Biological Transesterification
When the feedstock to produce biodiesel is rich in free fatty acids (for example waste cooking oils), it is necessary to perform acid-catalyzed esterification before alkaline transesterification.However, this can cause corrosion in equipment and need the addition for chemical compounds to neutralize the biodiesel, increasing the costs of biodiesel production.Consequently, environmental pollution also increases.Biological catalysis is a suitable alternative to these problems.The use of biological agents as catalysts in biodiesel production has the advantages of operating under mild reaction conditions, decreasing the emissions of pollutants, and favoring the separation of glycerol [10].Generally, biological catalysis can be performed using free or immobilized enzymes, as well as microbial cells.Table 5 shows some advantages and disadvantages of these systems.So far, whole-cell systems are the most accepted and used biocatalyst to perform biological transesterification as they have more advantages as compared to free or immobilized enzymes.
An example of this type of transesterification for the production of biodiesel using castor oil as raw material is the work carried out by Kumar et al. [62].The optimal conditions to obtain a biodiesel yield of 78% were 6:1 alcohol:molar oil ratio, 10% of the immobilized enzyme for 24 h at 50 • C. Besides, they found that the immobilized enzyme can be reused by 12 cycles with a biodiesel yield of 70% after six cycles.Likewise, Andrade et al. [63] performed a simulation of a full biodiesel process using biological catalysis (free and immobilized enzyme) and castor oil as a feedstock.The observed results show that when they used free enzyme, minimization in the enzyme flow increases the profit in the transesterification reaction.In this process, optimal conditions in the reactor to obtain a biodiesel yield of 93%, were 0.3% w/v/kg of castor oil, methanol:oil ratio equal to 9, and 36.4 • C. On the other hand, when they used immobilized enzyme, optimal conditions to get 99.9%, were 50 • C of temperature reaction for 4 h using methanol:oil ratio of 17.6% w/v/kg of castor oil.Even though the biodiesel yield was higher using the immobilized enzyme, the total cost of the process was higher than when they used a free enzyme to perform a transesterification reaction.The above fact was because of an increase in temperature and reaction time to perform a transesterification reaction.The above fact was because of an increase in temperature and reaction time to perform a transesterification reaction, as well as due to higher consumption of methanol:oil ratio.Likewise, other biological processes have also been reported.Jiang et al. [65] used a Pickering emulsion stabilized with lipase mixed with mesoporous organosilica (LP@PE ® ) for biodiesel production using Jatropha curcas oil.With this catalytic system, it was possible to obtain a yield of biodiesel production of 95% when oleic acid was used and 87.1% when Jatropha curcas oil was used.The yield could be maintained above 73% during the 15 reaction cycles.Yan et al. [10] designed a recombinant yeast (Pichia pastoris sp.) with the functional intracellular expression of lipase from Thermomyces lanuginosus to improve the conversion of waste cooking oil into fatty acid methyl esters.They reported that enzyme produced by the modified strain contributed to the oil conversion, obtaining a transesterification efficiency of 82%.

Transesterification Using Ultrasound
Ultrasound is defined as the sound waves which have a higher frequency than that sensed by humans.The frequency ranges of ultrasound waves are from 20 kHz to 100 MHz.When high-frequency sound passes through the reaction system, molecular spaces may stretch and compress, causing the vibration and cavitation of the reaction system [66].Ultrasonic cavitation has a specific effect to increase the temperature, providing mechanical energy to mix the reaction media as well as energy activation to start the reaction.Cavitation forms bubbles, which collapse and break the boundary of two liquid phases.This also produces emulsification by the effect of ultrasonic jets that pass from liquid to liquid.These phenomena increase the reaction rate and biodiesel yield [30,67].
The ultrasound applied to transesterification is attractive because reactors for transesterification are safe and not complex.Ultrasonically assisted transesterification has been tested using different feedstock showing its beneficial effects, such as the increase of reaction rates and yields, and the decrease of alcohol:oil molar ratio and operating temperature [68].An example of this process to produce biodiesel from castor oil is the research performed by Sabzimaleki et al [69].They optimized several ultrasound-assisted transesterification reactions to produce biodiesel from castor oil obtaining a reaction yield of 87% in optimal conditions with a wave ultrasonic amplitude of 64%, 0.73% of an ultrasonic cycle, and a 1:8.15 oil:methanol ratio.The author reported that reaction time is the most important parameter during the transesterification reaction to obtain the high title of biodiesel.Likewise, it is possible to perform the esterification and transesterification in the same reactor using ultrasound.This does not change the characteristics of the product.The combination of ultrasound with co-solvents during extraction allows us to increase oil solubility in alcohol and increase biodiesel yield.The most common co-solvents are benzene, hexane, tetrahydrofuran, chloroform, petroleum ether, and dichloromethane [67,70].

Membrane Reactors
Known as a reactive separator, membrane reactors are types of equipment in which chemical reactions and separations can be performed simultaneously [48].According to Shuit et al. [71], membrane separation technologies applied to the production of biodiesel are based on three main principles: separation based in oil droplet size, catalytic membrane characteristics, and pervaporation.Additionally, the interest to use membrane reactors for producing and refining biodiesel has increased significantly in recent years as these systems provide high purity and product quality, as well as better yields than conventional processes [51,72].Membrane reactors can be used for different activities, such as to improve contact between the reactants and catalysts, selective removal of products from mixture reaction and take control during the addition or removal reactants [73].This technology has been successfully applied in the transesterification of vegetable oil using a ceramic membrane reactor [74].Transesterification reactions in membrane reactors can be reversible, and products should be removed to increase reaction yields.The use of membrane reactors can limit the route of non-reacted oils with product mixture, allowing an increase in biodiesel quality during its production using low-quality feedstocks.

Microwave
Electromagnetic waves between 300 MHz and 300 GHz are known as microwaves.In transesterification processes, these microwaves promote the molecular rotation of the compounds, improving their molecular interaction as well as dissipating their energy.These actions promote better heat transfer in the reaction mixture without affecting the molecular structure of formed products [75].In general, catalytic processes using microwaves promotes directly and homogeneously the absorption of energy in the material that is irradiated.One of the main advantages that this process has compared to conventional heating systems, is the elimination of temperature gradients since the heating is homogeneous and selective due to the specific characteristics of the reaction mixture.During the last decade, catalytic processes using microwaves have been increasing because it is considered a low-cost, environmentally friendly technology and the reaction times are shorter, making the energy consumption in the process less [31,76].
When microwaves are used, esterification and transesterification of castor oil are improved by the overheating in the reaction mixture, because the solvent is heated quickly above its boiling point, improving the transesterification reaction homogeneously.The above fact contributes greatly to increase the biodiesel yield [77].The reaction time of transesterification can be increased up to 2-fold of magnitude when the microwave is applied.For instance, Thakkar et al. [77] evaluated a hybrid ultrasound-microwave system to produce biodiesel from castor oil.They produced biodiesel using 1.74% of KOH as a catalyst at 43 • C in a 350:1 methanol:oil ratio during 30 min of reaction time.They performed an energy analysis of the transesterification process.The obtained results show a total energy consumption of 8W with a decrease of 6-fold during the ultrasound process and only a 1.5-fold decrease when the microwave process was used.However, in comparison with a normal mechanical stirrer process, energy consumption can decrease by more than 50% using this hybrid system (195 and 80 Wh, respectively).Likewise, the authors observed a yield increase of 2-fold in transesterification reaction, from 40% to 93%.In conclusion, the authors affirm that in laboratory-scale this type of system can decrease four times with total energy consumption of 7.9 Wh, in comparison with the obtained using mechanical stirring (30 Wh).However, other types of effects will need to be analyzed, for instance, in this type of process, there are no changes in the reaction rate related to non-thermal effects.Moreover, in some works, microwave process decreases the activation energy of triglycerides and methanol due to the increase of dipolar polarization [75,78,79].Different catalysts and catalytic processes have been evaluated to improve the conversion of fatty acids to methyl esters.Some of them have shown to be very efficient.Nevertheless, initial investment and the energy consumption during the conversion process are very high, which makes them unaffordable since it increases the total process cost and consequently the final biodiesel cost.Thus, homogeneous and heterogeneous catalysis is a viable method to produce biodiesel.However, between these two methods, heterogeneous catalysis has larger advantages such as reuse of the catalyst and low cost, some heterogeneous catalyzers can perform esterification and transesterification simultaneously, decreasing the stages of the process.Likewise, it contributes to improving product separation and, in some cases, depending on the catalysis conditions, a final stage of biodiesel washing is not necessary.

Castor Oil Biodiesel Production and Features
Castor oil is a light yellow and slightly pungent liquid, that is used in several industries around the world.Some of these industries are pharmaceutical, cosmetic, chemical, among others.However, in recent years this non-edible vegetable oil has been investigated to produce biofuels, specifically biodiesel.The above is due to physicochemical, chemical, and physical characteristics of castor oil (Table 6) give to biodiesel when this is used as a feedstock.The process to produce biodiesel from oilseeds usually starts with oil extraction using a mechanical press or solvents.Figure 2 shows a general scheme for castor oil extraction.To perform mechanical oil extraction from castor beans it is necessary to consider the high oil viscosity.On the contrary, this is not necessary if the oil is extracted with solvents, but an evaporation step would be needed to recover the solvent.After extraction, different refining steps such as filtration, centrifugation, deodorization, discoloration, or winterization would be necessary to improve biodiesel quality.
To control the enzymatic and oxidative degradation of crude oil, refining steps are required.The main refining steps are degumming, neutralization, bleaching, and drying.In degumming, phosphatides are removed by acidification, precipitation, and sedimentation.Neutralization allows the elimination of fatty acids.The bleaching step is mainly used to remove color by clay adsorbing oil, and then separated by centrifugation.Finally, the moisture can be removed by heating [20,83].Biodiesel is produced through different processes, such as oil blending, microemulsions, and transesterification.Among them, the most common process is through transesterification reaction, and it is used to transform vegetable oils into biodiesel [84].Figure 3 shows a general scheme of transesterification reaction to obtain biodiesel using castor oil.As a definition, transesterification is the "reaction of a lipid with an alcohol to form esters and glycerol" [48].Methyl or ethyl esters (biodiesel) from vegetable oils are obtained through chemical or biological catalysis.Therefore, it is necessary to perform separation by centrifugation or decantation to improve the recovery of all products (biodiesel, solvent, and glycerol).In this sense, with the separation step, the presence of impurities decreases, helping to decrease the downstream cost during its purification.Finally, residual alcohol is recovered by distillation and is recycled to the transesterification process, which contributes to the feasibility of the entire process [2,44].Once the biodiesel is obtained, this can be used directly in a neat form (100%) or blended with petrodiesel (25%, 50%, and 75%, commonly).However, to ensure that the biodiesel or the blend does not represent a potential risk to the vehicle engine, biodiesel needs to conform to specific parameters established by different entities such as Standard Specification for Biodiesel Fuel Blend Stock (B100) for Middle Distillate Fuels (ASTM D 6751-06a) or European Committee for Standardization for biodiesel (EN 14214).Table 7 shows key parameters for biodiesel from castor oil and its comparison with the two standards mentioned above, as well as with petrodiesel characteristics.

Mechanical extraction Crusher
Castor oil biodiesel has different advantages in comparison with fossil diesel, the most significant are biodegradable, non-toxic, renewable, it can be used alone, low greenhouse gas emission (80% less carbon dioxide emissions and not sulfur content), and during combustion it decreases the unburned and aromatic hydrocarbons.Nevertheless, one of the main disadvantages that castor oil biodiesel has is related to its high viscosity, as compression ignition is difficult, especially at low temperatures, which causes a decrease of volatility and as consequence of burning ratio, without a complete burn provoking deposits.The above facts harm the injection system, as well as blocking the fuel filter [85].Likewise, high values of density can cause some problems in the injection system as well as in the fuel pump.For instance, Tesfa et al. [86] evaluated viscosity and the density effect of different blends of biodiesel produced from different vegetable oils on fuel filters and fuel pumps.They found that when the viscosity and density values increase, biodiesel flow into the fuel filter decreases through time.The above fact can be attributed to the high flow struggle into the filter due to the high viscosity and density.Then, the decrease of biodiesel inlet flow to the vehicle engine will be traduced as a loss of power generation.Nonetheless, until now no research has been performed to analyze the castor oil biodiesel split-up at low temperatures.One of the reasons can be the low freezing point that this biofuel has.However, it has been reported that the addition of cold flow improvers can help to decrease several problems caused by low temperature.In general, the cold flow improvers are polymeric materials such as ethylene-vinyl acetate, polymethacrylates, and polyacrylates.The effect of these compounds is to prevent the nucleation of crystal wax through the link with the biodiesel hydrocarbon chain [87].Regarding worldwide biodiesel production using castor oil as a feedstock, so far there is no specific report or inventor.Geographically, the biodiesel production is widely diverse around the world.However, the main vegetable oils for biodiesel production have been reported to be soybean, rapeseed, palm, and cooking oils, and according to Renewables Global Status Report in 2019 until 2018, the world production of biodiesel was 34 billion L (Figure 4), with United States, Brazil, Argentina, Indonesia, and Germany being the five countries with the highest production of this important biofuel.

Biodiesel Up-Grading
The purity of biodiesel has a strong influence on fuel properties.These impurities are formed when the transesterification reaction is carried out.To remove them, the biodiesel must be separated from glycerol (the main contaminant) before continuing with further refining processes [51].The separation of glycerol is generally performed by decantation, filtration, or centrifugation, using the insolubility and the difference of densities between biodiesel and glycerol.The separation of glycerol from biodiesel by decanting is economic but very slow.The use of centrifuges and filters is more efficient but requires more complex and expensive operating units [84].Table 8 shows different substances which are considered impurities in biodiesel and the problems that they can cause in combustion engines.Due to the peculiar characteristics such as highly viscous, miscible in alcohol and acetic acid, low solidification point, low iodine value, low acid value, and low freezing point of castor oil, after transesterification, the formed products are not separated in two liquid phases.This hinders the separation of glycerol and biodiesel [60,96].Some alternatives to solve this problem are washing the mixture with water immediately after the transesterification, using oil mixtures such as soybean/castor or cotton/castor that induce the formation of two phases (biodiesel-glycerol) and improve the biodiesel purification.Separation of the oil mix can also be performed by the addition of different proportions of glycerol to facilitate the formation and separation of two phases [10,11].
After glycerol removal, the biodiesel is refined and this consists of removing impurity compounds such as monoglycerides, diglycerides, triglycerides, catalysts, soap, or alcohol traces.The remotion or elimination of impurities compounds is essential in biodiesel production to meet standard specifications such as ASTM 6751-06a and EN 14214.For example, the European regulation set that biodiesel must have a purity of at least 96.5% [61,84].Generally, alcohol is removed by vacuum distillation or flash evaporation, whereas catalyst and soap triglycerides are removed using washing or adsorption methods.Washing can be performed with distilled water, acids followed by distilled water or organic solvent followed by water.After washing, biodiesel needs to be dried by heating at 105 • C [97,98].The adsorption of impurities can be performed using diatomaceous earth, zeolite, carbon, activated clay, silica, bleaching earth, ion exchange resins (Amberlite ® or Purolite ® ), cellulose, sawdust, and powder of magnesium silicate (Magnesol ® or Trisyl ® ) [84,99].
Washing is an appropriate alternative to obtain good quality biodiesel, but this is not environmentally friendly due to consuming a large amount of water and in the same proportion generating a greater amount of wastewater.Furthermore, after washing, the residual moisture content in the biodiesel contributes during the ester hydrolysis and increases their acidity, which consequently decreases its shelf life.Adsorption of impurities is an alternative to these problems but the process is relatively expensive as additional mixing units are required as well as different types of absorbents that they cannot be reused (potato, corn, cassava, and rice starch, silica gel, bleaching earth, bleached cellulose, or silica-smectite mixture) [92,100].During oil transesterification, several undesirable by-products are produced, including steryl glycosides, which can precipitate and therefore need to be removed to prevent filter clogging and engine failure [101,102].
Purification in biodiesel production plays a key role to obtain the quality standards established by different energy institutions.However, it is advisable to perform a previous investigation of current purification methods, because some of them can use large amounts of water (wet wash) and hence a large amount of wastewater, making the process unsustainable for biofuel production.Likewise, dry wash processes have generated a growing interest among the scientific community due to their high selectivity in the compounds that they want to eliminate (mainly oxygen).However, the research, optimization, and scale-up of this technology is still in progress.

Residual Cake
The residual cake obtained from oil extraction and transesterification accounts for nearly 50% of the total seed biomass.These materials are rich in proteins, carbohydrates, and fiber and can be valorized to different products such as fertilizer, cattle feed, and bioethanol [103].Abada et al. [104] performed a hydrolysis treatment with a Pseudomonas poae AB3 on the cake from castor oil extraction to produce bioethanol.Likewise, castor cake was used as a nematicide against Meloidogyne incognita by Pedroso et al. [105].They reported when the castor bean cake is incorporated in soil, a decrease of 95% the root-nematodes occurs.Finally, one of the most common uses of the residual cake is as feed for goats, lamb, cattle, and chickens [106][107][108].

Glycerol
The biodiesel from vegetable oil contains 10% of glycerol.It is estimated that in 2020, about 40,000 tons of glycerol will be produced as a by-product of biodiesel production [57,[109][110][111].Glycerol is a potential feedstock to produce lipids by fermentation and transform them into biodiesel.This type of process generally involves different species of yeast with the ability to accumulate lipids, especially triglycerides with similar characteristics to those present in vegetable oils.Duarte et al. [112], showed the feasibility of producing lipids using crude glycerol as a substrate by fermentation with a strain of Candida sp.LEB-M3.They suggest that it is possible to produce commercial-grade biodiesel from this kind of cell-oil by controlling the aeration and agitation to produce suitable fatty acid profiles.
Crude glycerol has also been used as a carbon source to produce unicellular protein.For example, Pichia pastoris grows better in crude glycerol than in commercial glycerol presenting cell densities 1.5-2-fold higher for the first one [109].Crude glycerol derived from palm and canola oil has also been used to produce 1,3-propanediol without affecting the growth ratio of the microorganisms.Under industrial operating conditions, the production rate of 1,3-propanediol using Lactobacillus diolivorans has been reported to be 0.45 g/l-h [110].Furthermore, crude glycerol has been used to produce fumaric acid with a strain of Rhizopus arrhizus, decreasing the production costs by 14% in comparison to the use of glucose as a substrate.In some research, it has been observed that crude glycerol may inhibit the growth of some microorganisms, mainly due to the presence of saponified fatty acids [113,114].
To avoid inhibition, crude glycerol can be conditioned removing soap by NaCl and MgSO 4 treatment, removing salts by alcohol-precipitation, adsorbing contaminants on activated carbon, adjusting pH, and removing solvents.Subsequently, glycerol can be used to produce other valued products, such as bio-hydrogen using Enterobacter aerogenes, and oil and biomass using Yarrowia lipolytica [13,111].

Conclusions
Biodiesel production around the world is produced from different feedstocks and specifically vegetable oils.Moreover, a wide variety of methods to obtain this biofuel exist, however, the most common is through transesterification.Biodiesel from castor oil offers environmental and technical benefits, therefore, it can be considered as a viable alternative in the present and future to other forms of biodiesel.R. communis plants have a strong adaptation to different weather, and one of the main characteristics of these plants is being able to grow in marginal soils.This characteristic contributes directly to decrease land use for biofuel production and preserve it to cultivate products used for human consumption.Moreover, non-edible vegetable oil from castor bean seeds is a suitable feedstock to replace 40-50% of edible oil currently used in biodiesel production.Furthermore, the ricinoleic fatty acid offers advantages to the transesterification process such as high miscibility in alcohol, low reaction temperature, low iodine content, and low freezing point.Biodiesel from castor oil offers a wide range of benefits, among them, is that it is biodegradable, non-toxic, renewable, and safe handling, it can be used alone, and it presents low greenhouse gas emission, high flash point, and similar energetic content to fossil diesel.However, when castor biodiesel is used without blending (B100) some challenges are present, for example, the high viscosity and high density decrease its ignition and can be a potential risk for vehicle engines.Finally, it is necessary to improve the transesterification process to decrease the final price and can be competitive with petrodiesel cost.

Figure 3 .
Figure 3. Transesterification reaction during biodiesel production using castor oil as feedstock.

Figure 4 .
Figure 4. Top countries on biodiesel production.

Table 1 .
Examples of oil-feedstock used in biodiesel production.

Table 2 .
Main fatty acids in vegetable oils used as feedstock in biodiesel production.

Table 3 .
Alkaline transesterification used in biodiesel production from castor oil.

Table 4 .
Effect of main parameters on transesterification.

Table 5 .
Biocatalysis used in biodiesel production.

Table 6 .
Main characteristics of raw castor oil.
nd: not determined.

Table 7 .
Main characteristics of biodiesel produced using castor oil as a feedstock.

Table 8 .
Impurities of biodiesel and their effect on combustion engines.