Next Article in Journal
Intestinal Parasites and Fecal Cortisol Metabolites in Multi-Unowned-Cat Environments: The Impact of Housing Conditions
Next Article in Special Issue
Multiple Country Approach to Improve the Test-Day Prediction of Dairy Cows’ Dry Matter Intake
Previous Article in Journal
Blood Transcriptomics of Turbot Scophthalmus maximus: A Tool for Health Monitoring and Disease Studies
Previous Article in Special Issue
Hyperketonemia Predictions Provide an On-Farm Management Tool with Epidemiological Insights
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Rapid and Non-Destructive Monitoring of Moisture Content in Livestock Feed Using a Global Hyperspectral Model

1
Department of Bio-Industrial Machinery Engineering, Kyungpook National University, Daegu 41566, Korea
2
Upland-Field Machinery Research Centre, Kyungpook National University, Daegu 41566, Korea
3
Smart Agriculture Innovation Center, Kyungpook National University, Daegu 41566, Korea
4
Department of Biosystems Machinery Engineering, College of Agricultural and Life Science, Chungnam National University, 99 Daehak-ro, Yuseong-gu, Daejeon 34134, Korea
5
Department of Agricultural & Biological Engineering, University of Florida, Gainesville, FL 32611, USA
*
Authors to whom correspondence should be addressed.
Animals 2021, 11(5), 1299; https://doi.org/10.3390/ani11051299
Submission received: 22 March 2021 / Revised: 28 April 2021 / Accepted: 28 April 2021 / Published: 30 April 2021
(This article belongs to the Collection Smart Farming in Dairy Production)

Abstract

:

Simple Summary

Moisture content is an important parameter for monitoring the quality of feed and feed materials as its established ranges serve as markers for safe storage, mixing, and feeding animals. The moisture content of feed materials changes very rapidly and necessitates rapid measurement. Current moisture content measurement methods are time-consuming, destructive, and require specialized skills. This often causes reduced and/or delayed testing, which results in the spoilage of feed and feed materials. Additionally, the improper balance of dry matter intake which is inversely proportional to moisture content often causes metabolic diseases for animals consuming the diet. To solve these, we have developed a rapid and non-destructive global hyperspectral model that could quantify moisture content in feed materials. Our results show that the developed model is robust, could provide a method to measure the distribution of moisture in feed, and has potential for implementation in a commercial setting.

Abstract

The dry matter (DM) content of feed is vital in cattle nutrition and is inversely correlated with moisture content. The established ranges of moisture content serve as a marker for factors such as safe storage limit and DM intake. Rapid changes in moisture content necessitate rapid measurements. A rapid and non-destructive global model for the measurement of moisture content in total mixed ration feed and feed materials was developed. To achieve this, we varied and measured the moisture content in the feed and feed materials using standard methods and captured their images using a hyperspectral imaging (HSI) system in the spectral range of 1000–2500 nm. The spectral data from the samples were extracted and preprocessed using seven techniques and were used to develop a global model using partial least squares regression (PLSR) analysis. The range preprocessing technique had the best prediction accuracy (R2 = 0.98) and standard error of prediction (2.59%). Furthermore, the visual assessment of distribution in moisture content made possible by the generated PLSR-based moisture content mapped images could facilitate precise formulation. These applications of HSI, when used in commercial feed production, could help prevent feed spoilage and resultant health complications as well as underperformance of the animals from improper DM intake.

1. Introduction

