<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.3 20070202//EN" "journalpublishing.dtd">
<article article-type="research-article" dtd-version="2.3" xml:lang="EN" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Chem.</journal-id>
<journal-title>Frontiers in Chemistry</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Chem.</abbrev-journal-title>
<issn pub-type="epub">2296-2646</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="publisher-id">733331</article-id>
<article-id pub-id-type="doi">10.3389/fchem.2021.733331</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Chemistry</subject>
<subj-group>
<subject>Original Research</subject>
</subj-group>
</subj-group>
</article-categories>
<title-group>
<article-title>Routine Monitoring of Instrument Stability in a Milk Testing Laboratory With ASCA: A Pilot Study</article-title>
<alt-title alt-title-type="left-running-head">Nieuwoudt et&#x20;al.</alt-title>
<alt-title alt-title-type="right-running-head">Monitoring Instrument Performance Using ASCA</alt-title>
</title-group>
<contrib-group>
<contrib contrib-type="author" corresp="yes">
<name>
<surname>Nieuwoudt</surname>
<given-names>Michel K.</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
<xref ref-type="aff" rid="aff3">
<sup>3</sup>
</xref>
<xref ref-type="aff" rid="aff4">
<sup>4</sup>
</xref>
<xref ref-type="aff" rid="aff5">
<sup>5</sup>
</xref>
<xref ref-type="corresp" rid="c001">&#x2a;</xref>
<uri xlink:href="https://loop.frontiersin.org/people/1253931/overview"/>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Giglio</surname>
<given-names>Cannon</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
<xref ref-type="aff" rid="aff3">
<sup>3</sup>
</xref>
<uri xlink:href="https://loop.frontiersin.org/people/1434223/overview"/>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Marini</surname>
<given-names>Federico</given-names>
</name>
<xref ref-type="aff" rid="aff6">
<sup>6</sup>
</xref>
<uri xlink:href="https://loop.frontiersin.org/people/143618/overview"/>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Scott</surname>
<given-names>Gavin</given-names>
</name>
<xref ref-type="aff" rid="aff5">
<sup>5</sup>
</xref>
</contrib>
<contrib contrib-type="author" corresp="yes">
<name>
<surname>Holroyd</surname>
<given-names>Stephen E.</given-names>
</name>
<xref ref-type="aff" rid="aff7">
<sup>7</sup>
</xref>
<xref ref-type="corresp" rid="c001">&#x2a;</xref>
</contrib>
</contrib-group>
<aff id="aff1">
<label>
<sup>1</sup>
</label>The Photon Factory, The University of Auckland, <addr-line>Auckland</addr-line>, <country>New&#x20;Zealand</country>
</aff>
<aff id="aff2">
<label>
<sup>2</sup>
</label>School of Chemical Sciences, The University of Auckland, <addr-line>Auckland</addr-line>, <country>New&#x20;Zealand</country>
</aff>
<aff id="aff3">
<label>
<sup>3</sup>
</label>The MacDiarmid Institute for Advanced Materials and Nanotechnology, <addr-line>Wellington</addr-line>, <country>New&#x20;Zealand</country>
</aff>
<aff id="aff4">
<label>
<sup>4</sup>
</label>The Dodd-Walls Centre for Photonic and Quantum Technologies, <addr-line>Dunedin</addr-line>, <country>New&#x20;Zealand</country>
</aff>
<aff id="aff5">
<label>
<sup>5</sup>
</label>Fonterra On-farm R and D, <addr-line>Hamilton</addr-line>, <country>New&#x20;Zealand</country>
</aff>
<aff id="aff6">
<label>
<sup>6</sup>
</label>Dipartimento di Chimica, Universita di Roma &#x201c;La Sapienza&#x201d;, <addr-line>Rome</addr-line>, <country>Italy</country>
</aff>
<aff id="aff7">
<label>
<sup>7</sup>
</label>Fonterra Research and Development, <addr-line>Palmerston North</addr-line>, <country>New&#x20;Zealand</country>
</aff>
<author-notes>
<fn fn-type="edited-by">
<p>
<bold>Edited by:</bold> <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/61125/overview">Cosimino Malitesta</ext-link>, University of Salento, Italy</p>
</fn>
<fn fn-type="edited-by">
<p>
<bold>Reviewed by:</bold> <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/1330827/overview">Of&#xe9;lia Anjos</ext-link>, Instituto Politecnico de Castelo Branco, Portugal</p>
<p>
<ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/1369652/overview">Alessandro Ulrici</ext-link>, University of Modena and Reggio Emilia, Italy</p>
</fn>
<corresp id="c001">&#x2a;Correspondence: Michel K. Nieuwoudt, <email>m.nieuwoudt@auckland.ac.nz</email>; Stephen E. Holroyd, <email>steve.holroyd@fonterra.com</email>
</corresp>
<fn fn-type="other">
<p>This article was submitted to Analytical Chemistry, a section of the journal Frontiers in Chemistry</p>
</fn>
</author-notes>
<pub-date pub-type="epub">
<day>07</day>
<month>10</month>
<year>2021</year>
</pub-date>
<pub-date pub-type="collection">
<year>2021</year>
</pub-date>
<volume>9</volume>
<elocation-id>733331</elocation-id>
<history>
<date date-type="received">
<day>30</day>
<month>06</month>
<year>2021</year>
</date>
<date date-type="accepted">
<day>13</day>
<month>09</month>
<year>2021</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#xa9; 2021 Nieuwoudt, Giglio, Marini, Scott and Holroyd.</copyright-statement>
<copyright-year>2021</copyright-year>
<copyright-holder>Nieuwoudt, Giglio, Marini, Scott and Holroyd</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/">
<p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these&#x20;terms.</p>
</license>
</permissions>
<abstract>
<p>Mid-infrared spectroscopy has been developed as a reliable and rapid tool for routine analysis of fat, protein, lactose and other components in liquid milk. However, variations within and between FTIR instruments, even within the same milk testing laboratory, present a challenge to the accuracy of measurement of particularly minor components in the milk, such as individual fatty acids or proteins. In this study we have used Analysis of variance&#x2013;Simultaneous Component Analysis (ASCA), to monitor the spectral variation between and within each of four different FOSS FTIR spectrometers over each week in an independent milk testing laboratory over 4&#xa0;years, between August 2017 and March 2021 (223&#xa0;weeks). On everyday of each week, spectra of the same pilot milk sample were recorded approximately every hour on each of the four instruments. Overall, variations between instruments had the largest effect on spectral variation over each week, making a significant contribution every week. Within each instrument, day-to-day variations over the week were also significant for all but two of the weeks measured, however it contributed less to the variance overall. At certain times other factors not explained by weekday variation or inter-instrument variation dominated the variance in the spectra. Examination of the scores and loadings of the weekly ASCA analysis allowed identification of changes in the spectral regions affected by drifts in each instrument over time. This was found to particularly affect some of the fatty acid predictions.</p>
</abstract>
<kwd-group>
<kwd>ASCA</kwd>
<kwd>quality control</kwd>
<kwd>milk testing</kwd>
<kwd>instrument stability</kwd>
<kwd>standardization</kwd>
<kwd>FTIR spectroscopy</kwd>
<kwd>analysis of variance with simultaneous component analysis</kwd>
</kwd-group>
</article-meta>
</front>
<body>
<sec id="s1">
<title>Introduction</title>
<p>The goal of quantitative mid-infrared (MIR) analysis is to reproduce the analytical results achieved with accepted standard reference methods. The quantitative analysis of milk components from MIR spectra is based on the direct proportionality between the intensities of the absorbance bands for each component and their concentrations and the path length through the sample. The accuracy of this measurement requires routine calibration of the spectrometers with pre-analysed milk (with chemical reference tests). Signal variations in the interferometer within an instrument over time, between different instruments and between different types of instruments can alter the shapes, intensities and relative intensities of the vibrational mode bands (<xref ref-type="bibr" rid="B14">Pelletier, 2003</xref>) which can affect the prediction accuracy, particularly of minor milk components such as individual fatty acids. The accuracy of a predictive calibration is affected both by instrumental factors (<xref ref-type="bibr" rid="B18">Smith et&#x20;al., 1993</xref>) and by the characteristics of the materials used to calibrate the instruments (<xref ref-type="bibr" rid="B10">Kaylegian et&#x20;al., 2006</xref>). Already in the early use of MIR spectral techniques, inherent issues in the stability of predictions between instruments and over time were shown (<xref ref-type="bibr" rid="B1">Biggs, 1978</xref>). However, differences in results obtained from different laboratories can also occur because of differences between the reference methods used, and because of failure to achieve good calibrations (<xref ref-type="bibr" rid="B1">Biggs, 1978</xref>). In a report on performance of the older generation of milk analysers, it was found that the main problems affecting calibration and accuracy of predictions were inaccurate reference tests, air incorporation, homogenizer inefficiency, mechanical wear, sample cell and filter system, electronics and mechanical maintenance and operator errors (<xref ref-type="bibr" rid="B21">Young, 1978</xref>). The newer milk analysers have been engineered with improved designs to minimize these factors; however, some still persist. The small variations in spectra caused by variations in spectrometer parameters such as light source intensity, detector sensitivity and laser stability, and in laboratory environment such as temperature, vibrations, humidity, are minimized by a procedure called Zero-setting (Foss Electric, Hiller&#xf8;d, Denmark) (<xref ref-type="bibr" rid="B6">Hansen, 2020</xref>), and by weekly calibration adjustment for fat, protein, lactose and total solids. Manufacturers of other MIR spectrometers used for routine milk analysis similarly incorporate one or more methods to reduce variations within and between instruments.</p>
<p>Differences between the spectrometers, even from the same manufacturer and model in the same laboratory are minimized by routine calibration adjustments. Weekly adjustments on the calibration models are performed to correct or adjust the prediction models used on the different instruments in the laboratory. These adjustments compensate for any week-to-week changes in path length, temperature and humidity variations, mechanical wear, sample handling and minor changes in detector, source and the mechanical and electronic performance. (<xref ref-type="bibr" rid="B21">Young, 1978</xref>). Such changes can result in changes in peak intensity or band shape which would render the prediction results inaccurate.</p>
<p>Standardization of MIR spectrometers is particularly necessary for exchange of MIR spectral databases across laboratories and countries. The standardization procedure corrects for systematic variations in intensity due to random variations in linearity of the detectors, or in the relative intensity across the wavelength range from different instrument manufacturers and models. Within the same instrument, the standardization procedure also corrects for path length changes with time, due to erosion of sample cell windows made of CaF<sub>2</sub> and due to window contamination in the case of diamond sample cell windows. It also corrects for shifts in frequency (or wavenumber), however these are random and if present, would occur on a very minor scale as this is an effect of laser fluctuation, source variation and detector instability, all of which are usually minor compared to other instrument variations.</p>
<p>For the FOSS MilkoScan&#x2122; FT1, FT2, FT120, FT &#x2b; , MilkoScan&#x2122; 7 and FT6000 milk analysers, a patented standardization procedure has been developed for regular use which applies a slope and intercept adjustment to the spectra recorded on an instrument to correct for wavenumber (frequency) shift, changes in intensity and changes in linearity due to instrument variations over time. The procedure involves recording a spectrum of a standardization liquid and comparing the intensities and wavenumber positions at two selected wavelengths with those in a standard spectrum (&#x201c;Master or Gold equalizer spectrum&#x201d;) stored on the instrument. Any differences between the spectrum of the standardization liquid and gold equalizer spectrum are corrected for by applying four correction factors: A and B for intensity variation, and &#x3b1; and &#x3b2; for wavenumber shifts (<xref ref-type="bibr" rid="B7">Hansen, 2014</xref>).</p>
<p>An alternative and non-instrumental standardization method called Piecewise Direct Standardization (PDS) (<xref ref-type="bibr" rid="B19">Wang et&#x20;al., 1991</xref>) was recently used to standardize spectra of samples measured with different makes of instruments (Delta, Bentley, and FOSS) inside a European dairy network. (<xref ref-type="bibr" rid="B3">Grelet et&#x20;al., 2015a</xref>; <xref ref-type="bibr" rid="B4">Grelet et&#x20;al., 2015b</xref>). This standardization aimed to allow spectra from different sources to be pooled and matched to physiological data in a common database to create calibrations predicting cow fertility, health and environmental and feeding indicators. The application of PDS on spectra recorded on 21 different instruments in ten laboratories was found to significantly reduce the RMSE (<xref ref-type="bibr" rid="B4">Grelet et&#x20;al., 2015b</xref>). However, this procedure requires a large amount of post-processing of the spectra and provides retrospective rather than time-based monitoring of instrument performance.</p>
<p>In this paper we describe an innovative approach that covers a different aspect of instrument standardization, namely the routine monitoring of faults or discrepancies in the MIR spectrometers in a single milk testing laboratory over time. This would have a complementary function to the calibration transfer and instrument standardization approaches by monitoring with time the instrument performance. The method relies on measuring spectral variations over time of a pilot sample of milk that is recorded on all the instruments in the laboratory at the same time. A spectrum of the same pilot milk sample is recorded approximately every hour on all instruments in the same laboratory over a period of a week; this is repeated every week using a fresh pilot sample. The effects of day-to-day variation within the individual spectrometers over the week and the variations between the individual laboratory spectrometers, are measured using ASCA (Analysis of variance - simultaneous component analysis) of the spectra (<xref ref-type="bibr" rid="B8">Jansen et&#x20;al., 2005</xref>; <xref ref-type="bibr" rid="B17">Smilde et&#x20;al., 2005</xref>). ASCA is a method used to determine which factors within a fixed effects experimental design are significant relative to the residual error and permits an ANOVA-like analysis even when there are many more variables than samples, as in the case of spectra (<xref ref-type="bibr" rid="B17">Smilde et&#x20;al., 2005</xref>). In this study, the contributors to variation in the spectral intensities over the week were assumed to be instrument and weekday as the main factors, and the interaction between them. The purpose of the study was to explore whether ASCA could provide a useful tool for monitoring and comparing the performance of four MIR milk analysers in a single milk test laboratory in New&#x20;Zealand. The ability of ASCA to measure changes or differences in the actual spectral output from each instrument allows identification of the source of variation on a weekly basis and thus enable timeous and appropriate intervention.</p>
</sec>
<sec sec-type="materials|methods" id="s2">
<title>Materials and Methods</title>
<sec id="s2-1">
<title>Pilot Milk Samples</title>
<p>The pilot milk sample was prepared by combining randomly selected milk samples from three or more different farms from different regions. Every week a new pilot sample was made up as a fresh sample. The aim of sourcing milk samples from different suppliers was to provide the most representative pilot sample, by averaging out milk compositions from different regions of NZ. The pilot sample was then preserved with bronopol and stored in a refrigerator to be used as the single pilot sample for all instruments over that week. For each subsequent week a new pilot sample was prepared. Approximately every hour, a sample of milk from the same pilot sample was introduced to each of the instruments in use, in between measurement of the routine milk samples. This occurred on each MIR analyzer in the laboratory over a period of 1&#xa0;week from aliquots of the same pilot milk sample. Every week, a fresh pilot sample was prepared for the following week&#x2019;s measurements.</p>
</sec>
<sec id="s2-2">
<title>MIR Spectra</title>
<p>The MIR spectra of aliquots of the same pilot sample were recorded on between two and four FOSS milk spectrometers at any one time, named in this study as MS1, MS2 (FT6000 models with diamond sample cuvette windows), MS3, MS4 (FT &#x2b; models with CaF<sub>2</sub> sampling windows), and MS7 and MS8 (MilkoScanTM 7 with CaF<sub>2</sub> sampling windows). Although MS1 and MS2 are the same FT6000 model type, MS3 and MS4 are of the same FT&#x2b; model type, and similarly MS7 and MS8 are both MilkoScanTM 7, each are individual instruments and will show differences in variations arising from their optical components. For example, the globar light source intensity, detector sensitivity/noise, homogenizer function or interferometer function. Even slight variations in these components of the optical bench will affect the spectral intensities to different extents. These differences are minimized by regular (approximately 6-weekly) instrument standardization procedures (<xref ref-type="bibr" rid="B7">Hansen, 2014</xref>). Variations in the predicted milk components are minimized by weekly calibration adjustments by the milk test laboratory of the slope and bias of fat and protein calibration models for a calibration&#x20;set.</p>
<p>All spectra were recorded between 929&#xa0;cm<sup>&#x2212;1</sup> and 5,000&#x20;cm<sup>&#x2212;1</sup>&#xa0;at spectral resolution 16&#xa0;cm<sup>&#x2212;1</sup>, and ratioed against a water background. The spectra were transformed by an inverse log from transmittance to absorbance. Although the spectrum is measured over 929 to 5,000&#xa0;cm<sup>&#x2212;1</sup>, many of these regions were not usable for measurement of milk components. This is mainly because of the intense absorption by water at specific frequencies, although subtracted out, results in random noise between 3,600&#x2013;3,000&#xa0;cm<sup>&#x2212;1</sup> and between 1,693&#x2013;1723&#xa0;cm<sup>&#x2212;1</sup>. These regions were exluded from the ASCA analysis. In addition, the region between 1785&#xa0;cm and 1 to 2,600&#xa0;cm<sup>&#x2212;1</sup> was also excluded weak inteference fringes are visible in the region, arising from internal reflection between the inside windows of the samplng cuvette. This region also includes absorption bands by atmospheric CO<sub>2</sub>. These regions were therefore excluded in order to be able to identify variations as being due to changes in instrument parameters within or between instruments or due to other factors such as laboratory environment conditions.</p>
</sec>
<sec id="s2-3">
<title>Fat, Protein, C16:0 and C18:0 MIR Measurements in Pilot Milk Samples</title>
<p>In order to assess the influence of spectral variation on the MIR predictions of the components in the pilot milk MIR predictions, fat measurements (ranging between 3.13&#x2013;6.54&#xa0;g/100&#xa0;ml) and true protein (3.17&#x2013;4.61&#xa0;g/100&#xa0;ml) were selected as examples of major milk components. Also, two fatty acids were selected as minor milk components: the more abundant C16:0 (ranging from 0.94 to 2.04&#xa0;g/&#xa0;g milk) and C18:0 (ranging from 0.33 to 0.75&#xa0;g/100&#xa0;ml).</p>
</sec>
<sec id="s2-4">
<title>Data Analysis</title>
<p>The first step in ASCA is a decomposition of the variation for every variable (wavenumber) through ANOVA (<xref ref-type="bibr" rid="B8">Jansen et&#x20;al., 2005</xref>; <xref ref-type="bibr" rid="B22">Zwanenburg et&#x20;al., 2011</xref>). We set up a data matrix, X, for each week that contains the spectra of each instrument, and a design matrix that defines the instrument and weekday for each spectrum. An ANOVA is performed for every wavenumber in the FTIR spectra of each pilot sample (week) to determine whether the variation in the spectral data matrix is due to a weekday effect (milk changing or instrument varying over the week), instrument effect (difference between instruments), interactions between instrument and weekday, or other reasons such as noise not described by any of these effects (residual variation). So, for every variable (wavenumber) we define a main effect (the mean), factor effects (instrument and weekday), interaction effects (between instrument and weekday) and a noise or residual term. This results in the definition of different effect matrices:<disp-formula id="e1">
<mml:math id="m1">
<mml:mrow>
<mml:mi mathvariant="bold-italic">X</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mi mathvariant="bold-italic">X</mml:mi>
<mml:mrow>
<mml:mi>m</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>a</mml:mi>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mi mathvariant="bold-italic">X</mml:mi>
<mml:mi>w</mml:mi>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mi mathvariant="bold-italic">X</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mi mathvariant="bold-italic">X</mml:mi>
<mml:mrow>
<mml:mi>w</mml:mi>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mi mathvariant="bold-italic">X</mml:mi>
<mml:mrow>
<mml:mi>r</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>s</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
<label>(1)</label>
</disp-formula>where w &#x3d; weekday, i &#x3d; instrument, wi &#x3d; interaction between instrument and weekday and res &#x3d; residuals.</p>
<p>These matrices are made of identical copies of the mean profiles calculated by averaging all the replicates at the different levels of each factor or interaction. For instance, if a factor has two levels, half of the rows of the corresponding effect matrix will contain identical copies of the mean profile of the experiments in which the factor was at level 1; the other half will be made of the average of the remaining signals (i.e.,&#x20;those corresponding to level&#x20;2).</p>
<p>Once this decomposition has been done, the effect of the individual design terms is calculated as the sum of squares (<inline-formula id="inf2">
<mml:math id="m3">
<mml:mrow>
<mml:mi>S</mml:mi>
<mml:mi>S</mml:mi>
<mml:msub>
<mml:mi>Q</mml:mi>
<mml:mi>j</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>) of the corresponding effect matrix, <inline-formula id="inf3">
<mml:math id="m4">
<mml:mrow>
<mml:msub>
<mml:mi mathvariant="bold-italic">X</mml:mi>
<mml:mi>j</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>:<disp-formula id="e2">
<mml:math id="m5">
<mml:mrow>
<mml:mi>S</mml:mi>
<mml:mi>S</mml:mi>
<mml:msub>
<mml:mi>Q</mml:mi>
<mml:mi>j</mml:mi>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:msubsup>
<mml:mi mathvariant="bold-italic">X</mml:mi>
<mml:mi>j</mml:mi>
<mml:mn>2</mml:mn>
</mml:msubsup>
<mml:mtext>&#xa0;&#xa0;&#xa0;</mml:mtext>
<mml:mi>j</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>w</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>w</mml:mi>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:math>
<label>(2)</label>
</disp-formula>Accordingly, the portion of the total variance in<inline-formula id="inf4">
<mml:math id="m6">
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#xa0;X</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>, after centering, accounted for by any of the design terms can be calculated by dividing <inline-formula id="inf5">
<mml:math id="m7">
<mml:mrow>
<mml:mi>S</mml:mi>
<mml:mi>S</mml:mi>
<mml:msub>
<mml:mi>Q</mml:mi>
<mml:mi>j</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> by the sum of squares of the mean-centered data (<inline-formula id="inf6">
<mml:math id="m8">
<mml:mrow>
<mml:mi mathvariant="bold-italic">X</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mi mathvariant="bold-italic">X</mml:mi>
<mml:mrow>
<mml:mi>m</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>a</mml:mi>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>). The contributions of a factor in the ASCA model can be summarized by dividing the sum of squares of a factor effect matrix by the sum of squares of the mean-centered&#x20;data.</p>
<p>If a factor/interaction is found to have a significant effect (e.g., by means of permutation tests), PCA is then performed on the corresponding matrix <inline-formula id="inf7">
<mml:math id="m9">
<mml:mrow>
<mml:msub>
<mml:mi mathvariant="bold-italic">X</mml:mi>
<mml:mi>j</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> to correlate the effect to the variations observed in the spectroscopic profiles.<disp-formula id="e3">
<mml:math id="m10">
<mml:mrow>
<mml:msub>
<mml:mi mathvariant="bold-italic">X</mml:mi>
<mml:mi>j</mml:mi>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mi mathvariant="bold-italic">T</mml:mi>
<mml:mi>j</mml:mi>
</mml:msub>
<mml:msubsup>
<mml:mi mathvariant="bold-italic">P</mml:mi>
<mml:mi>j</mml:mi>
<mml:mi>T</mml:mi>
</mml:msubsup>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mi mathvariant="bold-italic">E</mml:mi>
<mml:mi>j</mml:mi>
</mml:msub>
<mml:mo>&#xa0;</mml:mo>
<mml:mo>&#xa0;</mml:mo>
<mml:mo>&#xa0;</mml:mo>
<mml:mo>&#xa0;</mml:mo>
<mml:mo>&#xa0;</mml:mo>
<mml:mo>&#xa0;</mml:mo>
<mml:mo>&#xa0;</mml:mo>
<mml:mo>&#xa0;</mml:mo>
<mml:mo>&#xa0;</mml:mo>
<mml:mi>j</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>w</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>w</mml:mi>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:math>
<label>(3)</label>
</disp-formula>where <inline-formula id="inf8">
<mml:math id="m11">
<mml:mrow>
<mml:msub>
<mml:mi mathvariant="bold-italic">T</mml:mi>
<mml:mi>j</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>, <inline-formula id="inf9">
<mml:math id="m12">
<mml:mrow>
<mml:msub>
<mml:mi mathvariant="bold-italic">P</mml:mi>
<mml:mi>j</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> and <inline-formula id="inf10">
<mml:math id="m13">
<mml:mrow>
<mml:msub>
<mml:mi mathvariant="bold-italic">E</mml:mi>
<mml:mi>j</mml:mi>
</mml:msub>
<mml:mo>&#xa0;</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>are the matrices of PCA scores, loadings and residuals, respectively, while the superscript <sup>T</sup> indicates matrix transposition. Additionally, to carry out multiple comparisons, when the number of levels for a factor is higher than two or, in general, to graphically visualize the significance of the effect of a design term, it is customary to calculate a new set of scores <inline-formula id="inf11">
<mml:math id="m14">
<mml:mrow>
<mml:msub>
<mml:mi mathvariant="bold-italic">T</mml:mi>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>r</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>s</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#xa0;</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>by projecting the residual matrix onto the PC subspace of the factor/interaction of interest:<disp-formula id="e4">
<mml:math id="m15">
<mml:mrow>
<mml:msub>
<mml:mi mathvariant="bold-italic">T</mml:mi>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>r</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>s</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mi mathvariant="bold-italic">X</mml:mi>
<mml:mi>j</mml:mi>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mi mathvariant="bold-italic">X</mml:mi>
<mml:mrow>
<mml:mi>r</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>s</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo>)</mml:mo>
</mml:mrow>
<mml:msub>
<mml:mi mathvariant="bold-italic">P</mml:mi>
<mml:mi>j</mml:mi>
</mml:msub>
<mml:mo>&#xa0;</mml:mo>
<mml:mo>&#xa0;</mml:mo>
<mml:mo>&#xa0;</mml:mo>
<mml:mo>&#xa0;</mml:mo>
<mml:mo>&#xa0;</mml:mo>
<mml:mo>&#xa0;</mml:mo>
<mml:mo>&#xa0;</mml:mo>
<mml:mi>j</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>w</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>w</mml:mi>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:math>
<label>(4)</label>
</disp-formula>For all the models, to evaluate the statistical significance of the effects, the calculated values of the sum of squares of the corresponding effect matrices were compared to their null distributions, non-parametrically estimated by means of permutation tests (<xref ref-type="bibr" rid="B22">Zwanenburg et&#x20;al., 2011</xref>). Permutation tests were run on the spectra from each week to evaluate the significance of the effect of the different instruments and days in the week, and of their interaction, with 1,000 randomization per model; effects with <italic>p</italic>&#x20;&#x3c; 0.05 were deemed significant. The PCA scores and loadings of the corresponding effect matrices were used to highlight differences in the spectra, or changes over time, as influenced by instrument differences or weekday. Box plots were used to monitor differences in values predicted by the calibration models with&#x20;time.</p>
<p>For each week&#x2019;s worth of data, outlier removal was performed prior to ASCA calculation, as there were often a small number of spectra with highly anomalous behavior. After calculating PCA models, outliers were identified based on the values of Hotelling T<sup>2</sup> and Q residuals using the R package &#x201c;mdatools&#x201d; (<xref ref-type="bibr" rid="B12">Kucheryavskiy, 2020</xref>; <xref ref-type="bibr" rid="B13">Kucheryavskiy, 2021</xref>). A square cutoff option was used in which samples with T<sup>2</sup> &#x3e; T<sup>2</sup>
<sub>lim</sub> or Q &#x3e; Q<sub>lim</sub> (<xref ref-type="bibr" rid="B15">Pomerantsev, 2008</xref>), with T<sup>2</sup>
<sub>lim</sub> were calculated using the Hotelling T<sup>2</sup>-distribution and Q<sub>lim</sub> being calculated at a 99% confidence level based on the corresponding null distributions. These thresholds were chosen so as to include enough spectra to enable comparison of the number of outliers from each instrument, while excluding extreme values to avoid unduly influencing the results of ASCA modeling and sum of squares of the effects.</p>
<p>All computations were performed using the R programming language version 4.0.5 (R Foundation for Statistical Computing, Vienna) and the RStudio integrated development environment (RStudio Team, Boston). The &#x201c;MetStaT&#x201d; package was used for ASCA calculations and the package &#x201c;ggplot2&#x201d; was used for generating figures.</p>
</sec>
</sec>
<sec sec-type="results" id="s3">
<title>Results</title>
<sec id="s3-1">
<title>ASCA</title>
<p>A total of 223&#xa0;weeks&#x2019; worth of data comprised the full dataset which spanned from December 2016 to March 2021. Particularly in the winter season (June-August) when fewer milk samples were analysed, and in other periods when one or more instruments were under maintenance, there were not enough instruments active or not enough days in the week with sufficient measurements to perform ASCA. These were excluded from the analysis so that ASCA was performed on the remaining 177 of the 223&#xa0;weeks.</p>
<p>The total sum of squares (TSSQ) for each of the 177&#xa0;weeks, obtained from the ANOVA calculation of the ASCA algorithm are plotted in <xref ref-type="fig" rid="F1">Figure&#x20;1</xref> over the time period December 2016 to March 2021. The TSSQ was adjusted for sample size to TSSQ (adj), as the number of samples over the measurement period varied each week between 202 and 1,324, depending on time of year (fewer samples in winter season) or whether instruments were undergoing maintenance. The plot of TSSQ (adj) in <xref ref-type="fig" rid="F1">Figure&#x20;1</xref> shows the overall variance for every week for all the instruments in the laboratory and serves as a useful monitor of instrument performance and/or laboratory stability.</p>
<fig id="F1" position="float">
<label>FIGURE 1</label>
<caption>
<p>Total sum of squares adjusted for sample size (TSSQadj), for instruments MS1, MS2, MS3, and MS4 from weeks&#xa0;1&#x2013;83 (green shaded region), for instruments MS3, MS4, and MS7 over weeks&#xa0;84&#x2013;142 (orange shaded region) and for instruments MS3, MS4, MS7, and MS8 over weeks&#xa0;143&#x2013;223 (blue shaded region). Weeks in which the TSSQ (adj) exceeded thresholds of one, two and three times the SD (&#x3c3;) of the 177&#xa0;weeks TSSQ (adj) values are labelled with the main contributing effects. The mean TSSQ (adj), labelled as &#xb5;, is represented by a green horizontal dotted&#x20;line.</p>
</caption>
<graphic xlink:href="fchem-09-733331-g001.tif"/>
</fig>
<p>The shaded regions in the plot indicate changes in which laboratory instruments were used. Between weeks&#xa0;1 and 83, the four instruments MS1, MS2, MS3, and MS4 were active, while over weeks&#xa0;84&#x2013;142 only instruments MS3, MS4 and MS7 were active. From weeks&#xa0;143&#x2013;223, the four instruments MS3, MS4, MS7, and MS8 were active. The dashed lines indicate the thresholds for one (0.0022), two (0.0044) and three (0.0066) standard deviations of all 177&#xa0;weeks&#x2019; TSSQ (adj) values. These thresholds can be selected to flag when the overall spectral variance deviates from the norm. The mean TSSQ (adj) (0.0015) is also indicated on <xref ref-type="fig" rid="F1">Figure&#x20;1</xref> as a green dotted&#x20;line.</p>
<p>For 130 of the 177&#xa0;weeks (74%) the TSSQ (adj) was below the mean. In 28 of the 177&#xa0;weeks (15%) the TSSQ (adj) was above one SD (&#x3c3;) of the 177&#xa0;weeks&#x2019; TSSQ (adj) values. Of these 28&#xa0;weeks, seven exceeded two SD&#x2019;s (4% of the 177&#xa0;weeks) and six exceeded three SD&#x2019;s (3% of the 177&#xa0;weeks), with 15 exceeding only one SD (8% of the 177&#xa0;weeks). The weeks with TSSQ (adj) exceeding one, two or three SD&#x2019;s are labelled according to the major contribution from one or more of weekday effect (W), instrument effect (I), or residual effect (R). There was no correlation between the TSSQ (adj) exceeding one, two or three times the SD of the 177-weeks TSSQ (adj) values with time of year or with season.</p>
<p>
<xref ref-type="fig" rid="F2">Figure&#x20;2</xref> shows the percentage contribution to the total SSQ (representing the total variance) for each week, by the instrument effect (black trace), weekday effect (green trace), weekday/instrument interaction (blue trace) and residual factors/noise (grey trace). Evident from the graph is that weekday changes originating from the sample itself or within each instrument, and weekday/instrument interactive effects contribute very little to the overall variance. Differences between instruments and residual variations form the major contributions; only three of the 177&#xa0;weeks showed greater contribution from weekday variation than instrument effects. 53 of the weeks have residual effects contributing more than either instrument or weekday effects to the TSSQ (adj).</p>
<fig id="F2" position="float">
<label>FIGURE 2</label>
<caption>
<p>Weekly percentage contribution of instruments (black trace), weekdays (green trace) and weekday/instrument interactions (blue trace), to the total variance (TSSQ, adjusted for sample numbers) in the pilot sample spectra. Also plotted is the residual effect (grey).</p>
</caption>
<graphic xlink:href="fchem-09-733331-g002.tif"/>
</fig>
<p>In all 177&#xa0;weeks measured with ASCA the contribution of the instrument effects to the TSSQ (adj) was significant, having <italic>p</italic>&#x20;&#x3c; 0.05. The weekday effects were also significant except for two of the weeks: with only weeks&#xa0;137 and 188 having <italic>p</italic>&#x20;&#x3e; 0.05. Interaction effects between weekday and instrument were significant for all weeks except for 43 and 177. Those weeks exceeding one, two and three standard deviations of the 177&#xa0;weeks&#x2019; TSSQ (adj) values are listed in <xref ref-type="table" rid="T1">Table&#x20;1</xref>, with the number of SD&#x2019;s indicated in the fifth column from the right. Also listed are the total number of samples (N) for each week and the ASCA output of percentage contribution from each of the effects: weekday (SSQ day), instrument (SSQ instr), weekday/instrument interaction (SSQ inter), and the residual variance due to other factors and noise (SSQ resid).</p>
<table-wrap id="T1" position="float">
<label>TABLE 1</label>
<caption>
<p>List of weeks in which the TSSQ adjusted for sample number [TSSQ (adj)] exceeded one, two or three times the standard deviation of the 177&#xa0;weeks, given in the column fifth before the last. N is the total number of samples in each week. The percentage that each of the factors contribute to each weekly total SSQ [TSSQ (adj)] are given as SSQ (day), SSQ (instr) and SSQ (inter) (weekday/instrument interaction). The residual variance due to other factors is SSQ (resid). The number of standard deviations (SDs) by which the SD&#x2019;s in each of MIR predicted values of fat, protein, C16:0 and C18:0 exceed the SD&#x2019;s of the 177&#xa0;weeks by 1, 2, or 3 SD&#x2019;s are given on the four rightmost columns of the&#x20;table.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="left">Week No</th>
<th align="center">No. samp</th>
<th align="center">SSQ (day)</th>
<th align="center">SSQ (instr)</th>
<th align="center">SSQ (inter)</th>
<th align="center">SSQ (resid)</th>
<th align="center">TSSQ</th>
<th align="center">TSSQ (adj)</th>
<th align="center">No of SDs</th>
<th align="center">SDs<xref ref-type="table-fn" rid="Tfn1">
<sup>a</sup>
</xref> (fat)</th>
<th align="center">SDs<xref ref-type="table-fn" rid="Tfn1">
<sup>a</sup>
</xref> (prot)</th>
<th align="center">SDs<xref ref-type="table-fn" rid="Tfn1">
<sup>a</sup>
</xref> (C16:0)</th>
<th align="center">SDs<xref ref-type="table-fn" rid="Tfn1">
<sup>a</sup>
</xref> (C18:0)</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">4</td>
<td align="center">853</td>
<td align="char" char=".">0.8</td>
<td align="char" char=".">87.2</td>
<td align="char" char=".">1.35</td>
<td align="char" char=".">11.46</td>
<td align="char" char=".">1.92</td>
<td align="char" char=".">0.0023</td>
<td align="center">1</td>
<td align="center">1</td>
<td align="center">3</td>
<td align="center">3</td>
<td align="center">3</td>
</tr>
<tr>
<td align="left">5</td>
<td align="center">712</td>
<td align="char" char=".">0.88</td>
<td align="char" char=".">90.65</td>
<td align="char" char=".">1.17</td>
<td align="char" char=".">8.17</td>
<td align="char" char=".">1.57</td>
<td align="char" char=".">0.0022</td>
<td align="center">1</td>
<td align="center">&#x2212;</td>
<td align="center">1</td>
<td align="center">2</td>
<td align="center">3</td>
</tr>
<tr>
<td align="left">6</td>
<td align="center">765</td>
<td align="char" char=".">1.39</td>
<td align="char" char=".">86.65</td>
<td align="char" char=".">2.53</td>
<td align="char" char=".">11.1</td>
<td align="char" char=".">1.82</td>
<td align="char" char=".">0.0024</td>
<td align="center">1</td>
<td align="center">&#x2212;</td>
<td align="center">1</td>
<td align="center">3</td>
<td align="center">3</td>
</tr>
<tr>
<td align="left">8</td>
<td align="center">907</td>
<td align="char" char=".">0.71</td>
<td align="char" char=".">88.44</td>
<td align="char" char=".">0.82</td>
<td align="char" char=".">10.61</td>
<td align="char" char=".">2.12</td>
<td align="char" char=".">0.0023</td>
<td align="center">1</td>
<td align="center">1</td>
<td align="center">1</td>
<td align="center">2</td>
<td align="center">3</td>
</tr>
<tr>
<td align="left">17</td>
<td align="center">578</td>
<td align="char" char=".">6.67</td>
<td align="char" char=".">63.58</td>
<td align="char" char=".">4.5</td>
<td align="char" char=".">30.9</td>
<td align="char" char=".">1.69</td>
<td align="char" char=".">0.0029</td>
<td align="center">1</td>
<td align="center">1</td>
<td align="center">1</td>
<td align="center">2</td>
<td align="center">3</td>
</tr>
<tr>
<td align="left">18</td>
<td align="center">725</td>
<td align="char" char=".">3.36</td>
<td align="char" char=".">67.46</td>
<td align="char" char=".">2.7</td>
<td align="char" char=".">28.01</td>
<td align="char" char=".">9.48</td>
<td align="char" char=".">0.0131</td>
<td align="center">3</td>
<td align="center">&#x2212;</td>
<td align="center">3</td>
<td align="center">3</td>
<td align="center">3</td>
</tr>
<tr>
<td align="left">22</td>
<td align="center">252</td>
<td align="char" char=".">5.46</td>
<td align="char" char=".">29.55</td>
<td align="char" char=".">4.81</td>
<td align="char" char=".">60.75</td>
<td align="char" char=".">0.71</td>
<td align="char" char=".">0.0028</td>
<td align="center">1</td>
<td align="center">3</td>
<td align="center">1</td>
<td align="center">3</td>
<td align="center">3</td>
</tr>
<tr>
<td align="left">43</td>
<td align="center">1125</td>
<td align="char" char=".">4.89</td>
<td align="char" char=".">58.81</td>
<td align="char" char=".">9.67</td>
<td align="char" char=".">27.24</td>
<td align="char" char=".">3.63</td>
<td align="char" char=".">0.0032</td>
<td align="center">1</td>
<td align="center">&#x2212;</td>
<td align="center">2</td>
<td align="center">2</td>
<td align="center">3</td>
</tr>
<tr>
<td align="left">48</td>
<td align="center">1164</td>
<td align="char" char=".">2.87</td>
<td align="char" char=".">72.83</td>
<td align="char" char=".">4.93</td>
<td align="char" char=".">19.81</td>
<td align="char" char=".">4.06</td>
<td align="char" char=".">0.0035</td>
<td align="center">1</td>
<td align="center">&#x2212;</td>
<td align="center">2</td>
<td align="center">3</td>
<td align="center">3</td>
</tr>
<tr>
<td align="left">50</td>
<td align="center">1306</td>
<td align="char" char=".">3.03</td>
<td align="char" char=".">72.61</td>
<td align="char" char=".">8.24</td>
<td align="char" char=".">16.91</td>
<td align="char" char=".">24.18</td>
<td align="char" char=".">0.0185</td>
<td align="center">3</td>
<td align="center">&#x2212;</td>
<td align="center">3</td>
<td align="center">3</td>
<td align="center">3</td>
</tr>
<tr>
<td align="left">61</td>
<td align="center">469</td>
<td align="char" char=".">6.86</td>
<td align="char" char=".">36.08</td>
<td align="char" char=".">4.57</td>
<td align="char" char=".">52.6</td>
<td align="char" char=".">2.42</td>
<td align="char" char=".">0.0052</td>
<td align="center">2</td>
<td align="center">1</td>
<td align="center">3</td>
<td align="center">1</td>
<td align="center">2</td>
</tr>
<tr>
<td align="left">86</td>
<td align="center">514</td>
<td align="char" char=".">76.04</td>
<td align="char" char=".">0.37</td>
<td align="char" char=".">0.39</td>
<td align="char" char=".">23.3</td>
<td align="char" char=".">8.69</td>
<td align="char" char=".">0.0169</td>
<td align="center">3</td>
<td align="center">3</td>
<td align="center">1</td>
<td align="center">3</td>
<td align="center">3</td>
</tr>
<tr>
<td align="left">99</td>
<td align="center">1122</td>
<td align="char" char=".">1.72</td>
<td align="char" char=".">56.96</td>
<td align="char" char=".">2.63</td>
<td align="char" char=".">40.03</td>
<td align="char" char=".">3.75</td>
<td align="char" char=".">0.0033</td>
<td align="center">1</td>
<td align="center">1</td>
<td align="center">1</td>
<td align="center">1</td>
<td align="center">3</td>
</tr>
<tr>
<td align="left">100</td>
<td align="center">1002</td>
<td align="char" char=".">3.41</td>
<td align="char" char=".">40.05</td>
<td align="char" char=".">2.7</td>
<td align="char" char=".">55.25</td>
<td align="char" char=".">3.95</td>
<td align="char" char=".">0.0040</td>
<td align="center">1</td>
<td align="center">1</td>
<td align="center">1</td>
<td align="center">2</td>
<td align="center">3</td>
</tr>
<tr>
<td align="left">116</td>
<td align="center">848</td>
<td align="char" char=".">2.21</td>
<td align="char" char=".">40.25</td>
<td align="char" char=".">2.96</td>
<td align="char" char=".">55.26</td>
<td align="char" char=".">2.87</td>
<td align="char" char=".">0.0034</td>
<td align="center">1</td>
<td align="center">3</td>
<td align="center">1</td>
<td align="center">3</td>
<td align="center">3</td>
</tr>
<tr>
<td align="left">141</td>
<td align="center">671</td>
<td align="char" char=".">3.76</td>
<td align="char" char=".">63.54</td>
<td align="char" char=".">10.86</td>
<td align="char" char=".">23.3</td>
<td align="char" char=".">1.77</td>
<td align="char" char=".">0.0026</td>
<td align="center">1</td>
<td align="center">&#x2212;</td>
<td align="center">1</td>
<td align="center">1</td>
<td align="center">3</td>
</tr>
<tr>
<td align="left">164</td>
<td align="center">747</td>
<td align="char" char=".">2.24</td>
<td align="char" char=".">35.11</td>
<td align="char" char=".">4.03</td>
<td align="char" char=".">58.76</td>
<td align="char" char=".">2.22</td>
<td align="char" char=".">0.0023</td>
<td align="center">1</td>
<td align="center">1</td>
<td align="center">2</td>
<td align="center">2</td>
<td align="center">3</td>
</tr>
<tr>
<td align="left">174</td>
<td align="center">512</td>
<td align="char" char=".">18.28</td>
<td align="char" char=".">10.49</td>
<td align="char" char=".">9.51</td>
<td align="char" char=".">61.35</td>
<td align="char" char=".">2.6</td>
<td align="char" char=".">0.0051</td>
<td align="center">2</td>
<td align="center">&#x2212;</td>
<td align="center">1</td>
<td align="center">2</td>
<td align="center">3</td>
</tr>
<tr>
<td align="left">176</td>
<td align="center">504</td>
<td align="char" char=".">5.16</td>
<td align="char" char=".">42.66</td>
<td align="char" char=".">6.79</td>
<td align="char" char=".">49.39</td>
<td align="char" char=".">1.94</td>
<td align="char" char=".">0.0039</td>
<td align="center">1</td>
<td align="center">&#x2212;</td>
<td align="center">1</td>
<td align="center">2</td>
<td align="center">3</td>
</tr>
<tr>
<td align="left">177</td>
<td align="center">372</td>
<td align="char" char=".">22.71</td>
<td align="char" char=".">15.09</td>
<td align="char" char=".">2.85</td>
<td align="char" char=".">61.74</td>
<td align="char" char=".">1.11</td>
<td align="char" char=".">0.0030</td>
<td align="center">1</td>
<td align="center">&#x2212;</td>
<td align="center">&#x2212;</td>
<td align="center">2</td>
<td align="center">3</td>
</tr>
<tr>
<td align="left">178</td>
<td align="center">334</td>
<td align="char" char=".">24.32</td>
<td align="char" char=".">1.35</td>
<td align="char" char=".">0.75</td>
<td align="char" char=".">73.85</td>
<td align="char" char=".">0.94</td>
<td align="char" char=".">0.0028</td>
<td align="center">1</td>
<td align="center">&#x2212;</td>
<td align="center">1</td>
<td align="center">1</td>
<td align="center">3</td>
</tr>
<tr>
<td align="left">204</td>
<td align="center">1144</td>
<td align="char" char=".">3.12</td>
<td align="char" char=".">79.21</td>
<td align="char" char=".">5.77</td>
<td align="char" char=".">13.06</td>
<td align="char" char=".">3.34</td>
<td align="char" char=".">0.0029</td>
<td align="center">1</td>
<td align="center">&#x2212;</td>
<td align="center">1</td>
<td align="center">3</td>
<td align="center">3</td>
</tr>
<tr>
<td align="left">217</td>
<td align="center">793</td>
<td align="char" char=".">1.32</td>
<td align="char" char=".">83.94</td>
<td align="char" char=".">1.07</td>
<td align="char" char=".">13.74</td>
<td align="char" char=".">6.13</td>
<td align="char" char=".">0.0077</td>
<td align="center">3</td>
<td align="center">&#x2212;</td>
<td align="center">2</td>
<td align="center">3</td>
<td align="center">2</td>
</tr>
<tr>
<td align="left">220</td>
<td align="center">749</td>
<td align="char" char=".">9.16</td>
<td align="char" char=".">11.72</td>
<td align="char" char=".">8.14</td>
<td align="char" char=".">71.66</td>
<td align="char" char=".">2.13</td>
<td align="char" char=".">0.0028</td>
<td align="center">1</td>
<td align="center">&#x2212;</td>
<td align="center">1</td>
<td align="center">2</td>
<td align="center">3</td>
</tr>
<tr>
<td align="left">221</td>
<td align="center">578</td>
<td align="char" char=".">17.37</td>
<td align="char" char=".">21.05</td>
<td align="char" char=".">7.97</td>
<td align="char" char=".">54.69</td>
<td align="char" char=".">1.89</td>
<td align="char" char=".">0.0033</td>
<td align="center">1</td>
<td align="center">&#x2212;</td>
<td align="center">1</td>
<td align="center">2</td>
<td align="center">3</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<fn id="Tfn1">
<label>a</label>
<p>Number of standard deviations exceeding the average SD of 177&#xa0;weeks, by the MIR-predicted values of fat, protein, C16:0 and C18:0 in each of the 25&#xa0;weeks having TSSQ (adj) &#x3e; 1 SD of the 177&#xa0;weeks.</p>
</fn>
</table-wrap-foot>
</table-wrap>
<p>Of interest is how the TSSQ (adj) affects the accuracy of the milk component MIR predictions of fat, true protein, C16:0 and C18:0. The columns on the right-hand side of <xref ref-type="table" rid="T1">Table&#x20;1</xref> give the number of SD&#x2019;s by which each of the MIR predicted values of fat, protein, C16:0 and C18:0 exceed the average 177-weeks SD of each component: i.e.,&#x20;by one, two or three SD&#x2019;s. Of the 25&#xa0;weeks shown in <xref ref-type="table" rid="T1">Table&#x20;1</xref> having TSSQ (adj)&#x3e;1SD, the number of weeks in which the SDs of the fat predictions overall exceed one or more SDs is 10. For true protein, 24 of the 25&#xa0;weeks have predicted values with SD&#x2019;s exceeding the average SD by one or more, while for C16:0 and C18:0 this occurs in all 25&#xa0;weeks. This is not unexpected, as predictions of more minor components would be expected to be more sensitive to variations between instruments or within each instrument through the week, whether this is due to changes in the pilot sample, other effects such as laboratory environment or instrument variations.</p>
</sec>
<sec id="s3-2">
<title>PCA of Weeks Exceeding Three Standard Deviations</title>
<p>The instrument scores and loadings plots from the ASCA can provide more information about the spectral variations over the weeks with TSSQ (adj) exceeding one or more standard deviations (SD). Of particular interest are the weeks showing TSSQ (adj) exceeding the three SD threshold. The scores and loadings of three of these weeks with such TSSQ (adj): weeks&#xa0;50, 86, and 217, are shown as examples in <xref ref-type="fig" rid="F3">Figure&#x20;3</xref> (week&#xa0;50), <xref ref-type="fig" rid="F4">Figure&#x20;4</xref> (week&#xa0;86), and <xref ref-type="fig" rid="F5">Figure&#x20;5</xref> (week&#xa0;217). Also plotted are the spectra after mean centering and boxplots for the MIR-predicted components fat, true protein, C16:0 and C18:0. The mean and standard deviations are indicated in the boxplots for each component for that week, with a number of asterisks that indicate the number of SDs by which each predicted component exceeds the SD of the 177&#xa0;weeks TSSQ (adj) values (&#x2a; for 1 SD, &#x2a;&#x2a; for 2 SDs and &#x2a;&#x2a;&#x2a; for 3SDs). Breaks in the plots of the spectra and loadings show the spectral regions excluded from the ASCA analysis. The scales of the intensity axis of the box plots have been expanded over reduced regions to exclude extreme outliers, in order to more clearly compare the medians inter quartile ranges (IQR) and whiskers.</p>
<fig id="F3" position="float">
<label>FIGURE 3</label>
<caption>
<p> Mean centered spectra <bold>(A)</bold>, instrument loading plots <bold>(B)</bold> and scores <bold>(C)</bold> for pilot spectra from week&#xa0;50, in which the TSSQ (adj) exceeded 3 standard deviations. Boxplots <bold>(D)</bold> show the predicted fat, protein, C16:0 and C18:0 values from each instrument and their mean values and standard deviations (SDs), marked &#x2a; for 1SD, &#x2a;&#x2a; for 2SDs and &#x2a;&#x2a;&#x2a; for 3SDs greater than the SD of the 177&#xa0;weeks TSSQadj values.</p>
</caption>
<graphic xlink:href="fchem-09-733331-g003.tif"/>
</fig>
<fig id="F4" position="float">
<label>FIGURE 4</label>
<caption>
<p>Mean cenered spectra <bold>(A)</bold>, instrument loading plots <bold>(B)</bold> and scores <bold>(C)</bold> for pilot spectra from week&#xa0;86, in which the TSSQ (adj) exceeded 3 standard deviations. Boxplots <bold>(D)</bold> show the predicted fat, protein, C16:0 and C18:0 values from each instrument and their mean values and standard deviations (SDs), marked &#x2a; for 1SD, &#x2a;&#x2a; for 2SDs and &#x2a;&#x2a;&#x2a; for 3SDs greater than the SD of the 177&#xa0;weeks TSSQ (adj) values.</p>
</caption>
<graphic xlink:href="fchem-09-733331-g004.tif"/>
</fig>
<fig id="F5" position="float">
<label>FIGURE 5</label>
<caption>
<p>Mean centered spectra <bold>(A)</bold>, instrument loading plots <bold>(B)</bold> and scores <bold>(C)</bold> for pilot spectra from week&#xa0;217, in which the TSSQ (adj) exceeded 3 standard deviations. Boxplots <bold>(D)</bold> show the predicted fat, protein, C16:0 and C18:0 values from each instrument and their mean values and standard deviations (SDs), marked &#x2a; for 1SD, &#x2a;&#x2a; for 2SDs and &#x2a;&#x2a;&#x2a; for 3SDs greater than the SD of the 177&#xa0;weeks TSSQ (adj values.</p>
</caption>
<graphic xlink:href="fchem-09-733331-g005.tif"/>
</fig>
<p>According to <xref ref-type="table" rid="T1">Table&#x20;1</xref>, the instrument effect in week&#xa0;50 contributed 72.6% of the TSSQ (adj). The mean centered spectra in <xref ref-type="fig" rid="F3">Figure&#x20;3A</xref> show clear differences in the spectral intensities, particularly between the MS3, MS4 instruments and MS1, MS2 instruments, and particularly in the spectral region 930&#x2013;1,200&#xa0;cm<sup>&#x2212;1</sup>. The PCA scores in <xref ref-type="fig" rid="F3">Figure&#x20;3C</xref> show clear separation along PC1 for the two sets of instruments. This can be explained by differences in FOSS instrument models; MS3 and four are FT6000 models with CaF<sub>2</sub> windows while MS1 and MS2 are FT &#x2b; models with diamond windows. Additionally, along PC2, MS1 and MS2 are more separated than MS3 and MS4. Ideally all four scores should overlap as the six-weekly standardization procedure adjusts the slave spectra of each instrument to match a master spectrum. The PC1 loading in <xref ref-type="fig" rid="F3">Figure&#x20;3B</xref> shows that the main difference between the two spectrometer models are overall intensity, possibly due to pathlength differences, with the CaF<sub>2</sub> windows in MS3 and MS4 possibly eroded at this point to a slightly wider pathlength. The regular wavelike features in the loadings may be due to interference patterns from internal reflectance in the cell windows. These interference patterns were also seen in the spectral regions between 1730 and 2,650&#xa0;cm<sup>&#x2212;1</sup> which were excluded from the analysis for this reason (besides this region displaying atmospheric CO<sub>2</sub> bands).</p>
<p>The boxplots of the MIR predicted components in <xref ref-type="fig" rid="F3">Figure&#x20;3D</xref>, however, do not correspond with the PCA observations of higher fat for MS3 and MS4 compared with MS1 and MS2. This may be because the weekly calibration adjustments for fat have compensated for the spectral differences. The instrument differences for week 50 do, however, result in the true protein, C16:0 and C18:0 values for this week showing SDs three times higher than the 177-weeks average SD, while the fat predictions were not affected.</p>
<p>The results for week 86 are given in <xref ref-type="fig" rid="F4">Figure&#x20;4</xref>. In week&#xa0;86, the weekday effect contributed 76% to the TSSQ (adj). Being the winter season, only two spectrometers, MS3 and MS4 were active in this&#x20;week.</p>
<p>The mean-centered spectra clearly show a subset of spectra from three of the weekdays that markedly differ from the others. This is also seen in the weekday scores plot. PC loading 1 is mostly represented by fat bands (C-H stretching of lipids 2,550&#x2013;2,962&#xa0;cm<sup>&#x2212;1</sup>, C&#x3d;O stretching of fatty acids at 1745&#xa0;cm<sup>&#x2212;1</sup> and C-O-C stretching of fatty acid esters at 1,160&#xa0;cm<sup>&#x2212;1</sup>) (<xref ref-type="bibr" rid="B4">Grelet et&#x20;al., 2015b</xref>). The separation of the scores according to these differentiates some of spectra in weekdays 1, 2, and three from the rest of the spectra in days&#xa0;1, 2, and 3, and all the spectra in days&#xa0;4&#x2013;7. The weekday effect accounted for 76% of the variance compared to around 0.4% from instrument effects and weekday/instrument interactions. This implies that all both instruments, MS3 and MS4 underwent changes in weekdays&#xa0;one to three that resulted in a bigger effect than any differences between the instruments. These weekday differences result in the MIR-predictions of fat, C16:0 and C18:0 having SD&#x2019;s more than three times the SD of the 177-weeks TSSQ (adj). The protein was less affected, exceeding only one SD this week; this is also evident in the loadings which represent mainly fat and fatty&#x20;acids.</p>
<p>The results for week&#xa0;217 are shown in <xref ref-type="fig" rid="F5">Figure&#x20;5</xref>. During week&#xa0;217 three instruments were active and the instrument variation contributed 83.9% to the TSSQ (adj). The separation of instrument scores in the scores plot in <xref ref-type="fig" rid="F5">Figure&#x20;5C</xref> shows that the spectra of instrument MS3 are consistently different from those of the MS4 and MS7 instruments. All three instruments are the same model, however, the higher negative PC1 spectral loadings appear to show that MS3 has generally higher spectral intensities than the other two (<xref ref-type="fig" rid="F5">Figure&#x20;5A</xref>). This difference translates into higher predicted values for fat and C16:0 as shown in the boxplots (<xref ref-type="fig" rid="F5">Figure&#x20;5D</xref>), but the MS3 C18:0 values are lower. The differences in the spectra have likely been compensated for by the weekly fat and protein calibration adjustments, given that the SDs for fat and protein are below one SD of the 177-weeks average. The MS3 spectral differences do affect the variation in measurement for true protein, however, and also affect the C16:0 and C18:0 measurements, with the SD at three times and twice the 177-weeks average, respectively.</p>
</sec>
<sec id="s3-3">
<title>PCA of a Series of Four Successive Weeks: 193 to 196</title>
<p>Of interest for routine monitoring of instrument performance are changes in contribution from instrument effect on TSSQ (adj) over successive weeks. An example of such a change is seen in the sharp increase in instrument effect (black trace) on the TSSQ (adj) in <xref ref-type="fig" rid="F2">Figure&#x20;2</xref> between weeks&#xa0;193 and 196. These weeks were selected as an example because over this period, the same four instruments were in use and the TSSQ (adj) was well below the mean. A PCA could show useful insight into the observed increase in instrument effect, while the corresponding boxplots would show how this affects the MIR-predicted component values. The PCA scores and loadings are plotted for weeks&#xa0;193&#x2013;196 in <xref ref-type="fig" rid="F6">Figure&#x20;6</xref>, and the corresponding boxplots for the four MIR-predicted components are given in <xref ref-type="fig" rid="F7">Figure&#x20;7</xref>.</p>
<fig id="F6" position="float">
<label>FIGURE 6</label>
<caption>
<p>Instrument scores and loading plots, respectively, for pilot spectra from four successive weeks: <bold>(A)</bold> and <bold>(B)</bold> week&#xa0;193, <bold>(C)</bold> and <bold>(D)</bold> week&#xa0;194, <bold>(E)</bold> and <bold>(F)</bold> week&#xa0;195 and <bold>(G)</bold> and <bold>(H)</bold> week&#xa0;196.</p>
</caption>
<graphic xlink:href="fchem-09-733331-g006.tif"/>
</fig>
<fig id="F7" position="float">
<label>FIGURE 7</label>
<caption>
<p>Boxplots for fat, true protein, C16:0 and C18:0 predicted from pilot spectra using instruments MS3, MS4, MS7, and MS8, over successive weeks that had low TSSQ: week 193: <bold>(A)</bold> Fat, <bold>(E)</bold> True protein, <bold>(I)</bold> C16:0, <bold>(M)</bold> C18:0; week 194: <bold>(B)</bold> Fat, <bold>(F)</bold> True protein, <bold>(J)</bold> C16:0, <bold>(N)</bold> C18:0; week 195: <bold>(C)</bold> Fat, <bold>(G)</bold> True protein, <bold>(K)</bold> C16:0, <bold>(O)</bold> C18:0 and week 196: <bold>(D)</bold> Fat, <bold>(H)</bold> True Protein, <bold>(L)</bold> C16:0, <bold>(P)</bold> C18:0. The plots for each week show the median, IQR and variability outside the upper and lower quartiles for each component. Asterisks represent the number of SD&#x2019;s, marked &#x2a; for 1SD, &#x2a;&#x2a; for 2SDs and &#x2a;&#x2a;&#x2a; for 3SDs, by which the predicted component exceeds the average of all 177-weeks average SD.</p>
</caption>
<graphic xlink:href="fchem-09-733331-g007.tif"/>
</fig>
<p>The scores can be seen to drift slightly over the first 3&#xa0;weeks, with the biggest change between instrument scores and loadings occurring between weeks&#xa0;194 and 195, while those for weeks&#xa0;195 and 196 are similar. Differences in scores between week&#xa0;193 and 194 are mainly along PC1 and mainly for MS3 (<xref ref-type="fig" rid="F6">Figures 6A,C</xref>), with the main difference in the PC1 loadings between weeks&#xa0;193 and 194 being in the relative intensities of the lipid C-H stretch modes at 2,856 and 2,926&#xa0;cm<sup>&#x2212;1</sup> (<xref ref-type="fig" rid="F6">Figures 6B,D</xref>), and the protein amide II band intensity around 1,550&#xa0;cm<sup>&#x2212;1</sup>. This is consistent with an increase in the instrument effect from 31.5% in week&#xa0;193 to 53.7% in week&#xa0;194, and an increase the weekday effect from 3.1% in week&#xa0;193 to 8.5% in week&#xa0;194. The difference observed in the loadings affect the protein prediction by MS3 (<xref ref-type="fig" rid="F7">Figure&#x20;7B</xref>), however, it does not result in a SD above the 177-weeks average.</p>
<p>Between weeks&#xa0;194 and 195 there is a noticable drift in the scores for MS4 away from those of the other instruments, and further up PC2 (<xref ref-type="fig" rid="F6">Figures 6E,G</xref>). The loadings show that these differences are due to clear changes in relative intensities between the C-H stretching region at higher wavenumbers 2800&#x2013;3,000&#xa0;cm<sup>&#x2212;1</sup> typical for fat and the C-O stretching and C-H deformations at lower wavenumbers between 1,000&#x2013;1,100&#xa0;cm<sup>&#x2212;1</sup>, representing mostly lactose (<xref ref-type="fig" rid="F6">Figures 6F,H</xref>). These changes result in a slight increase in fat prediction for MS3 relative to the other instruments (<xref ref-type="fig" rid="F7">Figures 7K,L</xref>), and an increase in SD from one to two SD&#x2019;s above the 177-weeks mean in predicted values for C16:0, indicated by single asterisks in the boxplots in <xref ref-type="fig" rid="F7">Figures 7K,L</xref> for weeks&#xa0;195 and 196. These changes also correspond with a small increase in instrument effect, from 53.6% in week&#xa0;194 to 56.1% in week&#xa0;195 (<xref ref-type="fig" rid="F2">Figure&#x20;2</xref>). At the same time the weekday effects decrease from 8.5% in week&#xa0;194 to 6.3% in week&#xa0;195, corresponding with reduced spread of scores for MS3 along PC1 (<xref ref-type="fig" rid="F6">Figures 6C,E</xref>). The changes in scores plots and loadings from weeks&#xa0;195&#x2013;196 are small, however, the contribution of instrument effects increases from 56.1 to 66.1% between weeks&#xa0;195 and 196, while the weekday effects decrease from 6.3 to 2.3%. The change in relative contribution of these effects can be seen in a small decrease in spread over PC1 of the scores in <xref ref-type="fig" rid="F6">Figure&#x20;6G</xref> for week&#x20;196.</p>
</sec>
</sec>
<sec sec-type="discussion" id="s4">
<title>Discussion</title>
<p>Plotting the TSSQ (adj) for each week with time (<xref ref-type="fig" rid="F1">Figure&#x20;1</xref>) presents an overview of the overall variance of the active instruments in the laboratory over the time period December 2016 to March 2021. This 4&#xa0;year time record enables a robust measure of the SD expected over all seasons, and can be used to monitor instrument performance and/or laboratory environment stability with time. When the TSSQ (adj) is flagged as exceeding one, two or three times the SD of the 177&#xa0;week period, the contribution of instrument, weekday, interaction between these or residual effects can be examined to identify the source of variation. The plot showing the contribution from these effects in <xref ref-type="fig" rid="F2">Figure&#x20;2</xref> shows that over the 4&#xa0;years, the major contributions to the TSSQ (adj) of each week are differences between instruments and residual effects.</p>
<p>Factors contributing to residual effects include ground vibrations, electronic gain settings, cell temperature, instrument temperatures and operator changes (<xref ref-type="bibr" rid="B21">Young, 1978</xref>). Controlling the lab temperature and humidity aims to minimize variations in these. Instrument effects have multiple sources of variations. The detectors used in the MIR milk instruments are DTGS (deuterium triglyceride sulphate) thermal detectors that convert thermal energy to electrical signal; they respond to temperature by changing their capacitance which is measured as a voltage change. Again, controlling the lab temperature and humidity minimizes variations in these detectors, however, noise from the IR source due to random photons and thermodynamic noise in interaction with these photons can also affect both the intensity of, and noise in the signal (<xref ref-type="bibr" rid="B11">King et&#x20;al., 2004</xref>) and so contribute to residual variation. In addition, pathlength changes are commonly caused by build-up of protein and foreign material on the windows of diamond sample cells, or gradual erosion of sample cell windows made of CaF<sub>2</sub>. This results in changes in path length, which also greatly affect the IR signal/noise ratio in aqueous systems, (<xref ref-type="bibr" rid="B9">Jensen and Bak, 2002</xref>), and can cause a calibration&#x20;shift.</p>
<p>The homogenizers on each individual instrument wear at different rates, depending on the number of samples through each instrument. The effects of variations in these instrument components on the spectra are minimized by routine standardization procedures, typically every 6&#xa0;weeks, and by monitoring a homogenizer index which measures the efficiency as an approximate prediction of one of the fat globule distribution parameters (FOSS, private communication).</p>
<p>Considering these possible sources of variation, instrument differences would therefore be expected to have the greatest effect on variations in the pilot milk spectra over the week, with residual effects also contributing to a large extent. The <italic>p</italic>-values&#x3e;0.05 confirming significance of the instrument effects throughout all 177&#xa0;weeks confirms this, while the weekday variations within each instrument were significant for only two of the 177&#xa0;weeks. Recent work on minor milk components such as milk urea has also shown the impact of inter instrument differences on IR predicted results (<xref ref-type="bibr" rid="B20">Wood et&#x20;al., 2020</xref>; <xref ref-type="bibr" rid="B16">Portenoy et&#x20;al., 2021</xref>).</p>
<p>Of the 25&#xa0;weeks in <xref ref-type="table" rid="T1">Table&#x20;1</xref> with TSSQ (adj) exceeding one or more of the 177-weeks average SD, only two of the 177&#xa0;weeks (1% of the time) had TSSQ (adj) values above 2SD&#x2019;s and in only four (2%) of the time) the TSSQ (adj) exceeded 3SD&#x2019;s (<xref ref-type="table" rid="T1">Table&#x20;1</xref>). The TSSQ (adj) in the other 19&#xa0;weeks the exceeded only one SD above the 177-weeks mean (11% of the time). This is a relatively low rate which shows that the weekly calibration adjustments and regular instrument standardization procedures are effective in adjusting for instrument drift and maintaining the inter-instrument and intra-instrument variances below one SD of the 177-weeks mean, during 152 of the 177&#xa0;weeks (86% of the time). Of the 25&#x20;weeks in <xref ref-type="table" rid="T1">Table&#x20;1</xref>, the instrument effect dominated the TSSQ (adj) in 13&#xa0;weeks (52%), while the weekday effect dominated once (4% of the time) while residual effects dominated in 11&#xa0;weeks (44% of the time).</p>
<p>The 25&#xa0;week period in which the TSSQ (adj) &#x3e; 1SD of the 177-weeks average was found to affect the mean and SD of the four components fat, protein, C16:0 and C18:0 to different extents. In this period, the predicted fat SD exceeded the 177-weeks average by one or more in only 10 of the 25&#xa0;weeks, while for the true protein this occurred in 24 of the 25&#xa0;weeks. The prediction of the less abundant fatty acids, C16:0 and C18:0, was affected in all 25&#xa0;weeks, with C18:0, the least abundant consistently showing SD&#x2019;s three times higher than the 177-weeks average. Predictions of other fatty acids, not discussed here, were also found to show differing extents of SD&#x2019;s over this period, and greater than those shown by the major milk components fat, protein, lactose and total solids. We thus note the relevance of this more sensitive monitoring approach considering the recent trend towards deployment of predictive models focused on greater use of IR data of milk (<xref ref-type="bibr" rid="B5">Grelet et&#x20;al., 2017</xref>). Recent work on minor milk components such as milk urea has also shown the impact of inter instrument differences on IR predicted results. (<xref ref-type="bibr" rid="B20">Wood et&#x20;al., 2020</xref>; <xref ref-type="bibr" rid="B16">Portenoy et&#x20;al., 2021</xref>).</p>
<p>The PCA scores and loadings obtained from the ASCA analysis of the spectra are useful for monitoring instrument drift with time. This was shown in the example of four successive weeks&#xa0;193&#x2013;196, during which a marked increase in instrument effect from 31 to 66% was observed, while at the same time the residual variation contribution decreased from 53 to 29%, while weekday or within-week variations showed no trend, instead signaling spread of weekday scores along PC1. The scores and loadings can be monitored to signal drifts beginning to occur in individual instruments week by week. Weekly calibration adjustments of the instruments allow adjustment of bias and slope of the fat, protein, total solids and lactose calibrations in the laboratory and thus compensate for differences in all the milk component predictions that may arise through weekly changes in instrument performance. The ASCA scores are especially sensitive to differences in spectral intensities of the different instruments on different weekdays, and to changes with time in relative intensities over the spectral region. Monitoring the ASCA scores and loading plots could provide a useful indicator of the extent of instrument drift, and signal when standardization of the instruments would be necessary rather than adjusting the calibration to compensate for these changes. We suggest such an approach could be used in conjunction with recent advances in instrument standardization that have allowed calibrations to be deployed across networks of instruments from different manufacturers (<xref ref-type="bibr" rid="B2">Grelet et&#x20;al., 2021</xref>).</p>
<p>Monitoring the boxplots of predicted components could be useful for testing the effectiveness of the calibration adjustments of the major components and whether these improve the predictions of less abundant components such as individual fatty acids or indirectly-measured traits. Comparison of the boxplots with the score plots and loadings are also useful for evaluating when calibration adjustments are compensating for instrument differences to an extent that instrument signal standardization is necessary.</p>
</sec>
<sec sec-type="conclusion" id="s5">
<title>Conclusion</title>
<p>We have described the novel use of ASCA on the spectra of pilot test milk samples over time as a new approach for routine monitoring of instrument performance in a milk testing laboratory. Plotting of the scores and loadings derived from the ASCA effect models, the mean centered spectra and boxplots of the MIR-predicted components provides a useful overview of the weekly performance of the spectrometers in the laboratory, in terms of day-to-day variations in spectral intensities, differences arising between spectrometers and to what extent the spectral variance shows residual effects, not explained by these two effects, such as changes in laboratory environment or unexplained noise. This can be particularly useful to flag unexpected laboratory environment changes or weekly instrument changes that may affect the accuracy of the MIR-predicted milk components. Weekly monitoring of these plots can also serve as an indicator for when instrument standardization of one or more instruments is necessary, and can evaluate when the weekly calibration adjustments may be compensating for instrument differences. Comparison of the boxplots with the score plots and loadings is also useful to signal the effectiveness of instrument standardization and the weekly calibration adjustments, especially with the trend towards greater use of IR data for predicting milk components and other relevant traits present in lower levels.</p>
</sec>
</body>
<back>
<sec id="s6">
<title>Data Availability Statement</title>
<p>The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation.</p>
</sec>
<sec id="s7">
<title>Author Contributions</title>
<p>Conceptualization: MN and SH; methodology, CG, FM, and MN; software, CG, MN, and FM; investigation, MN, GS; resources, SH, GS; data curation, MN and CG; writing&#x2014;original draft preparation, MN; writing&#x2014;review and editing, all authors; supervision, SH, GS, and MN; project administration, SH and GS All authors have read and agreed to the published version of the manuscript.</p>
</sec>
<sec id="s8">
<title>Funding</title>
<p>This research was funded by the Fonterra On-farm Research and Development, as part of a collaborative project with the University of Auckland.</p>
</sec>
<sec id="s9">
<title>Author Disclaimer</title>
<p>The contents of this manuscript are the authors&#x2019; opinions and should not be considered as opinions or policy of Fonterra. The mention of trade names and manufacturers is for technical accuracy and should not be considered as endorsement of a specific product or manufacturer.</p>
</sec>
<sec sec-type="COI-statement" id="s10">
<title>Conflict of Interest</title>
<p>We note that authors MN, GS, and SH are employees of Fonterra Co-operative Group Ltd., which supported this&#x20;work.</p>
<p>The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.</p>
</sec>
<sec sec-type="disclaimer" id="s11">
<title>Publisher&#x2019;s Note</title>
<p>All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.</p>
</sec>
<ack>
<p>The authors gratefully acknowledge the help of Scott Middleton and Callie Smith from MTNZ, Hamilton, New&#x20;Zealand for contribution of the spectral&#x20;data.</p>
</ack>
<ref-list>
<title>References</title>
<ref id="B1">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Biggs</surname>
<given-names>D. A.</given-names>
</name>
</person-group> (<year>1978</year>). <article-title>Instrumental Infrared Estimation of Fat, Protein, and Lactose in Milk: Collaborative Study</article-title>. <source>JAOAC</source> <volume>61</volume>, <fpage>1015</fpage>&#x2013;<lpage>1034</lpage>. <pub-id pub-id-type="doi">10.1093/jaoac/61.5.1015</pub-id> </citation>
</ref>
<ref id="B2">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Grelet</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Dardenne</surname>
<given-names>P.</given-names>
</name>
<name>
<surname>Soyeurt</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Fernandez</surname>
<given-names>J.&#x20;A.</given-names>
</name>
<name>
<surname>Vanlierde</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>StevensGengler</surname>
<given-names>F. N.</given-names>
</name>
<etal/>
</person-group> (<year>2021</year>). <article-title>Large-scale Phenotyping in Dairy Sector Using Milk MIR Spectra: Key Factors Affecting the Quality of Predictions</article-title>. <source>Methods</source> <volume>186</volume>, <fpage>97</fpage>&#x2013;<lpage>111</lpage>. <pub-id pub-id-type="doi">10.1016/j.ymeth.2020.07.012</pub-id> </citation>
</ref>
<ref id="B3">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Grelet</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Fern&#xe1;ndez Pierna</surname>
<given-names>J.&#x20;A.</given-names>
</name>
<name>
<surname>Dardenne</surname>
<given-names>P.</given-names>
</name>
<name>
<surname>VBaeten</surname>
<given-names>V.</given-names>
</name>
<name>
<surname>Dehareng</surname>
<given-names>F.</given-names>
</name>
</person-group> (<year>2015a</year>). <article-title>Standardization of Milk MIR Spectra, Development of Common MIR Equations</article-title>. <source>Biotechnol. Agron. Soc. Environ.</source> <volume>19</volume> (<issue>2</issue>), <fpage>99</fpage>&#x2013;<lpage>100</lpage>. </citation>
</ref>
<ref id="B4">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Grelet</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Fern&#xe1;ndez Pierna</surname>
<given-names>J.&#x20;A.</given-names>
</name>
<name>
<surname>Dardenne</surname>
<given-names>P.</given-names>
</name>
<name>
<surname>Baeten</surname>
<given-names>V.</given-names>
</name>
<name>
<surname>Dehareng</surname>
<given-names>F.</given-names>
</name>
</person-group> (<year>2015b</year>). <article-title>Standardization of Milk Mid-infrared Spectra from a European Dairy Network</article-title>. <source>J.&#x20;Dairy Sci.</source> <volume>98</volume> (<issue>4</issue>), <fpage>2150</fpage>&#x2013;<lpage>2160</lpage>. <pub-id pub-id-type="doi">10.3168/jds.2014-8764</pub-id> </citation>
</ref>
<ref id="B5">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Grelet</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Pierna</surname>
<given-names>J.&#x20;A. F.</given-names>
</name>
<name>
<surname>Dardenne</surname>
<given-names>P.</given-names>
</name>
<name>
<surname>Soyeurt</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Vanlierde</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Colinet</surname>
<given-names>F.</given-names>
</name>
<etal/>
</person-group> (<year>2017</year>). <article-title>Standardization of Milk Mid-infrared Spectrometers for the Transfer and Use of Multiple Models</article-title>. <source>J.&#x20;Dairy Sci.</source> <volume>100</volume> (<issue>10</issue>), <fpage>7910</fpage>&#x2013;<lpage>7921</lpage>. <pub-id pub-id-type="doi">10.3168/jds.2017-12720</pub-id> </citation>
</ref>
<ref id="B6">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Hansen</surname>
<given-names>P. W.</given-names>
</name>
</person-group> (<year>2020</year>). <source>Digging into the Zero Setting Gold Mine in White Paper from FOSS</source>. <publisher-loc>Hilleroed, Denmark</publisher-loc>: <publisher-name>FOSS</publisher-name>. </citation>
</ref>
<ref id="B7">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Hansen</surname>
<given-names>P. W.</given-names>
</name>
</person-group> (<year>2014</year>). <source>FOSS Analytical, Method of and Apparatus for Correcting Intensity Deviations in a Spectrometer</source>. <publisher-loc>USA</publisher-loc>: <publisher-name>Patent WO2000017611A1</publisher-name>. </citation>
</ref>
<ref id="B8">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Jansen</surname>
<given-names>J.&#x20;J.</given-names>
</name>
<name>
<surname>Hoefsloot</surname>
<given-names>H. C. J.</given-names>
</name>
<name>
<surname>van der Greef</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Timmerman</surname>
<given-names>M. E.</given-names>
</name>
<name>
<surname>Westerhuis</surname>
<given-names>J.&#x20;A.</given-names>
</name>
<name>
<surname>Smilde</surname>
<given-names>A. K.</given-names>
</name>
</person-group> (<year>2005</year>). <article-title>ASCA: Analysis of Multivariate Data Obtained from an Experimental Design</article-title>. <source>J.&#x20;Chemometrics</source> <volume>19</volume> (<issue>9</issue>), <fpage>469</fpage>&#x2013;<lpage>481</lpage>. <pub-id pub-id-type="doi">10.1002/cem.952</pub-id> </citation>
</ref>
<ref id="B9">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Jensen</surname>
<given-names>P. S.</given-names>
</name>
<name>
<surname>Bak</surname>
<given-names>J.</given-names>
</name>
</person-group> (<year>2002</year>). <article-title>Near-infrared Transmission Spectroscopy of Aqueous Solutions: Influence of Optical Pathlength on Signal-To-Noise Ratio</article-title>. <source>Appl. Spectrosc.</source> <volume>56</volume> (<issue>12</issue>), <fpage>1600</fpage>&#x2013;<lpage>1606</lpage>. <pub-id pub-id-type="doi">10.1366/000370202321115878</pub-id> </citation>
</ref>
<ref id="B10">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Kaylegian</surname>
<given-names>K. E.</given-names>
</name>
<name>
<surname>Houghton</surname>
<given-names>G. E.</given-names>
</name>
<name>
<surname>Lynch</surname>
<given-names>J.&#x20;M.</given-names>
</name>
<name>
<surname>Fleming</surname>
<given-names>J.&#x20;R.</given-names>
</name>
<name>
<surname>Barbano</surname>
<given-names>D. M.</given-names>
</name>
</person-group> (<year>2006</year>). <article-title>Calibration of Infrared Milk Analyzers: Modified Milk versus Producer Milk</article-title>. <source>J.&#x20;Dairy Sci.</source> <volume>89</volume>, <fpage>2817</fpage>&#x2013;<lpage>2832</lpage>. <pub-id pub-id-type="doi">10.3168/jds.s0022-0302(06)72555-3</pub-id> </citation>
</ref>
<ref id="B11">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>King</surname>
<given-names>P. L.</given-names>
</name>
<name>
<surname>Ramsey</surname>
<given-names>M. S.</given-names>
</name>
<name>
<surname>McMillan</surname>
<given-names>P. F.</given-names>
</name>
<name>
<surname>Swayze</surname>
<given-names>G.</given-names>
</name>
</person-group> (<year>2004</year>). &#x201c;<article-title>Laboratory Fourier Transform Infrared Spectroscopy Methods for Geologic Samples</article-title>,&#x201d; in <source>Molecules to Plants: Infrared Spectoscopy in Geochemistry, Exploration Geochemistry and Remote Sensing</source> (<publisher-loc>Canada</publisher-loc>: <publisher-name>MIneral Association of Canada</publisher-name>). </citation>
</ref>
<ref id="B12">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Kucheryavskiy</surname>
<given-names>S.</given-names>
</name>
</person-group> (<year>2020</year>). <article-title>Mdatools - R Package for Chemometrics</article-title>. <source>Chemometrics Intell. Lab. Syst.</source> <volume>198</volume>, <fpage>103937</fpage>. <pub-id pub-id-type="doi">10.1016/j.chemolab.2020.103937</pub-id> </citation>
</ref>
<ref id="B13">
<citation citation-type="web">
<person-group person-group-type="author">
<name>
<surname>Kucheryavskiy</surname>
<given-names>S.</given-names>
</name>
</person-group> (<year>2021</year>). <article-title>Mdatools: Multivariate Data Analysis for Chemometrics</article-title>. <comment>Available at: <ext-link ext-link-type="uri" xlink:href="https://mdatools.com/docs/pca-distances-and-limits.html">https://mdatools.com/docs/pca-distances-and-limits.html</ext-link>.</comment> </citation>
</ref>
<ref id="B14">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Pelletier</surname>
<given-names>M. J.</given-names>
</name>
</person-group> (<year>2003</year>). <article-title>Quantitative Analysis Using Raman Spectrometry</article-title>. <source>Appl. Spectrosc.</source> <volume>57</volume> (<issue>1</issue>), <fpage>20A</fpage>&#x2013;<lpage>42A</lpage>. <pub-id pub-id-type="doi">10.1366/000370203321165133</pub-id> </citation>
</ref>
<ref id="B15">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Pomerantsev</surname>
<given-names>A. L.</given-names>
</name>
</person-group> (<year>2008</year>). <article-title>Acceptance Areas for Multivariate Classification Derived by Projection Methods</article-title>. <source>J.&#x20;Chemometrics</source> <volume>22</volume> (<issue>11-12</issue>), <fpage>601</fpage>&#x2013;<lpage>609</lpage>. <pub-id pub-id-type="doi">10.1002/cem.1147</pub-id> </citation>
</ref>
<ref id="B16">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Portenoy</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Coon</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Barbano</surname>
<given-names>D. M.</given-names>
</name>
</person-group> (<year>2021</year>). <article-title>Infrared Milk Analyzers: Milk Urea Nitrogen Calibration</article-title>. <source>J.&#x20;Dairy Sci.</source> <volume>104</volume>, <fpage>7426</fpage>&#x2013;<lpage>7437</lpage>. </citation>
</ref>
<ref id="B17">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Smilde</surname>
<given-names>A. K.</given-names>
</name>
<name>
<surname>Jansen</surname>
<given-names>J.&#x20;J.</given-names>
</name>
<name>
<surname>Hoefsloot</surname>
<given-names>H. C. J.</given-names>
</name>
<name>
<surname>Lamers</surname>
<given-names>R.-J.&#x20;A. N.</given-names>
</name>
<name>
<surname>van der Greef</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Timmerman</surname>
<given-names>M. E.</given-names>
</name>
</person-group> (<year>2005</year>). <article-title>ANOVA-simultaneous Component Analysis (ASCA): a New Tool for Analyzing Designed Metabolomics Data</article-title>. <source>Bioinformatics</source> <volume>21</volume> (<issue>13</issue>), <fpage>3043</fpage>&#x2013;<lpage>3048</lpage>. <pub-id pub-id-type="doi">10.1093/bioinformatics/bti476</pub-id> </citation>
</ref>
<ref id="B18">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Smith</surname>
<given-names>E. B.</given-names>
</name>
<name>
<surname>Barbano</surname>
<given-names>D. M.</given-names>
</name>
<name>
<surname>Lynch</surname>
<given-names>J.&#x20;M.</given-names>
</name>
<name>
<surname>Fleming</surname>
<given-names>J.&#x20;R.</given-names>
</name>
</person-group> (<year>1993</year>). <article-title>Performance of Homogenizers in Infrared Milk Analyzers: A Survey</article-title>. <source>J.&#x20;AOAC Int.</source> <volume>76</volume> (<issue>5</issue>), <fpage>1033</fpage>&#x2013;<lpage>1041</lpage>. <pub-id pub-id-type="doi">10.1093/jaoac/76.5.1033</pub-id> </citation>
</ref>
<ref id="B19">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Wang</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Veltkamp</surname>
<given-names>D. J.</given-names>
</name>
<name>
<surname>Kowalski</surname>
<given-names>B. R.</given-names>
</name>
</person-group> (<year>1991</year>). <article-title>Multivariate Instrument Standardization</article-title>. <source>Anal. Chem.</source> <volume>63</volume> (<issue>23</issue>), <fpage>2750</fpage>&#x2013;<lpage>2756</lpage>. <pub-id pub-id-type="doi">10.1021/ac00023a016</pub-id> </citation>
</ref>
<ref id="B20">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Wood</surname>
<given-names>E. M.</given-names>
</name>
<name>
<surname>Portenoy</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Barbano</surname>
<given-names>D. M.</given-names>
</name>
<name>
<surname>Reed</surname>
<given-names>K. F.</given-names>
</name>
</person-group> (<year>2020</year>). <article-title>Precision and Accuracy of Mid-infrared Spectroscopy for Milk Urea Nitrogen Analysis</article-title>. <source>J.&#x20;Dairy Sci.</source> <volume>103</volume>, <fpage>4</fpage>. </citation>
</ref>
<ref id="B21">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Young</surname>
<given-names>R. S.</given-names>
</name>
</person-group> (<year>1978</year>). <article-title>Calibration and Standardization of the Infrared Milk Analyzer. The California Experience</article-title>. <source>J.&#x20;Dairy Sci.</source> <volume>61</volume> (<issue>9</issue>), <fpage>1279</fpage>&#x2013;<lpage>1283</lpage>. <pub-id pub-id-type="doi">10.3168/jds.s0022-0302(78)83718-7</pub-id> </citation>
</ref>
<ref id="B22">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Zwanenburg</surname>
<given-names>G.</given-names>
</name>
<name>
<surname>Hoefsloot</surname>
<given-names>H. C. J.</given-names>
</name>
<name>
<surname>Westerhuis</surname>
<given-names>J.&#x20;A.</given-names>
</name>
<name>
<surname>Jansen</surname>
<given-names>J.&#x20;J.</given-names>
</name>
<name>
<surname>Smilde</surname>
<given-names>A. K.</given-names>
</name>
</person-group> (<year>2011</year>). <article-title>ANOVA-principal Component Analysis and ANOVA-Simultaneous Component Analysis: a Comparison</article-title>. <source>J.&#x20;Chemometrics</source> <volume>25</volume> (<issue>10</issue>), <fpage>561</fpage>&#x2013;<lpage>567</lpage>. <pub-id pub-id-type="doi">10.1002/cem.1400</pub-id> </citation>
</ref>
</ref-list>
</back>
</article>