Next Article in Journal
Early Monitoring of Donor-Derived Cell-Free DNA in Kidney Allograft Recipients Followed-Up for Two Years: Experience of One Center
Next Article in Special Issue
The Development of Machine Learning-Assisted Software for Predicting the Interaction Behaviours of Lactic Acid Bacteria and Listeria monocytogenes
Previous Article in Journal
Disease-Specific Risk Models for Predicting Dementia: An Umbrella Review
Previous Article in Special Issue
Selection and Effect of Plant Growth-Promoting Bacteria on Pine Seedlings (Pinus montezumae and Pinus patula)
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Machine Learning-Based Software for Predicting Pseudomonas spp. Growth Dynamics in Culture Media

Department of Bioengineering, Gebze Technical University, Gebze 41400, Kocaeli, Turkey
Life 2024, 14(11), 1490; https://doi.org/10.3390/life14111490
Submission received: 31 October 2024 / Revised: 12 November 2024 / Accepted: 14 November 2024 / Published: 15 November 2024
(This article belongs to the Collection Feature Papers in Microbiology)

Abstract

:
In predictive microbiology, both primary and secondary models are widely used to estimate microbial growth, often applied through two-step or one-step modelling approaches. This study focused on developing a tool to predict the growth of Pseudomonas spp., a prominent bacterial genus in food spoilage, by applying machine learning regression models, including Support Vector Regression (SVR), Random Forest Regression (RFR) and Gaussian Process Regression (GPR). The key environmental factors—temperature, water activity, and pH—served as predictor variables to model the growth of Pseudomonas spp. in culture media. To assess model performance, these machine learning approaches were compared with traditional models, namely the Gompertz, Logistic, Baranyi, and Huang models, using statistical indicators such as the adjusted coefficient of determination (R2adj) and root mean square error (RMSE). Machine learning models provided superior accuracy over traditional approaches, with R2adj values from 0.834 to 0.959 and RMSE values between 0.005 and 0.010, showcasing their ability to handle complex growth patterns more effectively. GPR emerged as the most accurate model for both training and testing datasets. In external validation, additional statistical indices (bias factor, Bf: 0.998 to 1.047; accuracy factor, Af: 1.100 to 1.167) further supported GPR as a reliable alternative for microbial growth prediction. This machine learning-driven approach bypasses the need for the secondary modelling step required in traditional methods, highlighting its potential as a robust tool in predictive microbiology.

1. Introduction

Predictive food microbiology is a theoretical field within food microbiology that focuses on developing statistical models to forecast microbial behaviour in food environments by merging traditional microbiological knowledge with mathematical and statistical principles [1]. While the use of predictive models dates back to the early 20th century, advancements in computer technology have significantly accelerated the progress of predictive microbiology in the 21st century. These models are utilized to determine conditions within food environments that mitigate or delay the adverse effects of microbial contamination. In traditional predictive microbiology, mathematical models are generally categorized into two types: primary and secondary models [2]. Primary models describe the behaviour of microorganisms over time under static environmental conditions, essentially capturing how microbial populations grow, survive, or die when external factors remain constant. Secondary models, in contrast, account for the influence of environmental variables—such as temperature, pH, and water activity—and food matrices on the parameters of the primary models. While this conventional modelling framework is often effective in predicting microbial behaviour, it does have certain limitations. A significant concern is the potential accumulation and amplification of errors, which can occur because the nonlinear regression process is performed twice—once in developing the primary model and again when integrating environmental factors in the secondary model [3,4,5].
In recent years, the application of machine learning algorithms has gained significant momentum across various research fields. This surge is largely driven by three key technological advancements: first, the ability to quickly capture vast amounts of digital data; second, the exponential growth in affordable computing power and data storage; and third, the development of a global network enabling rapid data transfer. Numerous studies have explored the use of machine learning (ML) techniques in food safety and modelling [6,7,8,9]. Machine learning methods are particularly effective in identifying underlying relationships between explanatory and response variables in datasets, making ML-based regression approaches capable of predicting population behaviours and enhancing the predictive accuracy of bacterial growth patterns. Despite these promising advancements, the application of machine learning algorithms to predict microbial behaviour in food systems remains relatively uncommon. Furthermore, to the best of our knowledge, no studies have yet compared traditional modelling approaches with machine learning models within the field of predictive microbiology.
Both traditional modelling techniques and machine learning approaches can be utilized to predict microbial behaviour and estimate the shelf life of food products [10]. Traditional models rely on predefined mathematical equations and structured computational methods, while machine learning techniques leverage algorithms to uncover patterns and generate predictions directly from data [11]. Machine learning offers a significant advantage in its ability to capture complex, nonlinear relationships, making it particularly useful for analyzing large, diverse datasets. However, it often requires substantial amounts of training data and can pose interpretability challenges. Traditional models, on the other hand, are generally grounded in established biological and chemical principles, which makes them easier to interpret. These models may be preferable when data availability is limited or when there is a need for a straightforward, transparent explanation of results [12].
The primary objective of this work is to develop software that utilizes machine learning-based regression methods—specifically Support Vector Regression (SVR), Random Forest Regression (RFR) and Gaussian Process Regression (GPR)—to predict and quantify the behaviour of Pseudomonas spp. in culture media. Temperature, water activity, and pH were the key predictor variables used to estimate microbial growth. The performance of these machine learning models was assessed by comparing them to traditional models, such as the modified Gompertz, Logistic, Baranyi, and Huang models, using statistical metrics like the adjusted coefficient of determination (R2adj) and root mean square error (RMSE).