Moisture content is an important and widely used indicator in the processing and testing of foods. The terms moisture content and water content have been used interchangeably to designate the amount of water in a product. Since the dry matter in food is inversely related to the moisture it contains, the moisture content is of direct economic importance to the processor and the consumer. Grain that contains excess water is subject to rapid deterioration from bacteria, mold growth, heating, insect damage, and sprouting [1]. In the livestock industry, moisture content of feed materials, and total mixed ration (TMR) for cattle is very important in preventing spoilage [2] and ensuring good health of the animal. In most countries, TMRs are mixed on the farm. However, in some countries such as the Republic of Korea, TMR feed is manufactured in factories, bagged, stored, and sold to farms [2]. This is because most of the raw materials for feed production are sourced internationally, which makes it difficult for small farmers (less than 50 cattle) [3] to import, store, and process by themselves. The amount of water in the TMR feed and feed materials can also be a factor to cause bacterial and fungal spoilage of feed when the temperature is conducive [4]. However, microbial spoilage could occur in environments with low moisture content at conducive temperatures [5]. In [6], the microbial activity of selected feed materials was monitored at nine different moisture contents. In that study, they established critical moisture contents between 16–46% to be favorable for microbial growth to occur depending on the microorganism and material.
DMI is a factor that must be estimated before an animal’s diet can be properly formulated. Routine monitoring of the dry matter content of feed ingredients is an important strategy in preparing TMR for dairy cattle [7].
Estimating the moisture content could also help mitigate issues of sorting TMR feed by dairy cattle. Sorting is part of the problems associated with feeding TMR to dairy cattle. To solve the problem of sorting that could cause subacute ruminal acidosis, the addition of water to dry TMR is conventionally considered to be a beneficial management practice. It has been demonstrated that reducing TMR dry matter concentration from 80 to 64% [8] results in a reduction in the extent of feed sorting against long particles and in favor of short particles, a tendency for increased Neutral Detergent Fiber intake, and higher fat content in the produced milk (3.41 vs. 3.31%) [8]. However, reducing the dry matter concentration from 57.6 to 47.9% [9] encouraged greater feed sorting and reduced DMI in TMR containing primarily forage sources. Rapid measurement of moisture content would help guide the grower to control the right amount of water content in the TMR that would prevent sorting.
Currently, there are well-developed and commercialized non-destructive thermal sensors. In [10], thermal imaging in agriculture was reviewed. Various specifications of operational thermal sensors were provided. This study showed a wide range of thermal imaging methods that can be used in measuring the temperature of the feed or feed materials non-destructively and rapidly. However, in moisture content, the available measurement methods include the use of a capacitance sensor for nuts and grains moisture quantification [11] and a miniaturized non-destructive microwave sensor for measuring the moisture content measurement of chickpea [12]. Furthermore, the near-infrared technique has been widely applied for estimating water stress in crops [13], feed materials [14], and in grains [15]. Additionally, change in the weight of materials before and after drying using hot air ovens, microwaves, etc., is currently used for determining moisture content [16].
Additionally, with the considerable physical and chemical variations in the materials used for formulating feeds, multiple non-destructive sensors would be needed to measure each material. The above moisture content measurement methods of animal feed including the conventional drying technique in a hot air oven are time-consuming and destructive. The time-consuming factor could set back livestock feed production, as the materials are also susceptible to rapid change, usually occurring before the results from the current methods have been established.
Spectroscopic methods such as mid-infrared spectroscopy (MIRS), near-infrared spectroscopy (NIRS), and Raman spectroscopy have the advantages of being rapid and non-destructive [17]. Near-infrared hyperspectral imaging [18] combines two-dimensional object visualization obtained by spectral imaging and has the potential of effectively describing constituent distribution in a sample with each pixel containing spectral information. This is added as a third dimension of values to the two-dimensional spatial image, generating a three-dimensional data cube containing any absorption, reflectance, or fluorescence spectrum data for each image pixel [19]. Hyperspectral imaging (HSI) integrates conventional imaging and spectroscopy to obtain both spatial and spectral information simultaneously from a sample at spatial resolutions varying from the level of single cells up to the macroscopic objects giving it a comparative advantage of enabling rapid and non-destructive automated screening on a large-scale [20]. Data acquired using HSI requires preprocessing to remove the noises that it usually contains. These include noise of length variation along the direction of light leading to non-linearities from the light scattering and random and scattered noise produced from the device. These noises could considerably influence the spectra and the prediction model. This makes preprocessing the data a critical step before chemometric modeling to separate important wavelength information from unnecessary redundant information contained in the data. Several spectral preprocessing methods have been explored, depending on the type and level of noise. These methods include minimum, maximum, and range normalization, multiplicative scatter correction (MSC), standard normal variate (SNV), and Savitzky-Golay (SG) 1st and 2nd derivatives methods [21]. HSI systems have been applied at paddock, plot, farm, and catchment scales to determine the type and quality of forage [22], with no information on the factory scale, as well as on heterogeneous samples like TMR and materials used in the formulation.
Consequently, in this study, we (a) investigated and determined the moisture content of different TMRs, conventional and alternative materials using the standard oven method; (b) investigated the influence of different wavelength and preprocessing methods on prediction accuracy; and (c) developed a global model for moisture content determination irrespective of the feed or feed material.

2. Materials and Methods

2.1. Sample Preparation of TMR Feed and Feed Materials

A TMR feed sample (composed of Timothy hay: 35% DM, corn silage: 24% DM, palm-kernel expeller: 7% DM, almond pie 7% DM, rice bran: 9% DM, mushroom medium: 6% DM, soy sauce cake: 6% DM, and distillers’ dry grain: 6% DM), mixed and blended by-products (composed of palm-kernel expeller: 15% DM, almond pie: 15% DM, corn bran: 20% DM, rice bran: 15% DM, mushroom medium: 15% DM, soy sauce cake: 15% DM and distillers’ dry grain: 5% DM) and three major by-products (Palm-kernel expeller, almond pie, and corn bran) commonly used as feed materials were acquired from a factory in Gyeongju, Republic of Korea. The samples were processed specifically to alter the moisture content in a way that created three treatments for each sample as described below:
  • Original TMR feed sample and feed materials (Figure 1A)
  • Samples with lower moisture content than the original TMR feed and feed materials (Figure 1B)
  • Samples with higher moisture content than the original TMR feed and feed materials (Figure 1C).
To achieve this, a group of samples were kept in the original condition (one sample from each group) as shown in Figure 1A. Another group was dried at 40 °C for a total duration of 9 h 30 min (Figure 1B). One sample from each group was taken out of the drying oven every 30 min (a total of 19 samples from one group) and poured into an airtight plastic bag to achieve equilibrium moisture content. The last group was rewetted with an incremental 5 mL of water to 200 g of sample (total of 20 samples from one group), mixed thoroughly, and poured into an airtight bag to achieve equilibrium moisture (Figure 1C). These resulted in a total of 40 samples with varied moisture content for each group (TMR feed and feed materials). Equations (1) and (2) were used in computing the moisture content.
The treated samples (drying and wetting) were tempered in airtight plastic bags for 24 h to achieve equilibrium moisture content.
a.
The initial moisture content of the samples was determined using the standard oven method (135 °C for 2 h) referring to Equation (1).
M w b = W m W m + W d    
where M w b is moisture content (MC) on wet basis (%), Wm is the weight of water in the feed and feed materials and Wd is the weight of dry matter in the feed and feed materials.
b.
The dry matter (DM) in the feed was computed using Equation (2).
D M = W o × 1 M w b
where W o is the initial weight of the feed and feed materials, and M w b is the initial moisture content of the feed and feed materials in decimal calculated using Equation (1).
The difference in weight of the wetted and dried feed and feed materials before addition of water and drying and the DM (Equation (2)) were used in computing the new moisture content. The Wm and Wd were estimated by measuring the weight of the feed or feed materials before and after drying and wetting.

2.2. HSI Image Acquisition of TMR Feed and Feed Materials and Correction

