Next Article in Journal
Model Predictive Controller Approach for Automated Vehicle’s Path Tracking
Next Article in Special Issue
A Reaction-Based Optical Fingerprinting Strategy for the Recognition of Fat-Soluble Samples: Discrimination of Motor Oils
Previous Article in Journal
The Prediction of Residual Electrical Life in Alternating Current Circuit Breakers Based on Savitzky-Golay-Long Short-Term
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

LED-Based Desktop Analyzer for Fat Content Determination in Milk

1
Department of Analytical and Physical Chemistry, Samara State Technical University, Molodogvardeyskaya Street 244, 443100 Samara, Russia
2
Department of Radio Engineering Devices, Samara State Technical University, Molodogvardeyskaya Street 244, 443100 Samara, Russia
3
Art Photonics GmbH, Rudower Chaussee 46, 12489 Berlin, Germany
*
Author to whom correspondence should be addressed.
Sensors 2023, 23(15), 6861; https://doi.org/10.3390/s23156861
Submission received: 15 June 2023 / Revised: 21 July 2023 / Accepted: 28 July 2023 / Published: 1 August 2023
(This article belongs to the Special Issue Optical Multisensor Systems for Chemical Analysis)

Abstract

:
In dairy, there is a growing request for laboratory analysis of the main nutrients in milk. High throughput of analysis, low cost, and portability are becoming critical factors to provide the necessary level of control in milk collection, processing, and sale. A portable desktop analyzer, including three light-emitting diodes (LEDs) in the visible light region, has been constructed and tested for the determination of fat content in homogenized and raw cow’s milk. The method is based on the concentration dependencies of light scattering by milk fat globules at three different wavelengths. Univariate and multivariate models were built and compared. The red channel has shown the best performance in prediction. However, the joint use of all three LED signals led to an improvement in the calibration model. The obtained preliminary results have shown that the developed LED-based technique can be sufficiently accurate for the analysis of milk fat content. The ways of its further development and improvement have been discussed.

1. Introduction

The amount of fat in milk is an important criterion for its quality. Fat is the most valuable component of milk, which greatly affects its price [1]. Therefore, the fat content must be thoroughly controlled in the course of milk collection and processing. Besides, it is a simple marker of the cow’s health. Milk with a fat-to-protein ratio over 1.5 may indicate possible ketosis, i.e., an excess of ketone bodies [2]. Conversely, a low-fat content could be a sign of subacute ruminal acidosis [3], which is a dangerous excess of acids in the animal’s blood.
In accordance with the International Organization for Standardization (ISO), the fat content in milk is determined with chemical methods: the acid method by Gerber [4] and the gravimetric method by Röse-Gottlieb [5]. Chemical methods of analysis have high accuracy, but their implementation is labor- and time-consuming and requires highly qualified personnel. Additionally, dangerous reagents are often used in chemical methods. Spectroscopy in the mid infrared (MIR) region is the most widespread instrumental method of milk analysis. According to ISO 9622:2013 [6], the MIR analyzer in the spectral range of 0.4–11 μm can be used for accurate estimation of mass fractions of fat, proteins, lactose, dry matter, and other parameters of milk quality. The main disadvantage of MIR spectroscopy is the high price of the instrument acquisition and maintenance. As a consequence, such devices are mainly used only in large dairies and research centers.
Optical spectroscopy in the visible and short-wave near infrared (Vis/SW-NIR) region is rarely used in the analysis of dairy products due to the low extinction coefficients of the components in this region (400–1100 nm). However, a number of previous studies have shown that the analysis of milk samples in this region can be fast, non-destructive, sufficiently accurate, and reliable to determine the milk fat and protein content [7,8,9,10,11,12,13]. The analysis in the Vis/SW-NIR region is mainly based on the wavelength-dependent light scattering by colloidal milk particles of different sizes [12,13]. The complex spectral response, in this case, can only be quantified using the methods of multivariate data analysis, also known as chemometrics. While MIR spectroscopy is a well-established laboratory method for routine milk quality control, optical techniques in the Vis/SW-NIR region provide flexible and relatively inexpensive solutions for field and express analysis, for example, in dairy farms.
The scatter-based Vis/SW-NIR spectroscopy suits well for the creation of optical multisensor systems (OMS)—specialized analyzers for various samples and media [14,15,16]. OMS is an analytical device that includes a set of two or more optical sensors (sensor channels) optimized for a particular application [17]. The operation of multisensor devices is based on obtaining and mathematical processing a complex unresolved analytical signal to build a predictive mathematical model, for instance, a calibration model for a mixture component. Among all the platforms proposed to date, optical sensors based on light-emitting diodes (LEDs) [18,19] are the most attractive in terms of creating simple and inexpensive analytical devices.
Nowadays, a lot of research is being carried out to develop compact milk analyzers based on various physical principles [1,20,21,22,23,24,25,26]. Portable analyzers are designed to analyze milk for fat, protein, lactose, and other bulk components. For example, it has been shown that it is possible to measure the fat content of milk in real-time using a W-type fiber optic sensor [20]. There is a study on determining the fat content in milk using a plastic optical fiber sensor [21]. A novel approach using an array of differently sensitive photodetectors realized on a chip [27] has been successfully tested in fat determination in standard samples of raw milk [26]. LEDs in the visible (Vis) spectral range are rarely used in milk analysis. For example, a low-cost portable analyzer for determining the fat content in milk and its dilution with water based on Vis spectroscopy was proposed in [1]. This spectrometer consists of a microcomputer spectral sensor with a single chip that measures the intensity of six LEDs at specific wavelengths. Simplified analyzers based on image analysis [28,29] of diffuse spots of LED-lighted milk have been proposed for fat and protein determination in milk. Despite the growing interest in LED-based optical sensing, in particular in milk analysis, this approach remains an area of active research rather than practical implementation.
The purpose of this work was to develop and test an RGB sensor consisting of three LEDs (red, green, and blue) for the quantitative determination of fat in milk. It was necessary to perform a proof-of-concept of the proposed scatter-based technique. The analysis was deliberately limited to the most practicable spectral region of the visible light (360–780 nm) and implemented in a desktop device using the most common LEDs and a single photometric detector.