2. Material and Methods

This study consists of five primary steps shown in Figure 1: (i) bacterial data for Pseudomonas spp. in culture mediums was gathered from the ComBase database in Excel format, (ii) traditional modelling was conducted, (iii) a range of machine learning-based regression models—such as Support Vector Regression, Gaussian Process Regression, Random Forest Regression, and decision tree regression—were applied, (iv) a comparative analysis of the performance between traditional and machine learning models was performed, and (v) the validation phase and software development were finalized. Further details on each of these five steps are provided in the subsequent sections.

2.1. Data Gathering

The ComBase database (www.combase.cc) hosts around 60,000 bacterial datasets sourced from research organizations and scientific publications. Each dataset includes specific features and environmental conditions—such as food category, food name, temperature, pH, water activity, conditions, and time—allowing for a detailed classification of microbial factors and responses. For this study, 2422 bacterial data points describing the growth behaviour of Pseudomonas spp. in culture medium were extracted from ComBase, along with detailed individual information on time, temperature, water activity, and pH, and compiled into Excel files.

2.2. Modelling

Multicollinearity among independent variables can inflate the variance of regression coefficients, potentially leading to unstable models and reduced prediction accuracy [13]. To address this, a correlation analysis was performed on the predictor variables—temperature, water activity, and pH—to assess any potential interdependence before modelling. High correlations between predictors can signal multicollinearity, which can compromise model reliability and accuracy. As shown in the correlation values (Table 1), there were no significant relationships between the variables: the correlation between temperature and water activity was approximately −0.048, indicating a negligible negative relationship; the temperature and pH correlation was around 0.098, reflecting a very weak positive relationship, and water activity and pH had a correlation of −0.164, also suggesting a weak negative relationship. These low correlation values confirm that temperature, water activity, and pH function independently, with minimal overlap in their predictive effects. These three factors were chosen as the main predictors for modelling the growth of Pseudomonas spp. in the culture medium, ensuring a stable and accurate predictive model.

2.2.1. Primary Models

The modified Gompertz, Logistic, Baranyi and Huang models are among the most commonly used sigmoid functions for modelling bacterial growth behaviour. Under constant environmental conditions, the modified Gompertz and Logistic models are defined by Equations (1) and (2), respectively [14]:
x t = x 0 + ( x m a x x 0 ) · e x p e x p r m a x · e ( x m a x x 0 ) · λ t + 1
x t = x 0 + ( x m a x x 0 ) 1 + exp 4 · r m a x ( x m a x x 0 ) · λ t + 2
where t is the time (h), x(t) is the bacterial population concentration (log CFU/g) at time t, x0 is the initial bacterial population concentration (log CFU/g), xmax is the maximum bacterial population concentration (log CFU/g), rmax is the maximum bacterial growth rate (log CFU/h), and λ is the lag phase duration (h).
Other widely used primary functions include the Baranyi and Huang models, which are represented by Equations (3)–(6) [15,16]:
y t = y 0 + µ m a x F t l n 1 + e µ m a x F t 1 e y m a x y 0
F t = t + 1 v l n e v t + e µ m a x λ e v t µ m a x λ
y t = y 0 + y m a x l n ( e y 0 + e y m a x e y 0 · e µ m a x B ( t ) )
B t = t + 1 4 l n 1 + e 4 ( t λ ) 1 + e 4 λ
where t is the time (h), y(t) is the bacterial population concentration (ln CFU/g) at time t, y0 is the initial bacterial population concentration (ln CFU/g), ymax is the maximum bacterial population concentration (ln CFU/g), µmax is the maximum specific bacterial growth rate (1/h), λ is the lag phase duration (h), and v is the rate of increase of the limiting substrate, assumed to be equal to µmax.
Since the primary models use different scales to count microbe populations, the growth rate values (rmax) obtained from the Modified Gompertz and Logistic models are converted to maximum specific growth rate values (µmax) after fitting. This conversion is carried out by multiplying by ln(10) [17].

