Poor waste management has adverse impacts on the environment and human health. The recent years have seen increasing interest in using black soldier fly (BSF), Hermetia illucens, as an organic waste converter. Black soldier fly larvae (BSFL) feed voraciously on various types of organic waste, including food wastes, agro-industrial by-products, and chicken and dairy manure, and reduce the initial weight of the organic waste by about 50% in a shorter period than conventional composting. The main components of the BSFL system are the larvero, where the larvae feed and grow, and the fly house, where the adults BSF live and reproduce.
1. Organic Waste Treatment via Black Soldier Fly Farming
The unique characteristic of BSFL is that they can consume large amounts of organic wastes for growth until they reach the prepupae stage 
. Compared to conventional composting, BSFL are more effective in reducing 50% of the organic waste in a shorter period. Because of this, researchers have focused on using BSF as a sustainable alternative for treating organic waste. Table 1
lists the different types of organic waste used in BSF waste treatment. Organic waste treatment with BSF is cost-effective and emits less pollution 
. According to Diener et al. 
, large-scale facilities use BSFL to produce protein and treat up to 200 tons of waste each day. However, the details of the current design and operating procedures for effective large-scale BSF treatment is commercially sensitive information and not shared 
Table 1. BSF waste treatment studies using different types of organic waste.
|Carbon and nitrogen conversion in food wastes by BSFL.
|Effects of moisture/water content on larval growth and composting efficiency.
|Fruit and vegetable waste
|The potential of fruit and vegetable waste as rearing media for BSFL.
|The BSFL nutrition composition changes throughout its life cycle.
|The efficiency of BSFL bioconversion in human fecal waste treatment.
|The reduction of pathogenic microorganisms in human feces by BSFL.
|Use of BSFL in chicken manure management.
|Effects of companion bacteria when BSFL converts chicken manure (CHM) into insect biomass.
|Comparison of the suitability of different manures as a feeding substrate for BSFL.
|Bioconversion of dairy manure by BSFL.
2. Black Soldier Fly Organic Waste Processing System
The BSF organic waste processing facility consists of waste pre-processing (e.g., particle size reduction, dewatering, and inorganic waste removal), BSFL biowaste treatment, separation of BSFL from the process residue, and larvae and residue refinement into marketable products 
. Figure 1
shows the flow of a basic BSF treatment process. The system comprises the larvero, which is a place where the larvae grow, while the fly house is where the adults live and reproduce 
. A rearing facility that maintains healthy adult and larval BSF is essential to ensure a sufficient and continuous supply of offspring for organic waste treatment 
. Larvae and frass are the by-products produced in biomass by the end of the BSF treatment process, which can be converted into animal feedstuff and organic fertilizer. Overall, BSFs are particularly compelling, since they offer a natural and cost-effective potential alternative for recycling biological waste.
Figure 1. A flow of a basic BSF treatment process.
3. Black Soldier Fly Egg-Trapping
The initial step of BSF treatment is to purchase the BSF eggs from the market or capture them in the wild. The major components in the egg-trapping are baiting and trapping materials. The egg-trap set-up to acquire BSF eggs in the wild consists of a rearing box, the substrate as a food source (any organic material, such as fruits, vegetables, or animal manure), a nylon net, and corrugated cardboard pieces. Booth and Sheppard 
used chicken manure as bait and placed the corrugated cardboard on chicken manure as a trap for the female BSF to lay the eggs in the flute of the corrugated cardboard. The nylon net allows the odor to escape while preventing parasitic and predatory insects from entering and disrupting the system 
. The rearing box containing the substrates is placed in the open to attract female BSFs.
Previous studies showed that female BSFs laid eggs on various organic matters. Sripontan et al. 
investigated the use of several substrates to attract females and found more egg clutches near the fruit waste traps than animal manure. Ewusie et al. 
found that piggery dump waste is a more suitable site to trap BSF eggs than poultry and sheep waste microhabitats. It is found that, even though female BSFs are attracted to various types of decaying organic waste, they tend to choose those with higher nutrition content for their offspring. In addition to the baiting materials, environmental factors influence the efficiency of BSF egg-trapping. The vegetation growing around the site, for example, is an ideal trapping site because it provides a resting area for the adults and protects them from heat and rain 
. Placing the rearing box at a desirable site will increase the egg-trapping efficiency. The corrugated cardboard where the females deposited their eggs is placed in the larvero system 
. The hatched larvae are reared until they are 4–6 days old (DOL), and are then placed in the BSFL treatment unit. The organic waste for BSFL feeding substrates is pre-treated to optimize BSFL conversion performance 
4. Pre-Treatment of the Black Soldier Fly System
The pre-treatment of the substrate is critical to improving substrate biodegradability/digestibility, making it easier for the BFSL to digest the substrate. It also promotes the growth of the BFSL. The capacity of BSFL to degrade waste in a specific time can be evaluated by using the waste reduction index (WRI, The following equation). Higher WRI values indicate a good reduction efficiency 
where W is the total quantity of feeding substrate used during the time t, and R is the residue left at harvesting time t.
Dortmans et al. 
recommended shredding or grinding the substrate after separating the inorganic materials from the hazardous materials because the larvae take longer to break down large chunks of the substrate due to their small mouthparts. The shredding or grinding also increases the surface area of the substrate, which promotes the growth of beneficial microbes and homogenizes the substrates, which improves the consistency of nutrient availability in the mixtures 
Several studies have investigated the pre-treatment methods for improving substrate biodegradability and nutrient viability 
. Gao et al. 
used shredded maize straw as a substrate; the optimal fermented straw was obtained by mixing Aspergillus oryzae
in an inoculation ratio of 4000:1 and fermenting it for 24 h in a 32.3% water content. Wong and Lim 
investigated the self-fermentation of waste coconut endosperm and discovered that the optimum duration to increase the nutrition content in waste coconut endosperm is four weeks. These studies added microorganisms to the substrate to increase the hydrolysis rate of lignocellulosic materials 
. Researchers also recommended pre-treating by mixing the waste with other substrates to obtain a balanced nutrient content that ensures larval growth. For example, researchers have added rice straw with glucose to restaurant waste 
and dairy manure to soybean curd residue 
. Xiao et al. 
found that mixing sewage sludge with chicken manure shortened the larval development time from 39 days to 12–13 days, compared to using only a sewage sludge mixture. This It is showed that blending two or more substrates could enhance the nutritional value, which ensures larval growth and, thus, helps the BSF complete its life cycle in a shorter time. In summary, pre-treatment is one of the factors determining the effectiveness of a BSF treatment system.
5. Black Soldier Fly Treatment System
A particular concern with BSFL organic waste treatment is its varying reliability and efficiency 
. Researchers used various types of organic waste as a substrate in BSF treatment, including kitchen waste 
, poultry waste 
, dairy manure 
, and human feces 
. Tinder et al. 
contended that the macronutrients in organic wastes, such as protein, carbohydrates, fibers, and lipids, have a considerable influence on the process performance. Protein is an essential nutrient in larval feeding substrates because of its significant positive effect on larval development 
. Nguyen et al. 
and Oonincx et al. 
found that BSFL reared in organic wastes with higher protein contents have higher larval weights, larval proteins, bioconversion rates, feed conversion rates, and shorter development times and lower lipid contents. Jalil et al. 
have proven that larvae reared in protein food sources are larger than those feeding on a carbohydrate food source. Jucker et al. 
found that larvae feeding on substrates with low protein contents have a longer development time, are smaller, and have higher lipid contents if the carbohydrate content is high 
. The different nutrient contents of the organic wastes determine the BSFL’s performance. For example, municipal organic solid wastes have the highest lipid contents; municipal organic solid waste and animal manure have higher protein contents than fruits and vegetables, which have higher carbohydrate contents. Animal manures and fruit and vegetable wastes have a higher median fiber and ash content 
. Therefore, enhancing and balancing the nutritional value of the BSFL feeding substrates by blending several nutrient-rich substrates during the pre-treatment step can improve the process performance and quality of BSFL biomass. The efficiency of BSFL treatment is dependent on the type, quantity, and quality of feed, and also various environmental factors.
Previous studies have determined the optimum range for the operating parameters for process performance. BSFL can live in aggressive environmental conditions, such as drought, oxygen scarcity, and food shortages, to a certain degree. Nonetheless, the ideal temperature range for BSF adults’ mating and oviposition is between 27–37 °C, 40–60% humidity, and 60–70% relative humidity 
. Lalander et al. 
studied the BSF composting process efficiency by providing ventilation and found that 80–90% water content is adequate for BSFL feeding substrate. Cheng et al. 
investigated the trade-off between larval growth rate and residue sieving efficiency. They found that even though a higher moisture content of the food waste results in a higher larval growth rate, it is difficult to separate the residue from the BSFL biomass. They recommended an optimum range of 70–75% for efficient residue sieving because sieving is no longer feasible at a moisture content of more than 80%. The studies on substrate pH have determined the impact of pH on larval development. Ma et al. 
found that both acidic (pH = 2, pH = 4, and pH = 6) and basic (pH = 8 and pH = 10) conditions contribute to high BSFL survival. However, a pH range of 6 to 10 is more conducive for optimal larval growth and higher larval weight relative to a pH range of 2 to 4 because the alkalization of the substrates by larval activity stimulates protease activity, which increases the amount of protein available for larval growth 
. The BSFL bioconversion process increases the pH of the substrate and leaves an alkaline residue, making the substrate suitable for use as fertilizer; the ideal pH range of 7 to 8 stimulates plant growth and provides a favorable environment for nurturing beneficial bacterial populations in the residue 
The substrates and neonate larvae (4–6 DOL) were placed in the larvero of the BSFL treatment unit to begin the composting process. The young larvae feed on the substrate and grow while processing and reducing the waste. The number of BSFL added to the substrate is dependent on the amount of waste in a specified volume and surface area 
. Lalander et al. 
have shown that the efficiency of the operation is influenced by larval density, feeding rate, and feeding mechanism. The ideal condition for an experimental setting is a larval density of 1.2 larvae/cm2
and a feeding rate of 163 mg/larva/day (dry base), which yielded up to 1.1 kg/m2
/day of larval compost and 59 g/m2
/day of larval biomass on a dry basis 
. The BSFL can be fed by a batch (TFS) or daily (DFS) feeding system. Meneguz et al. 
found that TFS larvae have a shorter development time, but DFS larvae have a higher final weight. The thickness of the substrate layer in the larvero is limited to no more than 5 cm. The larvae cannot process the entire layer if the substrate is more than 5 cm thick, and the unprocessed substrate will rot and produce an odor that attracts other filth flies. The composting process in the larvero continues until the larvae grow large enough for harvest after 14–18 days of feeding. The prepupae crawled out on their own and had the advantage of being already separated from the residue. A high portion of the prepupae remained in the substrate, which resulted in an unwanted fly population and a loss of harvest 
. Therefore, it is essential to sieve the substrate to separate the BSFL biomass from residue before refining the marketable products.
6. Post-Treatment of the Black Soldier Fly System
The main by-products of the BSFL organic waste treatment are the larvae and frass that need to be separated to obtain valuable products, such as animal feedstock and fertilizer. BSFL accumulates adequate nutrients, such as proteins and lipids, during the larval stage, since this is the only feeding duration in the BSF lifecycle. The larvae then undergo pupation and emerge as adult flies, leaving a residue called frass. The main advantage of the BSF system is that the larvae can consume a variety of organic materials for growth, including decomposable by-products and wastes, until they reach the prepupae stage 
. Diener et al. 
recommended adding a food supply to the larvero daily, providing a drainage system to drain the excess leachate, and a ramp for the prepupae to crawl out from the larvero, which also ensures the easy separation of the pupae from the frass 
The sieving is conducted in the final stage to refine the residue quality since many prepupae are still present in the material 
. In the conventional approach of BSFL bioconversion, the organic waste is fed directly to the larvae without any moisture adjustment 
. This method is straightforward and saves time; however, it is difficult to separate the residue from BSFL biomass when the residue is excessively wet with a moisture content of 82–86%, making it too viscous for sieving 
. Proper moisture control can overcome this problem. Cheng et al. 
conducted an experiment to determine the effect of food waste moisture contents of 70%, 75%, and 80% on residue separation. The ideal moisture contents for sieving food waste are 70 and 75%. Residue with 80% initial moisture content is not suitable for sieving because the adhesive property of the water molecules promotes particle aggregation, which increases the particle size. Dortmans et al. 
suggested harvesting, which is the process of separating the larvae from the residue using a manual or automated shaking sieve after 12 days of BSFL waste treatment, when the larvae have reached their maximum weight and nutritional value but have not developed into prepupae. The larvae or prepupae can be processed to produce animal feed, and the residue is refined to produce organic fertilizer.