2. Materials and Methods

2.1. LED Sensor Design

The developed analytical device has a modular structure (Figure 1) and works in an automatic mode according to the program built into the Arduino Nano microcontroller based on the ATmega328 chip. The serial port of the microcontroller is connected to the computer with a USB cable for data transfer and for the power supply. The device is powered by a stabilized voltage of 5 V.
Three digital outputs of the controller operate the switching of three LED emitters: red (R), green (G), and blue (B) by means of electronic switches assembled on field-effect transistors, which are part of a powerful RGB LED. The individual LEDs are powered alternately in a pulse mode from a reference current source (100 mA) assembled on the basis of a regulated TL431A stabilizer. The pulse duration is 50 ms.
A photoresistor, powered from the second reference current source (5 μA), serves for the detection of an optical signal. The raw analytical signal is a drop in voltage formed at the photoresistor output. The signal is proportional to the change in resistance caused by the incident light attenuated by interaction with a milk sample. This signal goes to the differential input of an external module of a 16-bit analog-digital converter (ADC). To minimize the power supply noise, the ADC operates from a 4.8 V reference voltage source. Data transfer from the ADC to the controller is carried out via the I2C protocol. The device housing was 3D-printed of non-transparent plastic polylactic acid. It has a slot for placing a cuvette and a cover to protect the sample from ambient light.

2.2. Milk Samples

Two sets of milk samples were examined to determine the effect of different fat content on the RGB sensor response.
The first set was prepared by mixing normalized cow’s milk from two packages purchased from a local supermarket with a known fat content of 1.5% and 3.2%. In accordance with the experimental design, the calculated portions of the source milk were mixed with each other to obtain 10 samples with a uniformly distributed fat content: 1.50%, 1.69%, 1.88%, 2.07%, 2.26%, 2.44%, 2.63%, 2.82%, 3.01%, and 3.2%. No additional reference analysis of fat content was performed in this case. It was assumed that the fat content indicated on the milk packaging was accurate enough. Otherwise, some insufficient model bias could be present. But this is not critical for this preliminary study with homogenized milk, the purpose of which is to test individual LED channels and compare sensory and full-spectrum approaches.
The second dataset consisted of 29 raw natural milk samples with varying fat content from 3.10% to 6.01%. These samples were received from the Samara Oblast Agro-Industrial Complex Support Center (Samara, Russia), which monitors animal health and milk quality. The samples were taken from each cow separately during milking. A tablet of Broad Spectrum Microtabs II (Bentley Instruments Inc, Chaska, MN, USA) preservative was added to milk samples to prevent spoilage before they arrived at the laboratory. As a consequence, the samples were pink in color. Each row milk sample was preliminarily analyzed for fat content using a CombiFossTM7 (FOSS Electric, Hilleroed, Denmark) as a reference method. The reference analysis was performed by the Samara Regional Veterinary Laboratory (Samara, Russia).

2.3. Spectroscopic and Sensor Measurements

