Next Article in Journal
Modelling of the Effects of Antimicrobial Agents on the Compressive Strength of High-Performance Concrete Using Response Surface Methodology
Previous Article in Journal
Confinement–Segregation Theory to Explain the Formation Mechanism of Peptide-Containing Particles in Metered Dose Inhalers
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

Online Near-Infrared Spectroscopy for the Measurement of Cow Milk Quality in an Automatic Milking System †

1
Graduate School of Agricultural Science, Hokkaido University, Sapporo 060-8589, Japan
2
Field Science for Northern Biosphere, Hokkaido University, Sapporo 060-0811, Japan
3
Orion Machinery Co., Ltd., Nagano 382-8502, Japan
*
Author to whom correspondence should be addressed.
Presented at the 4th International Electronic Conference on Applied Sciences, 27 October–10 November 2023; Available online: https://asec2023.sciforum.net/.
Eng. Proc. 2023, 56(1), 145; https://doi.org/10.3390/ASEC2023-16302
Published: 17 November 2023
(This article belongs to the Proceedings of The 4th International Electronic Conference on Applied Sciences)

Abstract

:
This study developed an online near-infrared spectrometer for measuring cow milk quality indicators, such as fat, protein, and lactose, solids not fat, and somatic cell count. Milk samples were obtained from 24 Holstein cows and analyzed using an automatic milking system. The system demonstrated high accuracy for predicting each’s cow milk quality every 20 s during milking and at one milking time, allowing dairy farmers to improve farm management and produce high-quality milk. This precision dairy farming system could help dairy farmers overcome individual cow management issues and achieve high-quality milk production.

1. Introduction

Dairy farming requires many specific jobs, including milking, feeding, managing livestock, feed production and manure processing [1]. Large scale dairy farmers routinely manage their livestock in groups in a system known as herd management [1,2]. However, a system called individual cow management is needed to monitor the quality of the milk components of each cow, which is essential for breeding, efficient cow utilization and feed management. For these reasons, there is a recent need for a technology that allows dairy farmers to measure the milk quality of individual cows during milking [3,4].
The non-invasive, fast, user-friendly, time saving, and pretreatment-free features of near-infrared spectroscopy (NIRS) makes it an adequate technique for measuring milk quality during the milking process [5,6,7,8,9]. NIRS was used to measure and provide qualitative and quantitative information on agricultural products, including rice, wheat, pomegranate, and carrots [10,11,12,13,14]. NIRS has been used in practice to automatically measure rice quality in Japan [13]. However, the use of NIRS for online monitoring of individual cows in real-time during milking has not yet been realize [15,16].
In this study, an experimental online near-infrared (NIR) spectrometer for milk quality measurement was developed. According to Iweka et al., [17], the NIR spectrometer can be used to measure the milk quality of individual cow during milking in real-time with acceptable precision and accuracy. For this reason, we installed the NIR spectrometer into an automatic milking system.
The purpose of this study was to investigate the precision and accuracy of the NIR spectroscopic sensing system for individual cow milk quality measurement in an automatic milking system.

2. Materials and Methods

2.1. Near-Infrared Spectroscopy

An experimental-based online NIR spectrometer was developed to measure each cow’s milk quality during milking. The set-up included a laptop computer, a milk flow meter, a milk sampler, and an NIR spectroscopy sensor (Figure 1). The NIR spectroscopic sensing system was put into an automatic milking system (GEA Farm Technologies, Bönen, Germany). The milk chamber of the NIR spectroscopy sensor was constantly filled with raw milk from the automatic milking system through a bypass. Extra raw milk was discharged into a bulk milk tank through a line tube after flowing past the milk flow meter. A milk sample occupied about 30 mL of the milk chamber of the NIR spectroscopy sensor (Table 1). The halogen lamps A and B had their optical axes set at the same level as the optical fiber, but halogen lamp C had its optical axis set 5 mm higher than the optical fiber (Figure 2). Through the milk, the NIR spectroscopy sensor collected absorbance spectra. Spectral were collected during milking at 1 nm intervals every 20 s in the 700 nm to 1050 nm wavelength range. The laptop computer concurrently recorded the milk flow rate.

2.2. Holstein Cows and Milk Samples

