Source: UNIVERSITY OF CALIFORNIA, RIVERSIDE submitted to NRP
AUTOMATING BLACK SOLDIER FLY REARING FOR ON-FARM WASTE RECYCLING AND INCOME GENERATION
Sponsoring Institution
National Institute of Food and Agriculture
Project Status
ACTIVE
Funding Source
Reporting Frequency
Annual
Accession No.
1030627
Grant No.
2023-67022-39645
Cumulative Award Amt.
$299,343.00
Proposal No.
2022-10843
Multistate No.
(N/A)
Project Start Date
May 1, 2023
Project End Date
Apr 30, 2026
Grant Year
2023
Program Code
[A1531]- Biorefining and Biomanufacturing
Recipient Organization
UNIVERSITY OF CALIFORNIA, RIVERSIDE
(N/A)
RIVERSIDE,CA 92521
Performing Department
(N/A)
Non Technical Summary
Unusable crops are considered waste to be removed at the farmer's expense. Reintroduction of insect decomposers into agricultural systems can alleviate waste removal costs, rapidly generate usable products (fertilizer), and lead to new revenue streams (insect biomass). The Black Soldier Fly (BSF) is an effective decomposer of any type of organic matter, and is used worldwide for waste management, production of fertilizer (frass), and as feed for livestock, aquaculture, and pets. However, BSF rearing by the standard "batch" method (carefully measured cohorts of larvae with set quantities of waste) currently requires substantial human labor, which hinders on- farm use. An alternative "steady-state" rearing system involves continuous rearing of BSF in bioreactors and is less labor intensive, but still requires some human maintenance. These maintenance tasks are targets for introducing cost-conscious sensing and automation. The goal of this seed-grant project is to engineer, build, and test a prototype automated steady state system suitable for on-farm use. We will accomplish this goal through a productive and established collaboration among two entomologists, the inventor of the steady-state system, and an electrical/computer engineer. By automating on-farm BSF rearing, we will expand utilization of waste in agricultural systems and engineer new products that utilize materials from agriculture. Our project addresses the AFRI long-term goals to ensure efficient use of on-farm resources and increase integration of natural biological cycles and controls in agricultural systems.
Animal Health Component
20%
Research Effort Categories
Basic
20%
Applied
20%
Developmental
60%
Classification

