Tuesday, December 1, 2026
Science
No Result
View All Result
  • Login
  • HOME
  • SCIENCE NEWS
  • CONTACT US
  • HOME
  • SCIENCE NEWS
  • CONTACT US
No Result
View All Result
Scienmag
No Result
View All Result
Home Science News

Machine Learning Predicts Black Soldier Fly Larval Yield and Nutritional Composition

November 26, 2026
in Science News
Teresa Odom
By Teresa Odom Scienmag Editorial Profile - Machine Learning
Reading Time: 6 mins read
0
Machine Learning Predicts Black Soldier Fly Larval Yield and Nutritional Composition

Machine Learning Predicts Black Soldier Fly Larval Yield and Nutritional Composition

65
SHARES
587
VIEWS
Share on FacebookShare on Twitter
ADVERTISEMENT

Agricultural scientists working across an applied commercial research consortium have developed predictive machine learning models capable of forecasting the harvest biomass, nutritional composition, and survival rates of Black Soldier Fly larvae directly from initial substrate formulations. Addressing the global demand for sustainable feed protein alternatives to conventional fishmeal and soybean meal, the farming of Black Soldier Fly larvae (Hermetia illucens) has expanded as a biological mechanism to convert diverse organic waste streams into nutrient-rich protein and lipid resources. However, commercial producers routinely face substantial operational inconsistencies because accessible waste substrates vary widely in their proximate concentrations of protein, lipids, and carbohydrates. Such variability directly alters larval growth, development time, and nutrient accumulation, while conventional blending approaches historically depended on empirical trial-and-error without reliable optimization tools. By establishing dedicated regression pipelines evaluated on extensive commercial rearing data, the research demonstrates that advanced algorithmic frameworks can provide precision nutrition support for insect agriculture analogous to the computational platforms long utilized in traditional dairy, swine, and poultry husbandry.

The study leveraged a substantial real-world dataset comprising 1,606 complete rearing records gathered from four commercial insect farming facilities operating under the Israeli Black Soldier Fly Consortium, an applied initiative supported by the Israel Innovation Authority. Unlike prior insect modeling efforts that relied on modest datasets derived from tightly controlled laboratory diets, this multi-source compilation captured the practical input heterogeneity encountered when processing commercial waste streams in hot and humid operational climates. Prior to model development, exploratory data screening and distribution analyses across five initial commercial facilities revealed marked statistical anomalies within one company dataset, prompting its systematic exclusion to preserve data integrity. Substrates in the finalized dataset were prepared from commercial waste streams with moisture adjusted using dry bran or water, maintained under standardized environmental temperatures and ambient relative humidity exceeding 60 percent, alongside standardized chick feed control cycles to benchmark performance and ensure rigorous quality exclusion criteria across all production cycles.

To model larval performance accurately, researchers formulated a feature engineering framework centered on nine specific input metrics expressing substrate chemistry and batch rearing parameters on a dry matter basis. These inputs encompassed substrate crude protein percentage, crude fat percentage, neutral detergent fiber (NDF) percentage, ash percentage, initial moisture percentage, total rearing cycle duration in days, and initial larval count ranging from 6,250 to 25,000 larvae per container at a standardized feeding rate of 0.64 grams of substrate per larva. From these analytical values, two additional features were derived: total carbohydrate content, defined as 100 percent minus the sum of protein, fat, NDF, and ash, and substrate dry matter, defined as 100 percent minus initial moisture. Laboratory analyses of substrates and harvested larvae were conducted by certified testing facilities using standardized AOAC drying, automated Kjeldahl nitrogen digestion with a 6.25 conversion factor, and acid hydrolysis petroleum ether Soxhlet extraction protocols to quantify four primary harvest target variables: larval crude protein concentration, larval crude fat concentration, total larval biomass in grams, and batch survival percentage.

