Abstract
Antibiotic dregs contain antibiotic residues and pose safety risks if they are used illegally in animal feed protein materials. The objective of this study was to develop a shortwave infrared (SWIR) hyperspectral imaging system (HSI) to quantify and qualify antibiotic dregs for the adulteration of feed protein materials (FPMs). Three FPMs were adulterated with oxytetracycline dregs (OD) over a range of 2%–98% (w/w). Principal component analysis (PCA), partial least squares discriminant analysis (PLS-DA), and one-class partial least squares classifier (OCPLS) models were developed based on different spectral preprocessing techniques to predict adulterants. Furthermore, mean spectra with partial least squares (PLS) regression and images were used to predict adulterant concentrations. The results showed that FPMs and adulterated FPMs could not be completely distinguished using PCA. PLS-DA and OCPLS exhibited the highest classification accuracies (100%), and PLS-DA exhibited better recognition results for the pixel spectra. Using the mean spectra, PLS models were successfully established to predict adulteration levels in FPMs. The optimal parameters of residual predictive deviation (RPD) were 14.5, 6.1, and 7.6. Overall, the developed HSI system and optimized model demonstrated a high potential for discriminating antibiotic dregs in FPMs and allowed for quantitative evaluation.
Keywords
Introduction
Currently, China is implementing the reduction and substitution of soybean meal in feed. In the context of food and feed safety, it has become an industry trend to reduce the amount of soybean meal and replace part of the soybean meal with unconventional feed protein.1–3 However, the development and utilization of different types of feed protein materials (FPMs), can itself result in increasing feed and animal product safety issues. This will not only pose a threat to human and animal health but also considerably reduce the quality of feed. The nutritional and economic value of the products has seriously damaged their economic benefits and severely impacted the reputation of China’s livestock products in the international market. Therefore, it is imperative to effectively monitor the risks of substances in feed protein materials.
Antibiotic dregs are solid dregs after the fermentation of antibiotics, which are mainly composed of mycelium, remaining medium, trace antibiotics, and unknown fermentation intermediates. 4 Antibiotic dregs contain high nutritional content, similar to the conventional chemical composition of feed protein materials, 5 but may contain residual antibiotics and unknown secondary metabolites which pose considerable risk to the aquaculture industry. 6 Of primary concern is the risk of the emergence of drug-resistant microorganisms, and secondly, there are various safety hazards due to the lack of safety test evaluation. Owing to the shortage of domestic feed protein materials, their market price continues to rise, and the cost of antibiotic dregs is extremely low. Driven by economic interests, some unscrupulous farmers add antibiotic dregs to feed protein materials to improve profitability.
A search of the literature revealed that the main method used to determine whether antibiotic residues were added to the feed was to detect the antibiotic residues. Analytical techniques based on liquid chromatography-tandem mass spectrometry (LC-MS-MS), gas chromatography-mass spectrometry (GC-MS), liquid chromatography-time-of-flight mass spectrometry, and other instrument methods are the most widely used analytical methods for the detection of antibiotic residues.7,8 These methods rely heavily on high-end, expensive instruments, and high analysis costs and have many limitations in identifying nontarget risk substances. This research group studied the feasibility of discriminating antibiotic dreg adulteration in feed protein materials based on ATR-IR and microscopic infrared imaging and obtained ideal results. 9 However, a more complex sample preparation process is still required, and the sample analysis amount is low, which cannot fully meet the current development needs of rapid and large-scale monitoring.
To overcome these limitations, line-scan-based hyperspectral imaging techniques that can accomplish rapid detection with high accuracy have been recently developed.10–12 Hyperspectral imaging systems (HSI) are a nondestructive, nontargeted fingerprint identification method, which can quickly and cheaply provide reliable information about the physical properties and chemical composition of the sample.13–15 The technique has demonstrated considerable capacity to detect food fraud and determine chemical composition, food quality and safety parameters, as well as monitor particular quality parameters during production, processing, or storage of food.16,17 Compared to traditional shortwave infrared (SWIR) spectroscopy, the technique is characterized by high speed, accuracy, automation, and real-time monitoring, and is more suitable for automated quality evaluation and safety inspection of large sample sets. 18 Further more, compared to Fourier-transform infrared spectroscopy, the quantitative performance of SWIR is even more prominent. Furthermore, the SWIR region is dominated by weak overtones, resulting in lower molar absorption and deeper penetration of SWIR waves inside the samples, making it more suitable for the analysis of heterogeneous samples, such as adulterated powders. 19
In addition, the need for this nondestructive method has become more pronounced in the past 2 years due to the trend toward the increasing adoption of automation and artificial intelligence in the feed industry, 20 and the Vis/NIR range (especially 400–1000 nm) has been the most used mode. 21 However, the team found that the spectral information of feed protein materials and antibiotic dregs in the range of 400–1000 nm was low, and the identification was not reliable. Until now, no studies have been conducted to develop optimal models using the HSI technique in the short-wave infrared range (1000–2500 nm) for rapid detection of antibiotic dregs in FPMs.
Hence, the main objective of this study was to investigate the feasibility of using SWIR-HSI combined with chemometrics to identify and quantify adulterants of oxytetracycline dregs in nonconventional feed protein materials such as cottonseed meal (CM), distiller-dried grains with solubles (DDGS), and nucleotide residues (NR). The specific aims were to (1) establish classification models principal component analysis (PCA), partial least squares discriminant analysis (PLS-DA), and one-class partial least squares classifier (OCPLS) methods to identify authentic and adulterated FPMs and (2) develop partial least squares (PLS) regression based on mean spectra and pixel count based on the optimal classification method to predict adulterated concentrations in feed protein materials.
Materials and methods
Sample preparation
A total of 238 samples were used in this study: 69 CMs, 84 DDGSs, 73 NRs, and 12 ODs, collected from 23 Chinese provinces. All samples used in this study were ground using a Retsch mill (Ultra centrifugal Mill ZM 100; Retsch GmbH, Haan, Germany) and passed through a 0.5-mm2 mesh.
For adulterated samples: (1) three adulterated samples with known location of oxytetracycline dregs was prepared by selecting one from each type of FPMs. (2) adulterated samples with different OD concentrations, 2%–98% (increasing at a concentration gradient of 2%, w/w), were prepared, and two samples were prepared for each concentration. This resulted in 294 adulterated samples in total of three categories. A LabRAM benchtop ultrasonic mixer (Resodyn Acoustic Mixers, Resodyn Corp., Butte, Montana, USA) was used to uniformly mix the adulterated samples at room temperature (24 ± 1°C) for 5 min.
Instrumental measurements
All the prepared samples were scanned using a laboratory-based pushbroom hyperspectral imaging system (GaiaSorter, Zolix, Beijing, China). The system acquired the near infrared spectral range of 1000–2500 nm (288 data points) to capture hyperspectral images at room temperature (24 ± 1°C) with a spectral resolution of 5.2 nm. The spatial resolution was 400 μm × 400 μm, and the exposure time was set to 15 ms. The samples were placed in a glass dish (diameter: 85 mm; height: 10 mm), filled, and smoothed, and then the glass dish containing the sample was placed on the stage to obtain the image data.
After hyperspectral image acquisition, calibration was conducted with two reference images using the following equation:
In this study, the dataset consisted of 265 wavelengths over the range of 1000–2380 nm after the last 23 bands were deleted because of high noise signals. A total of 5625 (75 × 75-pixel) spectra were extracted from each hyperspectral image, and then the mean and each sample were analyzed by extracting the mean spectrum from the pixels.
Data processing
Spectral preprocessing
Spectral preprocessing is essential for establishing robust spectral models because of the interference caused by noise and uneven sample surfaces during image acquisition. The spectrum was preprocessed using autoscaling, standard normal variate (SNV), multiplicative scatter correction (MSC), and Savitzky-Golay derivatives. The SNV and MSC approaches were adopted to address the interference of light scattering and particle size. Derivative methods were used to eliminate baseline drifts and separate broad and overlapping SWIR bands. Each derivative pre-treatment was applied with a first or second order polynomial fitted over a window of five or 11 features.
Classification analysis
Principal component analysis (PCA) is an unsupervised multivariate analysis technique used to reduce spectral dimensions in principal components (PCs), which capture maximum data variability and maintain relevant spectral information. 22 In this study, PCA was applied to the SWIR-HSI raw data as an exploratory analysis to visualize the clustering of feed protein materials and OD according to their spectral variations.
Partial least squares discriminant analysis (PLS-DA) is a multivariate classification technique (supervised model) based on the PLS regression model. 23 This widespread classification model correlates the X matrix (spectral data) mathematically with the Y matrix (class membership). 24 When there were two classes to be classified, the matrix Y was arranged in a single column, where 0 was used for the class of interest and one for that without interest. Bayes’ theorem was typically used to estimate the threshold (T). 25 A training set (including 67% pure FPMs and adulterated samples) and test set (including 33% pure FPMs and adulterated samples, ODs) were created using the Kennard–Stone (K–S) algorithm. 26 By establishing three PLS-DA models, the adulterated samples were discriminated. The number of latent variables was selected using the root mean square error of cross-validation (RMSECV).
Regarding chemometric classification tools, one-class modeling is a better option than the most commonly employed discriminant models for food authenticity problems. One-class modeling methods build a class that focuses on authentic/nonfraudulent samples. This is an appropriate approach because it aims to detect whether new samples belong to the authentic class regardless of the type of fraud being investigated. This strategy has several benefits in relation to the multiclass approach, in which, in addition to the nonadulterated class, one or more adulterant classes have to be modeled, because it is practically impossible to cover all possible adulterants in a representative way. 27 The one-class partial least squares (OCPLS) classifier is a one-class classifier based on the partial least squares method. It uses only one type of sample to establish the model. Score distance (SD) and absolute central residual (ACR) are the class thresholds of the OCPLS model. An extensive literature review describes the theoretical and practical aspects of OCPLS. Without being exhaustive in the references, a recent review that provides multiple references can be consulted.28,29 In the current study, the K–S algorithm was used to select 2/3 of the spectra from each type of pure FPMs to establish three one-class models, and the remaining 1/3 spectra, adulterated sample spectra, and OD spectra were then discriminated.
To evaluate the quality of the classification models, the main performance parameters such as sensitivity, specificity, and efficiency were considered. These parameters were calculated from four well-known sample model assignment possibilities: true positive (TP), false positive (FP), true negative (TN), and false negative (FN).
Prediction of adulteration
The partial least square (PLS) regression method allows spectral information to be converted into latent variables or factors, which can describe the maximum covariance between the spectral data and the reference sample values. 30 Sixty-six samples from the 98 adulterated samples were used to develop prediction models and the remaining 32 samples were used to validate the developed models. The optimal number of latent variables is obtained using the cross-validation value with the lowest root-mean-square error. To evaluate the performance of the established calibration models, evaluation parameters, such as the correlation coefficients pertaining to calibration (R2c) and prediction (R2p), root mean square errors pertaining to calibration (RMSEC) and prediction (RMSEP), and residual predictive deviation (RPD), were calculated. An accurate prediction model should have high R2c, R2p, and RPD values and low RMSEC and RMSEP values. 31
For the quantitative detection of OD levels in the FPMs, optimal classification models were applied to the hyperspectral images to calculate the number of OD pixels. The size of each image was 75 × 75 pixels, and the number of OD pixels without background pixels was counted relative to the total number of image pixels (approximately 5625). For example, in an OD-FPM mixture containing OD at a concentration of 2%, 113 of the 5625 total pixels should be detected.
All data were processed using MATLAB R2015a (The Mathworks, Inc., Natick, MA, USA) with the PLS_Toolbox version 7.1 (Eigenvector Research, Wenatchee, WA, USA).
Results and discussion
Spectral features
The sample spectra were compared visually to detect differences between origin-specific sample groups. The mean raw spectra of all samples are shown in Figure 1(a), with seven notable absorbance peaks. It can be seen that the information of the raw spectra was rich and mainly concentrated in the range 1780–2380 nm. Moreover, the at shorter wavelengths, the higher the absorbance of the OD spectrum and the greater the difference from feed protein materials, because the color of the OD was deeper.
32
Compared with the microscopic NIR image data, the difference between the feed protein materials and OD SWIR-HSI data at the 1000–1500 nm band was more significant.
33
The first absorption band of feed protein materials, located at approximately 1185 nm, corresponds to the second overtone of C=C-H stretching.
34
The wavelengths at approximately 1698, 1890, 2005, 2115, and 2224 nm were associated with crude protein. The absorption peaks were assigned to the bands arising from the amide vibrations characteristic of proteins, that is, Amide A and Amide B (N–H stretch in Fermi resonance with N–H in-plane bend), Amide I (C=O stretch), Amide II (N–H in-plane bend), and Amide III (C–N stretch with N–H in-plane bend).35,36 At 2005–2115 nm, the spectral curves of OD and DDGS were quite different because the raw material of DDGS was mainly corn and the crude protein content was low. The mean spectra of feed protein materials and oxytetracycline dregs, (a) raw spectra, (b) 1st derivative spectra.
The shapes of the spectra after pretreatment with the first derivative (1-2-5) (Figure 1(b)) were significantly altered. This diminishes noise and enhances the visibility of features (e.g., the wavelengths at 1000–1390 nm and 2016–2146 nm).
PCA
As shown in Figure 1, the major absorption peaks of the raw spectra were similar for both feed protein materials and OD. Mathematical treatment of the spectra is usually required to exploit the information underlying these spectra and reveal the subtle differences that may exist between different types of samples.
PCA was used to conduct an exploratory analysis of pure FPMs, adulterated samples, and OD, and all spectra were preprocessed using the optimal combination of the 1st Der (1-2-5) + Autoscale. As shown in Figure 2(a) and (b), the first two principal components (PC) explain 78.22% and 78.16% of the spectral information, respectively. PC1 and PC2 explain 65.47% of the spectral information in Figure 2(c). The best separation is observed between the feed protein materials and OD. The score points of the samples with a low percentage of adulteration are closer to the feed protein materials, whereas those of the samples with a high percentage of adulteration are closer to the OD. Low percentages of adulterated samples and feed protein materials partially overlap within the same quadrant. PCA is not effective in distinguishing samples with a low percentage of adulteration from the feed protein materials, particularly DDGS and NR. This may be related to the fact that DDGS, NR, and OD are byproducts of fermentation. Score plots of PCA; (a) CM-OD, (b) DDGS-OD, (c) NR-OD.
PLS-DA and OCPLS
PLS-DA and OCPLS models outcomes of detecting OD adulteration in FPMs.

