Abstract
The formation of mycotoxins and potentially allergenic spores associated with fungal growth can cause spoilage of food and animal feed. This study integrated an improved genetic algorithm (IGA) in an adaptive neuro-fuzzy inference system (ANFIS) for predicting the presence of foodborne fungi and modeling their growth. The IGA enhanced the performance of the ANFIS model in predictive microbiology. Based on temperature, pH, and water quantity, the proposed IGA-ANFIS model can accurately predict the maximum specific growth rate of the ascomycetous fungus Monascus ruber. The model uses Gaussian membership functions to minimize the root-mean-square error, which was used as a performance index. Experiments verified that the prediction accuracy of the proposed IGA-ANFIS model is higher than those of existing neural network models and neural fuzzy network models.
Introduction
An adaptive neuro-fuzzy inference system (ANFIS) can effectively solve nonlinear mapping problems by using stipulated input–output data pairs [1–15]. Integrating an improved genetic algorithm (IGA) in ANFIS obtains even higher prediction accuracy compared to a conventional ANFIS model [16, 17]. For example, Ho et al. [18] demonstrated that, for predicting the efficacy of a vancomycin regimen, an IGA-ANFIS was more accurate than a conventional ANFIS. Thus far, the use of IGA-ANFIS for modeling the growth of foodborne fungi has not been reported yet. Because they can survive heat treatments and can grow under reduced oxygen levels, fungi are a major cause of food spoilage. For example, spoilage of fruit such as olives can result from changes in pH and from the development of a mycelial mat on the surface. Temperature, pH, and water activity are generally considered the controlling factors in fermentation and subsequent storage of table olives [19]. Therefore, regulating the combination of these factors can effectively control the growth of fungi during storage [20].
Fungi that cause food spoilage not only have negative economic effects by rendering food products unsaleable, they also have negative health effects by raising the risk of disease. Therefore, the food manufacturing industry has begun to use newly developed prediction models during product development in order to assess the risk of illness caused by foodborne microbes such as fungi and to enable rapid and cost-effective assessment of microbial growth [21, 22]. To ensure high food quality and safety, researchers in the food industry require effective tools for predicting fungal growth [23, 24].
Panagou and Kodogiannis [25] modeled the relationships among growth parameters (temperature, pH, and water activity) of foodborne Monascus ruber fungus and determined the desired output (maximum specific growth rate). Monascus, an ascomycetous fungus first identified by van Tieghem in 1884, is traditionally used to produce food coloring, fermented food, and beverages in Southeast Asia [26–42]. Pigments from the genus Monascus are used in the food industry to produce Chinese sausage, instant noodles, and dairy products and are used in the meat industry as a substitute for nitrite salts, which are precursors of nitrasamins [40, 43].
Neural network models have demonstrated higher prediction accuracy compared to conventional polynomial models [25]. In Ho et al. [44], a neural fuzzy network model with eight fuzzy rules outperformed earlier neural network models proposed by Panagou and Kodogiannis [25].
In the IGA-ANFIS model proposed in this study, the IGA used Gaussian membership functions for simultaneously optimizing premise and consequent parameters of the ANFIS model, which directly maximized the training accuracy performance criterion (i.e., root-mean-square error (RMSE)). Experiments were then performed to compare the prediction accuracy of the IGA-ANFIS with neural network models proposed by Panagou and Kodogiannis [25] and neural fuzzy network models proposed by Ho et al. [44].
Materials and methods
This study used the 73 data sets obtained by Panagou and Kodogiannis [25] in their experimental studies. Sixty data sets were used for training the proposed IGA-ANFIS model, and the remaining 13 data sets were used for testing the model. The model parameters that have the largest effects on fungal growth are temperature (x1), pH (x2), and water activity (x3). Figure 1 shows the architecture of the ANFIS model used in the present study. The 27 fuzzy if–then rules used in ANFIS architecture were expressed as