To compare the results obtained on the sensor data with the full spectral method, the milk datasets were additionally measured on a diode-array spectrometer TIDAS E (J&M Analytik AG, Essingen, Germany). This spectrometer was used in our previous research [13,30] to develop a scatter-based method of fat and protein analysis in raw milk. The Vis/SW-NIR spectra in the region 400–1100 nm were acquired in diffuse transmission mode through a 4-mm glass cell (Hellma GmbH, Müllheim, Germany) at room temperature. The integration time was 1 s. The spectra were interpolated to a 1-nm step using a piece-wise linear function. A built-in optical filter that uniformly attenuates the spectrum of incident light by four orders of magnitude was used as a reference. Each milk sample was measured on a spectrometer three times, and the resulting spectra were averaged.
The RGB sensor operates as follows. A milk sample of about 3 mL volume is poured into a transparent cuvette with an optical path length of 1 cm. For the measurement, the cuvette is placed into the slot and covered with a lid from above. The device is connected to a computer using a USB cable, and a serial port monitor is opened on the screen. The data from the photodetector is digitized and filtered by averaging and sent in a tabular form to the port every 100 ms. The output data value is, therefore, proportional to the power of the light flux that is passed through the cuvette with the milk sample. Three detected signals reflect alternating pulses of LEDs irradiation at different wavelengths, as corresponds to the red with an emission maximum of 631 nm and full width at half maximum (FWHM) of 16 nm (i.e., an operating range of 600–654 nm), green with an emission maximum of 531 nm and FWHM of 28 nm (i.e., an operating range of 483–592 nm) and blue with an emission maximum of 466 nm and FWHM of (i.e., an operating range of 425–515 nm) channels (Figure 2) of the developed device.
According to the scheme shown in Figure 3, each sample was measured three times to test the reproducibility of the measurement by taking a new portion of milk. Since the developed analyzer produces the readings continuously, each measurement took about 10 s, and 10 scans were obtained and averaged. These three measurements were then also averaged. Thus, one sample is represented by one measurement in the model.
Signal reproducibility (mean and standard deviation (SD)) for three sensor channels is presented in Table 1. The reprodusibility is demonstrated for two samples of homogenized milk with minimum and maximum fat content (Table 1). The maximum difference between the mean values of the two milk samples was found for the red channel (difference is 854.82) and the minimum for the blue channel (difference is 342.54). The smallest SD is for the red channel.

2.4. Data Analysis

The calibration model relating fat content with the optical sensor response for each channel (LEDs) was calculated using a linear regression equation (Equation (1)).
y = b0 + b1x
where y is the sensor response from individual channels, x is the fat content, and b0 and b1 are bias and slope coefficients, respectively.
To relate the sensor response through two or three channels at once to fat content and to build a predictive model, two chemometric methods, such as projection on latent structures (PLS) [31] and multiple linear regression (MLR) [32], were tested. MLR is used to assess the relationship between two or more independent variables and one dependent variable and works well when there are not many independent variables (fewer than samples), such as in our case, where there are only three variables [33].
The vector of regression coefficients b in MLR is calculated directly from X- and y-variables (Equation (2)):
b = X T X 1 X T y
The PLS algorithm is trained on a dataset of X-variables (spectral intensities or sensor response) and a corresponding y-variable (a priori known fat concentrations), optimizing the regression coefficients in a linear equation, which relates X and y. The optimized coefficients can be used for predicting the value of the y-variable from a previously unseen set of X-variables. Leave-one-out cross-validation (CV) on averaged datasets was applied to estimate the PLS model performance.
The model performance for both regression methods is assessed by two standard metrics—the root-mean-square error (Equation (3)) of calibration (RMSEC) or cross-validation (RMSECV) and the correlation coefficient R2 (Equation (4)):
RMSE = i = 1 k y ^ i y i 2 k
R 2 = 1 i = 1 k y ^ i y i 2 i = 1 k ( y ^ i y ) 2   ,   where   y = i = 1 k y ^ i y i 2 k
where yi and ŷi are known and predicted values, k—is the number of samples in the validation set (for CV, k is the number of samples).
RMSECV shows the error of the model predictions in the range of concentrations being studied. The coefficient of determination R2 is a unitless measure of the model quality, which takes values between 0 and 1.
Four evident outliers were excluded from the modeling for a dataset of raw milk samples. The data analysis was carried out in the Unscrambler 9.7 (CAMO, Oslo, Norway) software package.

3. Results and Discussion

3.1. LED-Sensor Development

The photo of the RGB sensor prototype is shown in Figure 4. The developed analyzer has been assembled from affordable and inexpensive elements. The housing size of 105 × 55 × 38 mm leaves enough place for the electronics and the sample. These dimensions provide stability for the device on the desktop. If necessary, the size of the analyzer can be significantly reduced.
The sample compartment includes two round apertures on opposite sides of the cuvette, allowing the measurement in transmission mode. One aperture (15.5 mm in diameter) focuses the LED light by means of a single secondary lens into the middle of the cuvette volume. The other (5.2 mm in diameter) serves to feed the light after the sample to the detecting photodiode. The distances from the LED source and from the detector to the cuvette were about 0.2 mm. No optics between the cuvette and detector was used in the RGB sensor prototype. Appropriate lenses could be useful to improve the result of analysis, but in this prototype, it was decided to stick to a minimalistic implementation.
The 3 W high-power LED chip lamp with red, green, and blue LEDs was chosen for analysis as the most common LED source in the Vis region. In this case, it is important that the source of light is a point light. This ensures the same conditions for sample analysis at different wavelengths. The pulse duration of 10 ms was chosen to provide a fast averaging measurement without the influence of transient effects.
Powering via a USB cable has several advantages over an external power source. First, it ensures the simplicity and reliability of the design. Secondly, the PC provides a constant stabilized voltage level. In addition, USB provides a sufficiently high level of current (up to 500 mA) to power high-power LEDs.
An optical path of 1 cm was chosen because it is the most common standard in the spectroscopy of the Vis region. It was previously verified that this optical path length is sufficient to obtain an informative signal at the output.
Based on the principle of simplicity chosen for this prototype, a raw detected signal was used in the calibration model building. Alternatively, the sensor response could be expressed in absorption or transmission units, as in spectroscopy. However, there is no ready-to-use standard sample or reference material that mimics the optical properties of milk and can therefore be used for the reference measurement. This problem is typical in the spectroscopic analysis of milk in the Vis and NIR regions. Custom reference materials are usually developed for a particular analytical instrument [11,13]. In the future, a standard sample can be developed for the present RGB sensor, for example, a light-scattering or absorbing filter suitable for the cuvette compartment. Here, it was important to check the possibility of using the raw detected signals of the sensor channels to build calibration models using linear modeling methods.

