Next Article in Journal
Effects of Partial Pulp Removal on Microbial Dynamics and Metabolite Profiles During On-Farm Cocoa Fermentation
Previous Article in Journal
Starter-Culture-Dependent Effects of Lactiplantibacillus plantarum and Lactobacillus delbrueckii subsp. bulgaricus Fermentation on Nutritional Quality, Flavor Characteristics and Metabolite Profiles of Flammulina velutipes Roots
Previous Article in Special Issue
Linear Variable Filter Hyperspectral Imaging for Determination of Acidity and Hardness of Multiple Fruits
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Fungal Growth Risk Prediction and Optimal Regulation Method for Food Storage Based on the Forward Reachable Set

School of Computer and Artificial Intelligence, Beijing Technology and Business University, Beijing 100048, China
*
Author to whom correspondence should be addressed.
Foods 2026, 15(17), 2975; https://doi.org/10.3390/foods15172975
Submission received: 10 July 2026 / Revised: 20 August 2026 / Accepted: 23 August 2026 / Published: 25 August 2026

Abstract

Affected by coupled environmental factors including temperature and water activity, food storage is restricted by fungal contamination, quality degradation, and energy limits. Conventional microbial growth prediction models typically rely on given initial states and environmental parameters, making it difficult to account for the effects of prior-parameter errors and thereby limiting the accurate quantification of fungal growth risk and the real-time regulation of storage environments. This paper develops a fungal growth risk prediction and optimal regulation method for food storage based on the forward reachable set (FRS). The method combines a fungal growth kinetic model for Aspergillus flavus with FRS theory to calculate the reachable domains of colony radius and cell states within a finite time horizon, adopts a risk margin to describe the maximum colony expansion relative to deterministic growth trajectories, and constructs a multi-objective index covering energy cost, fungal growth risk, quality loss, and control switching cost to select the optimal environmental control scheme. Numerical simulation results show that the risk margin reflects the expansion of fungal growth risk caused by the propagation and accumulation over time of prior-parameter errors, while the selected regulation strategy exhibits stronger conservatism.

1. Introduction

Globally, postharvest food spoilage remains a prominent problem [1,2,3]. Food generally undergoes multiple stages from postharvest handling to consumption, including sorting, packaging, transportation, storage, and sale, among which storage is an important stage connecting production and consumption. Food storage is a typical multi-physics coupled, nonlinear, time-varying dynamic system. Temperature, water activity, gas concentration and packaging conditions jointly govern microbial growth and food spoilage [4,5,6]. Fluctuating storage environments lead to widespread premature food deterioration prior to consumption, resulting in substantial food loss and public health hazards from foodborne illnesses. Previous studies identify routine warehouse inspection and real-time environmental monitoring as core fresh produce quality management measures [7,8]. Nevertheless, energy consumption creates significant economic constraints in actual storage operations. Storage environmental regulation must balance preservation performance and energy saving to optimize food safety and operating costs simultaneously [9,10,11]. In summary, food storage is a complex dynamic process affected by various environmental factors, subject to dual restrictions of food safety standards and energy costs. Systematic research into fungal growth risk prediction and optimal regulation methods is urgently required to develop safe and energy-efficient modern food storage systems.
At present, two relatively mature predictive algorithm systems have been established in predictive microbiology. The first category comprises kinetic modeling methods centered on microbial growth mechanisms. By constructing a hierarchical framework consisting of primary, secondary, and even tertiary models, these methods use experimental data obtained under specific environmental conditions to fit growth kinetic parameters coupled with environmental factors, thereby explicitly describing the quantitative relationship between microbial concentration and environmental factors. They can accurately predict microbial growth behavior under constant environmental conditions and provide interpretable and verifiable theoretical support for food safety assessment. Representative foundational studies include the predictive microbiology framework summarized by Ross and McMeekin and the dynamic microbial growth model developed by Baranyi and Roberts [12,13]. Salt concentration, pH, and storage temperature were incorporated into a Gompertz model to fit growth curves, and a predictive model was subsequently constructed using a second order polynomial to predict the growth of Salmonella in food [14]. The Baranyi primary model was first used to fit microbial growth at different temperatures and extract parameters such as the maximum growth rate and lag phase, after which a secondary model was used to relate these parameters to temperature, thereby enabling growth prediction under constant and varying temperature conditions [15]. Growth parameters were obtained using the Baranyi model, and the relationships between these parameters and temperature were fitted using a modified Ratkowsky model; the fitted relationships were then substituted back into the model to predict microbial growth under varying temperature conditions [16]. Although these methods exhibit strong interpretability and reliability, it remains difficult for them to achieve satisfactory prediction accuracy when applied to complex storage processes characterized by high dimensionality, nonlinearity, and strong coupling among multiple factors. The second category comprises intelligent prediction methods centered on data-driven approaches. These methods rely on machine learning models to automatically identify statistical patterns of microbial growth or food spoilage from multisource food property data and environmental sensor data without requiring explicit mechanistic assumptions. Representative data-driven studies include the use of XGBoost and the ComBase database to predict the population behavior of Listeria monocytogenes under multidimensional food and environmental conditions, as well as the direct prediction of Escherichia coli O157 growth using machine learning without separately defining primary and secondary models [17,18]. Yildirim Yalci et al. [19] developed a machine learning regression model that effectively predicted the total mesophilic bacterial count in spinach; Yucel and Tarlak [20] employed machine learning methods, including decision tree regression, to establish a microbial growth model applicable to beef; Sonwani et al. [21] proposed an intelligent prediction model based on a convolutional neural network, providing a theoretical basis for reducing food losses. Overall, data-driven methods relax the need to explicitly specify microbial growth mechanisms and are more flexible in capturing high-dimensional, nonlinear, and strongly coupled relationships among multiple environmental factors. However, their predictive performance depends strongly on the quantity, quality, representativeness, and consistency of the available data [17,22,23]. In summary, both categories of existing methods have achieved substantial progress in microbial growth modeling but retain evident limitations: mechanistic models provide relatively strong interpretability but may be constrained by predefined mathematical structures when describing microbial behavior under complex and dynamically changing environments, whereas data-driven methods can achieve high predictive accuracy but generally provide limited mechanistic interpretability [24,25]. More importantly, most existing models primarily predict microbial growth, survival, or inactivation trajectories. Although such predictions can contribute to exposure assessment within quantitative microbiological risk assessment, they do not by themselves constitute a complete microbiological risk assessment, which additionally requires hazard characterization, dose–response assessment, and risk characterization [26,27].
Food storage quality and microbial growth are significantly affected by temperature and moisture status; therefore, existing studies have mainly achieved food preservation through the regulation of storage environments. The moisture status of the storage environment is primarily described using two variables: relative humidity, which characterizes the water vapor conditions of the air surrounding the food, and water activity, which reflects the availability of water in the food matrix for microbial utilization. Regarding pretreatment before storage, a three-dimensional heat and mass transfer model was established based on the multicomponent heterogeneous structure of maize kernels and was subsequently used to optimize a multistage drying process with tempering, thereby reducing the internal temperature and moisture gradients of the kernels while shortening the drying time and providing a basis for subsequent safe storage [28]. A stepwise cooling algorithm was designed to achieve the superchilled storage of pork for low-temperature food preservation. Compared with conventional refrigeration and freezing, superchilling exhibited significant advantages in reducing drip loss and maintaining color [29]. A numerical model of temperature and humidity distributions in a potato storage environment was developed based on computational fluid dynamics. The effects of supply air temperature, velocity, and humidity on the uniformity of the storage environment were systematically analyzed, and the optimal supply air combination was identified as 3 °C, 5 m/s, and 90% RH [30]. Green peppers were used to systematically investigate the effects of different temperature and humidity combinations on respiration rate and respiratory heat. The results showed that high temperature significantly accelerated respiration, whereas high humidity effectively reduced the respiration rate [31]. To simulate the actual postharvest storage environment of wheat in regions with a Mediterranean climate, the effects of two humidity levels, 75% and 55%, on wheat quality were compared under varying temperature conditions. The results showed that, during the 180-day storage period, the moisture content of wheat increased, the test weight decreased, and the falling number increased under both humidity treatments [32]. Although the above studies clarified the effects of temperature and humidity on food deterioration during storage, they did not quantitatively characterize microbial growth dynamics under these storage conditions. Therefore, predictive modeling has been increasingly applied in combination with the intrinsic characteristics of food to characterize microbial growth responses under various environmental conditions [33]. Recently, predictive microbiology has mainly focused on the quantitative evaluation of microbial proliferation in food, providing a reliable analytical approach for preventing and controlling postharvest food spoilage [34]. A study conducted on a strawberry-based medium showed that temperature and water activity significantly affected the spore germination of Botrytis cinerea. The cardinal model indicated that the optimal germination temperature was 20 °C and the minimum water activity threshold was 0.858, whereas spore development could be effectively delayed when the storage temperature was below 10 °C in combination with reduced water activity [35]. Storage temperature and water activity were shown to significantly affect the growth and mycotoxin accumulation of Fusarium species associated with potatoes, with fungal development being substantially promoted when the temperature increased to 15 °C, and the water activity increased to 0.99 [36]. Changes in the population of Aspergillus species in fresh pistachios under different packaging and temperature conditions were systematically investigated. Refrigerated storage of fresh pistachios at 4 °C with suitable plastic packaging was recommended, whereas storage at room temperature for more than 8 days was not recommended [37]. Medium- and long-term temperature and humidity prediction was achieved using a smart greenhouse dataset from Weifang, Shandong Province, and the root mean square error of temperature prediction was improved, providing support for agricultural applications [38]. Most of these studies were limited to testing under specific conditions or treated the environmental variables themselves as prediction targets. However, in practical food storage, prior parameters such as the initial fungal growth state, temperature, and water activity are often difficult to determine precisely and may vary within certain ranges, making deterministic predictions based on single parameter values insufficient to fully characterize the possible fungal growth states. Moreover, fungal growth prediction and storage environment regulation are generally performed independently, making it difficult to quantify potential fungal growth risks caused by uncertainty and incorporate them into regulation decisions.
To integrate the fungal growth prediction mechanism, incorporate fungal growth risk into the objectives of dynamic environmental regulation, and meet the integrated requirements for fungal growth risk prediction and optimal regulation during food storage, this study proposes a fungal growth risk prediction and optimal regulation method for food storage based on the forward reachable set (FRS). In this study, fungal growth risk is defined as the potential growth expansion caused by prior-parameter errors and is quantified by the difference between the maximum reachable colony radius under uncertainty and the corresponding deterministic prediction. Here, this risk characterizes the additional fungal growth potential beyond the deterministic prediction, indicating the extent to which the deterministic trajectory may underestimate possible colony expansion. The proposed method aims to achieve the quantification of fungal growth risk and the coordinated optimal regulation of the storage environment, thereby providing a theoretical basis and technical support for ensuring food storage safety, improving preservation effectiveness, and reducing energy consumption. The main contributions of this study are as follows:
1.
First, the fungal growth kinetic model is integrated with the forward reachable set to predict fungal growth over a finite prediction horizon while considering errors in the prior parameters.
2.
Second, a time-varying risk margin indicator is designed to construct a fungal growth risk prediction method.
3.
Finally, based on the fungal growth risk prediction results, a regulation algorithm for the food storage process is developed by comprehensively considering fungal growth risk and energy consumption indicators.
The remainder of this article is organized as follows: Section 1 presents the introduction and reviews microbial growth prediction and food storage environment regulation algorithms; Section 2 introduces the proposed algorithm; Section 3 evaluates the numerical performance of the proposed algorithm through numerical simulations; and Section 4 presents the conclusions.

