1 Introduction

Accelerated release of carbon into the atmosphere and derived ecological consequences accompanied by increasing prices and falling production of crude oil, drives research into the utilisation and valorisation of waste materials into fuels and renewable chemicals. These alternative feedstocks include: agricultural, municipal, industrial and sewage wastes [1] and can be known practically as biomass. Coffee is one of the largest agricultural products and one of the most popular beverages worldwide [2]. Europe is the world’s leading consumer [3] making for a fairly local concentrated supply of oily spent coffee grounds (SCG) that would typically go to landfill or possibly be used as garden fertiliser. More recently, SCG has in fact gained traction in research as a feedstock for biodiesel with first reports of oil extraction coming in 1927 [4,5,6,7]. Oil content in SCG varies from batch to batch of the coffee blend used but provides a maximum yield of 11.5%, which is significant in comparison with traditional oily crops, providing a maximum yield of 25%. This yield, when coupled with the fact that SCG is a cheap waste already having served its purpose as a consumable beverage, makes for a smart choice in feedstock for biodiesel production. SCG contain remaining oil that can be extracted and converted into fuels and commodity chemicals [6, 8]. It also contains antioxidants hence adding valuable oxidation stability to a biodiesel product [9, 10].

Major constituents of the oil from SCG include monoglycerides (MAG), diglycerides (DAG) and triglycerides (TAG) with additional small quantities of free fatty acids (FFAs). The glycerides can be transesterified and then serve as a platform for biodiesel as well as commodity chemicals such as biolubricants, biosurfactants and biosolvents [8, 11]. Remaining solids produced as a waste from the oil extraction process retain value and can be upgraded into carbonaceous material—an effective adsorbent with applications in water treatment, combustion product capture and dye removal [12,13,14,15,16,17]. Other applications for SCG include bioethanol production [18], fuel pellets for small wood/pellet burning heaters and use as soil treatment [19].

Today, Soxhlet extraction (SE) is the most widely utilised solid–liquid extraction (SLE) technique in research but is temperature limited by the boiling point of the selected solvent, long extraction times and large solvent losses [20]. Typical operation times can vary from 2 to 24 h [21,22,23,24,25]. Tackling the shortcomings with using Soxhlet apparatus have acted as starting areas for development to produce alternative SLE procedures, particularly supercritical fluid extraction (SFE) ultrasound-assisted extraction (UAE), accelerated solvent extraction (ASE) and microwave-assisted extraction (MAE). SFE requires more energy compared with conventional SE; hence, it is more dependent on the price of the product, which economically potentially limits the technology to high value products [26, 27]. UAE makes use of high-intensity, high-frequency sound waves which increase heat and mass transfer rates and aids rapid cell wall breakdown [28,29,30]. However, although relatively easy to achieve on a lab scale, scale-up for industry is challenging [31]. ASE combines elevated temperatures and pressures with liquid solvents. It uses high temperature and pressure to extract materials and is more time and solvent efficient. However, ASE use has been limited due to its high cost [32]. MAE offers rapid heating of the extraction mixture by simultaneous volume heating via microwave irradiation [17, 33].

This paper investigates oil extraction from SCG by means of MAE using an advanced microwave system and compares this with the traditional SE method. To the best of our knowledge, non-Soxhlet MAE from SCG by continuous microwave irradiation is yet to be published. Research using microwaves as the sole heating source for vegetable oil extractions showed MAE to use less solvent, whilst producing 91.8% and 270% more vegetable oil in 1/8th of the duration when compared with traditional SE [33]. We have shown that MAE was successful in extracting more oil than SE with a 24-fold decrease in duration and used less volume. These results are due to the rapid microwave volume heating and availability of a pressurised system which allows the solvent to proceed in the extraction at temperatures above its own boiling point, further increasing the solubility of the solute into the solvent.

2 Materials and methodology

SCG were collected directly after the brewing process from the Costa outlet situated at Staff House of the University of Hull. Initially, SCG was dried in an oven overnight at 50 °C and for 1 h at 110 °C to remove moisture from brewing and then placed in the desiccator. Moisture content value was 55.3%.

