1. Introduction
With accelerating global urbanization and shifting consumption patterns, food waste—a major component of urban organic refuse—has become a critical bottleneck for ecological sustainability [
1]. According to United Nations Environment Programme statistics, approximately 931.1 million tons of food waste are generated globally each year, a staggering figure that underscores the dual challenges of resource loss and environmental degradation [
2]. In China alone, municipal solid waste amounts to 117.141 million tons annually, of which food waste constitutes a substantial portion—between 23 and 45 million tons. This complex waste stream is composed of 38.2% fruit, 41.52% vegetables, 7.62% staple foods, 7.22% eggshells and bones, 2.52% shells and pits, and 2.32% meat by wet weight [
3,
4].
In many Asian countries, including Malaysia, food waste management continues to be constrained by multiple challenges such as limited funding, low public awareness, and technological gaps. Conventional methods like landfilling and incineration remain dominant, exacerbating serious environmental problems including soil and air pollution and posing long-term health risks due to the bioaccumulation of toxins in the food chain [
5]. Although more sustainable pathways such as recycling and composting have been recognized for their potential, their widespread adoption remains limited due to these same constraints. Therefore, the development of efficient and safe bio-recovery technologies has become an urgent global issue.
In this context, the development of efficient and safe biological recovery technologies has become an urgent global priority. Black soldier fly larvae (BSFL,
Hermetia illucens), a saprophagous insect recognized for its high resource conversion efficiency and environmental adaptability, have emerged in recent years as an innovative biorecycling technology for food waste valorization [
6]. Unlike conventional disposal methods, BSFL-based bioconversion actively recovers nutrients from waste streams, transforming them into high-quality insect biomass rich in protein and lipids. What is particularly important is that this process also produces nutrient-rich insect manure. Insect manure is a mixture of larval excrement, molts, and leftover food; it can be used as high-quality organic fertilizer [
7,
8]. Research has shown that the manure of black soldier flies can improve soil health and fertility, providing a basis for their introduction into agricultural production [
9]. For example, field experiments have shown that it can significantly increase the yield of ryegrass as well as various soil fertility indicators such as OM, P
2O
5, and K
2O. Further research is needed to examine the effects of different conditions, application rates, and combinations with nitrogen fertilizers in order to verify its effectiveness as an organic fertilizer. It is also important to consider the residual effects of this substance within the context of a circular economy [
10]. Therefore, the black soldier fly conversion system enables the dual conversion of “waste” into both “feed” and “fertilizer”, thus aligning with the principles of the circular economy [
11].
Studies indicate that BSFL contain 40–48% crude protein and 25–40% crude fat, with a nutritional profile comparable to high-grade animal feed ingredients such as soybean meal and fish meal [
12,
13]. This robust nutritional profile underpins their unique potential for integrated waste management and resource circularity, as they can efficiently convert a wide variety of organic wastes, including agri-food by-products, into valuable biomass [
14,
15].
However, a comprehensive understanding of key BSFL adaptation mechanisms is still evolving. Specifically, how their growth dynamics, nutrient accumulation, and heavy metal distribution patterns respond to variable rearing substrates requires further elucidation. This knowledge gap persists because much current research is narrowly focused on isolated life stages or basic nutritional endpoints [
16,
17], leaving a significant gap in system-level, life-cycle analyses. This includes a lack of detailed information on developmental progression across all larval stages, shifts in specific amino acid and fatty acid profiles, mineral accumulation trends, and the transfer dynamics of heavy metals within the integrated “larva–frass” system [
18]. Crucially, the ecological adaptation strategies and resource conversion efficiency of BSFL confronted with high-moisture, low-protein, and strongly acidic (pH ≈ 3.62) food waste—a common yet under-investigated scenario—remain largely unexplored.
The novelty of this study is primarily reflected in the following aspects: Firstly, it systematically investigates the adaptability and conversion efficiency of BSFL under the challenging conditions of high moisture, low protein, and strong acidity—a scenario characteristic of hard-to-treat food waste that has rarely been explored comprehensively in previous studies. Secondly, it provides a comprehensive life-cycle analysis covering growth kinetics, dynamic accumulation of conventional nutrients, amino acids, fatty acids, and minerals, as well as the physicochemical evolution of frass, thereby overcoming the limitations of earlier research that often focused on isolated stages or single parameters. Thirdly, for the first time, it systematically elucidates the element-specific migration and safety regulation mechanisms of multiple heavy metals (As, Pb, Hg, Cd, and Cr) within the “larvae–frass” system, clarifying the ability of BSFL to selectively exclude contaminants while producing safe biomass. This integrated research framework, which combines challenging substrate conditions with a holistic analysis of growth, nutrition, and safety, represents a significant advancement from fragmented descriptions toward a systematic mechanistic understanding in the field.
Therefore, this study systematically examines the adaptation and bioconversion characteristics of BSFL in such challenging, low-quality substrates, using food waste as the sole diet. Grounded in the hypothesis that BSFL can effectively restrict heavy metal uptake via selective absorption and growth dilution—without compromising larval growth—we aim to elucidate the underlying ecological adaptation mechanisms and product safety regulation strategies. Our findings are expected to provide a theoretical foundation and practical support for advancing insect-based bioconversion as an innovative and sustainable food waste recycling technology, contributing to safer and more efficient resource recovery systems.
3. Discussion
This study comprehensively investigated the growth adaptation mechanisms, nutrient conversion efficiency, and product safety of BSFL cultivated on food waste-based substrates. The findings reveal that BSFL exhibit remarkable adaptability to high-moisture, low-protein, and acidic environments, primarily through a growth pattern characterized by significant elongation. They achieve highly efficient nutrient conversion and selective inhibition of heavy metal accumulation while maintaining stable biomass production. These insights provide essential theoretical foundations and practical support for insect-based bioconversion technologies targeting food waste.
3.1. Nutritionally Deficient Substrates Elicit a Compensatory Growth Response in BSFL
The robust growth of BSFL on highly acidic, high-moisture food waste, as evidenced by a strong fit to the logistic growth model (R
2 = 0.96), underscores their notable metabolic plasticity. The observed growth inflection point at 13.14 days occurred later than that reported for larvae reared on more nutrient-dense substrates such as dairy manure (10–12 days) [
16]. This delay aligns with the established principle that BSFL growth kinetics are profoundly influenced by substrate nutrient density and physical properties [
19], suggesting a trade-off between adaptability and maximum growth rate in suboptimal environments. From the perspective of waste recycling efficiency, BSFL are capable of completing their entire life cycle even in strongly acidic and high-humidity conditions, demonstrating considerable substrate adaptability and stable waste processing capability. This provides a reliable technical approach for the efficient biological conversion of low-value organic waste. Growth curve parameters, such as a maximum daily weight gain of 0.22 g per larva, further highlight the potential of this technology for large-scale waste treatment coupled with resource recovery.
Our findings revealed strong positive correlations (
p < 0.01) among larval age, weight, length, and width, indicating that BSFL maintain developmental synchrony and morphological integration even under nutritional and physicochemical stress. This coordinated growth pattern, likely a key adaptive trait, ensures functional somatic development and is consistent with previous observations of BSFL efficiently processing diverse untreated organic wastes [
20]. The rigorous larval standardization and density control implemented in this study likely contributed to the high population uniformity and final body weights, which surpassed those reported in studies with less controlled conditions [
21]. This supports the view that optimized rearing protocols are critical for maximizing BSFL performance in variable waste streams [
22]. In terms of resource utilization value, the maintenance of high growth consistency and morphological uniformity on low-quality substrates facilitates subsequent large-scale harvesting and processing. This enhances the suitability of BSFL as a uniform protein source for feed, thereby improving its market acceptance.
The slightly lower maximum daily weight gain (0.22 g/larva) compared to studies using optimized feeds (e.g., 0.30 g/larva [
23]) can be attributed to the inherent nutrient imbalances and high moisture content of the food waste substrate. The successful completion of the life cycle in a strongly acidic substrate (initial pH 3.62)—far outside the documented optimal range (pH 6–8) [
24]—suggests the presence of sophisticated physiological buffering mechanisms. We posit that the BSFL gut microbiome plays a crucial role in this tolerance, potentially through the production of alkaline metabolites or the regulation of ion transport to maintain intestinal pH homeostasis [
25,
26]. Although Diener et al. [
27] did not investigate such extreme pH conditions, their quantification of larval daily processing capacity for commercial garbage and human feces (3–5 kg/m
2 and 6.5 kg/m
2, respectively) demonstrated the broad adaptability of BSFL across diverse waste systems. This further corroborates the significant application potential of BSFL in the biological treatment of complex organic wastes, including those with strong acidity.
3.2. Dynamic Accumulation of Conventional Nutrients in BSFL Cultivated on Food Waste Substrate
The phased nutritional metabolism observed in BSFL reared on food waste highlights their capacity for dynamic resource allocation in response to substrate characteristics. The sustained increase in CP concurrent with a decline in EE after the initial growth phase suggests a metabolic shift toward protein conservation and structural growth as larvae approach pupation. The protein content of black soldier fly larvae (BSFL) observed on day 15 in this study—64.21% on a dry matter basis—was indeed higher than the ranges commonly reported in the literature (for example, 39.38% to 48.20%) [
28]. This difference may stem from the larvae’s deep physiological adaptation to specific substrates, rather than merely from nutritional accumulation. Recent mechanistic studies have shown that inhibiting a specific amino acid transporter (HiNATt) in the BSFL excretion system can increase its total amino acid content by 77.3%, with some essential amino acids even doubling in amount [
29]. This suggests that the high protein content observed in this experiment may be related to a similar internal nitrogen retention mechanism triggered by the feed, allowing for maximum protein synthesis under conditions of limited nutrition. This finding corroborates, at the mechanistic level, the research conducted by Liu and others, and supports the idea that BSFL generally adopts a conservative adaptive strategy of dynamically balancing protein and fat synthesis when facing different types of organic waste. This dynamic not only reflects the physiological adaptation of the larvae but also exemplifies the process of upgrading low-value food waste into high-value insect biomass. The increase in CP from an initial 52.59% to 64.21% demonstrates the ability of BSFL to effectively concentrate nitrogen, thereby facilitating efficient conversion and valorization of nitrogenous resources within the waste stream.
The notable rise in larval CP content (reaching 64.21%) despite the substrate’s moderate protein level (42.98%) points to efficient nitrogen retention and potential “selective assimilation,” a process likely mediated by gut microbiota [
30]. In contrast to studies utilizing optimized feeds such as wheat bran or soybean meal—where CP levels typically plateau around 48–49% [
28,
31,
32]—the higher CP observed here may reflect a “passive enrichment” effect. This phenomenon is likely driven by the relative scarcity of readily digestible carbohydrates and lipids in the food waste, supporting the view that BSFL prioritize protein synthesis under carbon-limited conditions [
33]. This protein-enriching capability yields high-quality insect protein suitable for recycling applications, offering a potential substitute for conventional feed proteins like fishmeal and soybean meal, thereby enhancing the economic and environmental sustainability of the waste valorization process.
When reared on kitchen waste, the fat content of black soldier fly larvae exhibits a pattern of initial increase followed by a rapid decline. This is primarily due to the inherent metabolic changes that occur in the later stages of larval development in order to meet the energy demands required for metamorphosis, which lead to an accelerated breakdown of lipids [
34]. In addition, the characteristics of the substrate (such as high moisture content and easy fermentability) may further affect the larvae’s ability to assimilate and metabolize lipids by altering the dynamics of the intestinal microbiota [
35]. Therefore, the observed changes in lipid content are the result of the combined effects of the larval developmental process and the physiological adjustments mediated by the substrate [
36]. The trend of fat accumulation observed in the larvae of this study differs from the findings reported by Zandi-Sohani et al. [
37], and this is mainly attributed to the differences in substrate composition and harvesting timing. Although both studies utilized food waste, there were fundamental differences in their nutritional composition (such as the ratio of lipids to carbohydrates) [
38]. Substrates rich in carbohydrates may promote fat accumulation more effectively through the “de novo synthesis” pathway, whereas the substrate used in this study may contain more indigestible fiber, which affected the energy storage mechanisms of the larvae [
39]. Additionally, harvesting timing is crucial: in this study, the fat content peaked at 6 days of age, whereas the comparative study harvested the larvae on day 19, capturing different metabolic stages [
40]. This highlights the high metabolic plasticity of black soldier fly larvae. Therefore, by precisely adjusting the substrate composition and harvesting timing, it is possible to selectively produce larvae with high fat content (suitable for biodiesel production or special feed applications) or optimize other outputs, thereby achieving the hierarchical and high-value utilization of resources.
Mašková et al. [
17] observed a high fat content (34.02%) in BSFL reared on openly stored substrate at room temperature, suggesting that microbial degradation may convert complex organics into bioavailable lipid precursors. This highlights the critical influence of substrate pretreatment and storage on larval nutritional composition. Furthermore, Ribeiro et al. [
41] reported that different plant-based substrates (e.g., pumpkin, red onion) significantly affect BSFL growth and nutrient accumulation, while substrates like apple and grape pomace may induce developmental delays due to anti-nutritional factors [
42]. In the present study, the complex composition of food waste likely combines the promotive effects of microbial pre-degradation with the limiting effects of certain anti-nutritional factors [
43], collectively shaping the final nutritional profile of the BSFL.
CF content increased synchronously with age and showed a highly significant positive correlation with CP. This reinforces the indispensable role of mineral elements as cofactors in numerous enzyme systems involved in protein synthesis and energy metabolism [
44]. It also indicates that the continuous accumulation of minerals during larval growth may be linked to processes such as chitin synthesis, skeletal development, and enzymatic activation [
22]. This accumulation pattern, characterized by “protein prioritization with dynamic fat allocation,” represents a core adaptive strategy [
45,
46]. Through precise stage-specific regulation of nutrient allocation priorities, BSFL achieve efficient conversion of low-quality substrates into high-quality insect biomass, fully demonstrating their considerable potential and metabolic plasticity as converters of organic waste [
47].
NFE exhibited significant fluctuations across larval stages (2.24–8.29%) without a discernible trend. This variability may be attributed to the instability of carbohydrate fractions in the substrate and dynamic metabolic adjustments by the larvae. Previous studies indicate that substrates rich in non-structural carbohydrates (NSC) can result in higher larval crude fat content, suggesting BSFL possess the capacity to convert carbohydrates into lipids [
48] The NFE variability observed here likely stems from the inherent compositional complexity and instability of food waste. Fermentable carbohydrates may undergo rapid microbial degradation during storage or rearing, causing dynamic shifts in availability and consequently affecting the stable metabolism and accumulation of NFE by the larvae [
35].
A significant negative correlation between CP and EE further supports the existence of a nutrient allocation trade-off. This metabolic partitioning between protein and fat accumulation underscores the ability of BSFL to adapt their biosynthetic priorities in real time, a plasticity central to their efficiency in transforming heterogeneous, low-quality waste into nutrient-dense biomass.
While this study documents clear nutrient dynamics, the underlying molecular or enzymatic drivers—such as the activity of key lipases or proteases—remain uncharacterized. Further research integrating transcriptomic or metabolomic approaches is needed to elucidate the regulatory mechanisms governing these nutrient shifts. Additionally, the specific impact of substrate-derived microbiota on nutrient bioavailability warrants more detailed investigation.
3.3. Dynamic Accumulation Characteristics of Amino Acids and Fatty Acids
The sequential accumulation of amino acids and fatty acids in BSFL reared on low-quality substrates such as food waste elucidates the complex interplay between insect developmental physiology and the external nutritional environment. This process represents an active, metabolically regulated response to substrate properties rather than passive nutrient enrichment. From a resource valorization perspective, the stage-specific enrichment of amino acids and fatty acids demonstrates the capacity of BSFL to convert heterogeneous and labile organic components of food waste into stable, nutritionally balanced insect-derived oils and proteins. This significantly enhances the nutritional value and market competitiveness of BSFL products intended for feed or food applications.
BSFL amino acid metabolism follows a distinct “physiological demand-driven” pattern. EAAs, particularly lysine and leucine, exhibited marked accumulation near the growth inflection point (13 days post-hatching), aligning with the biological imperative to stockpile high-quality protein reserves for pupation [
1]. This reproducible pattern across substrates with varying nutritional profiles underscores the robustness of intrinsic regulatory mechanisms governing nitrogen metabolism and EAA homeostasis in BSFL [
49]. Even under the acidic, high-moisture stress conditions examined in this study, their EAA accumulation capacity remained stable, further validating BSFL’s robust nitrogen metabolism adaptability. Notably, arginine exhibited a peak accumulation during a specific developmental window (9–12 days post-laying) [
50], likely linked to heightened demands for chitin synthesis and energy metabolism during the larval-to-prepupal transition [
51,
52,
53]. Such dynamics inform the targeted application of BSFL based on developmental stage [
54].
Metabolically, the initial phase (0–6 days) can be characterized as a “growth-priority phase,” during which approximately 80% of substrate nitrogen (as proteins and peptides) was directed toward de novo protein synthesis. This elevated larval crude protein content from 52.59% to 64.21%, with lysine and valine accumulating at rates of 0.08%/d and 0.06%/d (dry weight basis), respectively, meeting the demand for “structural amino acids” required for somatic tissue development [
18]. The observed EAA pattern is consistent with findings from studies using high-fiber substrates like almond hulls [
55] and Kenyan organic waste streams [
15], indicating a conserved metabolic plasticity enabling phased EAA accumulation under diverse nutritional conditions. Compared to studies using putrefied sesbania leaves [
56], the more pronounced arginine peak in this study may be attributable to differences in larval genetic background or substrate pretreatment. The consistent accumulation of EAAs suggests that BSFL can produce insect protein with a balanced amino acid profile even when reared on variable feedstocks, thereby ensuring product nutritional consistency and mitigating quality risks associated with raw material heterogeneity.
In contrast to the intrinsic robustness of amino acid metabolism, the fatty acid profile of BSFL acts as a responsive “metabolic mirror,” closely reflecting dietary fatty acid composition and larval carbon utilization strategy. The most prominent finding was the absolute dominance of C12:0, corroborating numerous global studies and reinforcing BSFL’s status as a premium natural source of this medium-chain fatty acid [
57]. Compared to research using PUFA-rich substrates, the lower total and fluctuating long-chain PUFA content in this study directly reflects the inherently limited PUFA content of the food waste and indicates a constrained capacity for de novo long-chain PUFA synthesis in BSFL [
58]. However, larvae demonstrated an ability to retain and convert dietary PUFA precursors [
59].
From days 6 to 13, corresponding to an “energy reserve phase,” excess substrate carbon sources (24.64% nitrogen-free extract) were channeled into lipid synthesis, increasing EE content from 13.82% to a peak of 26.42%. This aligns with the metabolic model wherein “carbon sources are preferentially allocated to fat deposition during the mid-growth phase of BSFL” [
27]. The fatty acid dynamics reflect refined carbon utilization. SFA, the medium-chain C12:0 consistently dominated across all stages. While most SFAs fluctuated with age, long-chain SFAs like C16:0 and C18:0 showed relative stabilization in later stages, consistent with late-larval energy reserve requirements [
39]. We hypothesize that the high carbohydrate content in food waste may upregulate key lipogenic enzymes like acetyl-CoA carboxylase (ACC) and fatty acid synthase (FAS), thereby driving SFA synthesis [
7]. Among MUFAs, C18:1n9c tracked larval weight gain, fulfilling an energy storage role [
60]. PUFAs, primarily C18:2n6c and C18:3n3, exhibited phased fluctuations, reflecting BSFL’s capacity to retain and convert dietary essential fatty acids [
61,
62], which are crucial for maintaining membrane integrity, regulating inflammation, and supporting neural development [
34,
63].
The high SFA accumulation trend aligns with findings that “BSFL lipid composition is significantly influenced by substrate type” [
64]. However, the PUFA proportion in this study exceeded that reported for larvae reared on high-fat substrates [
60], suggesting that carbohydrates in food waste may promote unsaturated fatty acid retention via lipid metabolic reprogramming [
39]. The fatty acid composition, particularly the high accumulation of lauric acid, endows BSFL oil with unique functional properties, such as antibacterial and growth-promoting effects [
65]. As a result, it can be used not only as a source of energy but also as a high-value feed additive or cosmetic ingredient, thereby expanding the range of products that can be derived from kitchen waste and increasing the economic benefits associated with this resource utilization [
66].
In summary, BSFL employ a dual-track nutritional strategy during food waste bioconversion: they maintain strong metabolic autonomy and developmental programming in accumulating amino acids (especially EAAs) to meet core physiological needs, while their fatty acid profile exhibits greater plasticity, largely reflecting the dietary “carbon blueprint” to facilitate efficient energy assimilation and storage. A limitation of this study is the absence of substrate fatty acid characterization, which precludes a complete tracing of lipid conversion pathways. Future research should integrate detailed feed lipidomics to clarify the mechanisms of selective fatty acid retention and modification. Additionally, the contribution of the gut microbiota to amino acid metabolism warrants further investigation.
3.4. Mineral Element Accumulation Patterns and Bioaccumulation Effects
BSFL exhibit a mineral enrichment pattern characterized by the prioritized accumulation of macronutrients and the dynamic regulation of trace elements. This pattern is governed by the chemical speciation of elements in the substrate, the physicochemical conditions within the larval gut, and intrinsic homeostatic mechanisms.
Our findings align with those of Spranghers et al. [
67], demonstrating efficient Ca accumulation, which supports structural functions such as chitin synthesis and cuticle formation. The higher Ca accumulation observed in the present study compared to the report by Oonincx et al. [
48] may be attributed to the presence of highly bioavailable Ca sources (e.g., bone fragments and eggshells) in the food waste substrate. Similarly, the progressive uptake of K, Mg, and Na corroborates the work of Barragán-Fonseca et al. [
68], underscoring their essential roles in osmoregulation and neuromuscular function. The efficient assimilation of these essential minerals enables BSFL to convert mineral fractions present in food waste (such as those from eggshells and bones) into bioavailable forms within their biomass. This process enhances the mineral nutritive value of BSFL as a feed ingredient, facilitating the effective recovery of mineral resources from waste streams.
In contrast, trace elements such as Cu and Zn were subject to selective restriction, exhibiting declining uptake in later developmental stages despite their high concentrations in the substrate. This pattern diverges from the sustained accumulation reported by Liu et al. [
34]. under different conditions, suggesting the activation of active homeostatic mechanisms in BSFL. These may involve processes such as metallothionein chelation or enhanced excretory pathways [
69,
70,
71]. The synergistic relationship among Mn, K, and Zn implies shared transport pathways, such as ZIP transporters, as also noted by Diener et al. [
21]. The limited assimilation of specific trace elements like Cu and Zn indicates that BSFL possess a degree of self-purification capability during resource recovery. This helps prevent the excessive bioaccumulation of potentially harmful minerals, thereby contributing to the safety of BSFL-derived products for feed applications.
We attribute the differential dynamics of trace elements largely to the substrate’s acidity (initial pH 3.62), which significantly influences metal solubility and bioavailability. This observation is consistent with Nguyen et al. [
72], who identified pH as a critical factor modulating mineral assimilation in BSFL. Under acidic conditions, BSFL appear to employ a strategy that balances the increased bioavailability of metals with stringent intracellular regulation [
73], particularly during the metabolic shift toward prepupal development [
74].
Fe accumulation remained limited (Bioconcentration Factor, BCF < 1), which is consistent with the findings of Diener et al. [
75]. This limitation is likely due to Fe complexation with dietary fiber or its reduced solubility within the acidic intestinal environment. However, unlike the Fe plateau observed by Zhou et al. [
76] in larvae reared on agricultural waste, the age-dependent increase in Fe content observed here may reflect the predominance of more bioavailable organic Fe species in food waste, as suggested by van der Fels-Klerx et al. [
77].
In summary, this study reveals that BSFL employ element-specific and developmentally regulated strategies for mineral accumulation. These findings advance our understanding of insect-mediated resource conversion and support the optimized application of BSFL in the valorization of organic wastes.
3.5. Dynamic Evolution of Excrement Composition and Its Functional Coupling with Metabolic Activity in BSFL
The physicochemical properties of BSFL frass evolved dynamically throughout the growth cycle, reflecting continuous larval–substrate interactions and nutrient redistribution.
Our analysis revealed that organic matter content remained consistently high (58.55–62.51%) across all age groups, indicating stable organic conversion efficiency. This result aligns with the range reported by Lalander et al. [
78], underscoring the capacity of BSFL to produce humic-stable outputs from diverse organic wastes. In contrast to the age-dependent decline observed by Zhou et al. [
76] in agricultural waste, the stability in this study may be attributed to the balanced dynamics between continuous feeding and larval metabolic activity in a high-nutrient food waste system.
Notably, total phosphorus content decreased significantly with larval age, from 3.07% at 3 days to 1.73% at 15 days. This trend corresponds with the high phosphorus demand during rapid growth phases—particularly near the developmental inflection point (13–14 days)—supporting cuticle formation and energy metabolism, as also noted by Barragan-Fonseca et al. [
68]. Unlike the downward trend in total phosphorus levels, the content of total nitrogen exhibited fluctuating changes during the growth period: it decreased from 7.66% at 3 days of age to 6.80% at 6 days of age, then rose to a peak of 7.96% at 9 days of age, and subsequently began to decline gradually. This fluctuation pattern of “decrease-increase-decrease” may reflect the dynamic adjustments in the nitrogen metabolism, assimilation efficiency, and excretion behavior of larvae at different stages of development. During the early stages of rapid growth (approximately 3–6 days), nitrogen is efficiently assimilated into larval tissue proteins; in fact, more than 50% of the substrate nitrogen is stored by the larvae [
38], This may result in a temporary decrease in the nitrogen content of manure. The subsequent peak (after 9 days) may correspond to a period of intense feeding and excretion, accompanied by a temporary increase in the activity of the intestinal microbiota—as evidenced by a significant increase in the abundance of nitrogen-metabolizing genes [
79]. This affects the transformation and retention of nitrogen. Studies have shown that such microbial activity can cause significant changes in the total nitrogen content within insect fecal residues. The decrease observed during the later stages of development (12–15 days) may be related to the larvae preparing for the pupal stage, as their feeding activity slows down and their metabolic processes shift, resulting in a reduction in the total amount of nitrogen obtained from and excreted by the larvae [
80]. These fluctuations indicate that the cycling of nitrogen within the larva-substrate system is not linear, but is rather subject to complex regulatory mechanisms influenced by the physiological state of the larvae and the restructuring of the microbial community.
The frass maintained a weakly alkaline pH (7.75–8.30) throughout the experiment, contrasting sharply with the acidic initial substrate. This alkaline shift may inhibit pathogens, consistent with the findings of Khaoula et al. [
81] on frass antibacterial properties, though it could also affect nutrient availability. The observed pH increase with larval age deviates from the typical acidification caused by metabolic organic acids, a divergence that warrants further mechanistic study, as hinted in Diener et al. [
27].
Moisture content varied substantially (55.55–70.08%), with the lowest value coinciding at 6 days with peak larval crude fat accumulation (26.42%), implying a link between lipid synthesis and water metabolism. This extends the nutrient–water balance concept discussed by Spranghers et al. [
67]. Moreover, the stable total nutrient content (9.55–11.89%) confirms the suitability of frass as organic fertilizer, corroborating Oonincx et al. [
48].
Overall, the compositional dynamics of frass are functionally coupled with larval metabolism and developmental transitions. The decline in frass phosphorus inversely correlates with larval accumulation, illustrating nutrient reallocation within the larva–frass system. The stable carbon-to-nitrogen ratio further reflects larval regulatory capacity in organic matter transformation, resonating with van Huis et al. [
82] on insect resource allocation. Additionally, succession in larval digestive physiology and gut microbiota—emphasized by Silvaraju et al. [
83] as critical in frass formation—likely drives these temporal changes. Substrate properties such as high moisture (78.4%), protein content (42.98%), and initial acidity (pH 3.62) also fundamentally shape frass characteristics. Finally, the metabolic shift around the prepupal transition (day 12) may further modulate frass composition, as indicated in related life-history studies [
84].
In summary, this study elucidates the metabolic and environmental drivers behind frass composition dynamics, enhancing the understanding of nutrient flows in insect-based bioconversion systems. These insights establish a basis for optimizing frass valorization in agriculture while highlighting the need for further research on gut microbiome roles and nutrient bioavailability in different fertilizer applications.
3.6. Migration Patterns of Heavy Metals and Safety Risk Assessment
BSFL demonstrated a dynamic heavy metal management strategy characterized by “selective exclusion–phased accumulation–growth dilution” across As, Pb, Hg, Cd, and Cr, revealing element-specific and time-dependent regulatory behaviors.
Our findings align with the trends summarized in Wang et al. [
85], showing strong Cd enrichment (BCF up to 9.62) but limited As accumulation (BCF 0.04–0.22), potentially due to Cd’s high bioavailability and affinity for metallothioneins [
62]. Pb was also significantly retained in larvae (BCF 1.17–2.72), consistent with Wu et al. [
71], suggesting possible cuticular adsorption or active transport mechanisms. In contrast, Hg peaked in larval bodies at day 6 but was consistently higher in frass—a distribution pattern diverging from that reported by Deng et al. [
86] under copper stress, possibly due to differences in Hg speciation and organic matter complexation in our food waste substrate. The migration patterns of heavy metals within the “larva-worm sand” system are crucial for assessing the environmental risks and product safety associated with the biological conversion of kitchen waste. Studies have revealed that over 90% of arsenic and chromium are retained within the worm sand, indicating that the BSFL system possesses significant biological exclusion and immobilization effects on these pollutants. This effectively reduces the risk of these substances entering the food chain.
A key observation was the negative correlation between larval age/weight and body heavy metal concentrations (r = –0.55 to –0.76), strongly supporting a growth dilution effect. This phenomenon, also noted by Gao et al. [
87], highlights BSFL’s capacity to reduce metal burden per unit biomass as they develop. Moreover, the positive inter-element correlations (r = 0.70–0.76), particularly between Cd and As (r = 0.837), suggest shared physiological pathways for uptake, transport, or detoxification, possibly involving metallothioneins (MTs) and multidrug resistance proteins (MDRs) [
75]. The growth dilution effect indicates that by optimizing the harvesting strategy—such as harvesting when the biomass is at its maximum but before pupation—the heavy metal content per unit mass of the insect can be further reduced. This represents an important technological aspect for actively controlling the safety risks associated with the product during the recovery process.
From an application standpoint, our results corroborate the findings of Van der Fels-Klerx et al. [
77] that BSFL maintain high viability in metal-contaminated substrates while effectively minimizing metal accumulation via prioritized excretion and biomass dilution. This underscores the importance of harvest timing—collecting larvae when biomass is maximal but before pupation—to reduce metal risks in derived products. Conversely, the predominant frass retention of As and Cr necessitates careful safety evaluation before its use as fertilizer, possibly requiring further treatment such as composting or chemical passivation.
In summary, BSF technology not only achieves the efficient conversion of organic waste but also serves as a tool for the biological separation of pollutants and the regulation of related risks during this conversion process. Through its selective absorption, excretion, and growth-dilution mechanisms, it can effectively prevent the migration of heavy metals into the high-value proteins in the insects. At the same time, it allows certain pollutants to accumulate in the insect waste, facilitating their centralized treatment or safe disposal. This technology truly realizes the sustainable goal of ‘waste management—resource recovery—risk control’ in one integrated approach.