Non-Destructive Assessment of Raw Milk Quality Using Computer Vision and Artificial Intelligence

Milk quality plays a central role in determining dairy processing efficiency, product safety, and market value, with high-grade milk commanding premium prices. Conventional laboratory-based evaluations, including microbiological and physicochemical tests, provide accurate results but are time-consuming, costly, and impractical for real-time assessment at the farm level. Recent advances in computer vision and artificial intelligence (AI) offer non-destructive and rapid alternatives for food quality monitoring; however, applications specifically targeting raw milk remain underexplored. This study proposes a texture-based image analysis system to classify raw cow milk quality. A total of 1008 milk images were collected under controlled lighting conditions and categorized into three classes: (1) good quality with normal appearance, (2) non- defective but exhibiting abnormal opacity or thickness, and (3) defective samples with visible clots, sediment, or discoloration. Texture features were extracted using the Gray Level Co-occurrence Matrix (GLCM) at four pixel distances (1–4) and orientations (0°, 45°, 90°, 135°). Extracted parameters included contrast, correlation, homogeneity, dissimilarity, and energy. To reduce computational complexity, only the most relevant features were selected. Classification was conducted using a Decision Tree model, with the best performance achieved at pixel distance 3 and orientation 0°, yielding an accuracy of 81.68%. Statistical testing confirmed no significant differences across parameter variations, while confusion matrix analysis validated classification reliability across all categories. The results demonstrate the feasibility of combining GLCM-based texture features with decision tree models for rapid, non-destructive milk quality evaluation. This approach has strong potential for integration into precision dairy farming, although early-stage spoilage detection remains challenging.

Authors

Publication Details

Journal
Springer Link (Chiba Institute of Technology)
Published
2025-10-20
DOI
https://doi.org/10.1051/bioconf/202519100041/pdf
Primary Topic
Milk Quality and Mastitis in Dairy Cows
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Non-Destructive Assessment of Raw Milk Quality Using Computer Vision and Artificial Intelligence

L E Radiati, Ahmad Khoirul Umam, Fitri Utaminingrum, Dimas Firmanda Al Riza
Springer Link (Chiba Institute of Technology)
Milk Quality and Mastitis in Dairy Cows
article

Non-Destructive Assessment of Raw Milk Quality Using Computer Vision and Artificial Intelligence

L E Radiati, Ahmad Khoirul Umam, Fitri Utaminingrum, Dimas Firmanda Al Riza
article en

Abstract

Milk quality plays a central role in determining dairy processing efficiency, product safety, and market value, with high-grade milk commanding premium prices. Conventional laboratory-based evaluations, including microbiological and physicochemical tests, provide accurate results but are time-consuming, costly, and impractical for real-time assessment at the farm level. Recent advances in computer vision and artificial intelligence (AI) offer non-destructive and rapid alternatives for food quality monitoring; however, applications specifically targeting raw milk remain underexplored. This study proposes a texture-based image analysis system to classify raw cow milk quality. A total of 1008 milk images were collected under controlled lighting conditions and categorized into three classes: (1) good quality with normal appearance, (2) non- defective but exhibiting abnormal opacity or thickness, and (3) defective samples with visible clots, sediment, or discoloration. Texture features were extracted using the Gray Level Co-occurrence Matrix (GLCM) at four pixel distances (1–4) and orientations (0°, 45°, 90°, 135°). Extracted parameters included contrast, correlation, homogeneity, dissimilarity, and energy. To reduce computational complexity, only the most relevant features were selected. Classification was conducted using a Decision Tree model, with the best performance achieved at pixel distance 3 and orientation 0°, yielding an accuracy of 81.68%. Statistical testing confirmed no significant differences across parameter variations, while confusion matrix analysis validated classification reliability across all categories. The results demonstrate the feasibility of combining GLCM-based texture features with decision tree models for rapid, non-destructive milk quality evaluation. This approach has strong potential for integration into precision dairy farming, although early-stage spoilage detection remains challenging.

Springer Link (Chiba Institute of Technology)
Openalex Percentile: Top 24%
Milk Quality and Mastitis in Dairy Cows
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.