  Mass production of Hermetia illucens insect larvae is now being adopted in
many countries and is taking an industrial production approach. Despite
abundant literature on factors that affect larvae growth and the optimal static
parameters identified in laboratory setup, for an industrial production process
it is necessary to identify the trajectories such that the growth as well as
the production process is optimal. To achieve this in this work, some of the
important requirements and challenges involved thereof are identified and
objectives of the automation process are formulated within a model based
optimal control setup. Mechanistic models necessary for the optimization
framework are derived as differential equations that describe the dynamic
variation of resources (feed, water, O2 etc.), energy, and larval biomass. In
addition, the elevated metabolic activity of larvae corresponding to the final
instar development is identified and also modelled based on the observation
from experiments. The mass and energy balance approach used in modelling
enables the quantification and distinction of the mass and energy flux
components in various levels (e.g. larvae body, growing medium, production
environment, and external environment) while holding its applicability for both
open and closed/reactor based production setups. Finally, the trajectories
generated using the synthesized optimal controller are tested under different
scenarios showcasing significant reduction in resource consumption compared to
a fixed set-point operation of the production setup. Results presented in this
work not only showcase the potential of the mechanistic models and their
application in identifying the relevant process parameters (e.g. reactor
properties such as volume, thermal conductivity, actuator capacities), but most
importantly in optimizing the process dynamically and tuning the process
objectives as desired.