Analytical grade hexane was obtained from Sigma Aldrich. Hexane was selected as the solvent to be used during extractions due to its very low polarity, high availability and low boiling point for ease of separation. The MAE was carried out in a Milestone microwave laboratory system (Ethos EX, Milestone Italy).The first set of extractions was performed at 85 °C for durations of 10, 17.5, 25 and 32.5 min. The second set of extractions was performed at 69, 75, 85, 95 and 105 °C for the duration of 10 min, and the third set of extractions used 25, 30, 35 and 40 mL of hexane for every 6 g of SCG used. All experiments incurred a 2.5 min warm-up period to bring the extraction mixture to the desired temperature. The additional 2.5 min for each run are not used in labels in graphical or tabulated data and so are discussed as 10, 17.5, 25, 32.5 min instead. The power and energy consumption accounting for the warm-up period and are recorded in Table 2. Each run was performed three times in total.

SE was also performed three times for comparison purposes. The Soxhlet apparatus was set-up with 6 g of SCG in the extractor, again using n-hexane as the solvent in the quantity of 260 mL per extraction. SCG was subjected to extraction for 4 h and no additional solvent was supplied. For MAE, 24 g of SCG was used per extraction run with 6 g weighed out for each microwave vessel (4 total). SCG and the desired solvent volume (25–40 mL for every 6 g of SCG used) was added to the vessels along with a magnetic stirrer, and the vessels were sealed tight with a wrench and placed on a turntable and then subsequently placed in the microwave oven. Once extraction completed, the hexane containing coffee oil and SCG was transferred into centrifuge vials to perform solid–liquid separation, with the resulting hexane and oil mixture then separated by rotary evaporator. All hexane used was recycled for following extractions.

Analysis of the coffee oil was performed using gas ghromatography–mass spectrometry (GC–MS), on an Agilent 5973 N MSD with an Agilent 6890 + GC and an Agilent 6783 autosampler system. GC conditions used for the oil are given below. The total run time for the procedure was 45 min, starting at 40 °C held for 3 min, then ramping the temperature at a rate of 15 °C per min up to 310 °C. The capillary column employed was a Thames Restek Rxi-5MS 30 m × 0.25 mm with a 0.25 µm stationary phase film thickness. Helium gas was used as the mobile phase. The MS detector was set to scan from m/z 20 to m/z 650 in 0.4 s, and measured mass spectra were compared to the NIST library 2002 for confirmation of molecular structures. Samples were analysed both with and without derivatisation to provide direct analysis of the free fatty acids and their corresponding methyl esters. Derivatisation was carried out using a small amount (0.5 mL) of methanolic KOH in 1.0 mL of hexane, in a sealed vial, heated to 60 °C for 1 h. The hexane layer was then removed and analysed by GCMS as described above.

A Thermo Separations high performance liquid chromatograph (HPLC) was employed as a separation technique to analyse the extracted oil. A Phenomenex Kinetix C18 150 × 2.1 mm column was packed with SPP particles with a diameter of 2.7 μm. Solvent A was selected as acetonitrile plus 0.1% formic acid, and ethyl acetate was selected for solvent B. The initial solvent flow was 60% A, 40% B until 16 min where solvent B flow was increased to 90% until 21 min at which the flows were returned to 60% (A) and 40% (B). This condition remained for the final 9 min to re-equilibrate the column, making for a 30 min program. The injected volume was 10 μL, with a dilution of 1:10 in ethyl acetate. Additional specifics include minimum and maximum pressures of 25 and 4000 PSI, respectively, and the column and tray temperatures remained at 25 °C throughout. Positive mode atmospheric pressure chemical ionisation (APCI) was employed for mass spectrometry using a Thermo-Finnigan LCQ Classic instrument, detecting molecular masses between 150 and 2000 Da.

3 Results

3.1 Soxhlet extraction (SE) method

As previously mentioned, conventional SE was employed as a technique used for comparison with the MAE process. The results for SE method are presented in Fig. 1. The extraction yielded, on average, 0.51 g (8.6%) of oil from 6 g of SCG after 4 h of operation. Hexane losses per gram of oil produced averaged 39.3 g/g. The oil percentage extracted is calculated using Eq. (1):

