Municipal solid waste management is an issue of great concern to especially urban governance because of solid waste effects on the environmental health most especially in the developing countries (UN-HABITAT 2010). This is due to inadequate infrastructure and technical inefficiencies. The impact on poor environmental sanitation and solid waste in the cities and towns could threaten nation’s development (Sarkar and Chourasia 2017). In the year 2016, about 50% of the world population lived in cities and generate more than 3 million metric tons of waste (including, household items, food waste, and packaging) on a daily basis. By the year 2025, this number will double (Hoornweg and Bhada-Tata 2012).

A report by FAO estimated that 1.6 billion tons of food waste were generated worldwide in 2007 and that accounted for about one-third of the global food production. This waste occurred at all stages from production to consumption. In addition, improper disposal of solid waste takes up space in landfills. This eventually contributes to the spread of disease, and the production of noxious odour (Hoornweg and Bhada-Tata 2012). It is also reported that food waste is the number three contributor of global carbon dioxide production and produces more than double the carbon dioxide produced by all ground transportation in the United States of America.

In the year 2012, globally, solid waste management costs approximately $205.4 billion and it is expected to increase to about $375.5 billion in 2025 (Hoornweg and Bhada-Tata 2012). In the cities and towns, uncollected solid waste contributes to flooding, air pollutions, and public health impact such as respiratory ailment, diarrhoea, and dengue fever (Barry 2004).

There are several naturally occurring microorganisms that can convert organic waste into valuable resources such as nitrogen, phosphorus and potassium which are useful to plants. A typical example is the use of worms to degrade waste.

Vermicomposting is an aerobic process of organic waste degradation and stabilization by interaction of microorganisms and earthworms under controlled conditions (Dominguez and Edwards 2011).Vermicomposting is not known to be a widespread approach to urban waste management in low- and middle-income countries (Diener et al. 2011). The expected barriers to vermicomposting are the large space requirement, poor supporting policies and measures from government and low revenue to sustain its operation (Mainoo 2007; Dominguez and Edwards 2011).

For several years, researchers globally have proposed using the larvae of black soldier fly (Hermetia illucens) (Diptera: Stratiomyidae) as a potential means to degrade organic matter such as food waste to divert the materials away from the limited landfills (Diener et al. 2011; Gabler and Vinnerås 2014). The black soldier fly (BSF) is a wasp-like fly distributed over the tropical and temperate regions of the world (Sarpong et al. 2018). The insect is native to America but through human-mediated dispersal, now they are found almost all over the world (Rana 2014; Tomberlin et al. 2002; Sarpong et al. 2018).

The uniqueness of the insect, black soldier fly, is their ability to successfully colonize a wide variety of resources ranging from swine manure (Alvarez 2012), animal remains (Wang and Shelomi 2017). It has been reported that the BSF larvae are capable of degrading human faeces (Lalander et al. 2013; Banks et al. 2014) and animal faeces (Charlton et al. 2015). Past researchers have established that many insects could be selective with regard to what and how much waste they can consume (Cammack and Tomberlin 2017).

The aforementioned studies used either homogeneous agricultural, livestock manure or human faeces and vegetable waste as feedstock. Black soldier fly larvae application to treat unshredded feeding sources of municipal organic solid waste is yet to be fully understood and proven. In addition, limited literature exists on the use of black soldier fly larva’s ability to remove heavy metals from heterogeneous organic fraction of municipal organic solid waste (OFMSW) to be considered as safe organic compost.

Once these facts are well established, organic waste from municipalities could be manipulated to optimize waste reduction and composting materials into valuable products. In view of the above, the objectives of the study are to (1) investigate the decomposition efficiency of the black soldier fly larvae on heterogeneous mixture of municipal organic solid waste, (2) assess the larvae compost maturity and (3) analyse the heavy metal removal of the compost for agricultural purposes.

Materials and methods

Study site

