Milk is one of the traditional foods in the human diet. However, subclinical mastitis infection in cows could compromise the nutritional composition of milk as well as the consumer safety. In this study, we investigated the possibility of implementing near infrared spectroscopy (NIRS), using a portable spectrometer, as a screening method to detect milk contaminated with subclinical mastitis. The spectra was acquired from a highly complex milk sample set (two seasons: winter and summer; two years: 2021 and 2022; from five geographical locations within Brazil: Goiás, Pará, Paraíba, São Paulo, and Santa Catarina; different feeding systems.) were analyzed using Principal Component Analysis (PCA) and Partial Least Squares Discriminant Analysis (PLS-DA), as well as machine learning models like Random Forest (RF) and Support Vector Machine (SVM). PCA revealed that the clustering of mastitis milk and non-mastitis milk samples was associated with variations in lactose content. This observation was also noted in PLS-DA, which achieved accuracy values of 78%, compared to the 62% achieved by RF and SVM in detecting mastitis milk. However, the sensitivity (recall) for detecting mastitis samples was higher for RF (78%), and SVM notably excelled in detecting non-mastitis milk (81%). Furthermore, it was demonstrated that the removal of outliers using Isolation Forest enhances the performance of RF and SVM models based on NIR spectra, with increases of up to 25% in the precision. In conclusion, the portable NIR spectrometer could potentially serve as a screening method in the dairy industry to detect mastitis milk samples.

Portable near infrared (NIR) spectrometer coupled with machine learning to classify milk with subclinical mastitis / Da Silva Pereira, E.; Cruz-Tirado, J. P.; Lourenco Crippa, B.; Martins Morasi, R.; Milagres De Almeida, J.; Fernandes Barbin, D.; Barbon Junior, S.; Cristina Cirone Silva, N.. - In: FOOD CONTROL. - ISSN 0956-7135. - 163:(2024), pp. 110527.--110527.-. [10.1016/j.foodcont.2024.110527]

Portable near infrared (NIR) spectrometer coupled with machine learning to classify milk with subclinical mastitis

Barbon Junior S.
Penultimo
;
2024-01-01

Abstract

Milk is one of the traditional foods in the human diet. However, subclinical mastitis infection in cows could compromise the nutritional composition of milk as well as the consumer safety. In this study, we investigated the possibility of implementing near infrared spectroscopy (NIRS), using a portable spectrometer, as a screening method to detect milk contaminated with subclinical mastitis. The spectra was acquired from a highly complex milk sample set (two seasons: winter and summer; two years: 2021 and 2022; from five geographical locations within Brazil: Goiás, Pará, Paraíba, São Paulo, and Santa Catarina; different feeding systems.) were analyzed using Principal Component Analysis (PCA) and Partial Least Squares Discriminant Analysis (PLS-DA), as well as machine learning models like Random Forest (RF) and Support Vector Machine (SVM). PCA revealed that the clustering of mastitis milk and non-mastitis milk samples was associated with variations in lactose content. This observation was also noted in PLS-DA, which achieved accuracy values of 78%, compared to the 62% achieved by RF and SVM in detecting mastitis milk. However, the sensitivity (recall) for detecting mastitis samples was higher for RF (78%), and SVM notably excelled in detecting non-mastitis milk (81%). Furthermore, it was demonstrated that the removal of outliers using Isolation Forest enhances the performance of RF and SVM models based on NIR spectra, with increases of up to 25% in the precision. In conclusion, the portable NIR spectrometer could potentially serve as a screening method in the dairy industry to detect mastitis milk samples.
2024
16-apr-2024
Pubblicato
File in questo prodotto:
File Dimensione Formato  
1-s2.0-S0956713524002445-main.pdf

Accesso chiuso

Tipologia: Documento in Versione Editoriale
Licenza: Copyright Editore
Dimensione 4.77 MB
Formato Adobe PDF
4.77 MB Adobe PDF   Visualizza/Apri   Richiedi una copia
Pubblicazioni consigliate

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11368/3115684
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 27
  • ???jsp.display-item.citation.isi??? 21
social impact