2.2.2. Secondary Models

Secondary models are employed to describe the effects of various environmental factors—such as water activity, acidity and temperature—on the parameters of primary models [17]. Typically applied after fitting growth data to primary models, secondary models help clarify how factors like water activity [18], acidity and temperature influence growth rates, which is essential for managing food preservation, safety and quality [19,20,21]. The Ratkowsky model (Equation (7)), specifically, is used to detail the relationship between extrinsic factors and the maximum specific growth rate [22].
µ m a x = b 1 T T 0 2 × b 2 a w a w _ m i n × b 3 p H p H m i n
where µmax is the maximum specific growth rate (1/h) obtained from the primary model, aw is the water activity, and aw_min is the minimal water activity at which growth stops. pHmin is the minimal pH, and pHmax is the maximal pH at which growth stops. T is the temperature (°C), T0 is the theoretical minimum temperature (°C) for microbial growth, and b1, b2 and b3 are the regression coefficients.
Additionally, λ (lag phase duration) was defined as a function of µmax with respect to temperature using Equation (8):
λ = b 4 µ m a x   ( T , a w ,   p H )    
where b4 is the regression coefficient, and µmax (T, a w , pH) is a function of temperature, water activity and acidity, which leads λ to be defined as a function of storage temperature, water activity and acidity.

2.2.3. Machine Learning Models

The predictive ability of each machine learning model differs based on the levels of bias and variance in the data. Support Vector Machines (SVMs) are capable of mapping data into higher-dimensional spaces to reveal both linear and nonlinear associations between predictor variables and the response. Frequently applied in both classification and regression tasks, the SVM is a nonparametric approach that uses kernel functions to define its feature space for data regression [23]. In this study, Support Vector Regression (SVR) was implemented with a radial basis function (RBF) kernel. While SVR performs well in high-dimensional settings, its effectiveness can be impacted by noise within the dataset.
Random Forest Regression (RFR) is an ensemble learning method that builds multiple decision trees on different subsets of data to improve prediction accuracy and robustness [6]. By creating numerous trees, each trained on a random sample of data points and features, RFR reduces the risk of overfitting that individual decision trees often face [23]. During prediction, each tree provides an output, and the final result is typically the average of these outputs, which enhances generalizability and reduces variance. This method’s reliance on multiple “weak learners” allows it to effectively handle complex, high-dimensional datasets with noise. RFR is known for its resilience to overfitting and ability to handle both categorical and continuous data, making it highly effective for regression tasks across various domains.
Gaussian Process Regression (GPR) is a nonlinear, non-parametric Bayesian method known for its flexibility and fully probabilistic nature [24]. Based on Gaussian distribution, GPR extends the concept of normal distributions to an infinite-dimensional, multivariate form, allowing it to model data with a high degree of adaptability. GPR constructs objective functions by measuring the distance between the estimated output probability density function (pdf) and the data, maintaining high certainty even in un-sampled regions far from the training data. However, as a non-parametric approach, GPR requires the entire training dataset for each prediction, leading to significant computational costs. The squared exponential kernel was utilized for GPR, allowing it to capture smooth, continuous patterns. Gaussian processes provide the best linear unbiased predictions at un-sampled points, offering reliable estimation in spatially sparse areas.
In machine learning, model validation commonly relies on k-fold cross-validation and hold-out validation methods [25]. In hold-out validation, the data are divided into a training set and a separate test set; the model is trained on the training set and then evaluated using the test set to gauge its performance. For k-fold cross-validation, the dataset is split into k equal parts (folds), where each fold takes a turn as the test set while the remaining folds are used for training. This process is repeated k times, and the combined results from each iteration provide a more comprehensive evaluation of model accuracy. Unlike hold-out validation, which may introduce bias due to reliance on a single split of data, k-fold cross-validation offers a more reliable performance assessment. Thus, a 10-fold cross-validation approach was chosen for this study.

2.3. Comparison of the Goodness of Fit

A comparison of the performance of the models was carried out by using the root mean square error (RMSE) and adjusted coefficient of determination (R2adj) using Equations (9) and (10), respectively:
R M S E = i = 1 n x o b s x f i t 2 n s
R a d j 2 = 1 n 1 n s S S E S S T
where xobs is the experimental bacterial growth, xfit is the fitted value, n is the number of experiments, s is the number of parameters of the model, SSE is the sum of squares of errors and SST is the total sum of squares.

2.4. The Models’ Validation