3.2. Building Calibration Models for Homogenized Milk

The averaged sensor responses for ten calibration samples of homogenized milk are shown in Figure 5. The rainbow gradient in the plot (Figure 5) reflects the increasing fat content in milk. The graph shows that the samples lie presumably in the order of increasing fat content for all three channels. The dots are distributed more evenly for the red channel and less evenly for the blue channel.
At the first stage of the analysis, univariate regression models were built to investigate the relationships between the channel responses and the fat content. The dependencies of the channel responses on the fat content in ten homogenized milk samples are shown in Figure 6. The linear regression equations relating the sensor responses to the fat content were calculated using linear least-squares regression (Equation (1)). The model validation statistics are presented in Table 2. The coefficients of determination show that the red channel (R2CV = 0.98, Figure 6A) has the highest correlation with the milk fat content. The green channel (R2CV = 0.91, Figure 6B) performs slightly worse. Finally, the blue channel (R2CV = 0.51, Figure 6C) is the least informative in terms of fat content determination.
The univariate regression model discussed above was useful to give a relative picture of the channel informativeness and, therefore, the importance of the determination of fat content in milk. In the next step of research, multivariate regression models were built. Two algorithms of chemometrics were used and compared: PLS and MLR. PLS was chosen as currently the most widespread regression algorithm for the analysis of spectral and similar data [31]. On the contrary, MLR is rarely used in spectroscopy because it requires the number of samples to be greater than the number of responses, which is a serious limitation for spectral data analysis. Having only three responses, i.e., sensing channels in our case, releases this limitation and makes the simple and straightforward MLR algorithm fully competitive. The algorithm comparison statistics are presented in Table 2. This comparison was made for different channel combinations, including single channels, the most promising pairwise combination thereof (as follows from the above univariate models), and the full data of three channels together.
PLS and MLR models were also built for individual sensor channels to compare the results of univariate regression analysis with multivariate regression. The combination of the three channels gives significantly better validation statistics of the PLS model (RMSECV = 0.08 and R2 = 0.98) as corresponds to the predicted vs. reference plot in Figure 7A compared to both the univariate models and the red and green channel combination. The scores and loadings plots of the PLS model are shown in Figure 7B,C, respectively. The PLS scores (Figure 7B) show that the sample order along the first latent variable (LV1) generally follows the increasing fat content. The loadings in Figure 7C demonstrate the relative contribution of each sensor channel to the model. Thus, the red channel was found to be the most informative, and the blue channel was the least informative, which is in agreement with the univariate analysis results.
The validation statistics of MLR and PLS regression are very similar (Table 2). This similarity of results for the two algorithms confirms our previous statements [34] that MLR can be a preferred regression method for building calibration models on multisensory data, while PLS suits perfectly for the conventional spectra.
Table 2 also presents the data from full-spectrum analysis performed on the TIDAS E spectrometer (Section 2.3). As expected, the spectroscopic technique shows a noticeably better model performance for the same set of calibration samples. However, the accuracy of determination of fat content with the developed prototype is still acceptable in many practical applications in dairy.

3.3. Building Calibration Models for Raw Milk