In this study, we used 24 Holstein cows from a dairy barn in the Tochigi prefecture of Japan. The lactation phases of these cows varied. On 28 and 29 November 2019, which were successive days, the experiment was carried out continuously throughout the day. Once a cow entered the automatic milking system, the milking began immediately. Throughout milking, milk samples were taken from the milking sampler every 20 s.

2.3. Reference Analysis

A MilkoScan instrument was used to measure the three major milk quality indicators (milk fat, protein, lactose), and SNF, while a Fossomatic instrument was used to measure SCC. Both instruments are from Foss Electric, Hillerod, Denmark. A total of 377 milk samples were used for the reference analyses.

2.4. Chemometric Analysis

Statistical analyses were conducted to create calibration models for each milk quality indicator and to confirm the models’ precision and accuracy. The analyses were conducted using the Unscrambler ver. 10.3 from Camo AS Trondheim, Norway, which analyzes spectral data. The total data from the reference analyses were randomly divided into two datasets, so that two-thirds of all data were used as a calibration set and the remaining data (one-third) were used as a validation set. The calibration models were created from the absorbance spectral and reference data using the partial least squares regression (PLSR) technique. A pretreatment method such as Gap-Segment derivative was used because the best models were produced when we used the pretreated spectra data.

3. Results and Discussion

3.1. Near-Infrared Spectra

Figure 3 shows the original raw milk spectra. The NIR spectra revealed two bands, with peaks at approximately 740 nm and 840 nm, respectively. These bands represent the overtone absorptions by C-H bands and C-C bands, which are connected to the unique absorption bands of milk components, like fat, protein, lactose, and SNF. O-H functional groups in water had a high absorption peak, which made the band at around 960 nm stand out in the spectra.

3.2. Calibration Model’s Precision and Accuracy (Measurement Results at Every 20 s)

Table 2 summarizes the validation results of the NIR spectrometer for the quality measurement of milk quality indicators. The correlations between reference and NIR predicted values of the milk fat content and SCC are shown in Figure 4 and Figure 5, respectively.
For predicting milk fat, protein, lactose, SNF and SCC, the coefficient of determination (r2), standard error prediction (SEP), and bias were 0.99, 0.17% and 0.01% for milk fat content, 0.79, 0.22% and 0.01% for milk protein content, 0.71, 0.12% and 0.01% for milk lactose, 0.71, 0.25% and 0.03% for SNF, and 0.65, 0.44 log SCC/mL and −0.02 log SCC/mL, respectively. The high r2 values, low SEP values, and negligible bias values (almost zero) were indicative of high precision and accuracy. The calibration model for milk fat performed very well. The exceptionally high accuracy was made possible by the fact that triacylglycerol’s carbon-hydrogen strings were well-represented in NIR spectra. These findings suggested that the NIR could be used to measure the three major milk quality indicators of raw milk, and SNF of each cow during milking. The level of precision and accuracy for predicting SCC was adequate. SCC is a globally recognized indicator of cow subclinical mastitis disease, and the calibration model created for SCC could be used to diagnose subclinical mastitis. As a result, the online NIR spectrometer integrated into an automatic milking system could be used to continuously monitor the physiological state of each cow during milking in real-time.

3.3. Milk Analysis at One Milking Time

Table 3 presents the validation results of the NIR spectrometer for milk quality measurement at a single milking of all cows. The correlations between reference and NIR predicted values of the milk fat content and SCC are shown in Figure 6 and Figure 7, respectively.
For each milk quality indicator measured, the validation results, r2, SEP, and bias values were high, low, and negligible, respectively. The r2, SEP, and bias values obtained for milk fat, protein, lactose, SNF and SCC, were 0.98, 0.15% and 0.05% for milk fat content, 0.83, 0.18% and −0.07% for milk protein content, 0.87, 0.08% and 0.01% for milk lactose, 0.94, 0.10% and −0.02% for SNF, and 0.83, 0.36 log SCC/mL and −0.17 log SCC/mL, respectively. According to the validation results, the accuracy of these calibration models for measuring each milk quality indicator at one milking time was very high.
SEP values were used as a significant statistical indicator for the effectiveness of the calibration models created in this study. As a result, each milk quality indicators’ precision and accuracy at intervals of 20 s during milking and at one milking time were nearly the same. This means that it may be possible to measure each cow’s milk quality and physiological state by keeping records of milk quality predicted values at each milking time using the NIR spectrometer developed in this study.