$${\text{Percentage}}\,{\text{Oil}}\,{\text{Extracted}} = \frac{{m_{1} }}{m} \times 100$$
(1)

where m1 represents the mass of the oil extracted, and m represents the mass of the SCG used in the extraction.

Fig. 1
figure 1

Graph showing oil extraction values for SE over 4 h. The average yield produced was 0.51 g of oil using 6 g of SCG

3.2 Microwave-assisted extraction (MAE) method

3.2.1 Varying duration

Results in Table 1 show the increase in percentage oil extracted for each experimental run. It is important to note that the ‘Extraction Duration’ is presented with an additional 2.5 min to account for the ‘warm-up’ phase and these total durations are used for energy consumption calculations. Table 1 also shows how the average power consumed (APC) and total energy used (TEU) during extractions (including heating period) are influenced by the duration of the extraction. The APC measurements were recorded by the microwave system itself and displayed on the computer interface. Minimal energy consumption, in the 10 min extraction, equated to 55% of the energy consumption for the 32.5 min extraction. Figure 2 shows the effect of extraction duration on oil yields from SCG, presenting volumes and masses of coffee oil extracted. Yields were highest after 32.5 min of extraction, totalling 2.4 g from 24 g of SCG. It was observed that on average 2.13 g of oil was extracted over 10 min, equivalent to just under 90% of the oil extracted over 32.5 min and using just 55% of the power (Table 1).

Table 1 Percentage oil extracted from SCG (mass basis) with power and energy consumed during the extractions (Note: The ‘Extraction Duration’ is presented with an additional 2.5 min to account for the ‘warm-up’ phase and these total durations are used for energy consumption calculations)
Fig. 2
figure 2

The effect of extraction duration on oil yield from SCG using MAE at 85 °C with 120 mL n-hexane

Unlike SE which makes use of continuous distillation, encouraging the greatest concentration gradient for diffusion of solute into solvent, MAE uses shorter extractions by temperature and solvent volume. Within 10 min, MAE was successful in extracting more oil than after 4 h of SE.

3.2.2 Varying temperature

Increasing the extraction temperature from 69 to 105 °C whilst maintaining duration and solvent volume constant saw an increase in yield from 1.88 to 2.54 g of oil (Fig. 3). This 35% increase could be attributed to increased solubility of oil in hexane and greater penetrative power of a more energised solvent. However, with reference to Table 1, extractions at 95 and 105 °C showed a decrease in energy consumption and increase in oil yield in comparison with the previous 85 °C extraction (10 min). Nearly the same mass of oil was yielded at the 95 °C extraction as was in the longest extraction (32.5 min) yet with a beneficial 54% decrease in energy consumption. Although, removal of moisture from the SCG took place, it is suggested that traces of water still remain but importantly are ‘locked’ deep within the SCG particles. On the approach to the boiling point of water in extractions 95 °C and 105 °C, it is likely that the traces of water vaporise and burst open previously inaccessible (at lower temperatures) matrices containing oil. This allows for the hexane to dissolve and extract more oil. The vaporisation of trace moisture also likely plays a small role in increasing turbulence within the mixture, resulting in accelerated heat transfer. It is suggested that for MAE it is in fact beneficial during oil extraction that the SCG should contain water, saving both time and energy. Further investigation is needed into the amount of water beneficial for extraction vs costs saved in drying before and after extraction. Extractions were continued at 95 °C whilst changing solvent volume to further support this hypothesis.

Fig. 3
figure 3

The effect of extraction temperature on oil yield from SCG using MAE with 120 mL hexane for 10 min

3.2.3 Varying solvent volume

Extractions were continued at 95 °C whilst changing solvent from 100 to 160 mL. The effects of increasing solvent volume positively influence mass diffusion by providing a greater concentration gradient of oil in SCG and oil in hexane. The highest yield achieved was 11.54% mass of the SCG supplied. The results are presented in Fig. 4 and in Table 1.

Fig. 4
figure 4

