Abstract
Microrisk Lab is an R-based online modeling freeware designed to realize parameter estimation and model simulation in predictive microbiology. A total of 36 peer-reviewed models were integrated for parameter estimation (including primary models of bacterial growth/inactivation under static and nonisothermal conditions, secondary models of specific growth rate, and competition models of two-flora growth) and model simulation (including integrated models of deterministic or stochastic bacterial growth/inactivation under static and nonisothermal conditions) in Microrisk Lab. Each modeling section was designed to provide numerical and graphical results with comprehensive statistical indicators depending on the appropriate data set and/or parameter setting. In this study, six case studies were reproduced in Microrisk Lab and compared in parallel with DMFit, GInaFiT, IPMP 2013/GraphPad Prism, Bioinactivation FE, and @Risk, respectively. The estimated and simulated results demonstrated that the performance of Microrisk Lab was statistically equivalent to that of other existing modeling systems. Microrisk Lab allows for a friendly user experience when modeling microbial behaviors owing to its interactive interfaces, high integration, and interconnectivity. Users can freely access this application at
Introduction
Predictive microbiology has been developed as an effective tool for understanding the behavior (growth, survival, or inactivation) of the microorganism of interest under different environmental conditions and estimating the contamination level (Geeraerd et al., 2005; Augustin, 2011; González et al., 2019). It is an indispensable method for quantifying and describing the bacterial dynamics by mathematical modeling for their behavioral prediction (Ross and McMeekin, 1994; Peleg and Corradini, 2011; Baranyi and Buss da Silva, 2017). Using computer programs is an efficient way to implement the complicated numerical analysis and graphical visualization (Huang, 2014).
For kinetic analysis or parameter estimation, mathematical computing environments, such as R (
Some modeling systems place more emphasis on simulating or predicting the bacterial concentration level under different environmental conditions, which is usually called the tertiary model in predictive microbiology (Whiting and Buchanan, 1993). The Pathogen Modeling Program (USDA, 2016), ComBase Predictor, and Computational Biology Premium (
Currently, complex factors are considered to understand the microbial behaviors in the real food chain, such as the coexistence of multiple microorganisms, and the concentration change under dynamic environments (Iannetti et al., 2017; Li et al., 2017; Göransson et al., 2018; Hwang and Huang, 2018; Ndraha et al., 2018). The free tools of ComBase Predictor, IPMP Dynamic Prediction (USDA, 2017), GroPIN (
This research introduced the main features of a new online modeling system named Microrisk Lab. Six case studies were implemented to describe the functionality and performance of this application for parameter estimation and model simulation in predictive microbiology. The first version of Microrisk Lab is deployed on the
Materials and Methods
Design logic and programming basics
Microrisk Lab was designed as an R-based web application with a user-friendly interface for performing parameter estimation or model simulation studies in predictive microbiology. Several basic R packages, such as “ggplot2” (Wickham et al., 2019), “mc2d” (Pouillot et al., 2010), and “Metrics” (Hamner et al., 2018), were referenced in this tool for mathematical and statistical analysis (Supplementary Data). Meanwhile, the platform of “Shiny” (

The structural framework of Microrisk Lab was divided into the “Estimation” and “Simulation” modules (Fig. 1B) for microbial kinetic analysis and simulation, respectively. In the “Estimation” module, the least-squares method was implemented to search the optimized model parameter, which was conducted by the nls function in the “stats” package. Both “NL2SOL” (for the nonisothermal analysis) and Gauss–Newton (for other analyses) algorithms were used in Microrisk Lab. In the “Simulation” module, the microbial deterministic or stochastic growth and inactivation could be simulated by defining the model type, microbial kinetic parameter, and temperature condition (or time-temperature profile). For the stochastic simulation, the probability distributions of Uniform, Normal, Lognormal, Gamma, and Logistic were performed by using the Monte Carlo method.
Mathematical models and statistical indicators
In the current version, Microrisk Lab contains 36 peer-reviewed models mentioned in most of the predictive microbiology studies implementing the microbial kinetic analysis and simulation (Supplementary Tables S1–S3). Specifically, 20 explicit equations were chosen by considering different shapes of the growth/inactivation curve for microbial dynamics under static conditions, and 10 secondary models were selected in view of the impact of temperature/pH/water activity on the specific growth rate, two piecewise functions were applied to describe two flora competition growth, and four groups of ordinary differential equations were presented by combining the primary model and secondary models for microbial growth/inactivation under nonisothermal conditions.
The second-order Runge–Kutta method or Heun's method (Press et al., 2007) was applied to solve the ordinary differential equations in the nonisothermal kinetic analysis. During the computational procedures, predicted value of the nonisothermal growth/inactivation was calculated using the Runge–Kutta method, corresponding to each of the sampling times for bacterial counting. Then, the predicted values were applied to match the observed values using a nonlinear least-squares function to determine the optimized parameter estimation. The time step (0.1, 0.01, or 0.001) was selected by the user in the regression of nonisothermal growth and inactivation.
The results of the model parameter, that is, the estimated value, standard error, and lower and upper 95% confidence intervals, were provided by the R package of “stats” and “nlstool.” Meanwhile, several statistical indicators were examined to evaluate the goodness of fit between observed and predicted values, such as the residual sum of squares (Draper and Smith, 1998), mean sum of squared error (MSE; Geeraerd et al., 2005), root MSE (RMSE; Ratkowsky, 2003), regular Akaike information criterion (AIC; Akaike, 1974), corrected AIC (AICc; Burnham and Anderson, 2003), and Bayesian information criteria (BIC; Schwarz, 1978). As pointed out by Ratkowsky (2003), the coefficient of determination (R 2, Rawlings et al., 2001) and the adjusted coefficient of determination (adjusted R 2, Rawlings et al., 2001) might be inappropriate for evaluating the nonlinear models. Thus, Microrisk Lab provided these two indicators only for linear models. In addition, in the stochastic simulation, the Pearson correlation coefficient was calculated to measure the linear correlation between different model variables and the final bacterial concentration, and was visualized as a tornado plot. The equations of the aforementioned indicators are listed in the Supplementary Data (Eqs. S1–S10).
Evaluation of Microrisk Lab
To evaluate the performance of Microrisk Lab, we collected six data sets (Supplementary Tables S4–S9) from the published articles and laboratory observations as six case studies: the isothermal growth of Listeria monocytogenes (Case I; Buchanan and Phillips, 1990), the isothermal inactivation of Salmonella enterica (Case II; Wang et al., 2017), the effect of temperature on the maximum specific growth rate of Salmonella Typhimurium (Case III; Oscar, 2002), the nonisothermal growth of L. monocytogenes (Case IV; unpublished data), the nonisothermal inactivation of Bacillus sporothermodurans IC4 spores (Case V; Garre et al., 2017), and the stochastic growth of S. Typhimurium individual cell (Case VI; Koutsoumanis and Lianou, 2013).
Case I–III focused on the primary and secondary modeling. Three integrated freeware and a numerical analysis system (Excel DMFit 3.5, GInaFiT 1.7, IPMP 2013, and GraphPad Prism 7.0 [GraphPad Software]) were separately applied for regression and comparison in parallel with Microrisk Lab. Case IV and V were used to introduce the availability of Microrisk Lab for nonisothermal growth and inactivation modeling. Since there were no other integrated systems specialized for the kinetic analysis of nonisothermal growth, only Bioinactivation FE (Garre et al., 2018) was applied for comparison with Microrisk Lab for the nonisothermal inactivation modeling. Case VI was a simulation example to show stochastic growth of an individual cell when considering the uncertainty and variability. The Monte Carlo simulation was performed in both Microrisk Lab and @Risk for Excel 6.0 (Palisade Corporation) for comparison.
Results
Practical examples for the primary and secondary modeling
When using Microrisk Lab for modeling, observed data or settings can be easily typed in the data dialog or pasted from other table files. If the regression is successful, the results of the parameter estimation and model evaluation are presented together with an interactive plot. Users can specify the number of significant digits and directly save the fitted curve as a local image file (Portable Network Frame file, Figs. 2 and 3), or download the generated data for replotting in other graphing systems.

The fitted curve of

The fitted curve of Case IV with
The data for Case I were obtained from the ComBase browser (ComBase ID: LM127_11), based on the measurement of the growth of L. monocytogenes in tryptose phosphate broth from Buchanan and Phillips (1990). To compare with the Excel DMFit, the “Complete Baranyi model” in Microrisk Lab was chosen to determine the kinetic parameters of L. monocytogenes. Figure 2A shows the fitting curve downloaded from Microrisk Lab. Supplementary Table S10 lists the results of the estimation and evaluation in the Microrisk Lab, DMFit, and GraphPad. It should be noted that the two curvature parameters of the model need to be determined and fixed before regression in DMFit. According to the manual for Excel DMFit, the default values for the two curvature parameters are nCurv = 1 and mCurv = 0, respectively. In contrast, all estimable parameters were determined by globally searching for the optimized estimates in Microrisk Lab and GraphPad, which might have caused the discrepancy. The evaluation indicators and standard errors of the parameters became closer when increasing the value of nCurv from default 1 to 2 in Excel DMFit. Since the model evaluation indicators were different between DMFit tools and others, we further calculated the adjusted R 2 according to the regression in Microrisk Lab for comparison. The results illustrate that the goodness of fit has no obvious differences between Microrisk Lab, GraphPad, and DMFit with different curvature settings.
According to the suggestion by the author of Case II, the inactivation of S. enterica in brain heart infusion under 60°C can be described by the “Log-linear + Shoulde” model in GInaFiT, which is the same as the “No-tail Geeraerd model” in Microrisk Lab (Fig. 2B). As listed in Supplementary Table S11, the results of the estimated parameters and evaluation indicators show no difference between Microrisk Lab and GInaFiT when using the same model.
Furthermore, the observed effect of temperature on the maximum specific growth rate of S. Typhimurium in chicken breast is similar in Microrisk Lab, IPMP 2013, and GraphPad by the cardinal parameters model (Supplementary Table S12 and Fig. 2C). Note that the equation of AIC built-in IPMP 2013 was referred to the study by van Boekel and Zwietering (2007), which was different from that of the built-in Microrisk Lab. The aforementioned results indicated that Microrisk Lab is as accurate as the other integrated systems for primary and secondary modeling studies.
Practical examples for the dynamic modeling
In Case IV, an unpublished study on L. monocytogenes growth in cooked beef samples under fluctuating temperatures was introduced for the nonisothermal growth modeling. During the experiments, four L. monocytogenes strains (serotypes 1/2a, 1/2b, 1/2c, and 4b; isolated from meat) were inoculated in a heat-treated ready-to-eat braised beef product (ca. 1% NaCl, pH = 6.2, a w = 0.983) and incubated in an air-packaged sterile stomacher bag under the fluctuating temperatures between 5°C and 40°C. Both the time-temperature profile and bacterial counting data were required for the dynamic analysis. The initial hypotheses of the model parameters were required to assist in regression convergence easily. According to previous studies (ICMSF, 1996; Magalhães et al., 2014), L. monocytogenes probably has a growth temperature range of 0–45°C, with an optimal specific growth rate of ∼1 ln CFU/h (or 1/h) at 37°C in meat products. The initial hypotheses (default values) of q 0, A, and m are preset as 1 in Microrisk Lab when there is no reliable basic knowledge of these parameters. With the aforementioned initial settings, both regressions converged successfully (Fig. 3A and B). The microbial growth parameters were obtained from Microrisk Lab with measurements under nonisothermal conditions in a single analysis. Meanwhile, the Baranyi-Cardinal parameter model and Huang-Cardinal parameter model may well describe the nonisothermal growth of L. monocytogenes in cooked beef (Supplementary Table S13).
Similarly, with the microbial enumeration data and time-temperature profile in Case V, the nonisothermal inactivation fitting could be performed using the dynamic Bigelow model in Microrisk Lab (Fig. 3C). The initial hypotheses of the estimable parameters were quoted from the primary study (Supplementary Table S14), where the referenced temperature was fixed to 120°C (Garre et al., 2017). The obtained estimations of Microrisk Lab are close to those of Bioinactivation FE (Supplementary Table S14). It should be noted, however, that different numerical analysis methods in Microrisk Lab and Bioinactivation FE might cause different truncation errors in a regression (Butcher, 2016). Thus, the evaluation indicators of AIC, AICc, and BIC provided from different modeling platforms for model comparison should be carefully examined.
Practical example for the stochastic growth simulation
The stochastic-type model can be applied to the static simulation in Microrisk Lab by defining the distribution of different model variables. As previously mentioned, the behavior of microorganisms may be quite different when the population size decreases to the single-cell level. Thus, it is necessary to consider the uncertainty and variability of cells during the simulation. In the referenced study of Case VI, Koutsoumanis and Lianou (2013) described the growth of S. Typhimurium at the different single-cell levels by establishing a stochastic model. Depending on the condition for the software of @Risk for Excel, the parameter setting of Microrisk Lab was listed in Supplementary Table S9, and the simulated results are presented in Figure 4A and B based on the Buchanan model. The probability distribution of the specific growth rate and final bacterial concentration is provided with the mean value and standard deviation in Figure 4C. According to the definition of the coefficient of variation (%CV = 100 × standard deviation/mean) in the original study, the estimated %CV for S. Typhimurium final concentration was also ∼25.5% in Microrisk Lab. The aforementioned results demonstrate that Microrisk Lab can perform a Monte Carlo simulation for bacterial stochastic modeling. Moreover, Figure 4D shows the tornado graph of the sensitivity analysis of bacterial counts obtained using different associated parameters. Thus, restricted by the aforementioned settings, the uncertainty of the duration of growth time has a relatively higher impact (than other variables) on the bacterial count during the stochastic growth of S. Typhimurium single cell.

Monte-Carlo simulation of 1 cell growth with 10, 000 iterations in
Discussion
In recent years, software development has become an important topic for modelers to facilitate the application of predictive microbiology (Tenenhaus-Aziza and Ellouze, 2015; González et al., 2019). Packages integrated comprehensive microbial models, such as DMFit, IPMP, and GInaFiT, significantly reduce the work burden of relevant modelers on curve fitting, parameter estimation, and model evaluation. Microrisk Lab was developed for a similar purpose, which additionally provides improvements on model options, statistical indicators, and usability. The web-based architecture allows users to access the latest version of Microrisk Lab through any internet-connected device without coding and installation.
Because a reliable tool must provide accurate results, we introduced six modeling tasks and compared them with other peer-reviewed packages to validate the availability and functionality of Microrisk Lab. Practical examples elucidated that there was no statistical difference between the results obtained from Microrisk Lab and other existing modeling systems in both regression and simulation studies.
However, the model applicability and functionality of Microrisk Lab still need to be expanded in future updates. For example, the integrated model should focus on the impact of the interaction between different intrinsic or extrinsic factors on microorganisms. The optimal model can be recommended automatically according to the input data. Regression and simulation should be developed with more algorithms, such as the Levenberg–Marquardt and adaptive Markov chain Monte Carlo algorithms provided in Bioinactivation FE (Garre et al., 2018). The Latin Hypercube sampling method should also be considered to improve the stochastic sampling efficiency (Ding et al., 2013; Membré and Boué, 2018; Dogan et al., 2019).
In summary, Microrisk Lab can be easily applied in microbial predictive modeling, especially for kinetic analysis under nonisothermal conditions. This freeware may serve as a reliable modeling tool and a useful educational resource for predictive microbiology.
Footnotes
Acknowledgment
We thank Dr. Lihan Huang in the Eastern Regional Research Center of USDA, USA, for his helpful guidance on the R programming. The preprint of this study was previously deposited in the bioRxiv server at
Disclosure Statement
No competing financial interests exist.
Funding Information
This work was supported by the National Key Research and Development Program of China (Grant No. 2019YFE0103800) and the National Natural Science Foundation of China (Grant No. 12071293).
Supplementary Material
Supplementary Data
Supplementary Table S1
Supplementary Table S2
Supplementary Table S3
Supplementary Table S4
Supplementary Table S5
Supplementary Table S6
Supplementary Table S7
Supplementary Table S8
Supplementary Table S9
Supplementary Table S10
Supplementary Table S11
Supplementary Table S12
Supplementary Table S13
Supplementary Table S14
References
Supplementary Material
Please find the following supplemental material available below.
For Open Access articles published under a Creative Commons License, all supplemental material carries the same license as the article it is associated with.
For non-Open Access articles published, all supplemental material carries a non-exclusive license, and permission requests for re-use of supplemental material or any part of supplemental material shall be sent directly to the copyright owner as specified in the copyright notice associated with the article.