3.4. Dairy Precision Farming

The integration of the NIR spectrometer we developed into an automatic milking system would make it easier to measure milk quality indicators and diagnose mastitis in each cow in real-time while they are being milked. The NIR spectrometer may offer dairy farmers and veterinarians’ helpful information on the physiological state of each cow and the quality of their milk, providing assessment control for better dairy farm management. By using this NIR spectrometer, dairy farm management could advance to the next stage of dairy precision farming using data from each cow.

4. Conclusions

During milking via an automatic milking system, the online NIR spectrometer developed in this research can be used to monitor milk fat, protein, lactose, SNF, and SCC in real-time. By way of application, dairy farmers would be able to produce milk of the highest quality, and dairy precision farming would become a reality.

Author Contributions

Conceptualization, S.K. and P.I.; methodology, S.K., P.I, T.M. and T.K.; software, S.K. and P.I.; validation, P.I. and S.K.; formal analysis, P.I., S.K. and T.M.; investigation, P.I., S.K., T.M. and T.K.; data curation, P.I. and S.K.; writing-original draft preparation, P.I., writing-review and editing, S.K., T.M. and P.I. All authors have read and agreed to the published version of the manuscript.

Funding

This research was supported by a grant from the project of the National Agriculture and Food Research Organization (NARO), in Japan titled On-farm Demonstration Trial of Smart Agriculture. Grant number 19189860.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