2. Materials and Methods

This section presents the fungal growth model, the fungal growth risk prediction algorithm based on the FRS, and the optimal regulation method for storage strategies. For clarity, the main mathematical symbols used in the proposed method are summarized in Table 1.

2.1. Fungal Growth Model

The classical Baranyi–Roberts model was widely used for microbial growth prediction because it could simultaneously describe microbial growth and changes in the physiological state of the cells [13,39]. This model also provided a basic framework for characterizing the relationship between environmental factors and the microbial growth process. However, because it only provided a general term for the maximum specific growth rate, the coupled effects of key environmental factors, including temperature, water activity, and pH, required further quantification. Therefore, subsequent studies introduced temperature and water activity response mechanisms into the Baranyi–Roberts model. Considering the growth characteristics of Aspergillus flavus on pistachios, colony radius was selected as the growth indicator, and a coupled relationship among temperature, water activity, and the maximum radial growth rate was established, in which the maximum radial growth rate was expressed as the product of the optimal radial growth rate, a temperature response subfunction, and a water activity response subfunction [40]. In summary, this model was supported by both clearly defined nonlinear dynamic characteristics and an environmental coupling mechanism. Therefore, this study adopted the model as the basic framework to provide theoretical and model support for subsequent fungal growth risk prediction and optimal regulation.
Following the radial growth formulation established in the above studies [40], this study retained colony radius as the growth state variable. By jointly taking the colony radius y ( t ) and the physiological state of the cells q ( t ) as the system state vector x ( t ) = [ y ( t ) , q ( t ) ] T , which was hereafter denoted as x = [ y , q ] T for simplicity, a two-dimensional dynamic system was constructed:
y ˙ q ˙ = μ R ( T , a w ) · q 1 + q 1 e y y M μ R ( T , a w ) · q
where t denoted time, y M denoted the upper limit of the fungal colony radius, μ R ( T , a w ) denoted the maximum radial growth rate, T denoted temperature, and a w denoted water activity. In addition,
μ R ( T , a w ) = μ o p t · τ ( T ) · ρ ( a w ) τ ( T ) = ( T T m i n ) 2 · ( T T m a x ) ( T o p t T m i n ) · ( T o p t T m i n ) ( T T o p t ) ( T o p t T m a x ) ( T o p t + T m i n 2 T ) ρ ( a w ) = ( a w a w m i n ) 2 · ( a w 1 ) ( a w o p t a w m i n ) · ( a w o p t a w m i n ) ( a w a w o p t ) ( a w o p t 1 ) ( a w o p t + a w m i n 2 a w )
where μ o p t denoted the optimal radial growth rate, τ ( T ) denoted the temperature response subfunction, ρ ( a w ) denoted the water activity response subfunction, T m i n denoted the minimum growth temperature, T m a x denoted the maximum growth temperature, T o p t denoted the optimal growth temperature, a w m i n denoted the minimum water activity, and a w o p t denoted the optimal water activity.

2.2. Fungal Growth Risk Prediction Algorithm Based on the FRS