Twenty-nine raw milk samples were analyzed using the developed RGB sensor, and a PLS model was built (Figure 8). As in the case of homogenized milk (Section 3.2), the PLS regression statistics for the full RGB-sensor data model (R2CV = 0.72, RMSECV = 0.37) is significantly better than for individual sensor channels or combinations thereof. It is slightly worse than the model built on the full-spectrum data (Figure 9B) of the same samples (R2CV = 0.76, RMSECV = 0.35). In general, the model performance in the case of raw milk data is moderate and can only be used in less critical practical applications. This result has a straightforward explanation. First of all, it is related to a wide variability of fat globule sizes in natural raw milk, which add the light scattering dependence on the wavelength [13].
An additional complication was due to the presence of a preservative added to each sample (hence the pink color of the milk). Even though the quantity of added preservatives was the same, due to the difference in sample volume, its actual concentration was variable, which could be seen from the spectra (Figure 9B) and from the sample color itself. In a multivariate sense, the addition of a preservative to the samples adds one more source of variability to the spectral and sensory data. Although its concentration is unknown, its effect can be correctly accounted for by adding an additional factor (i.e., a latent variable) to a multivariate regression model, such as PLS. The pink color of the samples indicates the main absorption in the short-wave part of the spectra. Indeed, one can see this absorption in full-spectrum data obtained using the TIDAS E instrument (compare Figure 9A,B), and the corresponding spectral variance is moderate compared to the variance due to the milk composition difference. It can also be seen that the preservative has the most affected on the blue LED channel (compare Figure 2 and Figure 9). However, this channel contributes less to the model than the others, as shown in the homogenized milk study (Table 2). Perhaps, the presence of an additional variability factor in the already complex spectral response of milk is one of the reasons for the insufficient performance of the PLS model in the raw milk case, even for the full-spectrum data. In our previous study [13], five factors (LVs) were required to build a well-performing PLS model since other components of milk, such as protein and lactose, had a variable content and light-scattering properties. In this case, one can expect a similar or even higher complexity of the system.
In the sensory approach, the number of LEDs forming the sensor variables (channels) should be at least as large as the number of LVs, even for their optimal configuration [35]. Also, the dataset of 29 historical samples (no experimental design was used) is hardly sufficient to train the calibration model appropriately. At such a high level of complexity, many more samples may be required to adequately train the calibration model [30]. However, it was not the aim of the present study with the sensor prototype.
Therefore, we came to the conclusion that the present version of the LED-based sensor does not suit well for the determination of fat in raw milk samples. In order to fit it to the real system complexity, a few LEDs in the Vis and NIR range should be added in an optimal way. With this extension, the original concept of the RGB sensor as a simple solution for fat content determination should be revised. Nevertheless, this approach may work well for homogenized milk, the multivariate complexity of which is significantly lower [36].
Overall, the reported results show that the proposed sensory approach, based on a very common combination of LEDs in the visible light region, is suitable for the analysis of fat content in homogenized milk, which is a staple of the dairy industry. The method using the powerful RGB LED as a working element can be further improved. The fat content prediction accuracy can be further enhanced by technical optimization, i.e., the inclusion of focusing and collimating optics, optical path, and LED intensity adjustment, etc. In the case of raw milk, however, the spectral range of analysis should probably be extended towards the NIR range, and the number of LEDs should be increased in accordance with the real complexity of samples. This should be the main effort of further research.

4. Conclusions

The obtained results are a step forward in the development of LED-based sensors for the quantitative analysis of milk composition. The possibility of creating such a system for determining milk fat, theoretically shown earlier [35], was experimentally proven using the developed desktop prototype presented here. It has been shown that responses of individual LEDs in the Vis light region have very different correlation strengths with the fat content and are generally not suitable for its accurate determination. Combining multiple optical sensors at different wavelengths in the same measurement improves prediction accuracy. Therefore, multisensory measurement is necessary to take into account various factors that affect the result of light transmission through a milk sample, in particular, differences in the number and size of colloidal milk particles.
Deliberate simplicity was the main constructional principle put into the basis of the developed RGB sensor, which uses only widely available low-cost components, 3D-printed parts and avoids any precision optics. Nevertheless, this proof-of-concept study has shown that the proposed design of the OMS is suitable for determining fat content in homogenized milk, which is the most produced and consumed dairy product. The accuracy of prediction is comparable to the well-established spectral approach. Measurements on raw milk samples gave a less accurate model, which is expected given the greater complexity of the system. This experiment has shown that three LEDs are not enough in this case, and for a successful analysis of natural non-homogenized milk, the system must be optimized in terms of the number of LEDs and their operating wavelengths.
Simultaneous determination of proteins and possibly other components having scattering and absorption in the selected region could be a very important extension of the future optimized technique. If necessary, the spectral region can be extended towards the NIR and even the MIR range.

Author Contributions

Conceptualization, A.B., V.A. and I.I.; methodology, I.I., A.S.; formal analysis, A.S., A.P. and J.K.; investigation, A.S., A.P, M.S., Y.S., N.S. and J.K.; data curation, A.S. and A.B.; writing—original draft preparation, A.S., A.B. and I.I.; writing—review and editing, A.S. and A.B.; visualization, A.S. and I.I.; supervision, A.B., I.I., V.A. and A.S.; Project administration, V.A.; Writing—review & editing, A.B., V.A. and A.S. All authors have read and agreed to the published version of the manuscript.

Funding

The work was supported by the Ministry of Science and Higher Education of the Russian Federation (theme No. FSSE-2023-0003) as part of the state task of the Samara State Technical University.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