The samples were prepared in a circular petri dish (ϕ 90 × 15 mm) with weight depending on their densities (50–100 g). The surface of the samples was evenly distributed in the petri dish before HSI acquisition.
A line-scan type short wave infrared hyperspectral imaging system was used in acquisition of the images of the samples as shown in Figure 2. The hyperspectral imaging system was made up of the following: (a) line scan type hyperspectral camera (Hyperspec SWIR, Headwall Photonics, Fitchburg, MA, USA), (b) C-mount lens with 25 mm f/1.4 and (c) a moving stage. The camera was operated in a spectral wavelength range of 894–2504 nm with a spectral interval of approximately 5.85 nm hence a total of 275 spectral bands. A total of six 100 W tungsten-halogen lamps (Light Bank, Ushio Inc. Tokyo, Japan) with fiber optics (three on each side) were used to illuminate feed samples. A computer programmed motorized sample stage was integrated to move the samples towards the camera Field of View (FOV). The sensing unit was linked to a computer through a frame grabber with a standard camera link cable.
The petri dishes containing feed samples were placed onto the sample holder mounted on the translation stage. The HSI data were collected with a 47 ms exposure time. The distance of the sample from the camera lens was approximately 34 cm, and the samples were measured with a scanning speed of 5.3 mm/s, and a total scan of 600 scans/sample. As the stage moved, the samples were scanned line by line in the wavelength range of 894–2504 nm. The acquired hyperspectral images were saved in a three-dimensional format containing two spatial dimensions (x and y) and a spectral dimension (λ). A total of 28 s was required to measure a single feed sample.

2.3. Calibration of Spectral Images

Calibration steps were applied to remove the dark current noise and non-uniform illumination effect from the sample images using the white and dark reference images acquired during measurement. The dark image (0% reflectance) was obtained by turning off the light source and covering the lens with a black lid, and the white image (~99% reflectance) was obtained with a white Teflon board. Thus, the normalized reflectance value was calculated using Equation (3).
X C = T i j R T i j D   T i j W T i j D  
where T i j R   λ is the raw reflectance image of the feed sample, T i j D   λ is the dark image, T i j W   λ is the white image, and XC is the calibrated image. Where i and j are the pixel number and waveband, respectively.

2.4. Preprocessing of Spectral Images

Calibrated feed sample images were preprocessed to remove background noises. This was done to acquire an image containing only the sample (Figure 3) and avoid any interference from the background [23]. For preprocessing of the image, a single waveband image was selected from the hypercube. The hyperspectral band image of 1140 nm was used to remove the irrelevant background pixels because of the highest peak of sample at this band. This was because the plotted spectra showed the highest peak near 1140 nm waveband, thus the highest difference from the background. A threshold value (0.46) was applied to turn all the sample pixels as 1 and the background pixels were turn to 0 (Figure 3). The threshold value was selected at the average value between the maximum and minimum values of the feed and feed material samples and the background pixel intensity. For perfect background removal, the final masked image was created using the morphological method (image erodes and filling) in the masked image with the primary background removed. The background free band image was then multiplied to each image in hypercube to generate a background free hypercube.

2.5. Pre-Processing of HSI Data Acquired from TMR Feed and Feed Materials

Optimal data collection is the most important step in developing hyperspectral imaging models for the prediction of components. The acquired hyperspectral image spectrum contains numerous noises, such as random noise, the noise of length variation along the direction of light leading to non-linearities from the light scattering which could significantly influence the spectra, and scattered noise produced from the device. Preprocessing of spectral data is the most critical step before chemometric modeling using tools such as Partial Least Squares (PLS) and Principal Component Analysis (PCA). Consequently, it is necessary to preprocess spectra to separate important wavelength information from unnecessary redundant information contained in the data [24]. In this study, several spectral preprocessing methods were explored to correct HSI data. These include normalization methods (minimum, maximum, and range normalization), Standard normal variate (SNV), multiplicative scatter correction (MSC), and Savitzky-Golay (SG) 1st and 2nd derivatives methods.
i.
Multiplicative Scatter Correction (MSC)
Multiplicative Scatter Correction (MSC) is a concept where undesirable scatter effect is removed from the data matrix preceding model development. Two steps are used in MSC (Equations (4) and (5)):
a.
Correction coefficient estimation
X o r g = b o + b r e f , 1   .   X r e f + e
b.
Logged spectrum correction
X c o r r = X o r g b o b r e f , 1 = X r e f + e b r e f , 1
where Xorg is original sample spectra, Xref is reference spectrum, e is the unmodeled part of Xorg, Xcorr is the corrected spectra, and b0 and bref,1 are scalar parameters.
ii.
Standard Normal Variate (SNV)
Standard Normal Variate (SNV) is another method applied to scatter correction. The basic format for SNV correction is the same as that for the conventional MSC (Equation (6)).
X c o r r = X o r g a 0 a 1
where a0 is the average value of the sample spectrum to be corrected, a1 is the standard deviation of the sample spectrum.
iii.
Savitzky-Golay derivations
Savtizky and Golay (SG) popularized a method for numerical derivation of a vector that includes a smoothing step. To find the derivative at center point i, a polynomial is fitted in a symmetric window on the raw data. When the parameters for this polynomial are calculated, the derivative of any order of this function can easily be found analytically, and this value is subsequently used as the derivative estimate for this center point. This operation is applied to all points in the spectra sequentially. The number of points used to calculate the polynomial (window size) and the degree of the fitted polynomial are both decisions that need to be made. The highest derivative that can be determined depends on the degree of the polynomial used during the fitting (i.e., a third-order polynomial can be used to estimate up to the third-order derivative).

2.6. Development of Moisture Content Prediction Models for TMR Feed and Feed Materials