Traditional predictive microbiology models generally predicted colony growth using fixed initial states and environmental parameters. Under ideal experimental conditions, these predictive models could adequately describe microbial growth. However, during actual food storage, the initial fungal growth state was often difficult to measure with high accuracy. In particular, when the initial colony size was small or the fungi were in the early growth stage, the true initial state was generally more appropriately represented in interval form. Meanwhile, environmental factors such as temperature and water activity were inevitably subject to disturbances during transportation and storage. These uncertainties continuously accumulated throughout fungal growth, thereby indirectly causing deviations between the prediction results and the actual fungal growth state and making it difficult for traditional predictive models to comprehensively reflect the potential evolution range of colony growth. The Lax–Friedrichs method could directly characterize the evolution of state sets under system dynamics constraints, thereby providing rigorous safety boundary analysis for dynamic systems with uncertainty. Reachability set theory was used to characterize the set of all states that a dynamical system could reach within a given time horizon and could be classified into the FRS and the backward reachable set (BRS) according to the direction of temporal evolution [41,42]. The FRS started from an initial state set and characterized the complete set of states that the system might reach in the future under given dynamics constraints, control inputs, and disturbances, whereas the BRS took a target state set as the terminal set and described all initial states from which the system could reach the target set within a finite time horizon. This theory has been widely applied to safety verification of autonomous vehicles, stability analysis of power systems, robot motion planning, verification of neural network control systems, and safety assessment of systems subject to stochastic disturbances [43,44,45,46]. Considering the advantages of reachability sets, this study aimed to develop a fungal growth risk prediction algorithm based on the FRS to characterize the evolution range and risk level of fungal growth in the presence of prior-parameter errors.
The fungal growth model in Equation (1) was essentially a continuous-time nonlinear dynamical system and could be expressed as
x ˙ = f ( x , t , u ) ,
where u = [ T , a w ] T . Since the initial state was difficult to quantify accurately, this paper set its value range to mitigate the influence of parameter errors on prediction accuracy. The initial state set was defined as
X 0 = ( y 0 , q 0 ) y 0 ̲ y 0 y 0 ¯ , q 0 ̲ q 0 q 0 ¯ .
Here, y 0 ̲ and y 0 ¯ denoted the lower and upper bounds of the initial colony radius, respectively, while q 0 ̲ and q 0 ¯ denoted the lower and upper bounds of the initial physiological state, respectively. Similarly, the temperature and water-activity were also defined with corresponding value intervals rather than fixed single values. The control input set was defined as
U = ( T , a w ) T ̲ T T ¯ , a w ̲ a w a w ¯ .
Here, T ̲ and T ¯ denoted the lower and upper bounds of temperature, respectively, while a w ̲ and a w ¯ denoted the lower and upper bounds of water activity, respectively.
The FRS started from the initial state set and characterized all states that the system might reach in the future under the system dynamics and the control input set. The fungal growth model described above had a deterministic continuous-time dynamic structure, while both the initial state and environmental inputs were subject to bounded uncertainty, thereby satisfying the basic assumptions for applying forward reachability analysis. Therefore, this method could be used to characterize the propagation of prior-parameter errors associated with the initial fungal growth state, temperature, and water activity through the growth dynamics and determine the upper bound that the colony radius might reach. Specifically, the level set method was first used to represent X 0 as the zero sublevel set of the scalar function ϕ 0 ( x ) defined over the state space:
ϕ 0 ( x ) = y ̲ 0 y 0 , y 0 y ¯ 0 , q ̲ 0 q 0 , q 0 q ¯ 0 ,
X 0 = { x R 2 ϕ 0 ( x ) 0 } .
At this point, the FRS of fungal growth originating from the initial state set X 0 under the vector field f could be obtained by solving for the viscosity solution [47,48] of the corresponding Hamilton–Jacobi equation [49].
Based on model (2), the Hamilton–Jacobi equation for the fungal growth model during food storage was expressed as
ϕ ( x , t ) t + H ( x , p ) = 0 , x R 2 , t 0 , ϕ ( x , t ) = ϕ 0 ( x ) , x R 2 , t = 0 ,
where the Hamiltonian function H ( x , p ) is given by
H ( x , p ) = max u U p T f ( x , t , u ) ,
where p = ϕ ( x , t ) x denoted the Hamiltonian costate vector. By solving the above equations, the FRS at time t was denoted by X t and expressed as
X t = x R 2 ϕ ( x , t ) 0 .
Following [50,51], the FRS of the fungal growth state was numerically computed by considering the dynamic characteristics of the fungal growth model for food storage. First, the Hamiltonian function was expanded as
H ( x , p ) = max T [ T ̲ , T ¯ ] , a w [ a w ̲ , a w ¯ ] ϕ ( x , t ) y · q 1 + q 1 e ( y y M ) + ϕ ( x , t ) q · q μ R ( T , a w ) .
For computational simplification, let
G = ϕ ( x , t ) y · q 1 + q 1 e ( y y M ) + ϕ ( x , t ) q · q .
Considering the characteristics of the environmental response function μ R ( T , a w ) , H ( x , p ) could be decomposed into two cases as follows:
H ( x , p ) = μ o p t · τ ( T ) max · ρ ( a w ) max · G , G 0 μ o p t · τ ( T ) min · ρ ( a w ) min · G , G < 0 ,
where τ ( T ) max denoted the maximum value of τ ( T ) over the temperature control input interval, and τ ( T ) min was defined analogously; ρ ( a w ) max denoted the maximum value of ρ ( a w ) over the water activity control input interval, and ρ ( a w ) min was defined analogously.
Subsequently, at the spatial discretization level, the Lax–Friedrichs scheme was used to approximate the Hamiltonian function H ( x , p ) to ensure the monotonicity and stability of the numerical scheme. The state space was discretized using the grid g. For the adjacent grid points x j , the left derivative p and right derivative p + could be expressed as follows:
p = D x , E N O 2 ϕ ( x j , t ) , p + = D x + , E N O 2 ϕ ( x j , t ) ,
where D x , E N O 2 and D x + , E N O 2 denote the left and right second-order essentially nonoscillatory (ENO) upwind difference operators in the state space, respectively [52]. The derivative approximations were computed componentwise along the state vector. Averaging the left and right derivatives yielded the central gradient approximation:
p = p + p + 2 .
Moreover, to ensure the numerical stability of the Lax–Friedrichs scheme, suppress oscillations during discretization, and maintain the smoothness and computational stability of the evolving reachable set boundary, a dissipation coefficient k i was introduced in the i-th dimension ( i = 1 , 2 ), whose value was taken as the upper bound of the absolute partial derivative of the Hamiltonian function with respect to the corresponding gradient component, k i = max p i H p i . Combined with G, the dissipation coefficients were calculated as follows:
k 1 = μ o p t · τ ( T ) max · ρ ( a w ) max q 1 + q 1 e ( y y M ) ,
k 2 = μ o p t · τ ( T ) max · ρ ( a w ) max | q | .
Finally, the Lax–Friedrichs approximation of H ( x , p ) was given by:
H L F = H x , p + + p 2 1 2 i = 1 2 k i p i + p i .
Further, an explicit integrator satisfying the CFL stability condition was applied in the temporal direction to iteratively obtain the function ϕ ( x , t + Δ t ) , with the basic form given as follows:
ϕ ( x , t + Δ t ) = ϕ ( x , t ) + Δ t ϕ ( x , t ) t .
The FRS at time τ was then obtained. By controlling the time step Δ t , the numerical results could approximate the continuous-time evolution process.
Finally, based on the dynamic evolution results of the forward reachable set, a time-dependent risk margin vector δ ( t ) was constructed to perform fungal growth risk prediction and quantify the potential expansion of fungal growth in the system state space. Specifically, let the number of prediction steps be N p and the regulation period be Δ t ; then the prediction time points were t = n Δ t ( n = 1 , 2 , , N p ) . At each prediction time point t, the degree of expansion of the farthest point y max ( t ) on the reachable set boundary relative to the deterministic prediction trajectory y ^ ( t ) of the system under the corresponding temperature and water activity values was calculated as follows:
δ ( t ) = y max ( t ) y ^ ( t ) .
It should be emphasized that introducing this risk margin did not imply that the system would inevitably encounter the worst-case extreme condition. Its primary purpose was to objectively characterize the divergence and expansion trends that the system states might exhibit under uncertain conditions. Therefore, δ ( t ) essentially served as forward-looking risk awareness information, aiming to effectively compensate for the inherent limitation of traditional predictive models in providing overly optimistic estimates of future fungal growth risk. In addition, as the prediction horizon increased, the cumulative effects of system uncertainty gradually intensified, causing the risk margin to generally exhibit a dynamic trend of continuous expansion over time.

2.3. Optimal Regulation of Storage Strategies Under Fungal Growth Risk Prediction