Knowledge Area (KA)Subject of Investigation (SOI)Field of Science (FOS)Percent
4035210113050%
4025310202050%
Goals / Objectives
Insect decomposers are a missing link in our food and agricultural systems. Reintroduction of insects can help convert a linear food system, which creates unusable waste, to a "circular food system" that recycles waste to new products. The Black Soldier Fly (BSF), Hermetia illucens, is an ideal decomposer for circular food systems. BSF larvae (immatures) can turn any type of low-grade waste into body mass quickly. BSF biomass can then be harvested to use as feed for fowl or aquaculture, and to isolate high-end protein and fat, oil for biofuel and other valuable byproducts, such as chitin/chitosan and melanin. At the same time, these insects reduce the volume of waste and transform it into a nutrient-rich, compost-like substance called frass. Because of its efficacy in valorizing waste to usable products, BSF is now widely used around the world for waste management and decontamination. But until now, commercialized BSF operations have only been feasible at industrial scales, even though waste recycling and added revenue streams are needed across many sectors.Agriculture is one such sector where BSF have great potential to turn unusable outputs (e.g., unmarketable crops and some crop residues) into products that are usable on site (insect frass as fertilizer) and products that bring additional income (larvae or pupae). The frass produced by BSF larval feeding on waste is particularly useful to generate on-site. Frass contains both digested waste and insect exoskeletons made of chitin. It is rich in nitrogen and is a suitable replacement for environmentally damaging synthetic fertilizers. As it is broken down by microbial activity, the chitin in frass stimulates plant immunity against pests and pathogens and increases the abundance and diversity of beneficial microbes in the rhizosphere. This product is so versatile as a soil amendment, it is now being produced and marketed by the BSF industry.Despite the clear benefits of on-farm BSF rearing for cost savings on agricultural waste removal, fertilizer, soil and plant health maintenance, and generating additional income, BSF rearing remains confined to large, for-profit entities focused exclusively on insect rearing at industrial scales. This sector can absorb the labor costs of BSF production through the current standard "batch" method, whereby carefully measured cohorts of larvae are established with set quantities of food waste as a substrate, then maintained through development for harvest. However, BSF rearing on-farm using the batch methods adopted at industrial scales would involve manual labor inputs that would outweigh any cost savings gained through production of fertilizer or marketable larvae.An alternative that is more flexible, less labor intensive, and adaptable to on-farm scales is the "steady state" rearing method, which involves continuous rearing of BSF in bioreactors housing overlapping generations of BSF larvae. The bioreactor environment is partially open, allowing natural oviposition by adults and eliminating the need for labor intensive egg collection and weighing. The design also takes advantage of the natural "self-harvesting" behavior of mature larvae, which are known as prepupae when they stop feeding and darken. Insects in this stage remove themselves from the substrate and migrate to a waste-free and dry location (e.g., a bin) for final maturation to adults. Although less labor intensive than batch rearing, steady state rearing operations still require some human labor for maintenance. This includes dispensing of waste to bioreactors, stacking and de-stacking of bioreactor bins, removal of spent waste (frass product) to spent waste reservoirs, vacuum removal of self-harvested prepupae to collection vessels, and monitoring bioreactors for issues that would prompt corrective action (e.g., checking for excessive heat, monitoring carbon dioxide, ammonia, pH, moisture).The long-term goal of the proposed project is to automate steady-state rearing maintenance tasks that currently require human labor to enable on-farm use of BSF for agricultural waste recycling. The proposed project will address this goal through the following three objectives:Objective 1: engineer cost-conscious solutions to automate maintenance and monitoring tasksObjective 2: compare costs and returns of the automated system to more labor-intensive methodsObjective 3: evaluate and demonstrate the performance of an automated system in an agricultural context.Our efforts will produce the first prototype of a semi-automated steady-state BSF rearing operation suitable for use on small to mid-sized farms, as well as use in other contexts where food/green waste is abundant, but labor costs high (e.g., college campuses).
Project Methods
Engineer cost-conscious solutions to automate maintenance and monitoring tasks The goal of Objective 1 is to identify key processes in steady state larval farming operations that can be the target for automation and develop cost-conscious solutions toward automating those processes. All developed components will be integrated into a semi- automated prototype that will be evaluated against manual baselines. Overall, there are two families of processes to be automated, which broadly relate to maintenance and monitoring. In the maintenance category we propose developing and testing 1) a soft robotic arm that can reach in all areas of a BR2 bin without damaging the larvae, 2) a system for moving spent waste into a spent waste reservoir, aerating the latter, and discharging the processed waste from the BSF facility, and 3) replenishing each BR2 bin by metering out feedstock and bulking agent, and mixing of larvae-seeded food waste in trays during each loading cycle. We anticipate devising an integrated actuation-perception means that uses multi-modal perception (e.g., thermal and visible-spectrum imaging) to complement a feedforward replenishment of larvae- seeded food waste and bulking agents. Other maintenance tasks (like stacking and unstacking of bins integrated with the loading cycle, sweeping of egg clutches left by mating adults upon de-stacking each column during the loading/seeding cycles of the BR2 bins, clearing larval gutter channels, etc.) will take place manually at the proposed stage of development as they are processes that would require significant engineering effort that exceeds the scope of this proposed project. In the monitoring category, we seek to develop a portable multi-sensor system that measures key properties in the environment that promote growth. We will monitor pH to ensure that the pH remains neutral to alkaline where larvae grow best. We also will develop larvae activity monitoring algorithms using data from thermal cameras for mismanagement and corrective actions (larval stress indicators, such as aggregation in corners or fountain-like movement to the middle of the bins) and for estimating the number of larvae. In addition, we will monitor abiotic conditions by sensors for real-time corrective actions (humidity, temperature, CO2, ammonia volatilization, etc.). Corrective actions (add/remove liquid, operate a fan, etc.) will be achieved via a mechatronics system to be developed under this objective. Compare costs and returns of the automated system to more labor-intensive methodsThe semi-automated prototype obtained with Objective 1 activities will be compared with a fully manual steady state operation, using relevant Ag biowaste, which will be collected, homogenized, and stored during the months prior to prototype completion. Substrate inputs will include brewery's spent grains, tomato or grape pomace, and citrus fruit in set proportions. The feedstock will be accumulated over the first 6-12 months and preserved through fermentation in 55-gal drums. Fermentation will result in a stable product, allowing us to use the feedstock up to a year from collection. Each rearing operation (steady state manual or steady state automated) will consist of a BR1 and a stack of two BR2s. This will require approximately 8 kg/day of feedstock per treatment, with the feedstock being added to the bioreactors twice a week. During each iteration of the comparison, we will measure the following response variables: yield of prepupae (expressed as wet weight of prepupae/wet weight of feedstock), adult emergence rate (measured as % of empty pupal exuviae, taken on five random samples of 200 pupae per BR1), and frass yield (as wet weight of frass per weight of feedstock). We will also track labor input, expressed as hours (FTE) per unit output of products (pupae and spent waste). Labor includes all operations involved in the maintenance of the steady-state system: dispensing feedstock, clean up, maintenance, collection of prepupae, and disposal of spent waste. The experiment will run for three overlapping generations (~3 months) and will be replicated three times over year 2.Evaluate and demonstrate the performance of an automated system in an agricultural context.We will adjust the system as needed based on Objective 2, then perform an evaluation of system performance with freshly collected agricultural waste as an emulation of typical on-farm use. This last evaluation will primarily serve as a demonstration trial for relevant stakeholders (communication efforts). We will integrate a tour of the prototype with an educational lecture on BSF farming.Efforts to cause a change in knowledge, behavior or conditionsData sharing with collaborators and the general publicPresentations at academic meetingsPresentations to public and private stakeholdersMentoring of graduate and undergraduate students and postdoctoral scholarsPublication of manuscripts in open access journals EvaluationObjective 1 milestonesRealize engineering designs and physical mechatronics and robotics prototypesDevelop algorithms both for sensing and decision making for actions to be performed autonomously.The performance of our engineered tools will be analyzed in terms of repeatability, accuracy, maximum stress, strain and load in operation. Robotics and automation technologies will be evaluated in terms of task performance efficiency (e.g., in aeration to identify and break up larvae concentrations), whereas monitoring techniques will be evaluated in terms of their ability to lead to information that helps provide a stable growing environment. Data from all the different sensors will be analyzed using standard-of-practice computer vision and machine perception techniques, whereas our developed algorithms efficacy will be tested against relevant state-of-the-art methods as they become available during the course of the project.Objective 2 milestonesDetermine automation feasibility and efficacy relative to manual efforts,Determine costs of automation relative to manual operations, and areas for further improvement.Manual tending of bioreactors will be considered the baseline condition and occur in parallel with operation of the automated bioreactor system. Response variables will be converted to differences between baseline and automated (experimental) systems. This limits confounding effects of environmental variation. Individual BR2 bins in each system will be considered as "plots" within each system for each experiment iteration. Experiment iterations will be considered as blocks. Each BR2 plot in the manual system will have a corresponding BR2 plot of the same age/handling status in the automated system, and data will consist of the difference in performance between paired manual and automated BR2s. These data will be analyzed using general linear mixed models. We will also track cost inputs for each system (equipment, labor, energy) and estimate the value of outputs (fertilizer, larvae, savings on waste removal) to perform a partial cost benefit analysis and estimation of time to recoup automation investments.Objective 3 milestonesQuantification of the degree of fluctuation in larval, adult, and frass outputs over time relative to waste inputs to estimate stabilityDemonstration of continuous rearing on heterogeneous farm waste inputsSystem success will be indicated by completion of at least three generations, and failure will be indicated by bioreactor "crashes" that result in loss of the rearing operation. Stakeholder engagement and perceptions of automation in BSF rearing will be evaluated through surveys

