1. Introduction
Rapeseed (Brassica napus L.) is one of the most important species among protein-oil crops grown in regions of moderate climates. The development of improved rapeseed varieties, i.e., free from harmful erucic acid and with a reduced glucosinolate content (the so-called double zero varieties “00”), has increased interest in this crop over the past decades. As a result, a significant increment in rapeseed cultivation has been observed and consequently, its world production has increased on average from 10.8 million tons in 1980 to 75.0 million tons in 2018. In the last years (2009–2018) the largest rapeseed producers included Canada (24.6%), China (13.7%), India (7.4%), France (5.1%), Germany (7.3%), Australia (4.7%), Poland (3.5%) and the United Kingdom (3.3%), (
http://www.fao.org).
Rapeseed plays an essential role in global agriculture and constitutes an important crop for many industries. In the food industry, it is one of the main raw materials, and its usefulness results, among others, from the fact that it contains a high level of oil characterized by a favorable fatty acid composition. Rapeseed oil is also a rich source of bioactive components with pro-health properties [1–3], which opens the possibility of its use in functional food production. In addition to oil that is a part of a healthy human diet, rapeseed residue (after oil extraction) is also a high-protein alternative to other raw materials in animal nutrition.
Due to its structure and chemical composition rapeseed is a very sensitive raw material that can easily deteriorate; therefore, maintaining its high-quality for the food industry is not an easy task and requires proper seed treatment. As rapeseeds after harvest are usually stored before being processed, apart from ripening and harvesting conditions, postharvest seed treatment is of particular importance for their quality. It is known that improperly performed postharvest preservation and storage processes may contribute to undesirable changes in the rapeseed nutritional and technological quality, such as decreased seed germination, increased levels of free fatty acids, and the development of undesirable odors [3–6]. Inappropriate rapeseed postharvest treatment may also intensify oxidative processes and thus affect its composition [7]. One of the major problems during rapeseed preservation and storage is connected with seed contamination with filamentous fungi. Increased rapeseed moisture content (above 8%) promotes mold activity in a mass of seeds even at low temperatures [6]. Fungal development in a bulk of rapeseeds may not only enhance the processes related to oxidation of fatty acids and other native biological compounds, but it may also result in the production of mycotoxins that can enter the human food chain through consumption of cooking oil or animal origin products (via feed produced from contaminated oil cake residues) [8].
The increasing rapeseed production requires appropriate postharvest seed treatment to minimize deterioration of their quality and to maintain food safety; therefore, the objective of modern agricultural postharvest management is to search for new effective control systems to preserve seed quality. Some studies on sensors designated to assess the level of mold contamination in seeds have been conducted using the e-nose technique or NIR hyperspectral imaging technique [5,9–11]. These techniques identify changes that have already occurred, but for manufacturers, it is more important to gain knowledge indicating hazards before they appear; therefore, in addition to the development of techniques signaling the fungal activity, prognostic tools need to be developed which in advance would provide predictions of the risk of mold growth and thus significantly improve postharvest management systems.
Predictive microbiology is based on knowledge of the nature of microbial development and it focuses mainly on mathematical models describing the impact of environmental factors on the kinetics of microbial growth. There are kinetic models describing changes in microbial populations in time under specific constant conditions (primary models), models describing dependences of the primary model parameters on environmental factors affecting microbial growth (secondary models), and models integrating primary and secondary models (tertiary models) describing fungal growth under dynamic conditions [12,13]. The most frequently used primary models of microbial growth are based on the modified Gompertz equation [14] and the Baranyi and Roberts equation [15]. The wide application of the above-mentioned kinetic models results from the fact that they follow a sigmoidal pattern reflecting typical microbial growth curves consisting of three characteristic phases, i.e., the lag phase (the phase without growth, being an adaptation of microorganisms to environmental conditions), the exponential growth phase (the phase of intensive microbial growth) and the stationary phase (the phase, being a state of ecosystem saturation with the microbial population). Nevertheless, the main advantage of used equations (similarity to the typical microorganism growth curve) may also be their drawback, as their use demands growth data covering all the three parts of the sigmoidal growth curve. This requirement makes it impossible to use the modified Gompertz and Baranyi and Roberts equations to model data obtained in experiments, in which microorganisms did not reach the third or the second and third phases of growth. Therefore, it is still worth looking for methods that do not require such far-reaching assumptions, particularly since the problem at the first stage of modeling (i.e., formulation of primary models) hinders the construction of secondary and tertiary models.
In recent years artificial neural networks (ANNs), which can describe nonlinear systems without prior requirements, have become an alternative to the existing kinetic models simulating microbiological growth. The structure and operation of artificial neural networks imitate the structure, signal flow, and transformation existing in the human nervous system. The basic units of the ANNs are neurons (nodes) arranged in a layer structure, in which neurons of the successive layers are connected by links of different weights. Neurons are equipped with activation functions, which enable them to perform calculations transforming input variables into output signals.
In previous studies, ANNs were used in food safety and quality assessment to develop a computer vision technology providing its classification ability based on recorded images (via color, shape, and texture inspection) [16–21]. A combination of ANNs with measurement of volatile compounds, or with analysis of infrared or near-infrared spectra to evaluate the microbial state of food products was also undertaken [22–24]. Recently, in prognostic microbiology, attempts have also been made to apply tools using ANNs to assess the risk of microbial development based on environmental conditions. As emphasized by Jeyamkondan et al. [25], ANNs are robust and have the inherent ability to deal with high biological variability and the uncertainty related to microorganism growth; therefore, they may potentially be used to model dynamic microbiological systems. The application of ANNs in the predictive modeling of microorganism growth under various physical and chemical conditions has been previously reported in several papers [25–31]. Nevertheless, most studies focus on the description of bacterial growth and it is usually done under ideal laboratory conditions. Predicting modeling of filamentous fungi development with the use of neural networks has received much less attention to date. To our knowledge, only very few studies have considered the use of a neural network to model mold growth. Panagou et al. [32] and Panagou and Kodogiannis [33] developed ANN models to estimate the maximum specific growth rate of Monascus ruber and demonstrated that neural network architectures provided better predictions than the classical polynomial secondary models formulated as a function of temperature (T), water activity (aw) and pH. The usefulness of multilayer perceptron (MLP) and radial basis function (RBF) networks to estimate ochratoxin A concentration over time in grape-based cultures of Aspergillus carbonarius under different conditions of temperature, water activity, and various doses of the fungicide carbendazim was proved by Mateo et al. [34]. Promising results were also demonstrated for the prediction of deoxynivalenol levels in the grain of barley contaminated with Fusarium culmorum [35].
It is worth emphasizing that even the best modeling techniques will not be effective if it is not based on accurate data. A key assumption when developing prognostic tools for postharvest systems is that they should be constructed on data taken from experiments carried out in ecosystems as close as possible to real ones. The lack of actual data encompassing the entire range of conditions being of producers’ interest is one of the most important shortcomings in the development of such tools [12]. Admittedly, broth-based models or growth models of individual fungal species on cereal matrices developed based on data obtained under ideal laboratory conditions (on Petri dishes instead of a bulk of seeds) have been widely described in the literature [32,33,36–38]. However, their application as prognostic tools for the real food systems is not reliable, as models obtained under arbitrarily modified experimental conditions may not accurately reflect fungal growth in actual systems [39–41]. In the case of stored rapeseed, the gap in reliable data that can be used while modeling is filled with results obtained by Wawrzyniak et al. [6] describing dynamics of fungal development in a bulk of seeds stored over a wide range of temperature and water activity in seeds. The availability of data reflecting the actual conditions that may be found in a stored mass of seeds, e.g., in a silo, provides grounds for an attempt to develop a model that could be used in postharvest systems. To our best knowledge, there are no studies regarding the application of artificial intelligence to forecasting the level of fungal infection in a mass of rapeseeds in relation to storage conditions; therefore, the object of this work is to study the ability of artificial neural networks to predict the level of fungal population in a bulk of rapeseeds stored under different temperature and humidity conditions.
2. Materials and Methods
2.1. Experimental Data
The experimental data were taken from the research by Wawrzyniak et al. [6], which investigated mold growth in rapeseed ecosystems with an initial level of fungal propagules reflecting the mycological state of seeds vegetated or harvested under adverse weather conditions. In that study, the long-term experiments (48–72 days depending on storage conditions) were carried out to examine the impact of various temperature (T = 12–30 °C) and humidity conditions (aw = 0.75–0.90) on mold development in ecosystems of stored rapeseeds. The temperature and water activity in seeds (i.e., equivalent of the adequate air relative humidity in inter-seed spaces at the equilibrium state (ERH), where ERH = 100 aw,%) that were applied during storage experiments are presented in Table 1. Each of the sixteen storage experiments (conducted at a given temperature and humidity conditions) was performed in duplicate. During that time, samples of rapeseeds were taken systematically, and then to designate the level of mold contamination in seeds the number of colony-forming units of molds per 1 g of seeds (CFU g-1 of molds) was determined in triplicate.
2.2. Data Sets Used for Modeling
The decimal logarithm of mean values of the colony-forming units of molds (log(CFU), log(cfu g-1)) was used to model fungal contamination in stored seeds as a function of temperature, water activity, and time with the use of ANNs. During the model development, the CFU of molds through the whole lag-phase of fungal growth was assumed to be equal to the initial level.
To develop the neural network model of mold contamination (NNMMC) in a bulk of rapeseeds, the data collected during storage experiments (296 cases) were divided into three groups. The model was built on data obtained in twelve experiments (222 cases, from which 153 were used as training points and 69 as testing points), whilst data from the remaining four experiments (74 cases) was used for model validation. Consequently, the training, test, and validation data sets constituted 52, 23%, and 25% of the entire experimental data set, respectively. The names of the individual datasets were consistent with the terminology used in the StatSoft software 13.3, i.e., the training data set was applied to network learning (training); the test data set attended in the network examination during the learning process and it interrupted this process when there was the threat of network over-fitting, and the validation data set that was not involved in the network construction process, but it participated in the final evaluation of the developed neural network. Data set naming conventions need to be underlined here, as in the machine learning literature the names of test and validation data sets are used interchangeably, which is a source of many misunderstandings.
2.3. Neural Network Models of Mould Contamination
Feedforward neural networks (in which data pass the subsequent layers only from the input through hidden layer(s) to the output layer), such as the multilayer perceptron (MLP) and radial basis function (RBF) networks, are the most commonly used in the food industry and chemical engineering [27,33,34,42,43]. In the above-mentioned network types, the neurons of the input layer convey independent variables through connections (with assigned specific weights) to neurons in the hidden layer. The neurons of the hidden layer transform the signals using the activation function and convey calculated values through connections (which also have assigned specific weights) to neurons in the output layer. In neuron(s) of the output layer, the signals are further processed by the activation function to form the final network responses. The main difference between the MLP and the RBF networks stems from its different learning strategies (global vs. local) [33], which follows from the properties of activation functions in the hidden layer neurons. In the case of MLP networks, neurons of the hidden layer usually contain a sigmoidal activation function (i.e., a logistic or hyperbolic tangents function), therefore a single neuron divides the points belonging to the space of independent variables into two groups and it is activated for points belonging to one group, while not being activated for points belonging to the other one (the so-called linear separation). In the case of RBF networks, the neurons of the hidden layer are assigned to specific points in the space of independent variables (the so-called activation center) and contain a radial activation function (usually a Gaussian function), therefore a single neuron is activated only within a small (defined by the parameters of the activation function) neighborhood of this point. As a result, in the case of MLP networks, a single input signal can activate several neurons and then all these activated neurons participate in the calculation of the network output, while in the case of RBF-based networks a single input signal usually activates a single neuron of the hidden layer and only the weight between the activated hidden and output neurons is used to compute the value of the network output. Another difference between MLP and RBF networks is that the MLP networks can include several hidden layers, while RBF networks are structures that always contain only a single hidden layer.
In the study, the MLP with a single layer and the RBF-based neural network were used to describe the dynamics of mold development in bulk stored rapeseeds. In both types of networks, the input layer was composed of three neurons, to which independent variables (water activity in seeds, temperature, and storage time) were assigned. The output layer was composed of a single neuron producing the network outcome in the form of predicted values of fungal population levels. The hidden layer structure was designated in the process of network architecture optimization. Networks with a different number of neurons in the hidden layer, ranging from two to sixteen for MLP networks and two to fifty for RBF networks, were tested in the process. Moreover, at this stage of neural network model development different configurations of activation functions in the hidden and the output layer neurons were examined (Table 2).
For each size of the hidden layer and for each configuration of transfer functions in neurons of the hidden and output layers one thousand networks were generated. As a result, one hundred and thirty-five thousand networks (fifteen hidden layer sizes x nine configurations of activation functions (Table 2) x one thousand generated networks for each structure) were developed for MLP structures and forty-nine thousand networks for RBF-based structures. From every thousand networks generated for each topology, the top one hundred structures characterized by the lowest validation error were retained for further deliberations.
The general scheme for the architecture of the MLP and RBF neural networks that were used to develop the model of mold contamination in bulk stored rapeseeds is presented in Figure 1.
The network architectures were optimized during the training (learning), testing, and validation processes. The performance of each neural network in subsequent stages of model building was judged with the use of the sum-of-squares error function. The ANN training process consisted in an iterative modification of the strength of the connections between neurons of adjacent layers and modification of the parameters of activation functions. It aimed to minimize the training (learning) error (El) and it was conducted with the use of the training data set [42]. Simultaneously, to assess the correctness of the training process in each iteration the test error (Et) was calculated based on the test data set. The training process is usually carried out until the assumed number of iterations is reached, but it may be interrupted earlier if the training error stops decreasing or when the decreasing training error is accompanied by an increase in the test error, which usually indicates the network over-training. The neural networks may be trained by different algorithms, i.e., Levenberg–Marquardt (LM), Broyden–Fletcher–Goldfarb–Shanno (BFGS) and Genetic Algorithms (GA) as well as Reputation-based Byzantine Fault Tolerance (RBFT) [33,34,42,44]. In this study, iterative methods (training algorithms) dedicated to nonlinear optimization problems (StatSoft software 13.3) were used, such as the Broyden–Fletcher–Goldfarb–Shanno for MLP networks and Reputation-based Byzantine Fault Tolerance for RBF networks. Because the process of optimizing the network topology is considered successful only if the produced structure can perform well on data, on which the network has not been built [45], after its development the validation process was carried out. During this process conducted with the use of data obtained in independent experiments for each tested network, a validation error (Ev) was computed to assess its generalization ability and capacity to work with new data. The artificial neural network modeling was carried out with the use of the neural network module being a part of the StatSoft software 13.3. The MLP and RBF networks that most effectively described changes in fungal population levels were adopted as the models of mold contamination in a bulk of rapeseeds.
2.4. Model Performance Assessment
In the study, the statistical criteria recommended for the validation of prognostic models were employed to evaluate the performance of selected MLP and RBF neural network models and their practical suitability, [25,46,47]. The coefficient of determination (R2) was used to establish the fitting accuracy of the models. The average absolute deviation between predictions and observations was determined using the mean absolute error (MAE), whilst the goodness of fitting the predicted values to the experimental data was calculated by the root mean square error (RMSE). Bias indexes that inform on the mean divergence between the model predictions and experimental values included the mean relative percentage error (MRPE, %) and the bias factor (Bf) and were determined as follows:
where log(CFUE) and log(CFUM) are the experimental and modeled levels of mold contamination, respectively, and n is the number of observations. The absolute distance between estimations and observations was measured with accuracy indexes, i.e., the mean absolute relative percentage error (MAPE, %) and an accuracy factor (Af) calculated with the following expression:
3. Results and Discussion
3.1. Neural Network Models of Mould Contamination
Artificial neural networks are one of the most powerful modeling methods in solving engineering problems, particularly those associated with highly interconnected structures, in which various relationships occur and where there is no basis for linear approximation [25,42]. Due to their flexibility, high prediction accuracy, high generalization ability, and resistance to noisy data, the application of ANNs to model complex systems seems to be a promising approach [26,48]. As a bulk of rapeseeds is a dynamic multiplex ecosystem, in which a variety of non-linear interactions take place, in the study an attempt was made to apply ANNs to design a predictive model of mold development in a stored mass of seeds. For this purpose data covering a wide range of storage parameters that may be encountered in agricultural practice (i.e., from low values of water activity in seeds (aw = 0.75) and low temperature (T = 12 °C), at which seeds can be stored without considerable seed quality losses for a long time to very adverse conditions, i.e., high values of water activity in seeds (aw = 0.90) and high temperature (T = 30 °C), at which lack of proper postharvest treatments almost immediately leads to seed quality deterioration [1,3,6]) were modeled using two approaches based on the neural network technique (MLP and RBF).
The capability of the network to approximate the analyzed data largely depends on the network structure, which includes among others the number of hidden layers (only in the case of MLP networks), the size of hidden layers, and the type of transfer function in hidden and output layer neurons. As it was emphasized by Panagou et al. [33], there are no rules that would clearly in advance indicate the topology of the neural network at the stage of its design. The most common way to optimize the network structure is a trial-and-error method [49], in which the process starts with a small and simple architecture and consists in adding new units when necessary. This is usually done empirically by comparing the results of each created structure to find the one with the best approximation capability.
In the study, the optimal MLP and RBF network structures were found out iteratively by testing numerous architectures and observing their training, testing, and validation errors.
3.1.1. Model Based on MLP Networks
In the previous reports, various structures of neural networks were examined when modeling microbiological systems [27,29,33,34]. It was revealed that the use of the MLP containing a single hidden layer was usually sufficient for non-linear regression [27,29,50]. It is in agreement with Cybenko’s theorem, according to which feedforward neural networks with a single hidden layer and a continuous sigmoidal activation function contained in neurons of this layer can approximate any continuous function on compact subsets within any level of precision [51]. In the study, the MLP neural network with a single hidden layer also turned out to be sufficiently good to model the mycological state of bulk stored rapeseeds.
The optimization process of a network structure (including the selection of the type of the activation function in neurons of the hidden and output layers and the size of the hidden layer) allowed us to determine the most suitable architectures for the MPL neural network model describing the mold population in rapeseed ecosystems. Among the tested MLP network architectures, the worst ones turned out to be those containing hidden layer neurons with a linear activation function. The mean values of training and test errors calculated for networks comprising a linear activation function in hidden layer neurons (regardless of the hidden layer size and a transfer function in the output layer neuron) did not change much and were in the range of 0.15–0.28 and 0.10–0.22 for the training and test errors, respectively. The relatively high levels of both these errors, together with high values of the mean validation error (0.18–0.29) disqualified the use of the above-mentioned architectures in the modeling of mold development. As a result, the network architectures that contained the linear transfer function in the hidden layer neurons were excluded from further deliberations.
For the other analyzed structures, the training and test errors were significantly lower and decreased with an increase in the number of neurons in the hidden layer (Figure 2). The greatest drop in mean values of training and test errors was observed for networks containing from two to eight neurons in the hidden layer. A further increase in hidden layer size (to nine and more neurons) changed the values of both errors within a narrow range only (0.008–0.014 for the training error and 0.011–0.018 for the test error). The downward trend in the training and test error values is because the networks with a small number of hidden neurons are too weak to map complex relationships [45], thus to increase its learning ability the hidden layer of larger size is required. Although for all network architectures retained for considerations the general trend in values of the above-mentioned errors was comparable, a thorough examination of Figure 2 showed that in the case of networks, in which the activation function in the output layer took the same form, the course of curves was the most similar to each other (regardless of the type of the activation function in the hidden layer neurons). The curves assigned to the networks with the same type of the transfer function in the output layer (Figure 2) formed groups indicating that the activation function in the neurons of the output layer has a greater impact on the training and test error values than the type of transfer function in the hidden layer neurons.
It is noteworthy that the network evaluation through the prism of training and testing errors only is insufficient and may lead to misleading conclusions. The over-trained networks are usually characterized by low training and test errors, but at the same time have poor generalization ability and are not capable of properly operating on the new data. The proper assessment of network performance should be based on the validation error that is a measure of network performance on data not used in model building. The influence of the hidden layer size and the type of transfer functions on the mean values of the validation error obtained for topologies considered in this study is illustrated in Figure 3.
It is evident that for the examined architectures the impact of the type of activation functions in the output layer neurons on the level of the validation error is even greater than on values of the training and test errors. In the case of networks with the logistic function at the output, the values of the validation error changed to a limited extent and remained at a higher level (0.040–0.049) compared to the other tested topologies. Moreover, the validation error for networks with the Tanh/Log configuration of activation functions containing more than ten neurons in the hidden layer showed an upward trend, indicating overfitting of the data and their poor generalization ability [52]. Networks containing a hyperbolic tangent in the output layer neurons allowed to obtain better results, but even better outcomes were noted for topologies containing in neurons of the same layer the linear activation function. For these networks, an increase in the number of hidden neurons from two to twelve caused a substantial decrease in the value of the average validation error. A further increase in the number of neurons in the hidden layer (from thirteen to sixteen) did not have an essential impact on the values of the validation error (ranging from approximately 0.026–0.030).
The multilayer perceptron neural network, for which the sum of all errors (El, Et, and Ev) was the lowest was selected as the model of mold contamination in a bulk of stored rapeseeds (MLP-NNMMC). In the selected structure the hyperbolic tangent function acted as a transfer function in twelve neurons of the hidden layer, while the linear function acted as the transfer function in a single neuron of the output layer. The basic information on the MLP network adopted for the MLP-NNMMC obtained during the optimization process is presented in Table 3. The calculated values of the training, test, and validation errors indicated good predictive quality and generalization capability of the developed
3.1.2. Model Based on RBF Networks
In the study, RBF networks with different numbers of the hidden layer neurons containing a Gaussian transfer function and one output node with the linear transfer function were considered to describe mold population levels in rapeseed ecosystems. The results of the optimization process for the RBF-based network architecture are presented in Figure 4. The increase in the number of neurons in the hidden layer from two to twenty nodes resulted in a considerable decrease in the mean values of the training and test errors in the range from 0.321 and 0.276 to 0.100 and 0.079, respectively. Further extension of the size of the hidden layer caused a much slighter decline in values of these errors to 0.065 for the training one and 0.049 for the test one. In the case of the validation error, a downward trend in its mean value (from 0.23 to 0.071) was observed for networks containing from two to twenty-four neurons in the hidden layer. A further increase in the size of the hidden layer caused a decrease in the training and test errors, whereas the validation error had an upward trend. It is known that too many neurons in the hidden layer may lead to network overtraining and then the network, instead of generalizing dependencies existing in the modeled system, remembers the specific relationships between inputs and outputs, limiting its performance on new data [31,45]; therefore a substantial extension of the hidden layer size was not advisable. The conducted analyses show that the optimal structures for the RBF network to approximate mold infestation in rapeseed ecosystems were those that contained between twenty-four and thirty-four nodes in the hidden layer. For these structures, relatively low values of the validation error were accompanied by relatively low levels of the training and test errors.
The above-mentioned structures not only exhibited a balance between simplicity of architecture and quality of the network, but also prediction results. Among the built RBF and quality of the network, but also provided reasonable prediction results. Among the built RBF networks, the one with the lowest sum of all errors was selected for the model of mold contamination (RBF-NNMMC) in a bulk of rapeseeds. The selected structure comprised thirty nodes in the hidden layer with a Gaussian activation function and one output neuron with a linear activation function. The errors computed for the RBF-NNMMC are summarized in Table 3.
3.2. Model Performance Assessment
Figures 5 and 6 illustrate the comparison of experimental data with the MLP-NNMMC and the RBF-NNMMC predictions as a function of time. It is noticeable that there is a high agreement between MLP-NNMMC responses and observed levels of fungal populations for all the data sets applied for model construction and validation. In the case of the RBF-NNMMC, a lesser convergence of the model estimates with the observed data was found. For an accurate verification of the predictive and generalization abilities of the produced models, the MLP-NNMMC and the RBF-NNMMC were fully evaluated using indicators suggested for prognostic models [25,46,47]. The values of the statistical indexes used in the model assessment are listed in Table 4. The calculated RMSE and MAE values are considerably higher for the MLP-NNMMC than the RBF-NNMMC indicating better prediction capability of the MLP-NNMMC.
Figure 6. The comparison of RBF neural network model predictions (model lines) and observed mold population levels (log(CFU)) (experimental points) in rapeseed ecosystems with water activity aw = 0.75–0.90 stored at: (a) 12 ◦C, (b) 18 ◦C, (c) 24 ◦C, (d) 30 ◦C adopted from Wawrzyniak et al. [6] as a function of time (empty points – data used to model construction, filled points – validation data sets)
The superiority of the MLP-NNMMC fitting performance is also noticeable in Figures 7 and 8 presenting a comparison of the experimental data with estimates of the MLP-NNMMC (R2 = 0.969–0.993) and the RBF-NNMMC (R2 = 0.893–0.967).
The direction for the deviations of the estimated values in relation to the fungal population levels measured experimentally was determined using two bias indexes. One of them was the bias factor, which provides information on the average distinction between the model responses and experimental data. When the model underestimates, the value of the bias factor is below unity, in the opposite case, the model tends to overestimate the experimental values [46]. In this study, the values of Bf obtained for both selected neural network models showed that the positive and negative deviations of models were on average equal. Its values calculated for all the data sets in the case of both models (Bf = 0.99–1.00) were in the range of 0.90–1.05, which is defined as relevant for good predictive models [46]. In the case of MRPE (the second bias index), a positive value designates the underestimation of the outputs of the model, whereas overestimation of the predictions is indicated by its negative value. In this study, the MRPE values calculated for both selected networks were within a narrow range around zero indicating, similarly to the Bf values, a negligible mean divergence between the model responses and observed data.
It should be emphasized that the MRPE value of zero and the Bf value of one do not exclude the presence of divergence between predictions and observations, as positive and negative deviations may be canceled when calculating their values. Therefore, to determine the magnitude of average deviation of the model responses in relation to the experimental data two other indices, such as Af and MAPE, were used. The Af informs on the percentage of error in the model estimates and predictive microbiology it is often used together with Bf to evaluate the model performance [25,26,33]. The value of Af close to one confirms the high accuracy of the model and the low value of the model prediction error [53]. In this study, the Af was in the range of 1.01–1.03 for MLP-NNMMC and 1.03–1.05 for RBF-NNMMC, suggesting respectively a maximum of 3% and 5% average deviation of the measured and predicted values. These values were consistent with another accuracy indicator, i.e., MAPE. Its values calculated for the analyzed data sets indicated the 1.5–2.5% and 2.8–4.7% error in the MLP-NNMMC and the RBF-NNMMC predictions, respectively. Similar percentage errors were obtained by Panagou and Kodogiannis [33] for neural network models describing the dependence between the maximum specific growth rate of M. ruber and environmental conditions.
The evaluation of the produced neural network models showed that MLP-NNMMC provided a better predictive efficiency than the RBF-NNMC; nevertheless, even the results obtained for the RBF-NNMMC indicate that its predictive performance (Table 4) is comparable to those obtained for the kinetic model based on the modified Gompertz equation (R2 = 0.893, RMSE = 0.547, Bf = 1.045, Af = 1.050 for an independent experimental data set) [54] formulated previously on the same data by Wawrzyniak et al. [6]. It is worth mentioning that due to the modeling assumptions, the scope of the kinetic model of mold growth developed with the use of the modified Gompertz equation is limited to the rapeseed storage conditions, in which the fungal growth curves fully follow the sigmoidal pattern.
These make it of limited utility compared to the neural network models that cover the entire considered area of temperature and water activity applied in stored bulks of seeds. The earlier research released that the neural network model provided better results than the mathematical model based on logistic regression in classifying the growth boundaries of Listeria monocytogenes [30]. The prediction accuracy attained with the RBF and MLP neural network also turned out to be better than those obtained with the classical polynomial models when modeling the kinetic parameters of M. ruber in relation to temperature, water activity, and pH [32,33].
The study showed that artificial networks can be effectively applied as the modeling technique in predictive mycology. The satisfactory accuracy and precision of the developed MLP-NNMMC indicate that it may find application in rapeseed postharvest management systems as a supportive tool. The fact that the model was developed for seeds contaminated with a relatively high initial level of fungal propagules, which may be found in years with high rainfall during seed maturation or harvesting increases the safety of the model application. In further research, the author intends to apply the developed model for other rapeseed varieties and then use it as an assisting decisive tool in the control of the postharvest preservation process of rapeseeds.
4. Conclusions
The application of artificial neural networks seems to be a promising approach that may be used in developing decision support tools dedicated to agricultural postharvest systems. This is confirmed by the results of this study, in which the artificial neural networks were used to predict fungal population levels over time in a bulk of stored rapeseeds under a wide range of environmental conditions covering those that may be found in agricultural practice. The ANN model based on MLP with a single hidden layer containing twelve hidden neurons with the Tanh/Lin activation functions turned out to provide the best architecture to approximate the fungal population level in a bulk of stored rapeseeds. The produced neural network model of mold contamination in a bulk of stored rapeseeds showed high accuracy of the predicted fungal population levels as well as high generalization capability. The fact that it is based on parameters easily measurable online in practice, i.e., storage temperature and water activity in seeds, which are the most crucial environmental factors influencing the mycological state of rapeseed ecosystems contributes to increasing the usability of the model. As the model was constructed for seeds characterized by an increased initial contamination with mold spores, its use provides a high margin of safety also in years characterized by di cult ripening and harvesting conditions. The constructed ANN model may be a useful tool that can be explored in the field of agriculture engineering to improve the existing postharvest systems. Incorporation of such forecasting tools into postharvest systems will allow estimating in advance the hazards associated with fungal development and mycotoxin accumulation in a bulk of stored rapeseeds and thus facilitate prevention actions early enough to maintain seed quality.
Funding: This research was partially funded by the Polish Ministry of Science and Higher Education, grantnumber N N313 209938.
Conflicts of Interest: The author declares that there is no conflict of interest.
This article was originally published in Agriculture 2020, 10, 567; doi:10.3390/agriculture10110567. This is an Open Access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).