The preprocessed spectra were used to develop the partial least squares regression (PLSR) model. PLSR is a multivariate analysis method used to assess the correlation between various independent variables (X) and dependent variables (Y) [25]. Since a bad signal-to-noise ratio (SNR) was observed for the wavelengths above 1917 nm, because of the sensitivity of the detector, we selected the waveband range between 894–1917 nm (175 bands) excluding the noisier spectral region. The prediction after this wavelength (1917 nm) is poor and not robust. Subsequently, the wavelengths that have a major influence on moisture content prediction were selected based on the beta coefficient obtained from developed PLS model. Additionally, the significant band for moisture content prediction in this study was below the 1917 nm bands as also reported in [26,27]. The efficiency of PLS regression model was evaluated based on the prediction accuracy (R2) and standard errors for calibration, cross-validation, and prediction. Inappropriate numbers of latent variables selection can cause under- or over-fitting, leading to suppression of spectral information, incorrect model interpretation, and spectral noise in the regression model. Consequently, the optimal number of latent variables was selected based on the lowest value of predicted root mean square error (RMSE) by the leave-one-out cross-validation process during the cross-validation (CV) process.
PLS regression was implemented as multivariate analysis and regression method to determine the linear models of prediction between the spectral data (X-matrix, Nsamples × Kwavelengths) and the values of the parameters obtained from the reference measurement (Y-matrix, Nsamples × 1). The linear relationship between X and Y is predicted using Equations (7) and (8).
X = TPT + E
Y = UQT + F
where Y is the matrix of dependent variables conforming to the sample values measured from the reference data obtained using standard oven methods and calculations in Equations (1) and (2). X is the n × p matrix of independent variables corresponding to the spectral variables for each hyperspectral measurement. The matrix X decomposes into the loading matrix P, score matrix T, and error matrix E. The matrix Y decomposes into the loading matrix Q, score matrix U, and error matrix F.
Furthermore, the entire X and Y matrix data were divided into calibration and validation sets, which consisted of 70% of the data for calibration and 30% for validation.

2.7. Model Evaluation of TMR Feed and Feed Materials

The developed models were evaluated using several statistical parameters. This includes coefficient of determination shown in Equation (9). The coefficient of determination encompasses calibration (R2C), prediction (R2P), and cross-validation (R2CV). Other statistical parameters were the standard error of calibration (SEC), prediction (SEP), and cross-validation (SEV).
R 2 = i = 1 n   y i Ŷ i 2 i = 1 n   y i Ȳ 2
where the predicted and measured components in TMR feed and feed materials are Ŷi and yi, respectively. The number of validation sets observations is denoted with n and the mean of measured values is denoted with Ȳ .

2.8. Image Visualization and Moisture Content Distribution Map of Samples

The moisture content of the TMR feed and feed materials were computed for each pixel to visualize the corresponding distribution made possible with each pixel in a hyperspectral image possessing a spectrum. Although it is practically impossible to obtain the precise quality parameters of every pixel within a sample by chemical analysis, it could be predicted by the optimal calibration model. The hyperspectral image was unfolded into a two-dimensional (2D) matrix and then multiplied by the regression (beta) coefficient obtained from the best calibration model and applied to the selected wavelengths. The resultant vector was then folded back to form a 2D image. A median filter of 3 × 3 was applied to the 2D image for enhancing image quality for visual display. The difference in the predicted attributes within one sample and those from other sources can be visualized from the generated 2D images.
The steps of data preprocessing, prediction model development, and generating concentration maps are shown in Figure 4. The algorithms were implemented in MATLAB, version 2020a (MathWorks, Natick, MA, USA).

3. Results and Discussion

The computed moisture content with initially measured values using the oven drying method ranged from 13 to 78% for the TMR feed (S1), 5 to 54% for the mixed by-products (S2), 1.59 to 76.41% for palm kernel expeller (S3), 2.25 to 62.42% for almond pie (S4) and 4.43 to 52.21% for corn bran (S5) (Table A1 in Appendix A).

3.1. HSI Features of TMR Feed and Feed Materials

The MSC preprocessed spectra (Figure 5A) and mean spectra (Figure 5B) for all the samples (n = 40 samples × 5 samples) are shown in Figure 5. The spectral region (894 nm–1917 nm) used is related to various peaks in broadband such as the O-H, C-H, and N-H functional groups. The disparities in spectral pattern appeared particularly around 1150 nm–1250 nm, and 1400 nm–1750 nm. In addition, the peaks around 1225 nm and 1420 nm are associated with the C-H and O-H overtones, respectively. The small peak at 1530 nm is associated with the N-H stretch first overtone and 1660 nm to the aromatic C-H stretch first overtone [28]. These represent the variation in the moisture, carbohydrate, and protein contents of the samples [28,29].

3.2. Prediction of Moisture Content in the Samples

Table 1 shows the results obtained from PLSR model developed with each preprocessing method. All methods showing a good prediction accuracy (R2) of over 93% and prediction errors (SEP) of less than 5%. The PLSR prediction values for moisture content in multiple by-product samples are shown in Figure 6, where most of the predicted values fall near the line of best fit.
Preprocessing methods and partial least squares regression multivariate technique and were applied to the acquired spectra. We used the spectral data in the wavelength range between 894 nm and 1917 nm to build the models as the HSI system used in this study produces noisy spectra above 1917 nm. From the data preprocessing methods in Table 1, the range preprocessing method generated the maximum correlation coefficient values with R2C of 0.98, R2V of 0.97, and R2P of 0.98. It also had the least SEP of 2.59%. However, all other methods were also satisfactory, with less than 5% SEP values. The optimal number of latent variables was determined from minimum SEV values in the cross-validation process.
Overtones and combinations of fundamental vibrations of molecules comprising -OH, -NH, and -CH groups are characterized in the near-infrared (NIR) spectrum. These would absorb based on the component such as moisture content, protein, etc. [30]. The broadband peaks in the spectrum are shown in the beta coefficient graph for all the preprocessing methods in Figure 7. In Figure 7E,F, the Savitzky Golay 1st and 2nd preprocessing methods showed that the highest positive peaks were obtained around 1660 nm and 1400 nm, respectively. However, these were not the important peaks in the developed model. The considerable amount of other nutrients contained in the TMR feed and feed materials such as carbohydrate and protein resulted in high absorption peaks. These components also increased with the reduction in moisture content as the measured components were in percentages.
The important absorption peaks appeared around 1000 nm and 1450 nm in most of the preprocessing methods, with the exception of SNV preprocessing, where the peak at 1000 nm was not very conspicuous. The peak around 1000 nm is related to the O-H stretching second overtone, representing the moisture content in the samples [31]. The peak at 1450 is associated with the first overtone of O-H stretching indicating the moisture content absorption in the samples [32]. These indicate that all the models are robust and can accurately predict moisture content in the TMR feed and feed materials.