Model validation is the process of assessing the predictive power of constructed models using either previously published or newly generated data. The predictive accuracy of these models can be evaluated by examining the growth kinetics of the microbes. The bias factor (Bf) and accuracy factor (Af) for each global model, which provide insights into the models’ prediction ability, are outlined in Equations (11) and (12), respectively, following the approach [26].
B f = 10 i = 1 n log x p r e d x o b s n
A f = 10 i = 1 n l o g ( x p r e d / x o b s ) n
where xpred denotes projected maximum values (1/h) and (h), xobs denotes experimental µmax (1/h) and λ (h), and n is the number of experimental growth data.
The acceptable prediction zone (APZ) approach is a useful method for evaluating the overall validation performance of various predictive models. In the APZ framework, a prediction is deemed acceptable when the residual (difference between observed and predicted values) falls within an APZ range of −1 log CFU/g (fail-safe) to 0.5 log CFU/g (fail-dangerous).
To visually display validation results, prediction software was created in this study using both traditional and machine learning-based regression models. All procedures were conducted using MATLAB version 9.10.0.1710957 (R2021a) (MathWorks Inc., Natick, MA, USA) (see Supplementary Video S1).

3. Results and Discussion

The growth data points of Pseudomonas spp. in culture mediums collected from the ComBase database were stored with the following information: record ID, temperature (°C), water activity, pH, initial microbial population (yes/no) and time (h). The data frequency of the collected data categorized into each of the features is shown in Figure 2.
The maximum specific growth rate and lag phase duration, key growth kinetic parameters, can be modelled in relation to environmental factors such as temperature, water activity and pH. Among these, temperature plays a crucial role in influencing microbial growth behaviour in food products, as noted by [27]. In this study, the temperature range considered was 5 to 25 °C, reflecting typical conditions encountered by food products during storage, transport and retail. This range includes refrigeration temperatures (around 5–10 °C), which slow microbial growth, as well as warmer conditions up to 25 °C, where microbial activity accelerates, potentially impacting shelf life and safety. Water activity, another essential factor in microbial growth, represents the ratio between the vapour pressure of the food and the vapour pressure of distilled water in identical conditions. Most foods have a water activity level above 0.95, which is sufficient to support microbial growth, as free water is available for cellular processes. In this study, the water activity range was from 0.954 to 0.997, indicating conditions that provide ample moisture to promote microbial growth in fresh and perishable foods. The pH level of food also directly affects microbial growth by influencing enzyme activity and cellular function. In this study, pH values ranged from 4.01 to 7.40 for the culture medium, encompassing both acidic and near-neutral conditions. Acidic environments (pH around 4) inhibit many spoilage organisms, while near-neutral pH conditions (closer to 7) support a broader range of bacterial growth, potentially accelerating spoilage. These environmental factors—temperature, water activity and pH—collectively influence μmax and λ, making them critical for predicting microbial behaviour and developing effective storage and preservation strategies in the food industry.
For model comparison, 80% of the data were allocated for training and 20% for testing. Table 2 presents the performance differences between traditional and machine learning models in microbial growth modelling during the training process. Traditional models, such as Gompertz, Logistic, Baranyi and Huang, are frequently used due to their interpretability and effectiveness in capturing standard S-shaped microbial growth patterns. These traditional models, however, rely on fixed growth structures, which restricts their flexibility in capturing complex, nonlinear growth dynamics. Although both two-step and one-step modelling approaches were initially applied, the two-step approach did not successfully fit the data across any of the traditional models. Consequently, only the results from the one-step modelling approach are presented here as the traditional modelling outcome.
The Gompertz model achieved an R2adj of 0.813 and an RMSE of 0.022, indicating moderate predictive accuracy but limited flexibility. The Logistic model performed slightly better, with an R2adj of 0.844 and an RMSE of 0.020, capturing microbial growth dynamics more effectively. Despite incorporating a lag phase, the Baranyi model had the lowest R2adj among the traditional models (0.790) and an RMSE of 0.023, reflecting its challenges in handling complex growth behaviours. The Huang model was the most accurate among traditional models, achieving an R2adj of 0.850 and an RMSE of 0.020, though it was still surpassed by machine learning models (Figure 3).
Machine learning models, which do not rely on predefined relationships, demonstrated greater adaptability. SVR yielded an R2adj of 0.854 and an RMSE of 0.019, indicating solid predictive performance, though it was slightly less effective than GPR and RFR, likely due to sensitivity in parameter tuning. Random Forest Regression achieved an R2adj of 0.893 and an RMSE of 0.017, benefiting from its ensemble approach, which captures complex interactions between variables. Gaussian Process Regression provided the highest R2adj (0.959) and the lowest RMSE (0.010), showcasing exceptional accuracy and robustness in modelling nonlinear growth patterns. These results illustrate that while traditional models like Huang offer reasonable accuracy, machine learning models, particularly GPR, deliver superior predictive performance and are better suited for modelling complex microbial growth dynamics during the training process (Figure 4).
The bar chart highlights the relative importance of four predictors—time, temperature, water activity and pH—in modelling the growth of Pseudomonas spp. (Figure 5). The results show that time is by far the most influential factor in predicting Pseudomonas growth, indicating that microbial growth patterns are significantly dependent on the duration of exposure under given conditions. This aligns with biological expectations, as microbial populations typically increase exponentially over time when other growth conditions remain constant. Temperature is the second most significant factor. This reflects the sensitivity of Pseudomonas growth rates to temperature changes, as temperature is known to play a critical role in enzymatic activity and cellular processes. Higher or optimal temperatures generally accelerate microbial growth until a threshold, beyond which growth rates decline. Therefore, temperature control is essential in limiting Pseudomonas growth, especially in food storage and handling. Water activity shows a smaller yet noticeable impact on growth. Water activity measures the availability of free water for microbial activities, and since Pseudomonas spp. require moisture to thrive, maintaining low water activity can help inhibit their growth. Most foods have water activities high enough to support microbial growth; however, controlling this variable can be an effective measure in reducing growth rates. Finally, pH has the least impact among the factors. While pH affects microbial growth by influencing enzyme stability and nutrient availability, Pseudomonas spp. can tolerate a range of pH levels, especially near neutrality, which may explain its lower importance relative to the other factors. However, maintaining pH levels outside of this range can still contribute to controlling growth, although it is less effective compared to controlling time, temperature or water activity.
The test data’s performance for the traditional modelling approaches—Gompertz, Logistic, Baranyi and Huang models—shows varying levels of predictive accuracy. The Gompertz model captures the general trend but exhibits noticeable deviations from the ideal line, indicating limited precision. The Logistic model shows slightly better alignment with the ideal line, suggesting improved accuracy in capturing growth dynamics, though still with some inconsistencies. The Baranyi model has the widest spread from the ideal line, reflecting lower predictive accuracy despite accounting for a lag phase, suggesting it struggles with the complexity of the growth data. Among the traditional models, the Huang model shows the closest fit to the ideal line, indicating the highest predictive accuracy and flexibility in modelling nonlinear growth trends (Figure 6).
The test data’s performance of the machine learning models—Support Vector Regression, Random Forest Regression and Gaussian Process Regression—demonstrates their superior predictive accuracy and adaptability in capturing microbial growth dynamics. The SVR plot shows a relatively close alignment with the ideal line, though some minor deviations indicate that it may be sensitive to tuning parameters, especially in nonlinear regions. The RFR plot aligns more closely with the ideal line than SVR, illustrating its ensemble approach’s effectiveness in capturing complex interactions within the data, though it still shows slight scattering. GPR, however, displays the closest fit to the ideal line among the machine learning models, showcasing excellent alignment with minimal deviations. This indicates that GPR provides the highest predictive accuracy, capturing intricate patterns with greater robustness compared to SVR and RFR. These results underscore that machine learning models, particularly GPR, are more effective than traditional models in accurately modelling complex microbial growth patterns (Figure 7).
In comparing traditional modelling approaches with machine learning approaches for microbial growth prediction, it is evident that machine learning models generally provide enhanced accuracy and flexibility in handling complex growth dynamics. Traditional models, including Gompertz, Logistic, Baranyi, and Huang, are well-established and provide relatively straightforward interpretations due to their defined parametric structures, which are ideal for standard microbial growth patterns. Among these, the Gompertz model performs best, achieving an R2adj of 0.861 and an RMSE of 0.007, closely followed by the Logistic model (Table 3). These models maintain decent accuracy (highest for the Huang model at 69.8%) and offer good predictive bias (Bf) and accuracy factor (Af) scores. However, their limited adaptability to nonlinear and non-standard growth patterns restricts their performance in more complex scenarios, as indicated by their lower accuracy values compared to machine learning models.
Machine learning models, including Support Vector Regression, Random Forest Regression and Gaussian Process Regression, demonstrate superior capability by not assuming a predefined functional form, allowing them to capture intricate, nonlinear growth behaviours effectively. GPR, in particular, stands out with the highest R2adj of 0.923 and the lowest RMSE of 0.005, showcasing its robustness and reliability in handling complex data patterns. Its accuracy (84.3%) surpasses all other models, traditional and machine learning alike. RFR also performs notably well, with an R2adj of 0.884 and an RMSE of 0.006, benefiting from its ensemble approach to account for variable interactions. SVR, while effective with an R2adj of 0.834, shows limitations when compared to GPR and RFR, potentially due to sensitivity in high-dimensional spaces and the need for careful parameter tuning. Furthermore, it is important to note that the R2adj of the SVR is slightly lower than that of traditional models, except for the Branyi model. In terms of the bias factor (Bf) and accuracy factor (Af), machine learning models generally display a closer alignment to ideal values, with RFR having a nearly perfect Bf of 0.998 and GPR achieving the lowest Af (1.100), indicating greater consistency and reliability. All these results affirm that while traditional models offer interpretable and moderately accurate predictions suitable for simpler growth dynamics, RFR and GPR provide a higher degree of predictive power, accuracy and flexibility, making them better suited for complex and nonlinear microbial growth modelling scenarios.
The machine learning models developed for predicting microorganism growth were integrated into a user-friendly software interface, allowing users to easily input parameters and visualize predicted microbial counts. This interface, illustrated in Figure 8, showcases a streamlined design aimed at simplifying the prediction process, making it accessible even to users without extensive technical knowledge. Key components of the interface include input fields for essential parameters such as temperature, pH, water activity, and other relevant environmental factors. Upon entering these values, the software instantly generates predictions using trained machine learning models like GPR, RFR and SVR, providing outputs on microbial growth rates and expected counts. In addition, this software has been made accessible to a broader audience via the GitHub platform. The repository, located under the name “ftarlak/Pseu_Calculator”, includes not only the code but also a brief video tutorial that guides users through the installation and usage steps. This video demonstration helps users understand the functionality of each component within the interface, from data entry to interpreting prediction outputs.