Progress 05/01/23 to 04/30/24

Outputs
Target Audience:Academic (university) researchers Undergraduate and graduate students studying Entomology and Agricultural Engineering University personnel engaged in catering, dining services, and waste management Changes/Problems:The steady-state condition was reached a few months later than anticipated because we deliberately chose to demonstrate the importance of monitoring abiotic conditions by first setting up a "minimal monitoring" approach, followed by a second phase where we consistently monitored temperature, humidity and pH of the biodegrading waste and ambient temperature and adjusted our maintenance tasks accordingly. This was critical as it shows the importance of monitoring those factors, and in turn the importance of automating the monitoring operations, as they are labor intensive. A few challenges were already noted from the robotic arm prototype, justifying some of the proposed modifications described in the previous section. A broken pH sensor resulted from the physical contact of the latter with the substrate. While the sensor was equipped with a spear to improve its robustness, the probe, which had a glass bulb, broke, delaying experimentation. Additionally, given the initial complexity in operating the arm, the debugging process between researchers of different fields was also time consuming, something which can benefit from the addition of internet connectivity and therefore instant debugging to the greenhouse. We have also faced some challenges in recruiting personnel for the project on the engineering side. What opportunities for training and professional development has the project provided?A PhD student, William Samson, has been trained to farm BSF to produce frass thanks to this project. He is now writing up this work for publication and will include these activities in one of the chapters of his dissertation. Three undergraduate students (Hewitt Plunkett, Ricky Le and Jaden Kim) are also working on this project and will be co-authors on forthcoming work. During this work, the graduate and undergraduate students learned important skills in task management, troubleshooting and data recording. William gained experience in presenting his research through poster presentations at several local venues. William Samson was mentored by the former (Marco Gebiola) and current (Kerry Mauck) PI, and in turn he mentored the three undergraduate students, thus gaining experience in mentoring students through a research project. A post-doctoral researcher (Caio Mucchiani) was mentored by the co-PI as he worked on the robotic arm with sensor array. How have the results been disseminated to communities of interest?The work completed in year 1 has been presented by former PI Marco Gebiola, now Associate Professor at the Department of Agricultural Sciences of the University of Naples Federico II, Italy at a monthly outreach event by an invited talk (in Italian) on March 20, 2024. The work was also discussed at an outreach event for STEM middle schoolers at the UCR Campus (May 2024) and an on-site tour and presentation to compost industry representatives was made in April 2024. What do you plan to do during the next reporting period to accomplish the goals? Add robotic arm that will allow to partly automate the maintenance operations, that is, waste loading, unloading and mixing. Compare side-by-side the fully manual and semiautomated system to evaluate yields of frass and quantify costs and cost savings of the semiautomated system Demonstrate the application of the semiautomated system using a homogeneous agricultural waste (citrus?) instead of catering waste Substitution of the pHsensor for less recalibration needs and more robust measurements, also considering the modified housing for the same Addition of a thermal camera for larvae cluster identification at the BR1 bins, as proposed in1. Addition of network connectivity for remote monitoring of the sensors and greenhouse. Consideration of the above for an informed sampling of the robot arm, guided to detect conditions at clusters, while also sampling them. Implementation of a remote watering system. Design and implementation of a mixing mechanism for the BR1 bin. Consider all previous elements for a full automated solution to the sampling, watering and mixing problems as required by the method. Footnotes: 1. https://ieeexplore.ieee.org/document/9926430