3.3. Imaging of Moisture Content in TMR Feed and Feed Materials

Every pixel in the hyperspectral image has its unique spectrum. As a result, the moisture content can be computed with the spectrum of any pixel in the sample. To compute the moisture content of the whole sample, all spatial pixels of the hyperspectral image should be considered. In Figure 8, the original TMR feed, SWIR hyperspectral images, and PLSR-based images for different levels of moisture content are shown. The images were developed by multiplying the obtained beta coefficient (regression coefficient) from the PLSR model with the spectra of each pixel in the image. In the generated moisture content images, the moisture content in the TMR feed was unevenly spread. The disparate colors (Figure 8) correspond to levels of moisture in the TMR feed and are proportional to the spectral differences of the individual pixels. This is because of factors such as exposure of a portion of the feed to the open environment that allows evaporation or absorption of moisture depending on the temperature and relative humidity of the storage environment and other substrates in the feed. This stops the feed from reaching an equilibrium state. These moisture maps offer rapid and easy access to the spatial distributions in which the relative intensities are indicated by the color bar. These acquired distribution maps validate the benefits of HSI in analyzing heterogeneous samples like TMR feed. This result cannot be achieved with conventional imaging or spectroscopy techniques.
Consequently, this study showed the potential of using HSI to estimate the moisture content of TMR feed and feed materials.

3.4. Models for Feed Moisture Composition Measurement

Two models were proposed for manufacturing TMR feed with accurate moisture content. Moisture content is a very important parameter in the feed. It plays a vital role in the storability and, most significantly, the proliferation of dangerous microorganisms such as Aspergillus species that are responsible for the production of toxins such as Aflatoxin B1, as discussed in the background. Furthermore, the moisture content is inversely proportional to dry matter, which is an important component in formulating the diet of dairy cattle. The current methods to estimate the moisture content of feed and feed materials are destructive and time-consuming. In this research, we demonstrated the possibilities of using hyperspectral imaging technology for the rapid and non-destructive scans of all feed samples passing through the conveyor belt for safe production, storage, and feeding of livestock.
In the first proposed model (Figure 9A), since the hyperspectral imaging system is a line-scan and good for a conveyor belt system, it is installed to scan the TMR feed as it is conveyed before packaging, then storage and transportation to the farm. If the feed has an unsatisfactory moisture content, it will be diverted for retreatment using any method for water control depending on available resources and location in case of higher or lower moisture contents. The moisture content will be dependent on the class of animals being fed. After the retreatment process, the feed is re-evaluated each time until an acceptable standard is met.
In the second proposed model (Figure 9B), which is on the farm, the hyperspectral imaging system is installed to examine the feed on arrival on the farm. After line-by-line examination and dependent on the class of the animal [33] and the type of feed material or feed, a decision is made which includes for example moisture control when:
  • Moisture content greater than 40%;
  • Moisture content below 20%, which is specific to the feed material for storage.
In the farm situation, moisture content below 20% will be acceptable for storage since feed is most likely to be stored longer on the farm. Furthermore, mixing with by-products or roughages would be carried out after storage. The mixing can be used to balance the moisture content at this stage. However, after the mixing, if the moisture content falls below the acceptable feed standard, the TMR feed moisture must be controlled in case of more than 40% or less than 20%. This process is repeated until the acceptable standard is achieved. When the moisture content is between 20 and 40%, it is within the acceptable feeding range for the stage of growth of the dairy cattle considered in this study which implies no treatment is required. This is because, in the Republic of Korea, different stages of growth of dairy cattle necessitate the moisture of the feed being controlled to a set percentage.
In both models (Figure 9A,B), one hyperspectral imaging system is proposed to produce safe and satisfactory feed. Furthermore, the speed of the conveyor belt in TMR factories is within the scanning speed of the hyperspectral imaging system, suggesting it could be implemented in a commercial setting. However, high computing power would be needed to process the data in real-time.

4. Conclusions

A rapid and non-destructive global model that could measure the moisture content and invariably dry matter content irrespective of feed material type using a hyperspectral imaging system was proposed and developed. The developed partial least squares regression (PLSR) models using different preprocessing techniques yielded acceptable prediction accuracies (R2p) of above 0.93 and standard error of prediction (SEP) of less than 5%. However, the range preprocessing technique had the best R2p (0.98) and SEP (2.59%). Additionally, the visual assessment in the distribution of moisture content made possible by the generated PLSR-based moisture content mapped images could facilitate precise feed formulation. The proposed approach eliminates the extensive preparation of samples, time-consuming repetitive scans, and expertise required for conventional oven and spectroscopy procedures. Our results demonstrate that the developed model is robust, and that it could provide a method to assess the distribution of moisture in feed, while having the potential for implementation in a commercial setting. This would help prevent feed and feed material spoilage and resultant health complications, the underperformance of animals from the improper intake of dry matter, and the associated financial losses.

Author Contributions