4. Conclusions

The comparative analysis of traditional and machine learning models for microbial growth prediction underscores the distinct advantages and limitations of each approach. Traditional models like Gompertz, Logistic, Baranyi and Huang are valued for their interpretability and ability to capture standard S-shaped growth patterns, but they struggle with complex, nonlinear dynamics due to their fixed parametric structures. Among these, the Huang and Gompertz models showed relatively stronger performance, yet their predictive power was outperformed by machine learning models. Machine learning approaches demonstrated superior adaptability to complex data patterns. GPR emerged as the most robust, achieving an R2adj of 0.923 and RMSE of 0.005, making it highly effective for capturing nonlinear growth behaviours. RFR also demonstrated strong performance, achieving an R2adj of 0.884 and an RMSE of 0.006, while SVR was somewhat constrained by its sensitivity to high-dimensional data and noise. Overall, while traditional models are useful for simpler, interpretable predictions, machine learning models, particularly GPR, offer enhanced accuracy and adaptability, making them better suited for complex, dynamic data environments. This analysis highlights the potential of machine learning as a robust tool for microbial growth prediction and suggests that future research could benefit from hybrid approaches that balance the interpretability of traditional models with the analytical power of machine learning.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/life14111490/s1, Video S1: Guide video of the developed software.

Funding

