| Issue |
BIO Web Conf.
Volume 191, 2025
The 6th International Conference on Environmentally Sustainable Animal Industry and The 6th Animal Production International Seminar (ICESAI APIS 2025)
|
|
|---|---|---|
| Article Number | 00041 | |
| Number of page(s) | 11 | |
| DOI | https://doi.org/10.1051/bioconf/202519100041 | |
| Published online | 20 October 2025 | |
Non-Destructive Assessment of Raw Milk Quality Using Computer Vision and Artificial Intelligence
1 Faculty of Animal Science, Universitas Brawijaya, Malang 65145, Indonesia
2 Faculty of Computer Science, Universitas Brawijaya, Malang 65145, Indonesia
3 Faculty of Agricultural Technology, Universitas Brawijaya, Malang 65145, Indonesia
* Corresponding author: a.khoirulumam@ub.ac.id
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.
Key words: Computer vision / Machine learning / Non-destructive evaluation / Precision dairy farming / Texture analysis
© The Authors, published by EDP Sciences, 2025
This is an Open Access article distributed under the terms of the Creative Commons Attribution License 4.0, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
Current usage metrics show cumulative count of Article Views (full-text article views including HTML views, PDF and ePub downloads, according to the available data) and Abstracts Views on Vision4Press platform.
Data correspond to usage on the plateform after 2015. The current usage metrics is available 48-96 hours after online publication and is updated daily on week days.
Initial download of the metrics may take a while.