D.D.U.: Conceptualization, Methodology, Software, Investigation, Formal analysis, Data Curation, Visualization, and Writing—original draft. J.K., S.L. & B.-K.C.: Methodology, Investigation, Software, Data Curation, Visualization, and Writing—review & editing. T.P. and Y.H.: Validation, Resources, Writing—review & editing, Supervision and Funding acquisition. S.W. & W.S.L.: Validation, Visualization, Writing—review & editing. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Basic Science Research Program through the National Research Foundation of Korea (NRF), Ministry of Education, Republic of Korea, grant number: 2018R1D1A1B07049186, and the Korea Institute of Planning and Evaluation for Technology in Food, Agriculture and Forestry (IPET) through Agriculture, Food and Rural Affairs Convergence Technologies Program for Educating Creative Global Leader, Ministry of Agriculture, Food and Rural Affairs (MAFRA), Republic of Korea, grant number: 320001-4. And the APC was funded by the National Research Foundation of Korea (NRF), Ministry of Education, Republic of Korea.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

All authors declare that they do not have a conflict of interest.

Appendix A

Table A1. Moisture content of TMR feed and feed materials.
Table A1. Moisture content of TMR feed and feed materials.
Sample
Number
TMR
(%)
Mixed By-Products
(%)
Palm-Kernel Expeller
(%)
Almond Pie
(%)
Corn Bran (%)
150.8437.4415.8413.8729.60
246.2636.5539.5717.0227.30
368.7741.9549.9019.2028.16
467.5244.7020.2020.3326.32
564.3740.6123.7121.5925.71
667.0537.9849.2322.9125.38
767.0738.2316.1323.2726.07
875.1237.1642.5221.8547.84
962.1035.0525.5826.2947.21
1055.6933.3727.3426.3548.70
1154.3937.7928.3427.5230.42
1261.6936.1233.2026.6928.27
1368.8040.3237.7330.3034.76
1467.6539.7621.1431.1533.88
1572.5737.5212.6326.3233.17
1671.7336.9120.6230.9334.35
1759.7442.8319.2616.9836.39
1858.2948.6453.2218.7332.08
1978.6947.0519.6725.9547.24
2070.4232.939.9211.2814.14
2113.1834.5930.2910.1352.21
2215.4337.0116.975.5044.45
2324.4745.783.694.2649.67
2425.0454.9954.363.4148.71
2558.6538.7524.1220.8743.17
2615.1936.9557.9937.4134.72
2714.3937.648.5840.9747.14
2814.2134.1863.9545.7549.69
2928.8954.131.5962.4245.75
3015.4949.2935.8249.2751.90
3120.7223.3049.034.126.04
3252.5931.2676.412.254.43
3354.7126.151.712.709.07
3445.3130.072.972.476.76
3548.0326.882.6428.684.49
3653.695.9624.3432.774.68
3733.5113.6954.9540.8011.22
3816.0218.566.3448.3311.02
3924.3121.8030.1530.139.78
4021.4319.274.5426.9612.96