The effect of extraction solvent on oil yield from SCG using MAE at 95 °C for 10 min

These extraction results (at 95 °C) remained correlated with extractions at varying temperatures (Table 1) and support the theory that water content benefits the oil yield. Increasing the solvent volume from 100 to 160 mL (per 24 g of SCG) produced 38% more oil. Even though hexane is nearly without any polarity, heating 160 mL to 95 °C was less energy intensive than heating 120 mL of hexane to 85 °C. This result suggests that the trace water additionally promotes more efficient heating of the mixture by microwave irradiation. For this set of experiments, hexane losses were also recorded (Table 2) for comparison with Soxhlet hexane losses. During the MAE and in contrast to the SE experiments, no solvent losses occurred. However, post-extraction, in transferring the hexane and oil into centrifuge vials to separate the oil from the majority of SCG, the SCG remained mixed with hexane and so the solvent losses at this stage were recorded. The average hexane loss per gram of oil extracted equated to 11.4, 8.9, 8.8, 6.5 g/g for extractions 100, 120, 140, and 160 mL, respectively.

Table 2 Comparison of hexane losses for MAE and SE processes

3.3 Oil analysis

GC–MS results are given in Table 3. The produced coffee oil showed the presence of multiple FFAs with key peaks being n-hexadecanoic acid and linoleic acid, transpiring at 38.34 and 42.37 min, respectively. Other major peaks at 41.11, 41.5 and 41.6 min correspond to octadecanoic acid, oleic acid and caffeine. HPLC separated the fatty acid derivatives in the oil indicating a major presence of di and triglycerides (acylglycerides) with small quantities of monoglycerides. HPLC coupled with positive mode APCI detection allowed for separation and detection of the larger component molecules in the oil for which GC is unsuitable.

Table 3 Identification and relative amounts of the extracted coffee oil using GC–MS

4 Discussion

For SE experiments, the average percentage oil extracted (8.6% wt.) was lower than previously reported values of 15% [6] but similar to 9.8% [34]. Differences in results could be derived from individual blends used and the method of brewing be it boiling, percolating or pressurised, which leave different amounts of substances in the SCG [35]. Using Soxhlet apparatus as an open system, which can only operate at the boiling point of the selected solvent, is limited by the amount of solvent contacting the solute, and so for more oil to be extracted more solvent must be used. However the nature of the apparatus gives the advantage that only nearly clean (of solute) solvent will interact with the intended extract and therefore the longer the extraction proceeds, the greater the initial difference in concentrations of solvent to solute as more solute is extracted. This will contribute to greater mass transfer rates and reduce the need for agitation to aid extraction.

To date, published work on SCG using MAE is not available and an ideal comparison cannot be made. In this study, MAE produced an extraction procedure that was quicker, more efficient and less wasteful than SE. All 10 min MAE produced a comparable or greater amount of oil, achieved a 24-fold decrease in duration and used less solvent per gram of oil produced, when compared with SE (Table 2). These general results are a consequence of the microwave system that can rapidly heat the materials contained within the vessel as well as allowing extraction to take place above the boiling temperature of the solvent used. This sealed system also prevents the release of any solvent into the laboratory.

Naturally, polar molecules such as water or methanol have large permanent dipole moment allowing for a strong interaction with microwaves. Hexane with a very small dipole moment and dielectric constant should therefore not heat up when subject to microwave irradiation. On the contrary, the hexane and SCG mixture not only reached the extraction temperatures but did so more rapidly than using a heating mantle (SE extractions). The reasoning behind successful dielectric heating of the extraction mixture could lie with a couple of factors or a combination of both. Firstly, hexane may absorb the supplied electromagnetic energy, albeit not as rapidly as a polar substance such as water or methanol, which then heats the coffee and oil through molecular friction and convection in the same way water or methanol would [36]. Secondly, the SCG may convert the supplied microwave energy to heat and so the coffee itself may be a driver in the heating of the mixture. It is likely that both hexane and SCG, although small, have significant dielectric properties that contribute to the rapid heating of the mixture.

