A Machine–Learning Approach Reveals That Bacterial Spore Levels in Organic Bulk Tank Milk are Dependent on Farm Characteristics and Meteorological Factors

Bacterial spores in raw milk can lead to quality issues in milk and milk-derived products. As these spores originate from farm environments, it is important to understand the contributions of farm-level factors to spore levels. This study aimed to investigate the impact of farm management practices and meteorological factors on levels of different spore types in organic raw milk using machine learning models. Raw milk from certified organic dairy farms (n = 102) located across 11 states was collected 6 times over a year and tested for standard plate count, psychrotolerant spore count, mesophilic spore count, thermophilic spore count, and butyric acid bacteria. At each sampling date, a survey about farm management practices was collected and meteorological factors were obtained on the date of sampling as well as 1, 2, and 3 days prior. The dataset was stratified separately based on the use of a parlor for milking, number of years since organic certification, and pasture time into subdatasets to address confounders. We constructed random forest regression models to predict log<sub>10</sub> mesophilic spore count, log<sub>10</sub> thermophilic spore count, and log<sub>10</sub> butyric acid bacteria's most probable number as well as a random forest classification model to classify the presence of psychrotolerant spores in each raw milk sample. The summary statistics showed that spore levels vary considerably between certified organic farms but were only slightly higher than those from conventional farms in previous longitudinal studies. The variable importance plots from the models suggest that herd size, certification year, employee-related variables, clipping and flaming udders are important for the spore levels in organic raw milk. The small effects of these variables as shown in partial dependence plots suggest a need for individualized risk-based approach to manage spore levels. Incorporating novel data streams has the potential to enhance the performance of the model as a real-time monitoring tool.

Authors

Institutions

Publication Details

Journal
Journal of Food Protection
Published
2025-03-07
DOI
https://doi.org/10.1016/j.jfp.2025.100477
Citations
1
Primary Topic
Milk Quality and Mastitis in Dairy Cows
Type
article
Field-Weighted Citation Impact
1.90
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Machine–Learning Approach Reveals That Bacterial Spore Levels in Organic Bulk Tank Milk are Dependent on Farm Characteristics and Meteorological Factors

N.H. Martin, Chenhao Qian, Martin Wiedmann, Renee T. Lee et al.
1 citations
Journal of Food Protection
Milk Quality and Mastitis in Dairy Cows
1.90
article

A Machine–Learning Approach Reveals That Bacterial Spore Levels in Organic Bulk Tank Milk are Dependent on Farm Characteristics and Meteorological Factors

N.H. Martin, Chenhao Qian, Martin Wiedmann, Renee T. Lee, Rachel L. Weachock
article en
1 citations

Abstract

Bacterial spores in raw milk can lead to quality issues in milk and milk-derived products. As these spores originate from farm environments, it is important to understand the contributions of farm-level factors to spore levels. This study aimed to investigate the impact of farm management practices and meteorological factors on levels of different spore types in organic raw milk using machine learning models. Raw milk from certified organic dairy farms (n = 102) located across 11 states was collected 6 times over a year and tested for standard plate count, psychrotolerant spore count, mesophilic spore count, thermophilic spore count, and butyric acid bacteria. At each sampling date, a survey about farm management practices was collected and meteorological factors were obtained on the date of sampling as well as 1, 2, and 3 days prior. The dataset was stratified separately based on the use of a parlor for milking, number of years since organic certification, and pasture time into subdatasets to address confounders. We constructed random forest regression models to predict log<sub>10</sub> mesophilic spore count, log<sub>10</sub> thermophilic spore count, and log<sub>10</sub> butyric acid bacteria's most probable number as well as a random forest classification model to classify the presence of psychrotolerant spores in each raw milk sample. The summary statistics showed that spore levels vary considerably between certified organic farms but were only slightly higher than those from conventional farms in previous longitudinal studies. The variable importance plots from the models suggest that herd size, certification year, employee-related variables, clipping and flaming udders are important for the spore levels in organic raw milk. The small effects of these variables as shown in partial dependence plots suggest a need for individualized risk-based approach to manage spore levels. Incorporating novel data streams has the potential to enhance the performance of the model as a real-time monitoring tool.

Journal of Food ProtectionVol. 88(5)
Cornell University (US), New York State College of Agriculture & Life Sciences (US)
Zero hunger
Openalex Percentile: Top 19%
Milk Quality and Mastitis in Dairy Cows
1.90
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.