To evaluate predictive capacity without data leakage, the investigators implemented a grouped five-fold cross-validation scheme where distinct experimental boxes—representing specific replicate batches sharing a company, experiment, and diet—were strictly held out together in single validation folds. Target variables exhibited broad operational variation across the 1,606 rearing records, with mean larval protein reaching 33.57 percent, mean fat reaching 29.11 percent, mean biomass averaging 1,631.91 grams, and mean survival recorded at 93.19 percent. Because larval biomass spanned from 520 to 3,740 grams, researchers applied a logarithmic transformation during modeling and back-transformed residuals for statistical evaluation. Survival rates were quantified commercially using a weight-based estimation method dividing total harvested biomass by mean individual larval weight. Because sampling variability in individual larval weight occasionally generated survival estimates exceeding 100 percent in 43.2 percent of records, these raw operational data points were intentionally retained without artificial capping during training to preserve natural distribution boundaries.

Seven distinct machine learning regression architectures representing varied structural complexity were systematically trained and compared for each target variable: a regularized linear regression baseline incorporating polynomial expansions and elastic-net penalties, instance-based K-Nearest Neighbors, kernel-based Support Vector Regression, single Decision Trees, and three tree-based ensembles consisting of Random Forest, Adaptive Boosting (AdaBoost), and Extreme Gradient Boosting (XGBoost). In addition, a multi-model stacking ensemble was constructed using non-negative least squares meta-learning to combine out-of-fold predictions from all seven base learners. Hyperparameters were tuned independently on inner folds using Optuna optimization over 30 trials with a fixed random seed. Across-fold performance stability was confirmed by standard deviations of R-squared remaining at or below 0.06 across folds, and sensitivity analyses retaining strict diet and company groupings demonstrated that tree-based algorithms consistently maintained top predictive rankings among single learners under rigorous partition constraints.

The evaluation revealed that advanced tree-based algorithms significantly outperformed linear baselines and kernel methods across all four production targets, successfully capturing complex nonlinear biological relationships and nutritional interactions. For total larval biomass, XGBoost attained an out-of-fold R-squared of 0.91, achieving a root mean square error (RMSE) of 205 grams and a mean absolute error (MAE) of 124 grams, vastly improving upon the linear baseline R-squared of 0.52. For larval protein concentration, XGBoost achieved an R-squared of 0.84 with an RMSE of 1.4 percent and an MAE of 0.8 percent, compared to the linear baseline of 0.73. Larval fat content was likewise most effectively modeled by XGBoost, yielding an R-squared of 0.80, an RMSE of 2.7 percent, and an MAE of 1.6 percent against the baseline R-squared of 0.50. Survival rate proved the most challenging outcome to model due to sampling variability and extraneous biological influences, yet Random Forest delivered an R-squared of 0.54 with an RMSE of 9.7 percent and an MAE of 6.6 percent, noticeably exceeding the linear baseline R-squared of 0.17.

Notably, the stacking ensemble did not surpass the best individual tree-based learners for any modeled parameter, recording R-squared values of 0.87 for biomass, 0.83 for protein, 0.57 for fat, and 0.27 for survival. High inter-model correlation among base-learner predictions meant that combining multiple algorithms provided negligible predictive advantage over single optimized models. Model interpretability analyses utilizing gain metrics, permutation importance across 30 iterations, SHapley Additive exPlanations (SHAP) beeswarm plots, and partial dependence plots elucidated distinct biological drivers governing each outcome. For total harvested biomass, initial larval count served as the overwhelmingly dominant predictor, contributing 47.8 percent of XGBoost gain importance and reducing out-of-fold R-squared by 0.96 upon permutation, while substrate fat and cycle duration contributed secondary predictive influence. For larval protein content, initial larval count also served as the primary gain predictor at 65.0 percent, exhibiting an inverse relationship with final larval protein concentration, while substrate protein and substrate fat acted as influential secondary determinants.

Interpretability assessments of larval fat accumulation highlighted the metabolic plasticity of Black Soldier Fly larvae, revealing that substrate fat, substrate protein, and carbohydrates were the leading compositional determinants. SHAP values demonstrated that substrate fat and dietary carbohydrates exerted strong positive effects on final larval fat percentage, whereas dietary protein exerted an opposing negative effect with an average absolute SHAP value of 1.03 percentage points, reflecting underlying de novo lipogenesis mechanisms. In contrast, survival rate was predominantly determined by substrate nutritional composition rather than container stocking density, with substrate crude protein and crude fat serving as the primary drivers, contributing 18.7 percent and 17.9 percent of Random Forest impurity importance respectively, while initial larval count contributed only 1.2 percent across stocking densities of 6,250 to 25,000 larvae per container.