The rate of dissolution of a desired solute into the extraction solvent is most influenced by the mass transfer rate of the solute (oil) from the solid matrix into the solvent. This flux of solute occurs because of the concentration gradient relative to the solute across the solid–liquid interface and is described by the following equation based on Fick’s law for a steady state, isothermal process [36]:

$$\frac{{N_{C} }}{{A_{T} }} = - D_{BC} \frac{{dC_{C} }}{dz}$$
(2)

where, Nc is the rate of dissolution of solute C in the solution (kg/s), AT is the area of the solid–liquid interface (m2), DBC is the diffusivity coefficient for the solute into the solvent from the solid (m2/s), CC is the concentration of solute in solution (kg/m3), and z is the distance in the porous solid the desired solute must move across (m). Generally, increasing solvent volume will increase the concentration gradient, decreasing the particle size of the solid parent material will allow for a greater surface area on which the solvent can contact the solid. Presumably then, the particle size from grinding the coffee beans prior to brewing will also affect the extracted oils as well as the taste of the coffee itself. Although increasing extraction duration does not directly change variables set out in the mass diffusion equation based upon Fick’s Law [36], an increase in MAE duration allowed for mass transfer of oil into hexane to proceed over a longer period, consequently increasing the amount of oil extracted from the SCG matrix. It is expected that some distillation of the hexane will occur within the extraction vessel; however, this experiment is ultimately limited by solvent volume as the hexane becomes more saturated with oil as the extraction proceeds. The 10 min MAE extraction produced almost 90% of the oil extracted over 32.5 min (Table 1) with the limiting factor being the rate of mass diffusion of oil into hexane as the concentration gradient of the oil in species A (SCG) and in species B (hexane) decreases. Here, the initial concentration gradient will be the same for all durations of extraction, and similar to that of SE. It is the case that in a batch system such as described and used in this project, the rate of mass transfer of the oil will be greatest with the largest concentration gradient of oil in species A compared with species B, i.e. at the beginning of the extraction. It is therefore assumed that the rate of mass diffusion will be highest at the start (of the extraction) and so the most oil mass will diffuse at the start with less and less oil diffusion as the extraction proceeds—thus the 10 min extraction is nearly as successful as an extraction with over three times the duration. Moreover, the 10 min extraction achieves such a similar oil yield whilst only requiring 55% of the energy of the 32.5 min extraction, highlighting the shorter method as the most efficient. In addition, this 10 min extraction yields slightly more oil than the SE run and in under 5% of the time; a credible improvement to conventional extraction.

Varying the temperature manipulates the solubility of the oil in hexane, and with an increase in temperature comes an increase in solubility. This increase in solubility then enables the hexane solvent with a higher saturation threshold of oil relatively increasing the concentration gradient of oil in SCG to hexane. A decrease in temperature would provide the opposite effects. Relating back to the mass diffusivity (Eq. 2), temperature manipulation specifically affects the diffusivity coefficient of the oil in SCG as the coefficient is defined for a given temperature. The oil yields observed from 69 to 105 °C, showed extractions increased 35% on a mass basis (Fig. 3, Table 1). The increase is derived from an increase in solubility of oil in hexane which in turn increases mass transfer rates. Additionally, the hexane solvent itself being at a higher temperature has more energised molecules which permeate through the solid matrix more rapidly by breaking intermolecular bonds with relatively less resistance [36]. This mechanism promotes faster and more thorough solvent-oil contact, producing more oil in a comparably shorter timeframe. Interestingly with this set of experiments, the energy consumption of the system dropped for the 95 °C and 105 °C extractions—an appealing, albeit uncorrelated result (Table 1). The ‘drop’ in energy consumption continues across the following set of experiments as well, where it was observed that less energy was required to extract more oil at 95 °C using 140 mL solvent compared with the extractions at 85 °C using 120 mL solvent. Reasoning behind these uncorrelated results may lie with traces of water in the extraction mixture as the temperatures when energy consumption decreased were around the boiling point of water. Although the SCG had undergone drying before oil extraction, traces of water are likely to remain in the SCG and importantly are likely trapped deep in the SCG matrices. Upon the approach to the boiling temperature of water, the ‘trapped’ traces of moisture will vaporise and ‘burst’ or ‘break out’ of the SCG matrices [37]. Firstly, this would aid the solvent’s penetrative powers, making more oil contactable by the solvent and therefore allowing for more oil to be extracted. Secondly, this mechanism would promote more efficient heat transfer in the SCG as the water vapour, in bursting out of the SCG matrices acts as a turbulent medium, allowing for the lower dielectric components in the extraction mixture to be heated more quickly therefore requiring less energy to successfully extract the oil [37]. Unlike other extraction methods for this application, which require drying, a certain water content in the SCG may play a part in optimising the efficiency of the extraction also saving energy on drying.