Three-input, one-output ANFIS architecture with 27 fuzzy if-then rules.
where R l (l = 1, 2, …, 27) denotes the l-th implication; A i , B j , and C k (i, j, k = 1, 2, 3) are the linguistic terms of the precondition part with Gaussian membership functions μ A i (x1) , μ B j (x2) and μ C k (x3) , respectively; x1, x2 and x3 are the temperature, the pH value, and water activity, respectively; y l is the output variable; and p l , q l , r l and t l are the consequent parameters.
The ANFIS model output from Equation (1) is represented as
where
In the precondition part, the premise parameters use Gaussian membership functions μ
A
i
(x1) , μ
B
j
(x2) and μ
C
k
(x3). For example, a
A
i
and b
A
i
denote the center and the width of the Gaussian membership function μ
A
i
(x1) , respectively. The following RMSE objective function can obtain the Gaussian membership functions:
where α is the number of training data sets, R m is the actual experimental value, and y m is the predicted value.
According to Equation (3), the value J can be expressed as
Then, Equation (4) becomes the following optimization problem:
The IGA can then be used to solve the optimization problem in Equation (5), a nonlinear function with continuous variables [16].
For a direct comparison of the proposed IGA-ANFIS method with the neural network models developed by Panagou and Kodogiannis [25] and with the neural fuzzy network models developed by Ho et al. [44], the evolutionary environment of the IGA was set to a population size of 500, a crossover rate of 0.9, a mutation rate of 0.1, and a generation number of 500. The IGA-ANFIS model was trained with
Ranges of the premise and consequent parameters
Ranges of the premise and consequent parameters
Optimal premise and consequent parameters

Convergence results by using IGA.

Initial Gaussian membership functions for three growth parameters.

Final Gaussian membership functions for temperature (x1).
Table 3 shows that the proposed IGA-ANFIS model had higher prediction accuracy compared to the neural fuzzy network model and both neural network models. The RMSE values obtained by IGA-ANFIS model for the training dataset, Test dataset and full dataset (0.0524, 0.0555 and 0.0593, respectively) were superior to those obtained by the neural fuzzy network model (0.0588, 0.1614 and 0.0865, respectively), the neural network with radial basis functions (0.0630, 0.1670 and 0.0920, respectively), and the neural network with multilayer perceptron (0.0880, 0.1790 and 0.1100, respectively).

Final Gaussian membership functions for pH (x2).

Final Gaussian membership functions for water activity (x3).
Performance comparison of improved genetic algorithm in adaptive neuro-fuzzy inference system (IGA-ANFIS) model and other prediction models

Actual and predicted values compared between the IGA-ANFIS model and the neural fuzzy network model when using the training data set.

Actual and predicted values compared between the IGA-ANFIS model and the neural fuzzy network model when using the test data set.

Actual and predicted residual values compared between the IGA-ANFIS model and neural fuzzy network model when using the training data set.

Actual and predicted residual values compared between the IGA-ANFIS model and the neural fuzzy network model when using the test dataset.
Figures 7 and 8 further compare predictive performance between the IGA-ANFIS model and the neural fuzzy network model. The comparisons again show that the IGA-ANFIS model generally obtains a better model fit. Figures 9 and 10 compare residual value spreads for the two models. In both models, residuals are symmetrically distributed higher and lower than 0. However, the IGA-ANFIS model has a narrower distribution of residual values, which indicates superior prediction accuracy.
The comparison results indicate that the IGA-ANFIS architectures outperform the neural network and neural fuzzy network models under varied temperature, water activity, and pH conditions. The RMSE index and graphic plots agree that the performance of the IGA-ANFIS model was superior in the training sets and in the full data sets and obtained reasonably good predictions in the test data set. The IGA-ANFIS is mainly intended for use in predictive microbiology, and the results indicate that it increases accuracy in predicting kinetic parameters of fungi. Thus, the proposed IGA-ANFIS model provides an alternative modeling approach in predictive mycology.
Footnotes
Acknowledgments
This work was partially supported by the Ministry of Science and Technology, Taiwan under grants MOST 106-2221-E-037-001, MOST 106-2622-E-037-005-CC3, MOST 106-2218-E-327-001, MOST 107-2221-E-037-006, MOST 107-2218-E-992-308, and the “Intelligent Manufacturing Research Center” (iMRC) from the Featured Areas Research Center Program within the framework of the Higher Education Sprout Project by the Ministry of Education (MOE) in Taiwan.