All new data obtained in this work are summarized in the content of this paper.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Lopez-Villalobos, N.; Jayawardana, J.M.D.R.; McNaughton, L.R.; Hickson, R.E. A review of once-a-day milking in dairy cow grazing systems. JDS Commun. 2023, 4, 329–333. [Google Scholar] [CrossRef] [PubMed]
  2. Svennersten-Sjaunja, H.; Sjaunja, K.; Bertilsson, L.-O.; Wiktorsson, J. Use of regular milking recorded versus daily records for nutrition and other kinds of management. Livest Prod. Sci. 1997, 48, 167–174. [Google Scholar] [CrossRef]
  3. Lovarelli, D.; Bacenetti, J.; Guarino, M. A review on dairy cattle farming: Is precision livestock farming the compromise for an environmental, economic and social sustainable production? J. Clean Prod. 2020, 262, 121409. [Google Scholar] [CrossRef]
  4. Iweka, P.; Kawamura, S.; Mitani, T.; Yamaguchi, T.; Koseki, S. Near-infrared Spectroscopic Sensing System for Online Real-time Milk Quality Evaluation in an Automatic Milking System. In Proceedings of the 7th Asian NIR Symposium (ANS 2020), Khonkaen, Thailand, 12–15 February 2020. [Google Scholar]
  5. Iweka, P.; Kawamura, S.; Mitani, T.; Yokoe, M.; Okatani, T. Effect of Milking Season on the Accuracy of Calibration Models for Milk Quality Determination using Near-infrared Spectroscopic Sensing System during Milking. In Proceedings of the 5th Asian NIR Symposium, Kagoshima, Japan, 30 November 2016. [Google Scholar]
  6. Kawamura, S.; Kawasaki, M.; Nakatsuji, H.; Natsuga, M. Near-infrared spectroscopic sensing system for online monitoring of milk quality during milking. Sens. Instrum. Food Qual. Saf. 2007, 1, 37–43. [Google Scholar] [CrossRef]
  7. Tsenkova, R.; Atanassova, S.; Morita, H.; Ikuta, K.; Toyoda, K.; Iordanova, K.I.; Hakogi, E. Near Infrared Spectra of Cows’ Milk for Milk Quality Evaluation: Disease Diagnosis and Pathogen Identification. J. Near Infrared Spectrosc. 2006, 14, 363–370. [Google Scholar] [CrossRef]
  8. Iweka, P.; Kawamura, S.; Mitani, T.; Koseki, S. Non-destructive determination of bovine milk progesterone concentration during milking using near-infrared spectroscopy. CIGR J. 2020, 22, 171–178. [Google Scholar]
  9. Iweka, P.; Kawamura, S.; Morita, A.; Mitani, T.; Okatani, T.; Koseki, S. Development of a Near-infrared Spectroscopic Sensing System for Milk Quality Evaluation during Milking. In Proceedings of the International Conference on Agricultural Engineering (Automation, Environment and Food Safety), Aarhus, Denmark, 26–29 June 2016. [Google Scholar]
  10. Sato, T.; Yoshino, M.; Furukawa, S.; Someya, Y.; Yano, N.; Uozumi, J.; Iwamoto, M. Analysis of Near Infrared Milk Constituents by the Spectrophotometric Method. Jpn. J. Zootech. Sci. 1987, 58, 698–706. [Google Scholar] [CrossRef]
  11. Okere, E.E.; Arendse, E.; Tsige, A.A.; Perold, W.J.; Opara, U.L. Pomegranate Quality Evaluation Using Non-Destructive Approaches: A Review. Agriculture 2022, 12, 2034. [Google Scholar] [CrossRef]
  12. Nicolaï, B.M.; Defraeye, T.; Ketelaere, B.; Herremans, E.; Hertog, M.L.; Saeys, W.; Torricelli, A.; Vandendriessche, T.; Verboven, P. Nondestructive measurement of fruit and vegetable quality. Annu. Rev. Food. Sci. Technol. 2014, 5, 285–312. [Google Scholar] [CrossRef] [PubMed]
  13. Kawamura, S.; Natsuga, M.; Takekura, K.; Itoh, K. Development of an automatic rice-quality inspection system. Comput. Electron. Agric. 2003, 40, 115–126. [Google Scholar] [CrossRef]
  14. Natsuga, M.; Nakamura, A.; Kawamura, S.; Kazuhiko, I. Determination of the Quality of High-Moisture Wheat using Near-Infrared Spectroscopy (Part 2). J. Jpn. Soc. Agri. Mach. 2003, 65, 100–107. [Google Scholar] [CrossRef]
  15. Iweka, P.; Kawamura, S.; Mitani, T.; Koseki, S. Effect of Cow Individuality and Calving times on accuracy of near-infrared spectroscopic sensing system for milk Quality Determination during Milking. In Proceedings of the 33rd NIR Forum, JCNIRS; Japan Council of NIR Spectroscopy: Tsukuba, Japan, 2017; p. 83. [Google Scholar]
  16. Kawasaki, M.; Kawamura, S.; Tsukahara, M.; Morita, S.; Komiya, M.; Natsuga, M. Near-infrared spectroscopic sensing system for on-line milk quality assessment in a milking robot. Comput Electron Agric. 2008, 63, 22–27. [Google Scholar] [CrossRef]
  17. Iweka, P.; Kawamura, S.; Mitani, T.; Kawaguchi, T.; Koseki, S. Cow Milk Progesterone Concentration Assessment during Milking Using Near-infrared Spectroscopy. EAEF 2021, 14, 30–36. [Google Scholar] [CrossRef]