Scatter plot of prediction results using PLS-DA and OCPLS models. PLS-DA: (a) CM-OD, (b) DDGS-OD, (c) NR-OD; OCPLS: (d) CM-OD, (e) DDGS-OD, (f) NR-OD.
Figure 4 shows the resultant images of adulterated samples with known OD positions obtained by applying the developed classification models to the hyperspectral images. As illustrated in Figure 4(b) and (c), the distribution of the OD in each image using the PLS-DA model is closer to the grayscale image (Figure 4(a), where the black area is the OD and the gray area is the FPMs), especially the OD mixed in NR. For the identification of pixel spectra, the OCPLS model had a higher sensitivity and lower specificity, which might be due to the low signal-to-noise ratio of the pixel spectrum. Consequently, the PLSDA model showed better identification potential for pixel spectra. Images of prediction results using PLS-DA and OCPLS model; (a) grey-scale image, (b) PLS-DA, (c) OCPLS.
Quantitative analysis by PLS
The presence of OD in adulterated feed protein materials was successfully identified and accurately differentiated using the classification models. Subsequently, a quantitative calibration model using PLS was developed to predict the concentrations of the adulterated samples. Spectral preprocessing methods were optimized to improve the capabilities of the PLS model. A quantitative model was constructed to predict the additive ratios of the adulterants.
PLS models outcomes of detecting OD adulteration in FPMs.