The research study site was located in the campus of the Kwame Nkrumah University of Science and Technology (Civil Engineering Department) in Kumasi, Ghana. The experiment was carried out under a constructed shelter (45 × 10 m) roof of corrugated metal sheet and enclosed by mosquito nets.

Black soldier fly colony

A population of black soldier fly (Hermetia illucens) (Diptera: Stratiomyidae) was attracted from the natural ecosystem and kept in five different cages of size (60 × 60 × 45 cm each), covered with transparent mosquito nylon net. The cages were placed on top of a table (0.5 m height), exposed daily to direct sunlight for approximately 12 h. In the cages, transparent plastic bows (10 L) containing organic waste were used to attract the BSF females for oviposition.

A pre-feed placed inside a plastic bowl was covered with perforated black polytene to prevent direct exposure to sunlight and loss of excessive moisture. The hatched eggs remained in the pre-feed for 4 days. The young larvae (4–6 days old) were collected and counted manually at 2-day interval for a week. The hatched larvae were kept in a container, with wetted restaurant waste as pre-feedstock under the prevailing temperature of 25.5–26.8 °C and relative humidity at 60–85%. To supply the colony of new adult, 300 adult black soldier flies were attracted to the system and the same procedure was followed as described above.

Experimental setup

The larvae composting experiments were conducted in plastic containers (41 × 69 cm; Ø × h) (75 L capacity) (Fig. 1). A drain tap was fixed at the bottom side (2 cm height) of the container. The top lid of the containers was perforated (hole dia. 10 mm) to improve aeration in the system. No ramp was provided to prevent the escape of the prepupae, so that they remain in the residue. To avoid invasion of predators such as ants, reptiles and birds, the containers were mounted on top of a table, made of wood at a height of 0.5 m. To avoid other insects from breeding, each plastic container (biodigester) was covered thoroughly with mosquito nets, prior to covering them with lids.

Fig. 1
figure 1

Experimental setup of the BSF larvae composting

Municipal organic solid wastes from domestic, markets and restaurant in the towns near the University were used for the experiments. A bucket full of unshredded organic wastes weighing about 30 kg was collected daily. They were mixed thoroughly using ordinary ladle to attain certain homogeneity and then added to the designed containers (75 L) with varying amount of organic waste ranging from 2, 2.5, 3, 3.5 and 4 kg. The feeding rates (FR) 71 mg/larvae/day, 89 mg/larvae/day, 107 mg/larvae/day, 125 mg/larvae/day to 143 mg/larvae/day and a control (2 kg), which is represented as T-1, T-2, T-3, T-4, T-5 and T-c, respectively, were established. The feeding rate (FR) was expressed as the total amount of organic waste given to 2000 number of larvae over a period of 14 days, taking into account the life cycle of the black soldier fly. In addition to the substrate in the containers, each of the five experimental containers was inoculated with 2000 5-day-old larvae and each larvae weighed approximately 0.03 mg. The 6th container received 2 kg of homogenate without larvae (natural compost without larvae) and it served as a control for the analysis.

To ensure a coequal establishment of the larvae population, all the five experimental setups and the control (degradation without larvae) were fed at once (i.e. batch system). In total, 15 kg of fresh and untreated organic solid waste was given to 10,000 larvae. The system was monitored continuously for a period of 14 days according to the life cycle of the BSF. At the starting phase, fresh food wastes were placed at the bottom and then the larvae were placed on top of the waste materials. The feeding rates were maintained for repeated experiment, five times over a period of 108 weeks. Samples of organic solid waste and residue were collected for further analysis on total organic carbon (TOC), total nitrogen (TN), total phosphorus (TP), and total potassium (TK).