In practical storage systems, equipment was constrained by physical inertia and operating costs, making it difficult to achieve high frequency continuous adjustment of environmental inputs, while maintaining low temperature and water activity levels over prolonged periods significantly increased system energy consumption. Meanwhile, the optimal regulation process based on fungal growth risk prediction during food storage was a nonlinear dynamic optimization problem, and directly solving it in the continuous environmental input space would substantially increase computational complexity. To balance engineering feasibility and real time optimization efficiency, this study discretized the environmental inputs and transformed the optimization problem into a decision making problem over a finite set of regulation strategies. Based on these considerations, a discrete regulation mode library comprising representative steady state combinations of temperature and water activity was constructed:
M = { m 1 , m 2 , , m N } .
Here, the i-th regulation mode was m i = [ T i , a w , i ] T , where T i denoted the target storage temperature under this mode and a w , i represented the corresponding target water activity level for this mode. And N denotes the number of modes in the mode library. Clearly, the discrete regulation mode library for temperature and water activity could not encompass all possible environmental states, but it could simulate representative regulation paths encountered during actual storage regulation. In addition, the regulation strategy was constrained to a piecewise constant signal comprising N p segments, and the input at each prediction time point t had to be selected from the mode library M. Thus, any candidate strategy π = [ m ( Δ t ) , m ( 2 Δ t ) , , m ( N p Δ t ) ] was formed by freely combining the discrete regulation modes.
To balance multiple factors, including energy consumption, fungal growth risk, quality, and regulation smoothness, during food storage, this study constructed the following comprehensive performance evaluation index:
J = t = Δ t N p Δ t α E ( t ) + β R ( t ) + η Q ( t ) + t = Δ t ( N p 1 ) Δ t λ S ( t ) .
Here, E ( t ) , R ( t ) , Q ( t ) , and S ( t ) denoted the energy consumption cost, fungal growth risk cost, quality deterioration cost, and regulation switching cost at time point t, respectively. The parameters α , β , η , and λ were the weighting coefficients of the corresponding cost terms and were used to balance the comprehensive optimization objectives of system energy consumption, fungal growth risk, quality preservation, and regulation smoothness.
First, because lower-temperature environments generally entailed greater refrigeration expenditure, the energy consumption term E ( t ) was used to quantitatively describe the refrigeration cost induced by temperature regulation. In this study, the quadratic deviation between the current regulation temperature and the preset ambient temperature was used to characterize the overall energy consumption level:
E ( t ) = T ( t ) T e n v ( t ) 2 ,
where T ( t ) denoted the current regulation temperature of the system, and T e n v ( t ) denoted the preset ambient temperature. This indicator reflected the relative refrigeration intensity required to maintain the target storage temperature under different ambient conditions: the greater the temperature difference, the higher the refrigeration load borne by the system and the greater the corresponding energy consumption cost. Incorporating this term into the comprehensive performance index prevented the optimizer from suppressing fungal growth solely by continuously reducing the temperature, thereby achieving a reasonable balance between fungal growth control and refrigeration energy consumption.
Second, the risk term R ( t ) was specifically used to quantify the severity of fungal growth risk when the fungal colony radius y approached or exceeded the growth warning boundary, and was defined as the following piecewise function:
R ( t ) = 0 , y ( t ) y safe 50 y ( t ) y safe 2 , y safe < y ( t ) y safe + 0.1 e c Risk · max 0 , y ( t ) y safe 1 , y ( t ) > y safe + 0.1 ,
where y safe denoted the specified fungal growth warning boundary, and c Risk denoted the risk exponential growth coefficient. This risk function adopted a piecewise mechanism with progressively increasing penalties: when the risk state had just exceeded the growth warning boundary, a quadratic term was used to provide continuous and smooth risk penalization, thereby avoiding severe system fluctuations caused by abrupt changes in the risk function during optimization; when the risk increased further, an exponential growth form was used to rapidly increase the risk cost, thereby enhancing the optimizer’s sensitivity to serious threshold exceedance risks and causing the system to exhibit a more conservative regulation tendency in high-risk regions.
Third, the quality deterioration cost Q ( t ) was used to quantify the extent to which the actual regulation conditions deviated from the predefined quality reference conditions. In this study, the quality reference conditions referred to combinations of temperature and water activity that were preset for a specific food and storage stage to maintain quality attributes such as color, texture, moisture, and flavor. These reference conditions did not represent a universally optimal environment applicable to all foods; rather, they were jointly determined by the food type and quality preservation requirements, and their specific values could be set according to the actual circumstances. The deviations of temperature and water activity from their respective reference conditions were integrated as follows:
Q ( t ) = T ( t ) T q ( t ) 2 + 400 a w ( t ) a w , q ( t ) 2 ,
where T q ( t ) and a w , q ( t ) denotes the reference temperature and reference water activity for maintaining food quality, respectively. Given the difference in magnitude between temperature T and water activity a w , the weight assigned to the water activity deviation term was appropriately increased to balance the effects of the two variables.
Finally, the regulation switching cost term S ( t ) was used to suppress abrupt changes in the regulation strategy between adjacent prediction time points, thereby ensuring the smoothness and engineering feasibility of the regulation strategy. It was mathematically defined as follows:
S ( t ) = T ( t + Δ t ) T ( t ) 2 + a w ( t + Δ t ) a w ( t ) 2 .
This term could effectively prevent excessively frequent adjustments of temperature and water activity, thereby reducing the implementation burden and equipment wear in actual storage systems.
For any of the candidate temperature–water activity regulation strategies described above, given the initial fungal growth state and model parameters, temperature and water activity were treated as constants within each regulation period. The corresponding maximum radial growth rate μ R ( T , a w ) was then calculated, and the fungal growth dynamics equations over that period were numerically integrated using the explicit Runge–Kutta method [53]. Subsequently, the terminal state of the current period was used as the initial state of the next period for sequential propagation, ultimately yielding a colony radius prediction sequence y ( t ) uniquely corresponding to the candidate regulation strategy. Clearly, this prediction process did not account for the propagation of environmental disturbances or initial state uncertainty. Drawing on the definition of the nominal prediction trajectory in the field of control [54], this study defined the baseline prediction result directly obtained from the fungal growth model under a given initial state, model parameters, and temperature–water activity strategy as the nominal fungal growth prediction trajectory. Therefore, this study further incorporated the risk margin δ ( t ) to obtain the fungal growth risk prediction result y ˜ ( t ) for the food storage process. The risk prediction result was calculated as follows:
y ˜ ( t ) = y ( t ) + δ ( t ) .
In the subsequent search for the optimal regulation strategy, all candidate regulation strategies were evaluated. The temperature–water activity strategies that minimized the comprehensive performance index under the two prediction methods were determined separately, and their regulation modes, fungal growth trajectories, and risk control effects were further compared to analyze the influence of introducing the risk margin on the optimal regulation decision.

2.4. Applicability and Limitations of the Proposed Method

This study proposed a fungal growth risk prediction and optimal regulation method for food storage based on the FRS to address the limitation that traditional predictive microbiology models could only predict a single growth trajectory and could not adequately reflect the effects of initial state errors and environmental fluctuations. The proposed method consisted of two parts: risk prediction and optimal regulation. The former used the FRS to obtain the range of fungal growth states that might be reached and employed the risk margin to characterize its expansion relative to the nominal prediction trajectory. The latter comprehensively considered energy consumption, fungal growth, food quality deterioration, and regulation switching costs to select a storage strategy that balanced multiple objectives. In addition, the proposed framework could potentially be extended to other classes of microorganisms by replacing the current fungal growth model with microorganism-specific kinetic models and corresponding state variables.
Despite these advantages, the proposed method still had certain limitations. First, the optimization was performed only within a predefined finite regulation mode library. Therefore, the resulting strategy was the optimal solution among the candidate modes rather than the global optimum in the continuous environmental input space, and an inappropriate mode library might reduce the regulation accuracy. Second, the water activity parameter in the current fungal growth model may be difficult to regulate directly in practical scenarios, while colony radius may not be an appropriate state variable for other classes of microorganisms. Therefore, the corresponding kinetic model, state variables, and control variables should be adjusted according to microorganism-specific growth characteristics and practical storage conditions. Future studies will further investigate the applicability of the proposed framework to other classes of microorganisms using appropriate growth models and state variables. Third, this study was mainly based on numerical simulations and did not statistically validate the prediction results using data from actual food storage experiments. Future studies should combine experimental observations with appropriate statistical evaluation metrics to further assess the prediction accuracy and practical applicability of the proposed method.

3. Results and Discussion

This section presents the numerical simulation results of the proposed algorithm. In the fungal growth model containing a logistic inhibition term, the upper limit of the colony radius, y M , essentially represented the effective carrying boundary imposed by limited nutrient availability and spatial constraints. When y M was set too low, the logistic inhibition effect dominated the system dynamics prematurely, leading to an unreasonable colony growth pattern and causing the colony to enter the saturation plateau too early. Conversely, when y M was set far above the colony size attainable within the study period, the logistic inhibition term became approximately inactive within the prediction horizon, and the model behavior approached linear radial growth. Based on these considerations and with reference to [40], the relevant growth parameters of A. flavus on pistachios were listed in Table 2.