The authors would like to thank the Samara Region Agricultural Support Center for providing research milk samples.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Prasanth, P.; Viswan, G.; Bennaceur, K. Development of a low-cost portable spectrophotometer for milk quality analysis. Mater. Today 2021, 46, 4863–4868. [Google Scholar] [CrossRef]
  2. Melfen, A.; Hartung, E.; Haeussermann, A. Robustness of near-infrared calibration models for the prediction of milk constituents during the milking process. J. Dairy Res. 2013, 80, 103–112. [Google Scholar] [CrossRef] [PubMed]
  3. Plaizier, J.C.; Krause, D.O.; Gozho, G.N.; McBride, B.W. Subacute ruminal acidosis in dairy cows: The physiological causes, incidence and consequences. Vet. J. 2008, 176, 21–31. [Google Scholar] [CrossRef] [PubMed]
  4. ISO 11870:2009; Milk and Milk Products—Determination of Fat Content—General Guidance on the Use of Butyrometric Methods. International Organization for Standardization: Geneva, Switzerland, 2009. Available online: https://www.iso.org/obp/ui/#iso:std:iso:11870:ed-2:v1:en (accessed on 15 June 2023).
  5. ISO 8381:2000; Milk-Based Infant Foods—Determination of Fat Content—Gravimetric Method. International Organization for Standardization: Geneva, Switzerland, 2000. Available online: https://www.iso.org/ru/standard/27796.html?browse=tc (accessed on 15 June 2023).
  6. ISO 9622:2013|IDF 141:2013; Milk and Liquid Milk Products—Guidelines for the Application of Mid-Infrared Spectrometry. International Organization for Standardization: Geneva, Switzerland, 2013. Available online: https://www.iso.org/standard/56874.html (accessed on 15 June 2023).
  7. Tsenkova, R.; Atanassova, S.; Ozaki, Y.; Toyoda, K.; Itoh, K. Near-infrared spectroscopy for biomonitoring: Influence of somatic cell count on cow’s milk composition analysis. Int. Dairy J. 2001, 11, 779–783. [Google Scholar] [CrossRef]
  8. Šašić, S.; Ozaki, Y. Short-wave near-infrared spectroscopy of biological fluids. 1. Quantitative analysis of fat, protein, and lactose in raw milk by partial least-squares regression and band assignment. Anal. Chem. 2001, 73, 64–71. [Google Scholar] [CrossRef]
  9. Kalinin, A.V.; Krasheninnikov, V.N. Portable milk product quality analyzer based on spectrometry in the near IR range. J. Appl. Spectrosc. 2008, 75, 288–294. [Google Scholar] [CrossRef]
  10. Aernouts, B.; Polshin, E.; Lammertyn, J.; Saeys, W. Visible and near-infrared spectroscopic analysis of raw milk for cow health monitoring: Reflectance or transmittance? J. Dairy Sci. 2011, 94, 5315–5329. [Google Scholar] [CrossRef] [Green Version]
  11. Kalinin, A.V.; Krasheninnikov, V.N.; Krivtsun, V.M. Short-wave near infrared spectrometry of back scattering and transmission of light by milk for multi-component analysis. J. Near Infrared Spectrosc. 2013, 21, 35–41. [Google Scholar] [CrossRef]
  12. Bogomolov, A.; Dietrich, S.; Boldrini, B.; Kessler, R.W. Quantitative determination of fat and total protein in milk based on visible light scatter. Food Chem. 2012, 134, 412–418. [Google Scholar] [CrossRef]
  13. Bogomolov, A.; Melenteva, A. Scatter-based quantitative spectroscopic analysis of milk fat and total protein in the region 400-1100 nm in the presence of fat globule size variability. Chemom. Intell. Lab. Syst. 2013, 126, 129–139. [Google Scholar] [CrossRef]
  14. Pampuri, A.; Tugnolo, A.; Giovenzana, V.; Casson, A.; Guidetti, R.; Beghi, R. Design of cost-effective LED based prototypes for the evaluation of grape (Vitis vinifera L.) ripeness. Comput. Electron. Agric. 2021, 189, 106381. [Google Scholar] [CrossRef]
  15. Civelli, R.; Giovenzana, V.; Beghi, R.; Naldi, E.; Guidetti, R.; Oberti, R. A simplified, light emitting diode (LED) based, modular system to be used for the rapid evaluation of fruit and vegetable quality: Development and validation on dye solutions. Sensors 2015, 15, 22705–22723. [Google Scholar] [CrossRef] [Green Version]
  16. Lastra-Mejias, M.; Villa-Martinez, A.; Izquierdo, M.; Aroca-Santos, R.; Cancilla, J.C.; Torrecilla, J.S. Combination of LEDs and cognitive modeling to quantify sheep cheese whey in watercourses. Talanta 2019, 203, 290–296. [Google Scholar] [CrossRef]
  17. Bogomolov, A. Developing multisensory approach to the optical spectral analysis. Sensors 2021, 21, 3541. [Google Scholar] [CrossRef]
  18. Kovac, J.; Peternai, L.; Lengyel, O. Advanced light emitting diodes structures for optoelectronic applications. Thin Solid Films 2003, 433, 22–26. [Google Scholar] [CrossRef]
  19. Yeh, P.; Yeh, N.; Lee, C.-H.; Ding, T.-J. Applications of LEDs in optical sensors and chemical sensing device for detection of biochemicals, heavy metals, and environmental nutrients. Renew. Sustain. Energy Rev. 2017, 75, 461–468. [Google Scholar] [CrossRef]
  20. Zhu, X.; Zhao, Z.; Qian, K.; Wang, L.; Lan, X. A rapid method for measuring fat content in milk based on W-type optical fibre sensor system. Trans. Inst. Meas. Control. 2016, 38, 1471–1479. [Google Scholar] [CrossRef]
  21. Angrasari, F.; Arifin, A.; Abdullah, B. Fabrication of milk fat sensor based on plastic optical fiber. J. Phys. Conf. Ser. 2019, 1341, 082038. [Google Scholar] [CrossRef]
  22. Ragni, L.; Iaccheri, E.; Cevoli, C.; Berardinelli, A. Spectral-sensitive pulsed photometry to predict the fat content of commercialized milk. J. Food Eng. 2016, 171, 95–101. [Google Scholar] [CrossRef]
  23. Pérez-González, C.; Salvo-Comino, C.; Martin-Pedrosa, F.; Dias, L.; Rodriguez-Perez, M.A.; Garcia-Cabezon, C.; Rodriguez-Mendez, M.L. Analysis of milk using a portable potentiometric electronic tongue based on five polymeric membrane sensors. Front. Chem. 2021, 9, 706460. [Google Scholar] [CrossRef]
  24. Yang, B.; Guo, W.; Liang, W.; Zhou, Y.; Zhu, X. Design and evaluation of a miniature milk quality detection system based on UV/Vis spectroscopy. J. Food Compos. Anal. 2022, 106, 104341. [Google Scholar] [CrossRef]
  25. Yang, B.; Huang, X.; Yan, X.; Zhu, X.; Guo, W. A cost-effective on-site milk analyzer based on multispectral sensor. Comput. Electron. Agric. 2020, 179, 105823. [Google Scholar] [CrossRef]
  26. Ou, F.; van Klinken, A.; Hakkel, K.D.; Petruzzella, M.; van Elst, D.M.J.; Ševo, P.; Li, C.; Pagliano, F.; van Veldhoven, R.P.J.; Fiore, A. Spectral sensing using a Handheld NIR module based on a fully integrated sensor chip. Spectrosc. Outs. Lab. 2022, 37, 34–38. [Google Scholar] [CrossRef]
  27. Hakkel, K.D.; Petruzzella, M.; Ou, F.; Klinken, A.; Pagliano, F.; Liu, T.; Veldhoven, R.P.J.; Fiore, A. Integrated near-infrared spectral sensing. Nat. Commun. 2022, 13, 103. [Google Scholar] [CrossRef]
  28. Kucheryavskiy, S.; Melenteva, A.; Bogomolov, A. Determination of fat and total protein content in milk using conventional digital imaging. Talanta 2014, 121, 144–152. [Google Scholar] [CrossRef]
  29. Katsumata, T.; Aizawa, H.; Komuro, S.; Ito, S.; Matsumoto, T. Quantitative analysis of fat and protein concentrations of milk based on fibre-optic evaluation of back scattering intensity. Int. Dairy J. 2020, 109, 104743. [Google Scholar] [CrossRef]
  30. Melenteva, A.; Galyanin, V.; Savenkova, E.; Bogomolov, A. Building global models for fat and total protein content in raw milk based on historical spectroscopic data in the visible and short-wave near infrared range. Food Chem. 2016, 203, 190–198. [Google Scholar] [CrossRef]
  31. Wold, S.; Sjöström, M.; Eriksson, L. PLS-regression: A basic tool of chemometrics. Chemom. Intell. Lab. Syst. 2001, 58, 109–130. [Google Scholar] [CrossRef]
  32. Esbensen, K.H. Multivariate Data Analysis—In Practice, 5th ed.; CAMO Process AS: Oslo, Norway, 2001. [Google Scholar]
  33. Bogomolov, A.; Evseeva, A.; Ignatiev, E.; Korneev, V. New approaches to data processing and analysis in optical sensing. Trends Anal. Chem. 2023, 160, 116950. [Google Scholar] [CrossRef]
  34. Surkova, A.; Bogomolov, A.; Legin, A.; Kirsanov, D. Calibration transfer for LED-based optical multisensor systems. ACS Sens. 2020, 5, 2587–2595. [Google Scholar] [CrossRef]
  35. Galyanin, V.; Melenteva, A.; Bogomolov, A. Selecting optimal wavelength intervals for an optical sensor: A case study of milk fat and total protein analysis in the region 400–1100 nm. Sens. Actuators B Chem. 2015, 218, 97–104. [Google Scholar] [CrossRef]
  36. Surkova, A.; Belikova, V.; Kirsanov, D.; Legin, A.; Bogomolov, A. Towards an optical multisensor system for dairy: Global calibration for fat analysis in homogenized milk. Microchem. J. 2019, 149, 104012. [Google Scholar] [CrossRef]