Predicted vs measured PLS models. (a) CM-OD, (b) DDGS-OD, and (c) ND-OD.
Quantitative analysis by images
PLS-DA models were applied to hyperspectral images of 0%–10% adulteration concentrations. Based on the number of OD pixels counted in the images, a scatter plot was produced with the actual and predicted OD concentrations based on the images (Figure 6). As the OD concentration increased, the number of detected OD pixels also increased; however, there was a large difference between the actual and predicted OD concentrations. The number of OD pixels for 10% CM-OD, DDGS-OD, and NR-OD was calculated to be approximately 563. However, the actual numbers of pixels counted for 10% CM-OD and DDGS-OD were 5400, 4782, and 2532, respectively. Correlation plot between actual and predicted concentrations of OD in FPMs.
Although the FPMs containing the OD used in this experiment were well mixed, the detected OD pixels varied in size. As mentioned above, the size of the OD particle used in this study was controlled at approximately 500 µm. If the OD particle size is larger than the pixel size, the adjacent pixels form a mixed spectrum, that is, an adulterated spectrum. Consequently, the performance of the developed classification model for detecting OD depends on the size of the OD particles used.
Conclusion
The study proposes optimal qualitative and quantitative models developed in the short-wave infrared region and its hyperspectral imaging system to detect OD in PFMs. The results show that PCA could only distinguish between FPMs and OD. PLS-DA and OCPLS were used to classify OD adulteration, and the accuracy of each optimal model was 100%. The PLS-DA showed better recognition results for the pixel spectra. Subsequently, the R2p values of the PLS models for determining adulterated levels of OD using the mean spectra were 0.995, 0.98, and 0.98, and the RPD were 14.5, 6.1, and 7.6, respectively, when using seven factors. The OD concentrations in FPMs obtained by applying the developed PLS-DA models to hyperspectral images were not satisfactory. Overall, SWIR-HSI combined with chemometrics is a useful tool for classifying and quantifying feed protein materials and their adulterants.
Although SWIR-HSI obtains a spectrum for each pixel, the concentrations of adulterants in individual pixels are unknown. To achieve more realistic results, it is necessary to focus on the pixel spectra, which can be directly used to build chemometric models and predict the pixel spectra of unknown samples.
Footnotes
Declaration of conflicting interests
The authors declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The authors disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This study was financially supported by the Science and Technology Project Plan of the Jiangsu Vocational College of Agriculture and Forestry (Grant Nos. 2022kj17 and 2022kj04).
