Machine learning algorithms to trace the origin of milk from infra-red spectra in sheep

In the agri-food supply chain, geographical traceability of milk is essential, quality components being strictly related to the environment and to specific farming. The aim of this study was to test different machine learning approaches for tracing the origin of milk from infra-red spectra in two economically important Italian dairy sheep breeds: Sarda and Valle del Belice. A total of 905 milk samples were collected from Animal farmed in different altimetric zones: plain (≤ 200 metres), hills (350–450), and mountains (> 650 metres). The datasets were divided in training (90%) and testing (10%). Seven models were tested: linear discriminant analysis (LDA), stochastic gradient boosting machine (GBM), support vector machines (SVM), recursive partitioning robust tree (RPART), random forest (RF), K-Nearest neighbours (KNN). The models were calibrated in the training dataset and then used to predict the zone in the testing data set. The procedure was repeated one thousand times by randomly selecting the samples, in the whole dataset or separately by breed. Very different computing time were found, moving from few seconds (LDA and RPART) to more than 20 min (RF). Considering the two breeds together, the LDA model showed the highest accuracy (0.98). The model performances changed according to the breed: GBM was the best model for Sarda, whereas LDA was the best for Valle del Belice. In both breeds, the lowest accuracy was observed for the hill group. The results suggested that this approach can be promising to routinely classify the origin of milk samples using midinfrared spectroscopy.

Authors

Institutions

Publication Details

Journal
Italian Journal of Animal Science
Published
2025-11-05
DOI
https://doi.org/10.1080/1828051x.2025.2582396
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

Machine learning algorithms to trace the origin of milk from infra-red spectra in sheep

Christian Persichilli, Maria Teresa Sardina, Michele Congiu, Fabio Pilla et al.
Italian Journal of Animal Science
Milk Quality and Mastitis in Dairy Cows
article

Machine learning algorithms to trace the origin of milk from infra-red spectra in sheep

Christian Persichilli, Maria Teresa Sardina, Michele Congiu, Fabio Pilla, N.P.P. Macciotta, Salvatore Mastrangelo, Gabriele Senczuk, Alberto Cesarani, Corrado Dimauro, Franco Carta
article en

Abstract

In the agri-food supply chain, geographical traceability of milk is essential, quality components being strictly related to the environment and to specific farming. The aim of this study was to test different machine learning approaches for tracing the origin of milk from infra-red spectra in two economically important Italian dairy sheep breeds: Sarda and Valle del Belice. A total of 905 milk samples were collected from Animal farmed in different altimetric zones: plain (≤ 200 metres), hills (350–450), and mountains (> 650 metres). The datasets were divided in training (90%) and testing (10%). Seven models were tested: linear discriminant analysis (LDA), stochastic gradient boosting machine (GBM), support vector machines (SVM), recursive partitioning robust tree (RPART), random forest (RF), K-Nearest neighbours (KNN). The models were calibrated in the training dataset and then used to predict the zone in the testing data set. The procedure was repeated one thousand times by randomly selecting the samples, in the whole dataset or separately by breed. Very different computing time were found, moving from few seconds (LDA and RPART) to more than 20 min (RF). Considering the two breeds together, the LDA model showed the highest accuracy (0.98). The model performances changed according to the breed: GBM was the best model for Sarda, whereas LDA was the best for Valle del Belice. In both breeds, the lowest accuracy was observed for the hill group. The results suggested that this approach can be promising to routinely classify the origin of milk samples using midinfrared spectroscopy.

Italian Journal of Animal ScienceVol. 24(1)
University of Molise (IT), University of Sassari (IT), University of Georgia (US), University of Palermo (IT)
Openalex Percentile: Top 57%
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.