References

  1. Park, Y.W. Moisture and water activity. Handb. Process. Meats Poult. Anal. 2008, 35–67. [Google Scholar] [CrossRef]
  2. Woo, S.M.; Uyeh, D.D.; Kim, J.; Ha, Y.S. A fermentation and storage TMR model for dairy cattle. Eng. Agric. Environ. Food 2019, 12, 89–97. [Google Scholar] [CrossRef]
  3. Ha, Y.-S.; Hong, D.-H.; Park, K.-K. Modeling of a small group scale TMR plant for beef cattle and dairy farm in Korea (I)-Development of TMR plant model. J. Biosyst. Eng. 2009, 34, 342–350. [Google Scholar] [CrossRef]
  4. Pardo, E.; Marın, S.; Sanchis, V.; Ramos, A. Prediction of fungal growth and ochratoxin A production by Aspergillus ochraceus on irradiated barley grain as influenced by temperature and water activity. Int. J. Food Microbiol. 2004, 95, 79–88. [Google Scholar] [CrossRef]
  5. Los, A.; Ziuzina, D.; Bourke, P. Current and future technologies for microbiological decontamination of cereal grains. J. Food Sci. 2018, 83, 1484–1493. [Google Scholar] [CrossRef] [Green Version]
  6. Rezaei, F.; Vandergheynst, J.S. Critical moisture content for microbial growth in dried food-processing residues. J. Sci. Food Agric. 2010, 90, 2000–2005. [Google Scholar] [CrossRef] [PubMed]
  7. Wei, X.; Su, S.; Yue, Y.; Wang, W.; He, L.; Li, H.; Ota, Y. Electric Vehicles Charging Scheduling Strategy Considering the Uncertainty of Photovoltaic Output. In Proceedings of the IOP Conference Series: Materials Science and Engineering, Shanghai, China, 24–26 March 2017; p. 012006. [Google Scholar]
  8. Felton, C.; DeVries, T. Effect of water addition to a total mixed ration on feed temperature, feed intake, sorting behavior, and milk production of dairy cows. J. Dairy Sci. 2010, 93, 2651–2660. [Google Scholar] [CrossRef] [PubMed]
  9. Miller-Cushon, E.; De Vries, T. Effect of dietary dry matter concentration on the sorting behavior of lactating dairy cows fed a total mixed ration. J. Dairy Sci. 2009, 92, 3292–3298. [Google Scholar] [CrossRef]
  10. Ishimwe, R.; Abutaleb, K.; Ahmed, F. Applications of thermal imaging in agriculture—A review. Adv. Remote Sens. 2014, 3, 128. [Google Scholar] [CrossRef] [Green Version]
  11. Kandala, C.V.; Butts, C.L.; Nelson, S.O. Capacitance sensor for nondestructive measurement of moisture content in nuts and grain. IEEE Trans. Instrum. Meas. 2007, 56, 1809–1813. [Google Scholar] [CrossRef]
  12. Abegaonkar, M.P.; Karekar, R.; Aiyer, R. Miniaturized nondestructive microwave sensor for chickpea moisture measurement. Rev. Sci. Instrum. 1999, 70, 3145–3149. [Google Scholar] [CrossRef]
  13. Ghulam, A.; Li, Z.-L.; Qin, Q.; Yimit, H.; Wang, J. Estimating crop water stress with ETM + NIR and SWIR data. Agric. For. Meteorol. 2008, 148, 1679–1695. [Google Scholar] [CrossRef]
  14. Jafari, A.; Connolly, V.; Frolich, A.; Walsh, E. A note on estimation of quality parameters in perennial ryegrass by near infrared reflectance spectroscopy. Ir. J. Agric. Food Res. 2003, 42, 293–299. [Google Scholar]
  15. Maertens, K.; Reyns, P.; De Baerdemaeker, J. On-line measurement of grain quality with NIR technology. Trans. ASAE 2004, 47, 1135. [Google Scholar] [CrossRef]
  16. Ahn, J.; Kil, D.Y.; Kong, C.; Kim, B. Comparison of oven-drying methods for determination of moisture content in feed ingredients. Asian Australas. J. Anim. Sci. 2014, 27, 1615. [Google Scholar] [CrossRef] [Green Version]
  17. Lohumi, S.; Lee, S.; Lee, H.; Cho, B.-K. A review of vibrational spectroscopic techniques for the detection of food authenticity and adulteration. Trends Food Sci. Technol. 2015, 46, 85–98. [Google Scholar] [CrossRef]
  18. Hamblin, M.R.; Avci, P.; Gupta, G.K. Chapter 1—Introduction to Imaging in Dermatology. In Imaging in Dermatology; Hamblin, M.R., Avci, P., Gupta, G.K., Eds.; Academic Press: Boston, MA, USA, 2016; pp. 1–4. [Google Scholar] [CrossRef]
  19. Rahman, A.; Faqeerzada, M.A.; Cho, B.-K. Hyperspectral imaging for predicting the allicin and soluble solid content of garlic with variable selection algorithms and chemometric models. J. Sci. Food Agric. 2018, 98, 4715–4725. [Google Scholar] [CrossRef]
  20. Li, L.; Zhang, Q.; Huang, D. A review of imaging techniques for plant phenotyping. Sensors 2014, 14, 20078–20111. [Google Scholar] [CrossRef]
  21. Verboven, S.; Hubert, M.; Goos, P. Robust preprocessing and model selection for spectral data. J. Chemom. 2012, 26, 282–289. [Google Scholar] [CrossRef]
  22. Pullanagari, R.R.; Kereszturi, G.; Yule, I. Integrating airborne hyperspectral, topographic, and soil data for estimating pasture quality using recursive feature elimination with random forest regression. Remote Sens. 2018, 10, 1117. [Google Scholar] [CrossRef] [Green Version]
  23. El Masry, G.; Wang, N.; Vigneault, C.; Qiao, J.; El Sayed, A. Early detection of apple bruises on different background colors using hyperspectral imaging. LWT Food Sci. Technol. 2008, 41, 337–345. [Google Scholar] [CrossRef]
  24. Rinnan, Å.; Van Den Berg, F.; Engelsen, S.B. Review of the most common pre-processing techniques for near-infrared spectra. TrAC Trends Anal. Chem. 2009, 28, 1201–1222. [Google Scholar] [CrossRef]
  25. Wold, M. Physical Model Study of Caving under Massive Sandstone Roof Conditions at Moura, Queensland; Division of Geomechanics, IEER: Mt. Waverley, Australia, 1984. [Google Scholar]
  26. Kavdir, I.; Buyukcan, M.B.; Lu, R.; Kocabiyik, H.; Seker, M. Prediction of olive quality using FT-NIR spectroscopy in reflectance and transmittance modes. Biosyst. Eng. 2009, 103, 304–312. [Google Scholar] [CrossRef]
  27. Zhou, G.X.; Ge, Z.; Dorwart, J.; Izzo, B.; Kukura, J.; Bicker, G.; Wyvratt, J. Determination and differentiation of surface and bound water in drug substances by near infrared spectroscopy. J. Pharm. Sci. 2003, 92, 1058–1065. [Google Scholar] [CrossRef] [PubMed]
  28. Chen, L.; Yang, Z.; Han, L. A review on the use of near-infrared spectroscopy for analyzing feed protein materials. Appl. Spectrosc. Rev. 2013, 48, 509–522. [Google Scholar] [CrossRef]
  29. Uyeh, D.D.; Ha, Y.; Park, T. Animal feed formulation: Rapid and non-destructive measurement of components from waste by-products. Anim. Feed Sci. Technol. 2021, 274, 114848. [Google Scholar] [CrossRef]
  30. Workman, J.; Weyer, L. Practical Guide to Interpretive Near-Infrared Spectroscopy; CRC Press: Boca Raton, FL, USA, 2008. [Google Scholar]
  31. Kandpal, L.M.; Lee, H.; Kim, M.S.; Mo, C.; Cho, B.-K. Hyperspectral reflectance imaging technique for visualization of moisture distribution in cooked chicken breast. Sensors 2013, 13, 13289–13300. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  32. Lin, L.; He, Y.; Xiao, Z.; Zhao, K.; Dong, T.; Nie, P. Rapid-detection sensor for rice grain moisture based on NIR spectroscopy. Appl. Sci. 2019, 9, 1654. [Google Scholar] [CrossRef] [Green Version]
  33. Uyeh, D.D.; Mallipeddi, R.; Pamulapati, T.; Park, T.; Kim, J.; Woo, S.; Ha, Y. Interactive livestock feed ration optimization using evolutionary algorithms. Comput. Electron. Agric. 2018, 155, 1–11. [Google Scholar] [CrossRef]