This research received no external funding.

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/Supplementary Materials. Further inquiries can be directed to the author.

Conflicts of Interest

The author declares no conflict of interest.

References

  1. Pérez-Rodríguez, F.; Valero, A. Predictive Microbiology in Foods, 1st ed.; Springer: New York, NY, USA, 2013; ISBN 9781461455202. [Google Scholar] [CrossRef]
  2. Whiting, R.C. Microbial modeling in foods. Crit. Rev. Food Sci. Nutr. 1995, 35, 467–494. [Google Scholar] [CrossRef]
  3. Martino, K.G.; Marks, B.P. Comparing uncertainty resulting from two-step and global regression procedures applied to microbial growth models. J. Food Prot. 2007, 70, 2811–2818. [Google Scholar] [CrossRef] [PubMed]
  4. Tarlak, F. Development and validation of one-step modelling approach for prediction of mushroom spoilage. J. Food Nutr. Res. 2020, 59, 281. [Google Scholar]
  5. Tarlak, F.; Pérez-Rodríguez, F. Development and validation of a one-step modelling approach for the determination of chicken meat shelf-life based on the growth kinetics of Pseudomonas spp. Food Sci. Technol. Int. 2021, 28, 672–682. [Google Scholar] [CrossRef]
  6. Golden, C.E.; Rothrock, M.J., Jr.; Mishra, A. Comparison between random forest and gradient boosting machine methods for predicting Listeria spp. prevalence in the environment of pastured poultry farms. Food Res. Int. 2019, 122, 47–55. [Google Scholar] [CrossRef]
  7. Magnus, I.; Virte, M.; Thienpont, H.; Smeesters, L. Combining optical spectroscopy and machine learning to improve food classification. Food Control 2021, 130, 108342. [Google Scholar] [CrossRef]
  8. Yan, S.; Wang, S.; Qiu, J.; Li, M.; Li, D.; Xu, D.; Liu, Q. Raman spectroscopy combined with machine learning for rapid detection of food-borne pathogens at the single-cell level. Talanta 2021, 226, 122195. [Google Scholar] [CrossRef]
  9. Tanui, C.K.; Karanth, S.; Njage, P.M.; Meng, J.; Pradhan, A.K. Machine learning-based predictive modeling to identify genotypic traits associated with Salmonella enterica disease endpoints in isolates from ground chicken. LWT 2022, 154, 112701. [Google Scholar] [CrossRef]
  10. Pandey, V.K.; Srivastava, S.; Dash, K.K.; Singh, R.; Mukarram, S.A.; Kovács, B.; Harsányi, E. Machine Learning Algorithms and Fundamentals as Emerging Safety Tools in Preservation of Fruits and Vegetables: A Review. Processes 2023, 11, 1720. [Google Scholar] [CrossRef]
  11. Khaleel, M.; Ahmed, A.A.; Alsharif, A. Artificial Intelligence in Engineering. Brill. Res. Artif. Intell. 2023, 3, 32–42. [Google Scholar] [CrossRef]
  12. Tarlak, F. The Use of Predictive Microbiology for the Prediction of the Shelf Life of Food Products. Foods 2023, 12, 4461. [Google Scholar] [CrossRef] [PubMed]
  13. Yücel, Ö.; Tarlak, F. An intelligent based prediction of microbial behaviour in beef. Food Control 2023, 148, 109665. [Google Scholar] [CrossRef]
  14. Zwietering, M.H.; Jongenburger, I.; Rombouts, F.M.; van’t Riet, K. Modeling of the bacterial growth curve. Appl. Environ. Microbiol. 1990, 56, 1875–1881. [Google Scholar] [CrossRef] [PubMed]
  15. 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] [PubMed]
  16. Huang, L. IPMP Global Fit–A one-step direct data analysis tool for predictive microbiology. Int. J. Food Microbiol. 2017, 262, 38–48. [Google Scholar] [CrossRef]
  17. Juneja, V.K.; Melendres, M.V.; Huang, L.; Gumudavelli, V.; Subbiah, J.; Thippareddi, H. Modeling the effect of temperature on growth of Salmonella in chicken. Food Microbiol. 2007, 24, 328–335. [Google Scholar] [CrossRef]
  18. Wijtzes, T.; Rombouts, F.M.; Kant-Muermans, M.L.T.; Van’t Riet, K.; Zwietering, M.H. Development and validation of a combined temperature, water activity, pH model for bacterial growth rate of Lactobacillus curvatus. Int. J. Food Microbiol. 2001, 63, 57–64. [Google Scholar] [CrossRef]
  19. McMeekin, T.A.; Chandler, R.E.; Doe, P.E.; Garland, C.D.; Olley, J.; Putro, S.; Ratkowsky, D.A. Model for combined effect of temperature and salt concentration/water activity on the growth rate of Staphylococcus xylosus. J. Appl. Microbiol. 1987, 62, 543–550. [Google Scholar] [CrossRef]
  20. Adams, M.R.; Little, C.L.; Easter, M.C. Modelling the effect of pH, acidulant and temperature on the growth rate of Yersinia enterocolitica. J. Appl. Bacteriol. 1991, 71, 65–71. [Google Scholar] [CrossRef]
  21. Presser, K.A.; Ross, T.; Ratkowsky, D.A. Modelling the growth limits (growth/no growth interface) of Escherichia coli as a function of temperature, pH, lactic acid concentration, and water activity. Appl. Environ. Microbiol. 1998, 64, 1773–1779. [Google Scholar] [CrossRef]
  22. Ratkowsky, D.A.; Olley, J.; McMeekin, T.A.; Ball, A. Relationship between temperature and growth rate of bacterial cultures. J. Bacteriol. 1982, 149, 1–5. [Google Scholar] [CrossRef]
  23. 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] [PubMed]
  24. Deringer, V.L.; Bartók, A.P.; Bernstein, N.; Wilkins, D.M.; Ceriotti, M.; Csányi, G. Gaussian process regression for materials and molecules. Chem. Rev. 2021, 121, 10073–10141. [Google Scholar] [CrossRef] [PubMed]
  25. Yaka, H.; Insel, M.A.; Yucel, O.; Sadikoglu, H. A comparison of machine learning algorithms for estimation of higher heating values of biomass and fossil fuels from ultimate analysis. Fuel 2022, 320, 123971. [Google Scholar] [CrossRef]
  26. Ross, T. Indices for performance evaluation of predictive models in food microbiology. J. Appl. Bacteriol. 1996, 81, 501–508. [Google Scholar] [PubMed]
  27. Manthou, E.; Tarlak, F.; Lianou, A.; Ozdemir, M.; Zervakis, G.I.; Panagou, E.Z.; Nychas GJ, E. Prediction of indigenous Pseudomonas spp. growth on oyster mushrooms (Pleurotus ostreatus) as a function of storage temperature. LWT 2019, 111, 506–512. [Google Scholar] [CrossRef]