3.1. Numerical Simulation Setup

The proposed algorithm was implemented in MATLAB R2012b on a Windows 11 operating system. The numerical computation of the forward reachable set was carried out using the Toolbox of Level Set Methods, Version 1.1. In the numerical scheme, the Hamiltonian term was approximated using the Lax–Friedrichs numerical flux, and the spatial derivatives were discretized by a second-order essentially nonoscillatory upwind scheme. The time integration was performed using a second-order time integrator constrained by the Courant–Friedrichs–Lewy condition. The numerical stability of the Hamilton–Jacobi solver was mainly controlled by the CFL condition. In this study, the CFL factor was set to 0.75. In addition, the Lax–Friedrichs numerical flux and global Lax–Friedrichs artificial dissipation were used to enhance the stability of the reachable set propagation.

3.2. Numerical Simulation 1: Analysis of Fungal Growth Risk Prediction Results Based on the FRS

Previous studies have identified temperature and water activity as key factors affecting the growth of A. flavus and aflatoxin production in pistachios. Relevant studies covered temperatures of 10–42 °C and water activity of 0.85 or higher [40,55]. Accordingly, 18 °C and 0.83 were selected as the baseline temperature and water activity, respectively, to represent mild storage conditions with relatively slow fungal growth. For the initial state, y 0 = 0.12 was set to represent a small initial colony relative to y M = 10 , while q 0 = 0.06 was adopted to represent low initial physiological activity according to the physiological interpretation of q ( t ) in the Baranyi–Roberts model [13]. Since the true values of prior parameters including the initial fungal growth state, temperature, and water activity could not be determined in advance, a single preset value would lead to non-negligible errors in the prior parameters. Numerical Simulation 1 therefore took the above specified initial states y 0 and q 0 , together with the corresponding growth rate μ R , as the central values and described the environmental inputs and initial fungal growth states using intervals. Specifically, temperature and water activity were restricted to [10 °C, 20 °C] and [ 0.75 , 0.85 ] , respectively, while the ranges of the initial states y 0 and q 0 were extended to [ 0.08 , 0.15 ] and [ 0.0425 , 0.08 ] , respectively. The storage time t was set to 8 days, with each day taken as a prediction time point, i.e., Δ t = 1 and N p = 8 .
Fungal growth prediction during food storage based on the FRS could simultaneously account for the range of states that the system might reach under all admissible initial states and environmental input conditions, thereby obtaining the overall evolution boundary of the fungal growth state at future time points. At each prediction time point, this study extracted the farthest reachable point y max along the colony radius dimension from the boundary of the reachable set and regarded it as the most adverse value that y might attain under the current uncertain conditions; the calculation results were shown in Figure 1. The analysis indicated that, on the one hand, during the early prediction stage, the FRS was mainly concentrated in regions characterized by smaller colony radii and lower values of the physiological state of the cells, indicating that the fungi remained in the adaptation stage to the storage environment, with limited physiological activity and colony expansion. Consequently, their immediate impact on the food was relatively small, which also provided a time window for environmental regulation. As storage time increased, the reachable set continued to expand along the dimensions of colony radius and the physiological state of the cells, indicating that the fungi gradually completed environmental adaptation, exhibited enhanced physiological activity, and promoted an increase in colony radius. At this stage, some admissible fungal growth trajectories might enter the rapid growth stage earlier, causing the colony expansion outcomes to gradually diverge and broadening the range of possible colony-radius outcomes. On the other hand, the farthest reachable value y max along the colony radius dimension grew relatively slowly during the early prediction stage but increased rapidly from 0.450 on day 5 to 0.933 on day 8. The maximum radius that the colony might reach under uncertainty increased rapidly during the middle and late stages of storage, accompanied by a widening range of possible colony-radius outcomes and a marked increase in the risks of mold spoilage and quality deterioration. Without timely regulation of temperature and water activity, the acceptable storage period of the food might be further shortened.
In summary, the evolution characteristics of the physiological state of the cells and colony radius could be jointly used to identify the critical period during which fungi transitioned from the adaptation stage to the rapid growth stage, thereby providing a basis for the timely regulation of the storage environment.
The fungal growth risk prediction results were shown in Figure 2. As shown in Figure 2, as the prediction time increased, the shaded region enclosed by the nominal prediction trajectory y ^ ( t ) and the farthest reachable point y max ( t ) continued to expand. This indicated that even when the nominal prediction trajectory remained relatively stable overall, the state expansion induced by uncertainty became increasingly pronounced over time. In other words, traditional prediction methods might underestimate the potential future fungal growth risk, whereas the risk margin could further reveal the propagation and accumulation trends of fungal growth risk overlooked by the nominal prediction. Therefore, this study ultimately constructed a risk margin vector that varied with the prediction time and incorporated it into the subsequent finite-time optimal regulation method to enhance the system’s ability to account for the propagation of potential fungal growth risk.

3.3. Numerical Simulation 2: Comparison of Optimal Regulation Results for Storage Strategies Under Nominal Prediction and Fungal Growth Risk Prediction

Considering the different roles of temperature and water activity in fungal growth control and storage cost, the regulation mode library was designed by assigning each mode a specific temperature level and a corresponding water activity level. Lower-temperature modes provided stronger fungal growth inhibition but required higher cooling costs, whereas higher-temperature modes reduced the cooling burden and therefore required stricter water activity control to limit fungal growth. Based on this consideration, a finite set of candidate regulation modes was constructed for subsequent strategy optimization, as shown in Table 3, and the corresponding calculated maximum radial growth rates were shown in Figure 3.
In the storage cost function, the reference ambient temperature was set as T e n v = [ 18 , 18 , 18 , 17 , 17 , 16 , 16 , 15 ] . Meanwhile, to account for food quality preservation requirements, the reference temperature sequence for quality preservation was set as T q = [ 15 , 15 , 15 , 14 , 13 , 12 , 11 , 10 ] , and the reference water activity sequence for quality preservation was set as a w , q = [ 0.80 , 0.80 , 0.80 , 0.81 , 0.81 , 0.82 , 0.83 , 0.83 ] . Furthermore, α = 1 was used as the reference weight because the energy consumption term E ( t ) was already expressed as a squared temperature deviation and therefore exhibited a relatively large numerical scale under low-temperature regulation conditions. The fungal growth risk term R ( t ) was a threshold-dependent penalty that remained zero below the growth warning boundary and increased rapidly only when the predicted colony radius exceeded the risk threshold. Therefore, β = 120 was assigned to enhance the influence of fungal growth risk near the growth warning boundary and to reflect the growth-control-prioritized objective of food storage regulation. For the quality deterioration term Q ( t ) , a scaling coefficient of 400 had already been introduced to balance the different numerical magnitudes of temperature and water activity deviations; thus, η = 15 was used to ensure that quality preservation exerted a meaningful but secondary influence relative to fungal growth control. The switching cost S ( t ) penalized abrupt changes between adjacent regulation modes to improve control smoothness and engineering feasibility; therefore, λ = 5 was selected as a moderate penalty to discourage excessive switching while still allowing timely adjustments when fungal growth risk increased. The risk exponential growth coefficient was set to c Risk = 8 , and the risk threshold was set to y safe = 1.5 . Previous research [56] had shown that when the diameter of a mold colony reached approximately 3 mm, its contamination status could be visually identified. Therefore, this study used the state corresponding to a colony radius of 1.5 mm as the visually detectable fungal contamination threshold to characterize the entry of food into a state of visually detectable fungal contamination. The specific values of the above parameters could be adjusted according to different food types and actual circumstances.
Because the physiological state variable q in the classical Baranyi–Roberts model could reflect the degree of adaptation and activity of microorganisms in the current environment, this study combined the colony radius y and the physiological state of the cells, q, to construct two representative initial conditions, namely a low fungal growth risk condition and a high fungal growth risk condition, to analyze the response characteristics of the regulation strategy under different risk states. The low risk condition was set to y 0 = 0.1 and q 0 = 0.05 , whereas the high-risk condition was set to y 0 = 1.3 and q 0 = 2 . The storage time t was set to 8 days, with 1 day used as each discrete regulation time point, i.e., Δ t = 1 and N p = 8 .
For convenience, in this study, nominal prediction was abbreviated as NP and referred to the process of evaluating candidate temperature and water activity sequences using a deterministic fungal growth dynamics model, whereas risk prediction was abbreviated as RP and referred to the prediction process that further incorporated the FRS risk margin. Under the low-risk operating condition, the optimal regulation strategies obtained by NP and RP were shown in Figure 4. Because the system’s nominal prediction trajectory remained far from the growth warning boundary, the trajectory did not exceed the growth warning boundary even when expansion of the risk margin was considered. Therefore, after the risk margin was incorporated, the optimal regulation strategy remained unchanged, and the total cost was 231.0396 in both cases. This result indicated that, under a low-risk scenario, the risk margin did not cause evident excessive conservatism in the system.
Under the high-risk operating condition, the optimal regulation strategies corresponding to nominal prediction and risk prediction were shown in Figure 5. Compared with the low-risk operating condition, the optimal environmental regulation strategy of the system changed markedly. The fungal colony radius prediction sequences under the two strategies were further analyzed, as shown in Figure 6. Figure 6 showed that the radius sequence obtained by nominal prediction exceeded the growth warning threshold during the later stage of the prediction horizon. However, after the risk margin vector was introduced, the system could detect the risk propagation trend in advance and proactively switch to a stronger inhibitory mode, thereby slowing the increase in fungal colony radius during the early stage of prediction. Ultimately, the regulation strategy obtained under risk prediction maintained the predicted colony radius below the predefined threshold within the simulation horizon. Although the total cost of risk prediction was substantially higher than that of nominal prediction, further analysis showed that the increase mainly arose from the higher risk cost rather than solely from increased energy consumption associated with environmental regulation. This finding indicated that the risk enhancement mechanism essentially increased the conservatism of the regulation strategy by accepting a higher cost of risk avoidance.
In summary, the risk margin had a limited influence on the regulation strategy under low-risk scenarios. Under high-risk scenariosLax–Friedrichs, the fungal growth risk prediction mechanism prompted the system to adopt stronger inhibitory measures in advance, preventing the predicted colony radius from exceeding the predefined threshold in the simulated scenario and thereby transforming the regulation strategy from traditional risk-responsive regulation to risk-preventive regulation. Meanwhile, this mechanism significantly affected regulation decisions only when the system approached the growth warning boundary, thus enabling a dynamic balance among fungal growth risk control, energy consumption, quality preservation, and regulation smoothness.