Impacts
What was accomplished under these goals? ?Project impact Unusable crops are considered waste to be removed at the farmer's expense. Reintroduction of insect decomposers into agricultural systems can alleviate waste removal costs, rapidly generate usable products (fertilizer), and lead to new revenue streams (insect biomass). The Black Soldier Fly (BSF) is an effective decomposer of any type of organic matter, and is used worldwide for waste management, production of fertilizer (frass), and as feed for livestock, aquaculture, and pets. However, BSF rearing by the standard "batch" method (carefully measured cohorts of larvae with set quantities of waste) currently requires substantial human labor, which hinders on- farm use. An alternative "steady state" rearing system involves continuous rearing of BSF in bioreactors and is less labor intensive, but still requires some human maintenance. These maintenance tasks are targets for introducing cost-conscious sensing and automation. The goal of this seed-grant project is to engineer, build, and test a prototype automated steady state system suitable for on-farm use. We will accomplish this goal through a productive and established collaboration among two entomologists, the inventor of the steady-state system, and an electrical/computer engineer. This project directly aligns with the goals of the Biorefining and Biomanufacturing priority within the Agricultural Systems and Technology program area. By automating on-farm BSF rearing, we will "expand utilization of waste in agricultural systems" and "engineer new products that utilize materials from agriculture." Our project also addresses the AFRI long-term goals to ensure "efficient use of on-farm resources" and increase "integration of natural biological cycles and controls" in agricultural systems. 1) Major activities. Obj. 1. The first phase of the project was to set up a BSF farming system that would reach a steady-state production of insects and their frass. The modular system was assembled in mid-July 2023 by the entire team (PIs and co-PIs, consultant, graduate and undergraduate student) in one day. Once the procurement of catering waste was ensured through campus dining operations, in August 2023 a BSF rearing was initiated by inoculating 2 consecutive batches of about 12 kg of waste each with 10,000 BSF neonate larvae on Aug 18 and 22. About 12-15 kg of catering waste would be added every 4 days on average and mixed with the existing waste, water and bulking agents (wood chips). At the completion of the first generation, the emerged adults would lay eggs inside buckets where incoming fresh waste was stored for about a week prior to being introduced in the system, so that upon mixing fresh and old waste eggs and younger larvae would be added to the waste mixture. This guarantees a steady supply of larvae of any age, which would then continuously develop into prepupae that would self-harvest by climbing the walls of the BR1 container (large bin of about 1.5 m2), fall first into the gutters surrounding the BR1 containers and then inside a collection bucket. Prepupae thus collected would be weighed every loading cycle (4 days) and stored in plastic boxes to allow for pupation and subsequent adult emergence. When after several cycles of loading the waste inside the BR1 reached a depth of about 10 cm, three smaller bins (hereafter BR2s, about 0.24 m2 each) stacked on top of each other on a rack placed onto the BR1 would gradually be filled with overflowing waste, and upon the following loading cycled mixed back with BR1 old and fresh waste and larvae and then redivided among the 3 BR2s. When these BR2 were filled, 2 more BR2s, also laid on top of the BR1 but on a separate stack, would be filled. These BR2s (hereafter spent waste BR2s) would not be mixed any longer with incoming fresh waste but would be left to dry for over about a month and stored separately as airdried spent waste (frass). Initially, we followed a "minimal monitoring" low labor approach where the only metric used to assess the achievement of steady state was the yield of prepupae, calculated as kg of prepupae harvested per square meter per day (steady state = 0.50 kg prepupae/m2/d). After 6 months we switched to a monitored approach where we would manually monitor ambient and waste temperature, waste humidity and waste pH. After about 3 months of manual monitoring, we began testing a robotic arm and sensor array that would monitor those same conditions, as well as greenhouse (CO2, CH4) and nuisance (NH3) gases. A custom-made end-effector able to house all mentioned sensors was adapted to the robot arm (an Interbotix Rx150 model). Consistency in sampling location and uniformity in data collection led to the choice of a low-cost solution for the selected arm. We determined that only three degrees of freedom were required which improved the arm payload capability necessary to withstand the weight of the custom-made end effector and sensor array. For the end effector, we used renewable and biodegradable resources such as PLA (polylactic acid) plastic. The collection of sensors affixed to the end effector communicated with an Arduino Mega Microcontroller. The microcontroller, in turn, transmits real time data via serial communication to a minicomputer using ROS2 protocol. The minicomputer is able to receive direct commands from the researcher, controlling the motion of the robot arm and locally storing all the data. Connections of sensors to the arm were insulated against greenhouse conditions. 2) Data collected During the "minimal monitoring" phase every loading cycle we recorded the following data: weight of fresh waste added, volume of water added, weight of self-harvested prepupae. Approximately every 2 months we would also record the weight of airdried frass obtained. During the "multi-metric monitoring phase", we also recorded: ambient and waste temperature, waste humidity at 2 different depths, waste pH. During the "semi-automated monitoring phase", in addition to these abiotic conditions, we also recorded: CO2, CH4 and NH3 before and after loading the waste 3) Results The "minimal monitoring" phase did not lead to steady-state farming. The goal of 0.5 kg/m2/d of prepupae was reached 3 times but could not be sustained for more than six weeks and anaerobic conditions associated with strong odors arose on two occasions, as it was difficult to adjust the amount of water and bulking agents to be added. The "multi-metric monitoring" phase led to steady-state conditions in a matter of few weeks, with an average yield of 0.50 kg/m2/d of prepupae sustained for over 4 months. All monitored parameters provided useful insights that quickly optimized temperature, pH, and moisture levels. The "semi-automated monitoring" phase reduced the amount of time spent by student workers monitoring the abiotic conditions to a matter of few minutes. The inclusion of the robot arm addresses the need for physical interaction with the substrate for sampling (for sensors such as pH and moisture), while also allowing for the measurement of greenhouse and nuisance gases near the substrate surface. 4) Key outcomes We have confirmed the importance of monitoring abiotic conditions to reach steady-state level for BSF farming. In particular, the following key indicators have emerged: - if larvae are feeding and developing optimally, the waste should be about 5°C warmer than ambient temperature - pH of the waste should oscillate minimally around a value of 8 - in Southern California weather conditions, humidity of the waste can be as low as 30% and usually around 60% when larvae are at their best biodegrading performance. We have also engineered a cost-conscious robotic arm that drastically reduces the labor input necessary to monitor abiotic conditions, and that at the same time allows to monitor also other environmental parameters (gas emissions). Objectives 2 and 3 will be tackled in year 2 of the project

Publications