The nitrogen contents were investigated utilizing the Kjeldahl method as clarified in the Swedish Standard, SS-EN 13342. The phosphorus contents were investigated utilizing the ISO 11466 (Soil quality—Extraction of trace solvent in water regia). The potassium contents were broken down utilizing ICP-AES spectrophotometry and a mix of ISO 11466 (Soil quality—Extraction of trace elements dissolvable in water regia). Heavy metals (As, Ni, Cd, Pb, Fe) were also analysed. The temperature, pH and moisture contents of the substrate were also investigated. Trace elements and phosphorus were determined using water regia extraction strategy and AES spectrophotometry. The TOC was determined by total organic carbon analyser.

Due to limited funding, the scope of the research did not consider the final utilization of the prepupae for agricultural purposes. The aquaculture and agronomical aspects of the end product would be of great interest and it would be considered in the near future.

Statistical analysis

Linear regression and one-way analysis of variance (ANOVA) with subsequent Tukey HSD test were conducted to establish relations and difference between the various treatments (P < 0.05). An increase in nutrient concentration of the treatment groups was calculated according to the formula (residue − substrate)/substrate.

Results and discussion

Physiochemical characteristics of the substrate and compost

The temperature of the substrate ranges from 26.0 to 26.7 °C with a mean value of 26.4 °C. The lowest temperature of the residue ranges from 24.2 to 24.7 °C, with mean value of 24.5 °C, while the highest temperature ranges from 26.3 to 26.7 °C with mean value of 26.5 °C. The results also showed a temperature range from 25.7 to 25.8 °C, with a mean value of 25.8 °C for the control (Table 1).

Table 1 Mean values of temperature, pH and moisture content of the substrate and residue

The pH of the substrate ranges from 5.05 to 5.51, with mean value of 5.3. After 14 days of larvae composting, the lowest pH recorded ranges from 7.04 to 7.51, with mean value of 7.3. However, the highest pH ranges from 7.02 to 7.72, with mean value of 7.4 as shown in Table 1. The study also reported a pH range of 6.04–6.31, with a mean value of 6.2 for the control treatment group.

The pH of the substratum was acidic in the feedstock. An increase in pH was in line with observations made by other researchers (Verma 2002; Diener et al. 2011). Earlier authors fed the larvae of black soldier fly with chicken manure and pig manure and this was consistent with our study. An increase in the pH values was associated with curing of compost (Wei et al. 2007; Bernal et al. 2009).

The dark brown colour of the final compost could be due to the presence of oxygen and stability. It has been reported that the appearance of a dark brown colour and earthly aromatic flavour in compost often shows its maturity (Bernal et al. 2009; Diener et al. 2011).

The moisture contents of the substrate and the residue were measured (Table 1). The study showed that the highest and the lowest moisture contents of the substrate were 63.1% and 60.3%, respectively, while the mean value amounted to 62.7%. The lowest mean moisture content of the residue was 62.7%, while the highest mean moisture content of the residue was 64.9%.

A high moisture content (≥ 60%) of compost usually required post-treatment such as further drying. Post-treatment with thermophilic aerobic composting usually leads to a reduction in the volume of feed (Aja and Al-Kayiem 2014). The temperature of the composting was mesophilic. Aeration was improved on the compost system as a result of the movement and natural turning of the waste by the larvae. Other researchers have reported that high temperature (i.e. 45 °C or more) could cut down the pathogenic loads of the final compost (Banks 2014; Tirado 2008; Dortmans 2015).

Moisture plays an essential role in the metabolic activities of larvae and microorganisms because it indirectly supplies oxygen (Bernal et al. 2009; Dortmans 2015). In this study, the water contents of the feedstock were adequate for decomposition. There was no observable problem except the leachate generation of the bottom of the digesters during the biodegradation processes. A moisture content of 40–60% provides adequate water without hindering aeration. Moisture contents of 40% slow down both larvae and bacterial activities (Bernal et al. 2009). When moisture contents exceed 60%, it could lead to nutrient leachate and usually results in environmental odour (Dortmans 2015).

Variations in the total organic carbon, C:N ratio and C:P ratio of the substrate and residue

Total organic carbon (TOC) levels