Nonlinear partial dependence analyses uncovered critical biological thresholds essential for practical feed blending. For larval biomass, initial substrate moisture exhibited a distinct performance threshold near 73 percent, above which predicted harvested biomass dropped sharply from approximately 1,480 grams to 1,200 grams. Substrate protein demonstrated an inverted-U response curve with biomass, maximizing harvest output when substrate protein remained between 14 and 21 percent, particularly when combined with dietary carbohydrate concentrations exceeding 25 percent. Furthermore, survival modeling identified a pronounced physiological tipping point at 22 to 24 percent substrate protein, above which predicted larval survival decreased by 10 to 11 percentage points. Two-dimensional interaction plots corroborated that high survival rates were best sustained when substrate protein levels of 14 to 22 percent were paired with substrate moisture maintained strictly between 70 and 71 percent, confirming that excessive dietary protein or suboptimal moisture induces biological stress during larval rearing.

The practical utility of the selected algorithms was validated through 11 independent commercial rearing trials conducted across participating commercial facilities. Using optimal models to screen candidate diet combinations, industrial facilities randomly selected and tested 11 dietary formulations under authentic commercial production environments. In validation trials, prediction errors for total biomass, larval protein, and larval survival consistently remained within a strict 15 percent relative error boundary, exhibiting maximum observed errors of 12.7 percent, 9.4 percent, and 12.2 percent, respectively. Larval fat predictions achieved acceptable accuracy in 10 of 11 trials, with an isolated maximum error of 20.1 percent. Statistical comparisons using paired t-tests and Wilcoxon signed-rank tests confirmed no systematic bias between predicted and measured outcomes across all targets, with all 11 experimental outcomes falling entirely within the established 95 percent prediction intervals. These findings establish that targeted machine learning models can deliver reliable, multi-objective precision formulation tools, allowing commercial producers to transform variable organic waste streams into consistent, high-value insect protein products.

Subject of Research: Machine learning prediction of Black Soldier Fly larval production and nutritional composition from dietary inputs

Article Title: Formulating optimal diets for the Black Soldier Fly

Article References: Fux, A., Shimshoni, I., Godo, A., Elbaz, M., Shaltiel-Harpaz, L., Jonas-Levi, A., Matiuhin, Y., Deutsch, N., Stav, G., & Halachmi, I. (2026). Formulating optimal diets for the Black Soldier Fly. animal, Article 102040. https://doi.org/10.1016/j.animal.2026.102040

Image Credits: AI Generated

DOI: 10.1016/j.animal.2026.102040

Keywords: Black Soldier Fly larvae, Hermetia illucens, precision nutrition, machine learning, extreme gradient boosting, random forest, larval biomass, crude protein, crude fat, larval survival rate, organic waste streams, substrate formulation, commercial insect farming, sustainable animal feed, predictive modeling, cross-validation

Cite Scienmag News

Teresa Odom. (November 26, 2026). Machine Learning Predicts Black Soldier Fly Larval Yield and Nutritional Composition. Scienmag. https://scienmag.com/machine-learning-predicts-black-soldier-fly-larval-yield-and-nutritional-composition/

Teresa Odom. "Machine Learning Predicts Black Soldier Fly Larval Yield and Nutritional Composition." Scienmag, 26 November 2026, https://scienmag.com/machine-learning-predicts-black-soldier-fly-larval-yield-and-nutritional-composition/. Accessed 1 December 2026.

Teresa Odom. "Machine Learning Predicts Black Soldier Fly Larval Yield and Nutritional Composition." Scienmag. November 26, 2026. https://scienmag.com/machine-learning-predicts-black-soldier-fly-larval-yield-and-nutritional-composition/

Tags: black soldier fly larvaecommercial insect farmingcross-validationcrude fatcrude proteinExtreme Gradient BoostingHermetia illucenslarval biomasslarval survival rateMachine learningorganic waste streamsprecision nutritionpredictive modelingRandom Forestsubstrate formulationsustainable animal feed
Share26Tweet16
Previous Post