Figure 1. Flow chart of an online near-infrared spectrometer for measuring milk quality in an automatic milking system.
Figure 1. Flow chart of an online near-infrared spectrometer for measuring milk quality in an automatic milking system.
Engproc 56 00145 g001
Figure 2. Schematic of the optical system of the milk chamber of the near-infrared spectroscopy sensor.
Figure 2. Schematic of the optical system of the milk chamber of the near-infrared spectroscopy sensor.
Engproc 56 00145 g002
Figure 3. Original spectra of raw milk from cow number 1 during milking on 28 November 2019.
Figure 3. Original spectra of raw milk from cow number 1 during milking on 28 November 2019.
Engproc 56 00145 g003
Figure 4. Correlation between reference fat content and NIR-predicted fat content at every 20 s during milking.
Figure 4. Correlation between reference fat content and NIR-predicted fat content at every 20 s during milking.
Engproc 56 00145 g004
Figure 5. Correlation between reference SCC and NIR-predicted SCC at every 20 s during milking.
Figure 5. Correlation between reference SCC and NIR-predicted SCC at every 20 s during milking.
Engproc 56 00145 g005
Figure 6. Correlation between reference fat content and NIR-predicted fat content at one milking time.
Figure 6. Correlation between reference fat content and NIR-predicted fat content at one milking time.
Engproc 56 00145 g006
Figure 7. Correlation between reference SCC and NIR-predicted SCC at one milking time.
Figure 7. Correlation between reference SCC and NIR-predicted SCC at one milking time.
Engproc 56 00145 g007
Table 1. Specifications of the near-infrared spectroscopy instrument.
Table 1. Specifications of the near-infrared spectroscopy instrument.
Devices Specifications
NIR spectrum sensorAbsorbance spectrum sensor
Light sourceThree halogen lamps
Optical fiberQuartz Fiber
Milk chamber surfaceGlass
Volume of milk sampleApprox. 30 mL
Distance between
optical axis and milk level
55 mm
NIR spectrometerDiffraction grating spectrometer
Optical densityAbsorbance
Wavelength range700–1050 nm, 1-nm internal
Wavelength resolutionApprox. 6.4 nm
PhotocellCMOS linear array, 512 pixels
Thermal controllerHeater and cooling fan
Data processing computerWindows 7
A/D converter16 bit
Spectrum data acquisitionEvery 20 s
Table 2. Validation statistics of near-infrared spectrometer for milk quality measurement at every 20 s during milking.
Table 2. Validation statistics of near-infrared spectrometer for milk quality measurement at every 20 s during milking.
Milk Quality
Indicators
n1n2Ranger2SEPBiasRPDRegression Line
Fat (%)2521250.98–8.540.990.170.018.86y = 1.03 x − 0.11
Protein (%)2521252.76–4.460.790.220.012.16y = 0.91 x + 0.31
Lactose (%)2521253.99–4.970.710.120.011.86y = 0.98 x + 0.07
SNF (%)2521258.15–10.090.710.250.031.83y = 0.92 x + 0.71
SCC (log SCCmL−1)2521253.70–6.470.650.44-0.021.69y = 1.02 x − 0.09
n1: number of calibration samples. n2: number of validation samples. r2: coefficient of determination value of validation set. SEP: standard error of prediction. RPD: Ratio of SEP to standard deviation of reference data. Regression line: Regression line from predicted value (x) to reference value (y). SNF: Solids not fat. SCC: Somatic cell count.
Table 3. Validation statistics of near-infrared spectrometer for milk quality measurement at one milking time.
Table 3. Validation statistics of near-infrared spectrometer for milk quality measurement at one milking time.
Milk Quality IndicatornRanger2SEPBiasRPDRegression Line
Fat (%)201.96–5.790.980.150.056.92y = 0.98 x + 0.01
Protein (%)202.89–4.170.830.18−0.072.43y = 0.96 x + 0.22
Lactose (%)204.22–4.850.870.080.012.50y = 1.22 x − 1.01
SNF (%)208.59–9.820.940.10−0.024.08y = 0.96 x + 0.37
SCC (log SCC/mL)204.00–6.470.830.36−0.172.12y = 1.35 x − 1.49
n: number of milking times. r2: coefficient of determination value of validation set. SEP: standard error of prediction. RPD: Ratio of SEP to standard deviation of reference data. Regression line: Regression line from predicted value (x) to reference value (y). SNF: Solids not fat. SCC: Somatic cell count.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Iweka, P.; Kawamura, S.; Mitani, T.; Kawaguchi, T. Online Near-Infrared Spectroscopy for the Measurement of Cow Milk Quality in an Automatic Milking System. Eng. Proc. 2023, 56, 145. https://doi.org/10.3390/ASEC2023-16302

AMA Style

Iweka P, Kawamura S, Mitani T, Kawaguchi T. Online Near-Infrared Spectroscopy for the Measurement of Cow Milk Quality in an Automatic Milking System. Engineering Proceedings. 2023; 56(1):145. https://doi.org/10.3390/ASEC2023-16302

Chicago/Turabian Style

Iweka, Patricia, Shuso Kawamura, Tomohiro Mitani, and Takashi Kawaguchi. 2023. "Online Near-Infrared Spectroscopy for the Measurement of Cow Milk Quality in an Automatic Milking System" Engineering Proceedings 56, no. 1: 145. https://doi.org/10.3390/ASEC2023-16302

Article Metrics

Back to TopTop