An analysis of the results showed that the highest mean percentage TOC removal of 21% (SD ± 5%) was reported in treatment group T-3, which corresponded to the feeding rate (FR) of 107 mg/larvae/day. The lowest percentage mean TOC reduction of 11% (SD ± 2%) was measured in treatment group T-5, with feeding rate of 143 mg/larvae/day as shown in (Fig. 2). The study further showed a reduction of TOC in the control group (i.e. natural microbes) with removal efficiency of 4% (SD ± 1%). In comparing the TOC reduction efficiencies of the larvae (T-1) and control (T-c) treatment groups, it was found that the difference between TOC removal of T-1 and T-c amounts to 14% (Fig. 2) and it was statistically highly significant (p = 0.02) (Fig. 2).

Fig. 2
figure 2

Total organic carbon (TOC) of the substrate and residue

The reduction of TOC could be due to carbon loss in the form of CO2. It was observed that TOC removal rates increased significantly in treatment T-3. This demonstrated that carbon used by the BSF larvae was higher than in the other treatment groups (Sarpong et al. 2018). The treatment groups T-1, T-2, T-3, T-4, T-5, and T-c were represented by feeding rates FR-71, FR-89, FR-107, FR-125, FR-143 and control (microbes), respectively. The results obtained showed that T-2 and T-4 had the same reduction efficiency of TOC but these were not as high as T-1 and T-3. So far, the control (microbial composting, T-c) did not show any statistical significant difference between reduction in TOC. This could probably be due to the fact that microbial organic waste degradation required adequate time for the microbes to multiply to be able to utilize the carbon compounds.