4. Conclusions

This study proposed a fungal growth risk prediction and optimal regulation method for food storage based on the FRS. Numerical simulation results showed that the constructed risk margin reflected the state expansion caused by the propagation of prior-parameter errors over time. When the predicted state approached the predefined threshold, incorporating the risk margin prompted the system to adopt stronger inhibitory strategies in advance, making the regulation more preventive and conservative. The proposed method provided a numerical framework for fungal growth prediction and storage environment regulation under uncertain conditions. Future studies will combine actual food storage experiments with statistical evaluation to further validate its prediction accuracy and practical applicability.

Author Contributions

Conceptualization, Z.Z. and Y.Z.; methodology, M.L. and Y.Z.; investigation, M.L. and F.Z.; writing—original draft preparation, M.L.; writing—review and editing, Z.Z. and Y.Z.; visualization, X.S.; supervision, Y.Z.; funding acquisition, Z.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Key Research and Development Program of China (No. 2022YFF1101103), the Beijing Nova Program (No. 202604841202), the Special Fund for National Natural Science Foundation of China (No. 62541302), and the Youth Scholars of Beijing Technology and Business University (No. RFYS2025).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Acknowledgments

The authors acknowledge the use of the Level Set Methods toolbox (version 1.1, technical report UBC CS TR-2007-11, Vancouver, BC, Canada, 2007), which provides fundamental numerical computing support for the Hamilton–Jacobi reachable set calculation in this work. During the preparation of this manuscript, the authors used DeepSeek-V3 for language translation and grammatical polishing. The authors have reviewed and edited the output and take full responsibility for the content of this publication.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
FRSforward reachable set
BRSbackward reachable set
NPnominal prediction
RPrisk prediction