Suppressed Baryon Asymmetry Predictions in Extended Higgs Model Enhance Collider Testability

Next Post

Protocol Tests Active and Passive Prophylaxis in Older Hip Fracture Patients

Related Posts

Pediatric Cardiac Arrest Recovery Requires Recognizing Family Co-Survivors, Perspective Argues
Medicine

Pediatric Cardiac Arrest Recovery Requires Recognizing Family Co-Survivors, Perspective Argues

December 1, 2026
Higher Admission Triglyceride-Glucose Index Linked to In-Hospital Cardiac Arrest in Heart Failure
Medicine

Higher Admission Triglyceride-Glucose Index Linked to In-Hospital Cardiac Arrest in Heart Failure

December 1, 2026
Model Identification Structure Governs Valid Inference in Latent Procedure Research
Psychology & Psychiatry

Model Identification Structure Governs Valid Inference in Latent Procedure Research

December 1, 2026
Multiscale Artificial Intelligence Pipeline Accurately Measures Nematode Body Size Across Complex Postures
Biology

Multiscale Artificial Intelligence Pipeline Accurately Measures Nematode Body Size Across Complex Postures

December 1, 2026
Next-Generation Proteomics and Machine Learning Advance Hepatocellular Carcinoma Detection and Treatment
Cancer

Next-Generation Proteomics and Machine Learning Advance Hepatocellular Carcinoma Detection and Treatment

December 1, 2026
Computational Model Maps Individual Sodium Transporter Activity in Kidney Tubuloids
Biology

Computational Model Maps Individual Sodium Transporter Activity in Kidney Tubuloids

December 1, 2026
Next Post
Protocol Tests Active and Passive Prophylaxis in Older Hip Fracture Patients

Protocol Tests Active and Passive Prophylaxis in Older Hip Fracture Patients

  • Mothers who receive childcare support from maternal grandparents show more optimized

    Mothers who receive childcare support from maternal grandparents show more parental warmth, finds NTU Singapore study

    27657 shares
    Share 11059 Tweet 6912
  • University of Seville Breaks 120-Year-Old Mystery, Revises a Key Einstein Concept

    1061 shares
    Share 424 Tweet 265
  • Bee body mass, pathogens and local climate influence heat tolerance

    682 shares
    Share 273 Tweet 171
  • Researchers record first-ever images and data of a shark experiencing a boat strike

    546 shares
    Share 218 Tweet 137
  • Groundbreaking Clinical Trial Reveals Lubiprostone Enhances Kidney Function

    531 shares
    Share 212 Tweet 133
Science

Embark on a thrilling journey of discovery with Scienmag.com—your ultimate source for cutting-edge breakthroughs. Immerse yourself in a world where curiosity knows no limits and tomorrow’s possibilities become today’s reality!

RECENT NEWS

  • Pediatric Cardiac Arrest Recovery Requires Recognizing Family Co-Survivors, Perspective Argues
  • Higher Admission Triglyceride-Glucose Index Linked to In-Hospital Cardiac Arrest in Heart Failure
  • Model Identification Structure Governs Valid Inference in Latent Procedure Research
  • Multiscale Artificial Intelligence Pipeline Accurately Measures Nematode Body Size Across Complex Postures

Categories

  • Agriculture
  • Anthropology
  • Archaeology
  • Athmospheric
  • Biology
  • Biotechnology
  • Blog
  • Bussines
  • Cancer
  • Chemistry
  • Climate
  • Earth Science
  • Editorial Policy
  • Marine
  • Mathematics
  • Medicine
  • Pediatry
  • Policy
  • Psychology & Psychiatry
  • Science Education
  • Science News
  • Social Science
  • Space
  • Technology and Engineering

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 5,152 other subscribers

© 2026 Scienmag - Science Magazine

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • HOME
  • SCIENCE NEWS
  • CONTACT US

© 2026 Scienmag - Science Magazine

Discover more from Science

Subscribe now to keep reading and get access to the full archive.

Continue reading