The utilization of carbon by BSF larvae has been reported by Diener et al. (2015) and Sarpong et al. (2018). It has also been reported that BSF larvae reduced TOC up to 62% in swine manure (Zhao et al. 2016). The loss of carbon in this study could be due to respiration of the larvae through the skin (Lin-ki 1975). It is being reported that the voracious eating habit of the larvae and its movement through the feedstock led to an increase in surface area, which eventually resulted in faster decline of TOC. This assertion was in line with results described by Dortmans (2015) and (Zhao et al. (2016).

Carbon to nitrogen ratio

The results of carbon to nitrogen ratio (C:N ratio) reduction are shown in Fig. 3. The highest C:N ratio reduction was from 14:1 to 8:1, which was measured in the treatment groups T-2, T-3 and T-4. The lowest C:N ratio reduction was from 14:1 to 9:1, which occurred in treatment groups T-1 and T-5. The study also showed a reduction in C:N ratio in the control treatment (microbes) from 12:1 to 11:1. The results obtained for final compost showed a significant difference in the C:N ratio reduction between the larvae treatment group and the control treatment group (p = 0.04).

Fig. 3
figure 3

Carbon:nitrogen ratio of the substrate and compost

It has been reported that carbon to nitrogen (C:N ratio) value of 15 or below is highly preferable for agronomic purposes (Jereb 2004; Pan et al. 2012). Therefore, the results of this study (C:N ratio falls within the limit) strongly suggest that the larvae compost obtained could be used for agricultural purpose. Any compost with C:N ratio greater than 30 is likely to immobilize nitrogen if applied to soil (Bernal et al. 2009). But if C:N ratio is less than 20, then it is likely to cause mineralisation of organic nitrogen to inorganic which is suitable for plants (Pan et al. 2012).

Carbon to phosphorus ratio

The highest C:P ratio reduction reported was from 48:1 to 21:1, which was measured in treatment group T-4 (Fig. 4). The lowest C:P ratio reduction was from 48:1 to 31:1, which was reported in treatment group T-1. The study also showed a reduction in C:P ratio in the control treatment group. However, the C:P ratio reduction between the larval treatment group and the control treatment group differed significantly (p = 0.03) (Fig. 4).

Fig. 4
figure 4

Carbon:phosphorus ratio of the treatments

A progressive increase in total phosphorus was observed in all the treatment regimes including the microbial composting. However, there was a high reduction in carbon that resulted in a decrease in C:P ratio. An additional supply of phosphorus will be dependent on the amount of phosphorus in the feedstock (Polprasert and Koottatep 2007). The C:P ratio achieved in this study was within the acceptable range for organic waste. In all the treatment regimes, there was an improvement in the C:P ratio at the different feeding rates. Similar observations were made in decomposition of organic waste using earthworm species (Polprasert and Koottatep 2007). A higher concentration of phosphate in compost is available during the crop-growing season. However, nutrient availability will depend on the quality of soil, the moisture contents and temperature of the environment (Pan et al. 2012).

Analysis of the nutrient concentrations of the compost residues

A percentage increase in total nitrogen (TN) was reported on the final compost (Table 2). The highest increase in total nitrogen concentration of 41% (SD ± 1.0%) was reported on treatment group T-3. The lowest increase in total nitrogen concentration of 6% (SD ± 0.3%) was recorded in larvae treatment group T-5, whilst the mean percentage increase in TN of the control was 3% (SD ± 0.1%). In comparing the percentage increase in TN, the larvae treatment group T-1 performed higher (4%) than the control treatment group T-c, in 14 days and it was statistically significant (p = 0.04).

Table 2 Mean values of total nitrogen (TN) in the substrate and residue

The nitrogen concentrations increased over time, which could be due to the reduction of dry weight of organic matter (re-concentration) in the substrate by larvae decomposition. Another probable reason for this increase in nitrogen could be due to the biochemical activities of the larvae and the secretions of nitrifying bacteria from the gut of the larvae (Bernal et al. 2009). This was in line with a study conducted by Kim et al. (2011).

Total phosphorus concentration

The study showed an increase in the concentration of total phosphorus (TP) in the organic waste composting by BSF larvae (Table 3). The highest TP reported was 32.4% (SD ± 0.16, 0.14, 0.16%) in the final compost treatment group T-1, T-2 and T-3, respectively. In the larvae treatment group, the lowest increase in TP was 17.6% (SD ± 0.1%), which was reported in T-5, while the control showed much lower percentage increase (10.3%; SD ± 0.05%) in total phosphorus in the compost.

Table 3 Mean values of total phosphorus (TP) in the substrate and residue

Total potassium concentration

The study showed an increased concentration in total potassium (TK) (Table 4). The highest mean percentage increase in total potassium was 77.1% (SD ± 0.19%), which was reported in the treatment group T-3 and this was statistically significant (p = 0.02). The lowest percentage increase in TK was 42.9% (SD ± 0.11%), which was reported in the treatment group T-1. Further analysis showed that a percentage increase in total potassium in the control treatment group amounted to 14.3% (SD ± 0.04%),

Table 4 Mean values of total potassium (TK) in the substrate and residue

The high percentage increase in potassium (dry weight) content in the compost reported in this current study was similar to the results found in poultry manure compost (Bernal et al. 2009). The poultry manure content of the reference study was twice as much as the ammonium in dairy manure compost of the same study.

Heavy metal assessment of the compost

The toxicological assessment of the compost with respect to arsenic levels showed that the high level of heavy metal in the substrate (approximately 0.01 mg/kg) was maximally reduced to 0.0002 mg/kg in the final compost (Table 5). The highest arsenic removal efficiency of the system by the larvae was 98% with a standard deviation of 0.01%. This was not significant in treatment groups T-2, T-3 and T-5 (p = 0.05) as shown in Table 5.

Table 5 Arsenic concentrations in the organic solid waste and in the compost obtained using different feeding rates (mg/larvae/day) for black soldier fly larvae (BSFL)

As part of the study, the efficiency of the larvae in reducing cadmium levels in the feedstock was analysed. The highest statistically significant cadmium efficiencies were almost 100%, i.e. 99.78, 99.43 and 99.56% with standard deviations of 0.28, 0.21 and 0.14% in treatments groups T-1, T-3 and T-4, respectively (Table 6).

Table 6 Cadmium (Cd) concentrations in the organic solid waste and in the compost obtained using different feeding rates (mg/larvae/day) for black soldier fly larvae (BSFL)

With respect to the levels of Fe in the compost after the larvae degradation, assessment of heavy metals was investigated (Table 7). Analysis of the results showed a high concentration of Fe (5.5 mg/kg) in the initial feedstock in treatment group T-1 and this was significantly (p = 0.04) reduced to 1.7 mg/kg (i.e. 69%) in the final compost as shown in Table 7. The Fe removal efficiency in the control group from 5.6 to 4.66 mg/kg amounted to 17%.

Table 7 Iron (Fe) concentrations in the organic solid waste and in the compost obtained using different feeding rates (mg/larvae/day) for black soldier fly larvae (BSFL)

The concentration of nickel, a heavy metal in both the feedstock and the final compost, was analysed as part of this study. There was virtually no observable nickel removal (from 0.3 to 0.3 mg/kg and from 0.01 to 0.01 mg/kg, depending on the treatments) by the larvae. The lead concentrations in the compost were also analysed to find out the extent of lead removal of the compost. The concentrations of lead (Pb) in the substrate range from 0.01 to 0.02 mg/kg, with mean value of 0.015 mg/kg (Table 8).

Table 8 Lead (Pb) concentrations in the organic solid waste and in the compost obtained using different feeding rates (mg/larvae/day) for black soldier fly larvae (BSFL)

The lowest mean removal efficiency of lead was 80% (SD ± 1.6%), which was measured in larvae treatment group T-4. The highest mean removal efficiency of lead was 90%, which happened to T-1, T2, T3 and T 5 with standard deviation of ± 6.6, ± 2.4, ± 2.9 and ± 2.4% respectively. The mean removal efficiency of lead in the control group was 5% (SD ± 1.6%).

The study showed a decrease in heavy metal concentration after larvae degradation. This might be due to the fact that the larvae could biologically accumulate heavy metals in their tissues. Heavy metals may have been accumulated in the larvae’s tissues through two different methods: first, through direct skin contact with the nutrients dissolved in the waste; second, through the digestion of certain elements dissolved in the waste after absorption through the intestine. A similar report gave an account, where earthworm’s skin absorbed heavy metals in vermicomposting.

A report by Deborah and Raj (2016) has revealed about 50% reduction in cadmium levels when BSFL was fed with feedstock spiked with a known concentration of this heavy metal. It has been reported by Diener and a group of researchers that when the prepupae were homogenized and assessed for the presence of cadmium, the levels had reduced by further 50% before they emerged as flies. The reason for this reduction was due to the fact that the larvae might have discharged the heavy metals through defecation (Zurbrügg 2015).

An effective elimination of heavy metals by defecation has also been reported in larvae of the social paper wasp (Polistes dominulus) (Diener et al. 2011). However, even if the heavy metal accumulates in the cells lining of the alimentary canal, they may be ejected after a short time (Zurbrügg 2015). For instance, Tenebrio molitor (Coleoptera Tenebrionidae) discarded cells of the midgut epithelium after 4 days (Zurbrügg 2015). This assertion was consistent with the present study.


Under the circumstances of this experiment, the BSFL organic solid waste treatment technology could contribute to reducing the burden of organic fertilizers shortage in the farm market and provide new income opportunities for small-scale enterprise in developing countries. Furthermore, the compost quality fell within the standard quality in agriculture as a fertilizer. However, since there is cadmium accumulation in the last stage of the larvae (prepupae), it could limit the use of the prepupae in animal feeds. In the case of lead and arsenic, concerns about the use of prepupae in animal feed are less critical. Future research could take steps to evaluate possible bioaccumulation of heavy metals and toxics in the Hermetia illucens larvae before they are used as animal feedstock.