Figure 1. Block diagram of RGB sensor architecture.
Figure 1. Block diagram of RGB sensor architecture.
Sensors 23 06861 g001
Figure 2. Emission spectra of RGB sensor. LEDs normalized to unit intensity.
Figure 2. Emission spectra of RGB sensor. LEDs normalized to unit intensity.
Sensors 23 06861 g002
Figure 3. Scheme of primary data processing in the analysis of a milk sample.
Figure 3. Scheme of primary data processing in the analysis of a milk sample.
Sensors 23 06861 g003
Figure 4. Photo of the sensor prototype: (A) sensor with cuvette and measurement compartment lid; and (B) internal view of sensor without top cover.
Figure 4. Photo of the sensor prototype: (A) sensor with cuvette and measurement compartment lid; and (B) internal view of sensor without top cover.
Sensors 23 06861 g004
Figure 5. Normalized sensor responses for ten samples of homogenized milk. The fat content in the samples is indicated using the color scale on the right side of the figure.
Figure 5. Normalized sensor responses for ten samples of homogenized milk. The fat content in the samples is indicated using the color scale on the right side of the figure.
Sensors 23 06861 g005
Figure 6. Observed responses of individual sensor channels versus fat content in homogenized milk samples: (A) red; (B) blue; and (C) green LED channels. The regression lines and the corresponding linear regression equations are presented on the respective graphs. The error bars represent the standard deviation of three replicated measurements.
Figure 6. Observed responses of individual sensor channels versus fat content in homogenized milk samples: (A) red; (B) blue; and (C) green LED channels. The regression lines and the corresponding linear regression equations are presented on the respective graphs. The error bars represent the standard deviation of three replicated measurements.
Sensors 23 06861 g006
Figure 7. PLS regression results for homogenized milk samples: (A) predicted versus reference plot for fat content determination; (B) scores plot; (C) loadings plot.
Figure 7. PLS regression results for homogenized milk samples: (A) predicted versus reference plot for fat content determination; (B) scores plot; (C) loadings plot.
Sensors 23 06861 g007
Figure 8. PLS-predicted versus reference plot for fat content in raw milk samples.
Figure 8. PLS-predicted versus reference plot for fat content in raw milk samples.
Sensors 23 06861 g008
Figure 9. Spectra of homogenized (A) and raw (B) milk samples obtained using TIDAS E spectrometer. Fat content is coded by a red color gradient: a darker color corresponds to a higher fat concentration.
Figure 9. Spectra of homogenized (A) and raw (B) milk samples obtained using TIDAS E spectrometer. Fat content is coded by a red color gradient: a darker color corresponds to a higher fat concentration.
Sensors 23 06861 g009
Table 1. Signal reproducibility of each sensor channel for homogenized milk with the minimum and maximum fat content.
Table 1. Signal reproducibility of each sensor channel for homogenized milk with the minimum and maximum fat content.
Fat, %Channel 1Mean 2SD Range for Scans
1.50R11,739.367.22–12.99
G14,352.557.81–17.27
B17,289.6115.21–22.40
3.20R12,594.185.11–17.78
G15,086.5813.02–20.35
B17,632.1510.91–13.66
1 R—red, G—green, B—blue; 2 mean for three measurements.
Table 2. Calibration and validation statistics for PLS and MLR regression models for fat content prediction in homogenized milk.
Table 2. Calibration and validation statistics for PLS and MLR regression models for fat content prediction in homogenized milk.
Dataset 1LVCalibrationCV
RMSE 3, %R2RMSE, %R2
PLS
R10.080.980.100.98
G10.140.940.180.91
B10.290.710.420.51
RG10.100.960.130.95
RGB20.070.980.080.98
Spectrometer 220.021.000.030.99
MLR
R-0.080.980.100.98
G-0.140.940.180.89
B-0.290.710.420.51
RG-0.070.980.080.98
RGB-0.070.990.100.97
1 Calibration datasets used for the model building were composed of individual channel responses and their combinations: R—red, G—green, B—blue, RG—red and green, RGB—red, green, and blue; 2 calibration dataset composed of full spectra of milk samples in the wavelength range 400–1100 nm obtained using TIDAS E spectrometer; 3 concentration range 1.5–3.2% of fat.
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