Figure 1. A flow chart outlining the main steps followed in the present study.
Figure 1. A flow chart outlining the main steps followed in the present study.
Life 14 01490 g001
Figure 2. Histograms of the variables for (a) temperature (°C), (b) water activity and (c) pH.
Figure 2. Histograms of the variables for (a) temperature (°C), (b) water activity and (c) pH.
Life 14 01490 g002
Figure 3. The observed and predicted Pseudomonas spp. in culture medium using traditional models: (a) modified Gompertz, (b) Logistic, (c) Baranyi and (d) Huang for training process.
Figure 3. The observed and predicted Pseudomonas spp. in culture medium using traditional models: (a) modified Gompertz, (b) Logistic, (c) Baranyi and (d) Huang for training process.
Life 14 01490 g003
Figure 4. The observed and predicted Pseudomonas spp. in culture medium using machine learning models (a) Support Vector Regression, (b) Random Forest Regression and (c) Gaussian Process Regression for training process.
Figure 4. The observed and predicted Pseudomonas spp. in culture medium using machine learning models (a) Support Vector Regression, (b) Random Forest Regression and (c) Gaussian Process Regression for training process.
Life 14 01490 g004
Figure 5. The relative importance of predictor variables to microorganism populations in culture medium using Gaussian Process Regression.
Figure 5. The relative importance of predictor variables to microorganism populations in culture medium using Gaussian Process Regression.
Life 14 01490 g005
Figure 6. The observed and predicted Pseudomonas spp. in culture medium using traditional models: (a) modified Gompertz, (b) Logistic, (c) Baranyi and (d) Huang for testing process.
Figure 6. The observed and predicted Pseudomonas spp. in culture medium using traditional models: (a) modified Gompertz, (b) Logistic, (c) Baranyi and (d) Huang for testing process.
Life 14 01490 g006
Figure 7. The observed and predicted Pseudomonas spp. in culture medium using machine learning models: (a) Support Vector Regression, (b) Random Forest Regression and (c) Gaussian Process Regression for testing process.
Figure 7. The observed and predicted Pseudomonas spp. in culture medium using machine learning models: (a) Support Vector Regression, (b) Random Forest Regression and (c) Gaussian Process Regression for testing process.
Life 14 01490 g007
Figure 8. Illustration of developed software and its parts.
Figure 8. Illustration of developed software and its parts.
Life 14 01490 g008
Table 1. Correlation values between main predictor variables (temperature (°C), water activity and pH).
Table 1. Correlation values between main predictor variables (temperature (°C), water activity and pH).
PredictorsTemperature (°C)Water ActivitypH
Temperature (°C)1−0.0480.098
Water activity−0.0481−0.164
pH0.098−0.1641
Table 2. Evaluation indices of traditional and machine learning modelling approaches for training process.
Table 2. Evaluation indices of traditional and machine learning modelling approaches for training process.
ApproachTraditional Modelling
Approach
Machine Learning Modelling
Approach
ModelGompertzLogisticBaranyiHuangSVRRFRGPR
R2adj0.8130.8440.7900.8500.8540.8930.959
RMSE0.0220.0200.0230.0200.0190.0170.010
Table 3. Evaluation indices of traditional and machine learning modelling approaches for testing process.
Table 3. Evaluation indices of traditional and machine learning modelling approaches for testing process.
ApproachTraditional Modelling
Approach
Machine Learning Modelling
Approach
ModelGompertzLogisticBaranyiHuangSVRRFRGPR
R2adj0.8610.8580.8180.8360.8340.8840.923
RMSE0.0070.0070.0080.0070.0070.0060.005
Bf1.0321.0301.0351.0361.0470.9981.031
Af1.1571.1591.1731.1621.1671.1381.100
Accuracy0.6820.6900.6490.6980.7400.6860.843
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

Tarlak, F. Machine Learning-Based Software for Predicting Pseudomonas spp. Growth Dynamics in Culture Media. Life 2024, 14, 1490. https://doi.org/10.3390/life14111490

AMA Style

Tarlak F. Machine Learning-Based Software for Predicting Pseudomonas spp. Growth Dynamics in Culture Media. Life. 2024; 14(11):1490. https://doi.org/10.3390/life14111490

Chicago/Turabian Style

Tarlak, Fatih. 2024. "Machine Learning-Based Software for Predicting Pseudomonas spp. Growth Dynamics in Culture Media" Life 14, no. 11: 1490. https://doi.org/10.3390/life14111490

APA Style

Tarlak, F. (2024). Machine Learning-Based Software for Predicting Pseudomonas spp. Growth Dynamics in Culture Media. Life, 14(11), 1490. https://doi.org/10.3390/life14111490

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

Article Metrics

Back to TopTop