References

  1. Prodhan, M.M.H.; Khan, M.A.; Palash, M.S.; Rahman, M.T. Nature, extent, and causes of post-harvest losses at fisher and farmer level: An in-depth study. Aquaculture 2022, 550, 737856. [Google Scholar] [CrossRef] [Scilit]
  2. Nath, B.; Chen, G.; O’Sullivan, C.M.; Zare, D. Research and technologies to reduce grain postharvest losses: A review. Foods 2024, 13, 1875. [Google Scholar] [CrossRef] [Scilit]
  3. Bento de Carvalho, T.; Silva, B.N.; Tomé, E.; Teixeira, P. Preventing fungal spoilage from raw materials to final product: Innovative preservation techniques for fruit fillings. Foods 2024, 13, 2669. [Google Scholar] [CrossRef] [Scilit]
  4. Gram, L.; Ravn, L.; Rasch, M.; Bruhn, J.B.; Christensen, A.B.; Givskov, M. Food spoilage—Interactions between food spoilage bacteria. Int. J. Food Microbiol. 2002, 78, 79–97. [Google Scholar] [CrossRef] [Scilit]
  5. Karanth, S.; Feng, S.; Patra, D.; Pradhan, A.K. Linking microbial contamination to food spoilage and food waste: The role of smart packaging, spoilage risk assessments, and date labeling. Front. Microbiol. 2023, 14, 1198124. [Google Scholar] [CrossRef] [Scilit]
  6. Zhang, H.; Cui, Y. A model combining a Bayesian network with a modified genetic algorithm for green supplier selection. Simulation 2019, 95, 1165–1183. [Google Scholar] [CrossRef] [Scilit]
  7. Zhang, H.; Feng, H.; Cui, Y.; Wang, Y. A fuzzy Bayesian network model for quality control in O2O e-commerce. Int. J. Comput. Commun. Control 2020, 15, 1003. [Google Scholar] [CrossRef] [Scilit]
  8. Zhang, H.; Shi, Y.; Qiu, B. Applying catastrophe progression method to evaluate the service quality of cold chain logistics. Complex Intell. Syst. 2023, 9, 2221–2235. [Google Scholar] [CrossRef] [Scilit]
  9. Song, L.; Guo, W.; He, Z.; Zhang, P. Thermal, economic and food preservation performances of a refrigerated warehouse equipped with on-shelf phase change material. Int. J. Refrig. 2024, 165, 16–30. [Google Scholar] [CrossRef] [Scilit]
  10. Eze, J.; Duan, Y.; Eze, E.; Ramanathan, R.; Ajmal, T. Machine learning-based optimal temperature management model for safety and quality control of perishable food supply chain. Sci. Rep. 2024, 14, 27228. [Google Scholar] [CrossRef] [Scilit]
  11. Park, J.W.; Ju, Y.M.; Kim, Y.G.; Kim, H.S. 50% reduction in energy consumption in an actual cold storage facility using a deep reinforcement learning-based control algorithm. Appl. Energy 2023, 352, 121996. [Google Scholar] [CrossRef] [Scilit]
  12. Ross, T.; McMeekin, T. Predictive microbiology. Int. J. Food Microbiol. 1994, 23, 241–264. [Google Scholar] [CrossRef] [Scilit]
  13. Baranyi, J.; Roberts, T.A. A dynamic approach to predicting bacterial growth in food. Int. J. Food Microbiol. 1994, 23, 277–294. [Google Scholar] [CrossRef] [Scilit]
  14. Gibson, A.M.; Bratchell, N.; Roberts, T. Predicting microbial growth: Growth responses of salmonellae in a laboratory medium as affected by pH, sodium chloride and storage temperature. Int. J. Food Microbiol. 1988, 6, 155–178. [Google Scholar] [CrossRef] [Scilit]
  15. Xing, S.; Liu, K.; Gong, H.; Li, H.; Liu, W.; Liu, L. Predictive model for growth of Pseudomonas spp. on fresh duck breast as a function of temperature. Poult. Sci. 2023, 102, 102868. [Google Scholar] [CrossRef] [Scilit]
  16. Juneja, V.K.; Sidhu, G.; Xu, X.; Osoria, M.; Glass, K.A.; Schill, K.M.; Golden, M.C.; Schaffner, D.W.; Kumar, G.D.; Shrestha, S.; et al. Predictive model for growth of Clostridium botulinum from spores at temperatures applicable to cooling of cooked ground pork. Innov. Food Sci. Emerg. Technol. 2022, 77, 102960. [Google Scholar] [CrossRef] [Scilit]
  17. Hiura, S.; Koseki, S.; Koyama, K. Prediction of population behavior of Listeria monocytogenes in food using machine learning and a microbial growth and survival database. Sci. Rep. 2021, 11, 10613. [Google Scholar] [CrossRef] [Scilit]
  18. Koyama, K.; Kubo, K.; Hiura, S.; Koseki, S. Is skipping the definition of primary and secondary models possible? Prediction of Escherichia coli O157 growth by machine learning. J. Microbiol. Methods 2022, 192, 106366. [Google Scholar] [CrossRef] [Scilit]
  19. Yildirim-Yalcin, M.; Yucel, O.; Tarlak, F. Development of prediction software to describe total mesophilic bacteria in spinach using a machine learning-based regression approach. Food Sci. Technol. Int. 2025, 31, 3–10. [Google Scholar] [CrossRef] [Scilit]
  20. Yücel, Ö.; Tarlak, F. An intelligent based prediction of microbial behaviour in beef. Food Control 2023, 148, 109665. [Google Scholar] [CrossRef] [Scilit]
  21. Sonwani, E.; Bansal, U.; Alroobaea, R.; Baqasah, A.M.; Hedabou, M. An artificial intelligence approach toward food spoilage detection and analysis. Front. Public Health 2022, 9, 816226. [Google Scholar] [CrossRef] [Scilit]
  22. Tarlak, F.; Şimşek, B.B.; Şahin, M.; Pérez-Rodríguez, F. Next-Generation Predictive Microbiology: A Software Platform Combining Two-Step, One-Step and Machine Learning Modelling. Foods 2025, 14, 3158. [Google Scholar] [CrossRef] [Scilit]
  23. Revelou, P.K.; Tsakali, E.; Batrinou, A.; Strati, I.F. Applications of machine learning in food safety and HACCP monitoring of animal-source foods. Foods 2025, 14, 922. [Google Scholar] [CrossRef] [Scilit]
  24. Taiwo, O.R.; Onyeaka, H.; Oladipo, E.K.; Oloke, J.K.; Chukwugozie, D.C. Advancements in predictive microbiology: Integrating new technologies for efficient food safety models. Int. J. Microbiol. 2024, 2024, 6612162. [Google Scholar] [CrossRef] [Scilit]
  25. Goodswen, S.J.; Barratt, J.L.; Kennedy, P.J.; Kaufer, A.; Calarco, L.; Ellis, J.T. Machine learning and applications in microbiology. FEMS Microbiol. Rev. 2021, 45, fuab015. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  26. Bevilacqua, A.; De Santis, A.; Sollazzo, G.; Speranza, B.; Racioppo, A.; Sinigaglia, M.; Corbo, M.R. Microbiological risk assessment in foods: Background and tools, with a focus on risk ranger. Foods 2023, 12, 1483. [Google Scholar] [CrossRef] [Scilit]
  27. Tarlak, F. The use of predictive microbiology for the prediction of the shelf life of food products. Foods 2023, 12, 4461. [Google Scholar] [CrossRef] [Scilit]
  28. Wei, S.; Wang, Z.; Xie, W.; Wang, F.; Chen, P.; Yang, D. A heat and mass transfer model based on multi-component heterogeneity for corn kernel tempering drying: Development and application. Comput. Electron. Agric. 2020, 171, 105335. [Google Scholar] [CrossRef] [Scilit]
  29. Lee, S.; Park, D.H.; Kim, E.J.; Kim, H.; Lee, Y.; Choi, M.J. Development of temperature control algorithm for supercooling storage of pork loin and its feasibility for improving freshness and extending shelf life. Food Sci. Anim. Resour. 2022, 42, 467. [Google Scholar] [CrossRef] [Scilit]
  30. Zhen, Q.; Xu, C.; Tana; Wang, H.; Yue, X.; Yan, C.; Sun, Y. Research on the temperature and humidity distribution characteristics in potato storage facilities: Experimental analysis and numerical simulation. Front. Sustain. Food Syst. 2025, 9, 1594791. [Google Scholar] [CrossRef] [Scilit]
  31. Patel, B.B.; Sutar, R.F. Respiration rate and heat of respiration of green chilli (Capsicum annuum L.) as influenced by storage humidity and temperature. Agric. Res. J. 2023, 60, 460–466. [Google Scholar] [CrossRef] [Scilit]
  32. González-Torralba, J.; Arazuri, S.; Jarén, C.; Arregui, L.M. Influence of temperature and rh during storage on wheat bread making quality. J. Stored Prod. Res. 2013, 55, 134–144. [Google Scholar] [CrossRef] [Scilit]
  33. Pérez-Rodríguez, F.; Valero, A. Predictive microbiology in foods. In Predictive Microbiology in Foods; Springer: New York, NY, USA, 2013; pp. 1–10. [Google Scholar] [CrossRef] [Scilit]
  34. Davies, C.R.; Wohlgemuth, F.; Young, T.; Violet, J.; Dickinson, M.; Sanders, J.W.; Vallieres, C.; Avery, S.V. Evolving challenges and strategies for fungal control in the food supply chain. Fungal Biol. Rev. 2021, 36, 15–26. [Google Scholar] [CrossRef] [Scilit]
  35. Rabasco-Vílchez, L.; Porras-Pérez, E.; Possas, A.; Morcillo-Martín, R.; Pérez-Rodríguez, F. A predictive approach to reducing strawberry post-harvest waste: Impact of storage conditions and water activity on Botrytis cinerea germination. Food Res. Int. 2025, 210, 116401. [Google Scholar] [CrossRef] [Scilit]
  36. Gutiérrez-Pozo, M.; Verheecke-Vaessen, C.; Kourmpetli, S.; Terry, L.A.; Medina, A. Effect of temperature, relative humidity, and incubation time on the mycotoxin production by Fusarium spp. responsible for dry rot in potato tubers. Toxins 2024, 16, 414. [Google Scholar] [CrossRef] [Scilit]
  37. Afshari, H.; Mohammadi, M.M.; Rezaee, A.A.; Ziaolhagh, S.H.; Fani, S.R.; Aldaghi, M. Effect of packaging and storage temperature on the population of Aspergillus section Flavi and aflatoxin production in fresh pistachios. J. Nuts 2022, 13, 227–237. [Google Scholar] [CrossRef]
  38. Ma, H.J.; Jin, X.B.; Li, Z.M.; Bai, Y.T. Fuzzy adaptive-normalized deep encoder-decoder network: Medium and long-term predictor of temperature and humidity in smart greenhouses. Comput. Electron. Agric. 2024, 226, 109480. [Google Scholar] [CrossRef] [Scilit]
  39. Baranyi, J.; Robinson, T.; Kaloti, A.; Mackey, B. Predicting growth of Brochothrix thermosphacta at changing temperature. Int. J. Food Microbiol. 1995, 27, 61–75. [Google Scholar] [CrossRef] [Scilit]
  40. Marín, S.; Ramos, A.J.; Sanchis, V. Modelling Aspergillus flavus growth and aflatoxins production in pistachio nuts. Food Microbiol. 2012, 32, 378–388. [Google Scholar] [CrossRef] [Scilit]
  41. Tomlin, C.J.; Mitchell, I.; Bayen, A.M.; Oishi, M. Computational techniques for the verification of hybrid systems. Proc. IEEE 2003, 91, 986–1001. [Google Scholar] [CrossRef] [Scilit]
  42. Tomlin, C.J.; Lygeros, J.; Sastry, S.S. A game theoretic approach to controller design for hybrid systems. Proc. IEEE 2000, 88, 949–970. [Google Scholar] [CrossRef] [Scilit]
  43. Althoff, M.; Dolan, J.M. Online verification of automated road vehicles using reachability analysis. IEEE Trans. Robot. 2014, 30, 903–918. [Google Scholar] [CrossRef] [Scilit]
  44. Althoff, M.; Cvetković, M.; Ilić, M. Transient stability analysis by reachable set computation. In Proceedings of the 2012 3rd IEEE PES Innovative Smart Grid Technologies Europe (ISGT Europe); IEEE: Piscataway, NJ, USA, 2012; pp. 1–8. [Google Scholar] [CrossRef] [Scilit]
  45. Dabadie, C.; Kaynama, S.; Tomlin, C.J. A practical reachability-based collision avoidance algorithm for sampled-data systems: Application to ground robots. In Proceedings of the 2014 IEEE/RSJ International Conference on Intelligent Robots and Systems; IEEE: Piscataway, NJ, USA, 2014; pp. 4161–4168. [Google Scholar] [CrossRef] [Scilit]
  46. Zhang, C.; Ruan, W.; Xu, P. Reachability analysis of neural network control systems. In Proceedings of the AAAI Conference on Artificial Intelligence; Association for the Advancement of Artificial Intelligence: Washington, DC, USA, 2023; Volume 37, pp. 15287–15295. [Google Scholar] [CrossRef] [Scilit]
  47. Crandall, M.G.; Lions, P.L. Viscosity solutions of Hamilton-Jacobi equations. Trans. Am. Math. Soc. 1983, 277, 1–42. [Google Scholar] [CrossRef]
  48. Crandall, M.G.; Evans, L.C.; Lions, P.L. Some properties of viscosity solutions of Hamilton-Jacobi equations. Trans. Am. Math. Soc. 1984, 282, 487–502. [Google Scholar] [CrossRef]
  49. Lygeros, J.; Tomlin, C.; Sastry, S. On controller synthesis for nonlinear hybrid systems. In Proceedings of the 37th IEEE Conference on Decision and Control (Cat. No. 98CH36171); IEEE: Piscataway, NJ, USA, 1998; Volume 2, pp. 2101–2106. [Google Scholar] [CrossRef] [Scilit]
  50. Mitchell, I.M. A Toolbox of Level Set Methods, version 1.1; Technical Report TR-2007-11; Department of Computer Science, University of British Columbia: Vancouver, BC, Canada, 2007. [Google Scholar]
  51. Mitchell, I.; Tomlin, C.J. Level set methods for computation in hybrid systems. In Proceedings of the International Workshop on Hybrid Systems: Computation and Control; Springer: Berlin/Heidelberg, Germany, 2000; pp. 310–323. [Google Scholar] [CrossRef] [Scilit]
  52. Osher, S.; Shu, C.W. High-order essentially nonoscillatory schemes for Hamilton–Jacobi equations. SIAM J. Numer. Anal. 1991, 28, 907–922. [Google Scholar] [CrossRef] [Scilit]
  53. Dormand, J.R.; Prince, P.J. A family of embedded Runge-Kutta formulae. J. Comput. Appl. Math. 1980, 6, 19–26. [Google Scholar] [CrossRef] [Scilit]
  54. Singh, S.; Pavone, M.; Slotine, J.J.E. Tube-based MPC: A contraction theory approach. In Proceedings of the 2016 IEEE 55th Conference on Decision and Control (CDC); IEEE: Piscataway, NJ, USA, 2016. [Google Scholar]
  55. Baazeem, A.; Garcia-Cela, E.; Medina, A.; Magan, N. Interacting abiotic factors affect growth and aflatoxin b1 production profiles of Aspergillus flavus strains on pistachio-based matrices and pistachio nuts. Front. Microbiol. 2021, 11, 624007. [Google Scholar] [CrossRef] [Scilit]
  56. Aldars-García, L.; Sanchis, V.; Ramos, A.J.; Marín, S. Time-course of germination, initiation of mycelium proliferation and probability of visible growth and detectable AFB1 production of an isolate of Aspergillus flavus on pistachio extract agar. Food Microbiol. 2017, 64, 104–111. [Google Scholar] [CrossRef] [Scilit]