Surkova, A.; Shmakova, Y.; Salukova, M.; Samokhina, N.; Kostyuchenko, J.; Parshina, A.; Ibatullin, I.; Artyushenko, V.; Bogomolov, A. LED-Based Desktop Analyzer for Fat Content Determination in Milk. Sensors 2023, 23, 6861. https://doi.org/10.3390/s23156861

AMA Style

Surkova A, Shmakova Y, Salukova M, Samokhina N, Kostyuchenko J, Parshina A, Ibatullin I, Artyushenko V, Bogomolov A. LED-Based Desktop Analyzer for Fat Content Determination in Milk. Sensors. 2023; 23(15):6861. https://doi.org/10.3390/s23156861

Chicago/Turabian Style

Surkova, Anastasiia, Yana Shmakova, Marina Salukova, Natalya Samokhina, Julia Kostyuchenko, Alina Parshina, Ildar Ibatullin, Viacheslav Artyushenko, and Andrey Bogomolov. 2023. "LED-Based Desktop Analyzer for Fat Content Determination in Milk" Sensors 23, no. 15: 6861. https://doi.org/10.3390/s23156861

APA Style

Surkova, A., Shmakova, Y., Salukova, M., Samokhina, N., Kostyuchenko, J., Parshina, A., Ibatullin, I., Artyushenko, V., & Bogomolov, A. (2023). LED-Based Desktop Analyzer for Fat Content Determination in Milk. Sensors, 23(15), 6861. https://doi.org/10.3390/s23156861

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop