1
|
Frizzarin M, Berry DP, Tavernier E. Using milk mid-infrared spectroscopy to estimate cow-level nitrogen efficiency metrics. J Dairy Sci 2024; 107:5805-5816. [PMID: 38580144 DOI: 10.3168/jds.2023-24438] [Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Abstract] [Key Words] [MESH Headings] [Track Full Text] [Journal Information] [Subscribe] [Scholar Register] [Received: 11/15/2023] [Accepted: 02/27/2024] [Indexed: 04/07/2024]
Abstract
Minimizing pollution from the dairy sector is paramount; one potential cause of such pollution is excess nitrogen. Nitrogen pollution contributes to a deterioration in water quality as well as an increase in both eutrophication and greenhouse gases. It is therefore essential to minimize the loss of nitrogen from the sector, including excretion from the cow. Breeding programs are one potential strategy to improve the efficiency with which nitrogen is used by dairy cows, but they rely on routine access to individual cow information on how efficiently each cow uses the nitrogen it ingests. A total of 3,497 test-day records for individual-cow nitrogen efficiency metrics along with milk yield and the associated milk spectra were used to investigate the ability of milk infrared spectral data to predict these nitrogen traits; both traditional partial least squares regression and neural networks were used in the prediction process. The data originated from 4 farms across 11 yr. The nitrogen traits investigated were nitrogen intake, nitrogen use efficiency, and nitrogen balance. Both nitrogen use efficiency and nitrogen balance were calculated considering nitrogen intake, nitrogen in milk, nitrogen in the conceptus, nitrogen used for the growth, nitrogen stored in body reserves, and nitrogen mobilized from body reserves. Irrespective of the nitrogen-related trait being investigated, the best predictions from 4-fold cross validation were achieved using neural networks that considered both the morning and evening milk spectra along with milk yield, parity, and DIM in the prediction process. The coefficient of determination in the cross validation was 0.61, 0.74, and 0.58 for nitrogen intake, nitrogen use efficiency, and nitrogen balance, respectively. In a separate series of validation approaches, the calibration and validation was stratified by herd (n = 4) and separately by year. For these scenarios, partial least squares regression generated more accurate predictions compared with neural networks; the coefficient of determination was always lower than 0.29 and 0.60 when validation was stratified by herd and year, respectively. Therefore, if the variability of the data being predicted in the validation datasets is similar to that in the data used to develop the predictions, then nitrogen-related traits can be predicted with reasonable accuracy. In contrast, where the variability of the data that exists in the validation dataset is poorly represented in the calibration dataset, then poor predictions will ensue.
Collapse
Affiliation(s)
- M Frizzarin
- Teagasc, Animal & Grassland Research and Innovation Centre, Fermoy P61 P302, Co. Cork, Ireland
| | - D P Berry
- Teagasc, Animal & Grassland Research and Innovation Centre, Fermoy P61 P302, Co. Cork, Ireland.
| | - E Tavernier
- Teagasc, Animal & Grassland Research and Innovation Centre, Fermoy P61 P302, Co. Cork, Ireland; School of Mathematics and Statistics, University College Dublin, Belfield, Dublin D04 C1P1, Ireland
| |
Collapse
|
2
|
Yang S, White B, de Santana FB, Hall RL, Daly K. Comparing the potential of benchtop and handheld mid-infrared spectrometers for predicting soil phosphorus (P) sorption capacity and evaluating the influence of sample preparation. SPECTROCHIMICA ACTA. PART A, MOLECULAR AND BIOMOLECULAR SPECTROSCOPY 2024; 322:124856. [PMID: 39047667 DOI: 10.1016/j.saa.2024.124856] [Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Abstract] [Key Words] [Track Full Text] [Subscribe] [Scholar Register] [Received: 05/07/2024] [Revised: 07/09/2024] [Accepted: 07/19/2024] [Indexed: 07/27/2024]
Abstract
Traditional soil phosphorus (P) sorption capacity is examined from a Langmuir isotherm batch technique, which is time-consuming, labour intensive and generates chemical waste. In this work, we provide an efficient and convenient technique with MIR spectroscopy to predict the Langmuir parameter of soil P sorption maximum capacity (Smax, mg·kg-1). Four spectral libraries from benchtop (Bruker) and handheld (Agilent) MIR spectrometers were built with samples in two particle size ranges, <0.100 mm (ball-milled) and <2 mm. respectively. Using an archive of samples with a database of sorption parameters, soils were classified into 'low' and 'high' sorption capacities. Chemometric regression models of partial least squares (PLS), Cubist, support vector machine (SVM) regression and random forest (RF) were evaluated for Smax prediction. Bruker spectral libraries with both soil particle sizes yielded 'excellent models', with SVM predicting Smax values with high accuracy (RPIQV = 4.50 and 4.25 for the spectral libraries of the ball-milled and <2 mm samples, respectively). In comparison, the Agilent handheld spectral libraries contained more noise and less resolution. For Agilent MIR spectroscopy, more homogeneous samples after ball milling resulted in a higher accurate Smax prediction. For Agilent libraries of ball-milled samples, an 'approximate quantitative model' (RPIQV = 2.74) was obtained from the raw spectra using the Cubist algorithm. However, for Agilent spectroscopy of <2 mm samples, the best performing Cubist algorithm can only achieve a 'fair model' (RPIQV=2.23) with the potential to discriminate between 'low' and 'high' Smax values. The results suggest that the benchtop spectrometer can predict the Langmuir Smax value with high accuracy without the need to ball mill samples. However, the handheld spectrometer can only make approximate quantitative predictions of Smax for ball-milled samples. For <2 mm samples, Agilent can only be used to classify 'low' and 'high' sorption capacity soils.
Collapse
Affiliation(s)
- Sifan Yang
- Environment, Soils and Land Use Department, Teagasc, Johnstown Castle Research Centre, Wexford Y35 TC97, Ireland; DCU Water Institute, School of Chemical Sciences, Dublin City University, Glasnevin, Dublin 9 D09 E432, Ireland
| | - Blánaid White
- DCU Water Institute, School of Chemical Sciences, Dublin City University, Glasnevin, Dublin 9 D09 E432, Ireland
| | - Felipe B de Santana
- Environment, Soils and Land Use Department, Teagasc, Johnstown Castle Research Centre, Wexford Y35 TC97, Ireland
| | - Rebecca L Hall
- Environment, Soils and Land Use Department, Teagasc, Johnstown Castle Research Centre, Wexford Y35 TC97, Ireland
| | - Karen Daly
- Environment, Soils and Land Use Department, Teagasc, Johnstown Castle Research Centre, Wexford Y35 TC97, Ireland.
| |
Collapse
|
3
|
Frizzarin M, Miglior F, Berry DP, Gormley IC, Baes CF. Usefulness of mid-infrared spectroscopy as a tool to estimate body condition score change from milk samples in intensively fed dairy cows. J Dairy Sci 2023; 106:9115-9124. [PMID: 37641249 DOI: 10.3168/jds.2023-23290] [Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Abstract] [Key Words] [MESH Headings] [Track Full Text] [Journal Information] [Subscribe] [Scholar Register] [Received: 01/19/2023] [Accepted: 07/02/2023] [Indexed: 08/31/2023]
Abstract
Directly measuring individual cow energy balance is not trivial. Other traits such as body condition score (BCS) and BCS change (ΔBCS) can, however, be used as an indicator of cow energy status. Body condition score is a metric used worldwide to estimate cow body reserves, but the estimation of ΔBCS was, until now, conditional on the availability of multiple BCS assessments. The aim of the present study was to estimate ΔBCS from milk mid-infrared (MIR) spectra and days in milk (DIM) in intensively fed dairy cows using statistical prediction methods. Daily BCS was interpolated from cubic splines fitted through the BCS records and daily ΔBCS was calculated from these splines. The ΔBCS records were merged with milk MIR spectra recorded on the same week. The dataset comprised 37,077 ΔBCS phenotypes across 9,403 lactations from 6,988 cows in 151 herds based in Quebec, Canada. Partial least squares regression (PLSR) and a neural network (NN) were then used to estimate ΔBCS from (1) MIR spectra only, (2) DIM only, or (3) MIR spectra and DIM together. The ΔBCS data in both the first 120 and 305 DIM of lactation were used to develop the estimates. Daily ΔBCS had a standard deviation of 4.40 × 10-3 BCS units in the 120-d dataset and of 3.63 × 10-3 BCS units in the 305-d dataset. A 4-fold cross-validation was used to calibrate and test the prediction equations. External validation was also conducted using more recent years of data. Irrespective of whether based on the first 120 or 305 DIM, or when MIR spectra only, DIM only or MIR spectra and DIM were jointly used as prediction variables, NN produced the lowest root mean square error (RMSE) of cross-validation (1.81 × 10-3 BCS units and 1.51 × 10-3 BCS units, respectively, using the 120-d and 305-d dataset). Relative to predictions for the entire 305 DIM, the RMSE of cross-validation was 15.4% and 1.5% lower in the first 120 DIM when using PLSR and NN, respectively. Predictions from DIM only were more accurate than those using just MIR spectra data but, irrespective of the dataset and of the prediction model used, combining DIM information with MIR spectral data as prediction variables reduced the RMSE compared with the inclusion of DIM alone, albeit the benefit was small (the RMSE from cross-validation reduced by up to 5.5% when DIM and spectral data were jointly used as model features instead of DIM only). However, when predicting extreme ΔBCS records, the MIR spectral data were more informative than DIM. Model performance when predicting ΔBCS records in future years was similar to that from cross-validation demonstrating the ability of MIR spectra of milk and DIM combined to estimate ΔBCS, particularly in early lactation. This can be used to routinely generate estimates of ΔBCS to aid in day-to-day individual cow management.
Collapse
Affiliation(s)
- M Frizzarin
- School of Mathematics and Statistics, University College Dublin, Dublin, D04 V1W8, Ireland; Teagasc, Animal & Grassland Research and Innovation Centre, Moorepark, Fermoy, P61 P302, Co. Cork, Ireland
| | - F Miglior
- Centre for Genetic Improvement of Livestock, University of Guelph, Guelph, ON, N1G 2W1, Canada; Lactanet Canada, Guelph, ON, N1K 1E5, Canada
| | - D P Berry
- Teagasc, Animal & Grassland Research and Innovation Centre, Moorepark, Fermoy, P61 P302, Co. Cork, Ireland
| | - I C Gormley
- School of Mathematics and Statistics, University College Dublin, Dublin, D04 V1W8, Ireland
| | - C F Baes
- Centre for Genetic Improvement of Livestock, University of Guelph, Guelph, ON, N1G 2W1, Canada; Vetsuisse Faculty, Institute of Genetics, University of Bern, Bern, 3002, Switzerland.
| |
Collapse
|
4
|
Frizzarin M, Gormley IC, Berry DP, McParland S. Estimation of body condition score change in dairy cows in a seasonal calving pasture-based system using routinely available milk mid-infrared spectra and machine learning techniques. J Dairy Sci 2023; 106:4232-4244. [PMID: 37105880 DOI: 10.3168/jds.2022-22394] [Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Abstract] [Key Words] [Track Full Text] [Journal Information] [Subscribe] [Scholar Register] [Received: 06/10/2022] [Accepted: 12/22/2022] [Indexed: 04/29/2023]
Abstract
Body condition score (BCS) is a subjective estimate of body reserves in cows. Body condition score and its change in early lactation have been associated with cow fertility and health. The aim of the present study was to estimate change in BCS (ΔBCS) using mid-infrared spectra of the milk, with a particular focus on estimating ΔBCS in cows losing BCS at the fastest rate (i.e., the cows most of interest to the producer). A total of 73,193 BCS records (scale 1 to 5) from 6,572 cows were recorded. Daily BCS was interpolated from cubic splines fitted through the BCS records, and subsequently used to calculate daily ΔBCS. Body condition score change records were merged with milk mid-infrared spectra recorded on the same week. Both morning (a.m.) and evening (p.m.) spectra were available. Two different statistical methods were used to estimate ΔBCS: partial least squares regression and a neural network (NN). Several combinations of variables were included as model features, such as days in milk (DIM) only, a.m. spectra only and DIM, p.m. spectra only and DIM, and a.m. and p.m. spectra as well as DIM. The data used to estimate ΔBCS were either based on the first 120 DIM or all 305 DIM. Daily ΔBCS had a standard deviation of 1.65 × 10-3 BCS units in the 305 DIM data set and of 1.98 × 10-3 BCS units in the 120 DIM data set. Each data set was divided into 4 sub-data sets, 3 of which were used for training the prediction model and the fourth to test it. This process was repeated until all the sub-data sets were considered as the test data set once. Using all 305 DIM, the lowest root mean square error of validation (RMSEV; 0.96 × 10-3 BCS units) and the strongest correlation between actual and estimated ΔBCS (0.82) was achieved with NN using a.m. and p.m. spectra and DIM. Using the 120 DIM data, the lowest RMSEV (0.98 × 10-3 BCS units) and the strongest correlation between actual and estimated ΔBCS (0.87) was achieved with NN using DIM and either a.m. spectra only or a.m. and p.m. spectra together. The RMSEV for records in the lowest 2.5% ΔBCS percentile per DIM in early lactation was reduced up to a maximum of 13% when spectra and DIM were both considered in the model compared with a model that considered just DIM. The performance of the NN using DIM and a.m. spectra only with the 120 DIM data was robust across different strata of farm, parity, year of sampling, and breed. Results from the present study demonstrate the ability of mid-infrared spectra of milk coupled with machine learning techniques to estimate ΔBCS; specifically, the inclusion of spectral data reduced the RMSEV over and above using DIM alone, particularly for cows losing BCS at the fastest rate. This approach can be used to routinely generate estimates of ΔBCS that can subsequently be used for farm decisions.
Collapse
Affiliation(s)
- M Frizzarin
- School of Mathematics and Statistics, University College Dublin, Dublin D04 V1W8, Ireland; Teagasc, Animal & Grassland Research and Innovation Centre, Moorepark, Fermoy P61 P302, Co. Cork, Ireland
| | - I C Gormley
- School of Mathematics and Statistics, University College Dublin, Dublin D04 V1W8, Ireland.
| | - D P Berry
- Teagasc, Animal & Grassland Research and Innovation Centre, Moorepark, Fermoy P61 P302, Co. Cork, Ireland
| | - S McParland
- Teagasc, Animal & Grassland Research and Innovation Centre, Moorepark, Fermoy P61 P302, Co. Cork, Ireland
| |
Collapse
|
5
|
Gruber S, Rienesl L, Köck A, Egger-Danner C, Sölkner J. Importance of Mid-Infrared Spectra Regions for the Prediction of Mastitis and Ketosis in Dairy Cows. Animals (Basel) 2023; 13:ani13071193. [PMID: 37048449 PMCID: PMC10093284 DOI: 10.3390/ani13071193] [Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Abstract] [Track Full Text] [Journal Information] [Subscribe] [Scholar Register] [Received: 02/15/2023] [Revised: 03/22/2023] [Accepted: 03/27/2023] [Indexed: 03/31/2023] Open
Abstract
Mid-infrared (MIR) spectroscopy is routinely applied to determine major milk components, such as fat and protein. Moreover, it is used to predict fine milk composition and various traits pertinent to animal health. MIR spectra indicate an absorbance value of infrared light at 1060 specific wavenumbers from 926 to 5010 cm−1. According to research, certain parts of the spectrum do not contain sufficient information on traits of dairy cows. Hence, the objective of the present study was to identify specific regions of the MIR spectra of particular importance for the prediction of mastitis and ketosis, performing variable selection analysis. Partial least squares discriminant analysis (PLS-DA) along with three other statistical methods, support vector machine (SVM), least absolute shrinkage and selection operator (LASSO), and random forest (RF), were compared. Data originated from the Austrian milk recording and associated health monitoring system (GMON). Test-day data and corresponding MIR spectra were linked to respective clinical mastitis and ketosis diagnoses. Certain wavenumbers were identified as particularly relevant for the prediction models of clinical mastitis (23) and ketosis (61). Wavenumbers varied across four distinct statistical methods as well as concerning different traits. The results indicate that variable selection analysis could potentially be beneficial in the process of modeling.
Collapse
Affiliation(s)
- Stefan Gruber
- Institute of Livestock Sciences, University of Natural Resources and Life Sciences, Vienna (BOKU), Gregor-Mendel-Straße 33, 1180 Vienna, Austria
| | - Lisa Rienesl
- Institute of Livestock Sciences, University of Natural Resources and Life Sciences, Vienna (BOKU), Gregor-Mendel-Straße 33, 1180 Vienna, Austria
- Correspondence: ; Tel.: +43-1-476-549-3201
| | - Astrid Köck
- ZuchtData EDV-Dienstleistungen GmbH, Dresdner Straße 89/19, 1200 Vienna, Austria
| | - Christa Egger-Danner
- ZuchtData EDV-Dienstleistungen GmbH, Dresdner Straße 89/19, 1200 Vienna, Austria
| | - Johann Sölkner
- Institute of Livestock Sciences, University of Natural Resources and Life Sciences, Vienna (BOKU), Gregor-Mendel-Straße 33, 1180 Vienna, Austria
| |
Collapse
|
6
|
Casa A, O’Callaghan TF, Murphy TB. Parsimonious Bayesian factor analysis for modelling latent structures in spectroscopy data. Ann Appl Stat 2022. [DOI: 10.1214/21-aoas1597] [Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Track Full Text] [Journal Information] [Subscribe] [Scholar Register] [Indexed: 11/19/2022]
Affiliation(s)
- Alessandro Casa
- School of Mathematics & Statistics, University College Dublin
| | | | | |
Collapse
|
7
|
Niero G, Meoni G, Tenori L, Luchinat C, Visentin G, Callegaro S, Visentin E, Cassandro M, De Marchi M, Penasa M. Grazing affects metabolic pattern of individual cow milk. J Dairy Sci 2022; 105:9702-9712. [DOI: 10.3168/jds.2022-22072] [Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Track Full Text] [Journal Information] [Subscribe] [Scholar Register] [Received: 03/11/2022] [Accepted: 07/28/2022] [Indexed: 11/17/2022]
|
8
|
Prediction of Indirect Indicators of a Grass-Based Diet by Milk Fourier Transform Mid-Infrared Spectroscopy to Assess the Feeding Typologies of Dairy Farms. Animals (Basel) 2022; 12:ani12192663. [PMID: 36230404 PMCID: PMC9559478 DOI: 10.3390/ani12192663] [Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Abstract] [Key Words] [Track Full Text] [Download PDF] [Figures] [Journal Information] [Subscribe] [Scholar Register] [Received: 09/02/2022] [Revised: 09/26/2022] [Accepted: 09/28/2022] [Indexed: 12/05/2022] Open
Abstract
This research aims to develop a predictive model to discriminate milk produced from a cattle diet either based on grass or not using milk mid-infrared spectrometry and the month of testing (an indirect indicator of the feeding ration). The dataset contained 3,377,715 spectra collected between 2011 and 2021 from 2449 farms and 3 grazing traits defined following the month of testing. Records from 30% of the randomly selected farms were kept in the calibration set, and the remaining records were used to validate the models. Around 90% of the records were correctly discriminated. This accuracy is very good, as some records could be erroneously assigned. The probability of belonging to the GRASS modality allowed confirmation of the model's ability to detect the transition period even if the model was not trained on this data. Indeed, the probability increased from the spring to the summer and then decreased. The discrimination was mainly explained by the changes in the milk fat, mineral, and protein compositions. A hierarchical clustering from the averaged probability per farm and year highlighted 12 groups illustrating different management practices. The probability of belonging to the GRASS class could be used in a tool counting the number of grazing days.
Collapse
|