Figure 1. Prediction results for fungal colony radius based on the FRS.
Figure 1. Prediction results for fungal colony radius based on the FRS.
Foods 15 02975 g001
Figure 2. Evolution of the risk margin based on the FRS.
Figure 2. Evolution of the risk margin based on the FRS.
Foods 15 02975 g002
Figure 3. Contour plot of the maximum radial growth rate under the coupled effects of temperature and water activity (a) and comparison of the maximum radial growth rate under discrete regulation modes (b).
Figure 3. Contour plot of the maximum radial growth rate under the coupled effects of temperature and water activity (a) and comparison of the maximum radial growth rate under discrete regulation modes (b).
Foods 15 02975 g003
Figure 4. Optimal regulation results for storage strategies under NP and RP in the low-risk operating condition.
Figure 4. Optimal regulation results for storage strategies under NP and RP in the low-risk operating condition.
Foods 15 02975 g004
Figure 5. Optimal regulation results for storage strategies under NP and RP in the high-risk operating condition.
Figure 5. Optimal regulation results for storage strategies under NP and RP in the high-risk operating condition.
Foods 15 02975 g005
Figure 6. Changes in the fungal colony radius under the optimized storage regulation strategies obtained by NP and RP for the high-risk operating condition.
Figure 6. Changes in the fungal colony radius under the optimized storage regulation strategies obtained by NP and RP for the high-risk operating condition.
Foods 15 02975 g006
Table 1. Definitions of the main mathematical symbols used in the proposed method.
Table 1. Definitions of the main mathematical symbols used in the proposed method.
SymbolDefinition
x = [ y , q ] T System state vector
u = [ T , a w ] T Control input
X 0 Initial state set
UControl input set
H ( x , p ) Hamiltonian function
p = ϕ ( x , t ) x Hamiltonian costate vector
X t FRS at time t
M { m 1 , m 2 , , m N } Discrete regulation mode library
m i = [ T i , a w , i ] T The i-th regulation mode
π Candidate strategy
JComprehensive performance evaluation index
E ( t ) , R ( t ) , Q ( t ) , S ( t ) Energy consumption cost, fungal growth risk cost, quality deterioration cost, and regulation switching cost, respectively
α , β , η , λ Weighting coefficients of the corresponding cost terms
N p Number of prediction steps
Δ t Regulation period
Table 2. Parameter values for the A. flavus growth kinetics model.
Table 2. Parameter values for the A. flavus growth kinetics model.
SymbolValue (Unit)
T min 6.33 ( ° C )
T max 42 ( ° C )
T opt 33.47 ( ° C )
a w min 0.74 ( )
a w opt 0.99 ( )
μ opt 4.31 ( mm / d )
y M 10 ( mm )
Table 3. Temperature–water activity control mode library for food storage.
Table 3. Temperature–water activity control mode library for food storage.
Mode NumberTemperature T (°C)Water Activity a w
m 1 100.83
m 2 120.82
m 3 150.80
m 4 170.78
m 5 190.76
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Zhao, Z.; Li, M.; Zhou, Y.; Zhang, F.; Sun, X. Fungal Growth Risk Prediction and Optimal Regulation Method for Food Storage Based on the Forward Reachable Set. Foods 2026, 15, 2975. https://doi.org/10.3390/foods15172975

AMA Style

Zhao Z, Li M, Zhou Y, Zhang F, Sun X. Fungal Growth Risk Prediction and Optimal Regulation Method for Food Storage Based on the Forward Reachable Set. Foods. 2026; 15(17):2975. https://doi.org/10.3390/foods15172975

Chicago/Turabian Style

Zhao, Zhiyao, Mengshan Li, Yuqin Zhou, Fan Zhang, and Xiaolei Sun. 2026. "Fungal Growth Risk Prediction and Optimal Regulation Method for Food Storage Based on the Forward Reachable Set" Foods 15, no. 17: 2975. https://doi.org/10.3390/foods15172975

APA Style

Zhao, Z., Li, M., Zhou, Y., Zhang, F., & Sun, X. (2026). Fungal Growth Risk Prediction and Optimal Regulation Method for Food Storage Based on the Forward Reachable Set. Foods, 15(17), 2975. https://doi.org/10.3390/foods15172975

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Article metric data becomes available approximately 24 hours after publication online.
Back to TopTop