Figure 1. Images of the TMR feed: sample with original moisture content (A); sample with lower moisture content (B); and sample with higher moisture content (C).
Figure 1. Images of the TMR feed: sample with original moisture content (A); sample with lower moisture content (B); and sample with higher moisture content (C).
Animals 11 01299 g001
Figure 2. HSI system for spectral image acquisition from TMR feed samples: Computer unit (a); Sensing unit consisting of a lens, spectrograph, and camera (b); Light sources (c); Sample holder (d); and conveyor system (e).
Figure 2. HSI system for spectral image acquisition from TMR feed samples: Computer unit (a); Sensing unit consisting of a lens, spectrograph, and camera (b); Light sources (c); Sample holder (d); and conveyor system (e).
Animals 11 01299 g002
Figure 3. Preprocessing steps of hyperspectral image for discarding background area.
Figure 3. Preprocessing steps of hyperspectral image for discarding background area.
Animals 11 01299 g003
Figure 4. Steps used in processing hyperspectral images and developing moisture content prediction models regardless of the type of feed and feed materials.
Figure 4. Steps used in processing hyperspectral images and developing moisture content prediction models regardless of the type of feed and feed materials.
Animals 11 01299 g004
Figure 5. MSC preprocessed spectra (A) and mean spectra (B) of TMR feed and by-product samples (n = 200) for moisture content prediction (S1: TMR; S2: mixed by-products; S3: palm kernel expeller; S4: almond pie; S5: corn bran).
Figure 5. MSC preprocessed spectra (A) and mean spectra (B) of TMR feed and by-product samples (n = 200) for moisture content prediction (S1: TMR; S2: mixed by-products; S3: palm kernel expeller; S4: almond pie; S5: corn bran).
Animals 11 01299 g005aAnimals 11 01299 g005b
Figure 6. Moisture content prediction plot: (A) Calibration plot; (B) Prediction plot (S1: TMR; S2: mixed by-products; S3: palm kernel expeller; S4: almond pie; S5: corn bran).
Figure 6. Moisture content prediction plot: (A) Calibration plot; (B) Prediction plot (S1: TMR; S2: mixed by-products; S3: palm kernel expeller; S4: almond pie; S5: corn bran).
Animals 11 01299 g006
Figure 7. Beta coefficient plot: mean preprocessing (A); MSC preprocessing (B); range preprocessing (C); raw (D); Savitzky Golay 1st preprocessing (E); Savitzky Golay 2nd preprocessing (F); and SNV preprocessing (G).
Figure 7. Beta coefficient plot: mean preprocessing (A); MSC preprocessing (B); range preprocessing (C); raw (D); Savitzky Golay 1st preprocessing (E); Savitzky Golay 2nd preprocessing (F); and SNV preprocessing (G).
Animals 11 01299 g007
Figure 8. Original TMR feed, SWIR hyperspectral images of 1140 nm, and PLSR-based images for different levels of moisture content in TMR feed.
Figure 8. Original TMR feed, SWIR hyperspectral images of 1140 nm, and PLSR-based images for different levels of moisture content in TMR feed.
Animals 11 01299 g008
Figure 9. Model for production of TMR feed with precise moisture content and DMI in the factory (A); on the farm (B).
Figure 9. Model for production of TMR feed with precise moisture content and DMI in the factory (A); on the farm (B).
Animals 11 01299 g009
Table 1. Results obtained with global PLSR model for prediction of moisture content in multiple by-products.
Table 1. Results obtained with global PLSR model for prediction of moisture content in multiple by-products.
Methodn of Calibration Setn of Validation SetLV aCalibration bCross-Validation cPrediction d
R2C eSEC f (%)R2V gSEV h (%)R2P iSEP j (%)
Mean k14060100.982.610.972.830.982.76
Max l14060100.982.490.972.820.982.63
Range m14060100.982.620.972.920.982.59
MSC n14060100.972.900.973.180.972.86
SNV o14060100.982.760.973.040.982.68
Savitzky Golay (1st) p14060100.972.990.963.470.973.31
Savitzky Golay (2nd) q14060100.944.190.934.810.934.58
Raw r14060100.963.680.954.070.954.11
a LV: Latent variable; b Calibration (comparison of a known standard measured values and measurement using I); c Cross-validation (model evaluation with independent data set to test performance); d Prediction (estimation of the quantity of moisture using the developed models); e R2C: Coefficient of determination for calibration; f SEC: standard error of calibration; g R2V: coefficients of determination for cross-validation; h SEV: standard error of cross-validationI; i R2P: Coefficient of determination for prediction; j SEP: standard error of prediction; Preprocessing methods (k Mean; l Max; m Range; n Multiplicative Scatter Correction (MSC); o Standard Normal Variate (SNV) and p Savitzky-Golay 1st derivation; q Savitzky-Golay 2nd derivation) and r Raw data model (Raw).
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Uyeh, D.D.; Kim, J.; Lohumi, S.; Park, T.; Cho, B.-K.; Woo, S.; Lee, W.S.; Ha, Y. Rapid and Non-Destructive Monitoring of Moisture Content in Livestock Feed Using a Global Hyperspectral Model. Animals 2021, 11, 1299. https://doi.org/10.3390/ani11051299

AMA Style

Uyeh DD, Kim J, Lohumi S, Park T, Cho B-K, Woo S, Lee WS, Ha Y. Rapid and Non-Destructive Monitoring of Moisture Content in Livestock Feed Using a Global Hyperspectral Model. Animals. 2021; 11(5):1299. https://doi.org/10.3390/ani11051299

Chicago/Turabian Style

Uyeh, Daniel Dooyum, Juntae Kim, Santosh Lohumi, Tusan Park, Byoung-Kwan Cho, Seungmin Woo, Won Suk Lee, and Yushin Ha. 2021. "Rapid and Non-Destructive Monitoring of Moisture Content in Livestock Feed Using a Global Hyperspectral Model" Animals 11, no. 5: 1299. https://doi.org/10.3390/ani11051299

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