Varying the solvent volume allowed yielded the most oil across all experiments—11.54% (Table 1). The 37.7% increase in oil (100–160 mL of solvent) came at the cost of an energy consumption increase of 33% (Fig. 4, Table 1). The increase in energy consumption for this set of experiments supports, in concurrence with the lack of literature regarding the heating of hexane by microwaves that absorption of the microwave irradiation is partially derived from something other than hexane. This conclusion also supports the argument that traces of water remaining in the SCG may add to the rapid heating of the extraction mixture with a decrease in energy consumption. Unlike Soxhlet apparatus, which makes use of continuous distillation of the solvent, promoting the greatest concentration gradient of the oil in the SCG and hexane, the microwave apparatus has no such mechanism. As a result, increasing solvent volume acted significantly in producing more oil. Changing solvent volume directly increases the concentration gradient as described in Eq. 2. The increased concentration gradient will provide faster mass diffusion for longer, and the increased solvent volume reaches its saturation point slower, ultimately producing more oil [36].

It should be mentioned that during the MAE the SCG remaining after extraction has occurred remain saturated with hexane. This indicates that not all the solvent was recoverable and that oil would also be present in the remaining hexane. Nevertheless, even though SE extraction solvent percentage recoveries were greater, using the MAE method lost less solvent per gram of oil produced (Table 2). It was seen that although no hexane (and oil) was lost during the MAE, hexane was lost during the separation process, and at a greater percentage (of the original solvent volume) than with Soxhlet extraction. However, per gram of oil produced, the MAE lost considerably less solvent as compared with the SE.

The GC result of the oil showed the peaks of FFA and two significant peaks: hexandecanoic acid and linoleic acid. The HPLC results showed that the majority of the oil was made-up of TAGs. Peaks MAG DAG and TAG appeared clustered and due to the solvents selected, peaks from plasticisers were also detected. This is probably a result of using ethyl acetate with PEEK plastic tubing. It is suggested that the method developed requires further solvent gradient optimisation.

5 Conclusion

The developed MAE method proved to be more efficient, in yielding more oil whilst requiring a fraction of the time and losing less solvent than the conventional SE method. The MAE also benefitted from water content in the SCG, previously thought to hinder such a process.

More specifically, the best extraction produced 11.54 wt% of oil equating to just under 12% of the dry SCG mass. The water moisture of the supplied SCG was 55.3%. With reference to the extraction method varying temperature, raising the operating temperature to within 5 °C of the boiling point of water lowered the energy consumption of the process and produced more oil when compared with an 85 °C extraction. It was proposed that this result occurs because of minute traces of water, left behind after drying. This moister remained deep within the SCG particle matrix, and when vaporised breaks apart the molecules of SCG. This mechanism compliments the penetration of the hexane solvent into the SCG particles but additionally accelerates the heat exchanged from the most dielectric responsive particles in the SCG/hexane mixture to the remainder of the mixture. Under this assumption, there is room to investigate the optimal water content in the SCG before oil extraction occurs as the evaporation of the water aids the oil extraction.

The extracted oil was analysed by GC and HPLC and the results showed the majority of the oil was made-up of TAGs. SCG are a diverse parent material for many products that currently depend on fossil fuels for manufacture. The possible valorisation routes can enable the production of biofuels, chemicals and solid fuels all potentially sustainable in nature if the coffee itself is grown without replacing carbon sinks.