Keywords

1 Introduction

Pork is one of China’s staple meats. In recent years more and more people have shown increasing concern with pork quality and safety. So some reliable, quick and non-destructive detection methods for pork quality control become more and more important. However, traditional pork quality detection methods mostly depend on physical or chemical analysis, sensory evaluation which are not conductive to rapid detection of pork products in circulation. As one of the important evaluation indexes of pork quality, the pH value is closely associated with meat’s color [1, 2], water-holding, tenderness [3], shelf life [4], soluble protein concentration, after-cooking flavor [5], and some other quality attribute properties [6]. The pH value of cold fresh pork is generally measured by utilizing the pH meter, which is time consuming, unsuitable and invasive when large amounts of samples are measured [7]. So it is essential to develop a rapid and accurate technique for pork pH value detection.

Recently, hyperspectral imaging technology provides an alternative methodology in agricultural and livestock product (pork, beef and some other meats) nondestructive detection field. Some works that adopt HSI for evaluating the quality of meat characteristics, such as tenderness, water-holding, and marbling level, have been done [8–16]. However, only a few studies have been reported that focus on the use of HSI for evaluating the pH value of cold fresh pork. In this study, the HSI technique was tried to detect the pH value of cold fresh pork by a non-destructive way. Furthermore, some data processing methods were discussed to find out the most suitable one, and then improve the prediction ability of the model of pH value. After discussing the sample set partition methods and spectral pretreatment methods, a quantitative PLSR prediction model is built with the whole wavelengths. Furthermore, the characteristic wavelengths are selected by utilizing competitive adaptive re-weighted algorithm, after which a new PLSR model is established by using the characteristic wavelengths.

2 Experiments and Methods

2.1 Experimental Samples

A total of 161 samples of cold fresh pork were collected from several local supermarkets in Wuhan, Hubei, China. The samples came from 79 No. 0 indigenous pigs and 82 Enshi mountain pigs. Each sample was taken from the back of an individual pig with the size of 6 cm × 6 cm × 3 cm.

2.2 Experimental Equipment

The HSI system used in this study was the HyperSIS HSI system developed by Beijing Zhuo Li Han Guang Instrument Co. Ltd. The HSI system is mainly made up of a hyperspectral imager, a CCD camera with an objective lens, an illumination source, a sample mobile station, and a computer which had software SpectraSENS to acquire images and control the camera.

The main experimental instruments and equipment required in measuring the reference pH value of cold fresh pork included a laboratory pH meter (FE20) developed by the Swiss company Mettler- Toledo, meat grinder, beaker, and others.

2.3 Acquisition of Hyperspectral Data

Thirty minutes before the experiment, the HSI system was turned on for preheating to ensure a stable performance. The hyperspectral data acquisition software SpectraSENS in the computer was opened for parameter settings. In this experiment, the CCD parameter settings were as follows: image size of 1392 × 500 pixels, wavelength range of 391 ~ 1100 nm, Bining X and Bining Y values of 2, and exposure time of 0.1 ns. The motor parameter settings were as follows: the scanning rate of 40 nm/s, scanning distance started at 80 nm and ended at 220 nm. At last, the focal length of the CCD camera was regulated.

Before hyperspectral data acquisition, black and white calibration was conducted to remove the influence of black and white background on the hyperspectral images. The black calibration image was acquired after all the lights were switched off and the len of the CCD camera was covered, and the white image was obtained by using a white tile. The black calibration image and white calibration image were imported into the software SpectraSENS, which would automatically complete the black and white calibration of the hyperspectral images acquired by the HyperSIS HSI system and output the calibrated hyperspectral images of the measured samples.

2.4 Measurement of the pH Value

After hyperspectral data acquisition, the reference pH value of each sample of cold fresh pork was measured on the basis of the Chinese agriculture industry standard NY/T 821-2004 [17]. First, each sample was minced and divided into four copies of solution. The pH values of the cold fresh pork were measured by a lab pH meter (FE20), and the mean value was calculated and considered the reference pH value of the sample. The statistical results of the reference pH values of the 161 pork samples are as follows: the minimum of 5.2400, the maximum of 6.4100, the mean of 5.5861, and the standard deviation of 0.2221.

2.5 Data Processing Methods

Data processing in this study mainly included spectral extraction, outlier detection, sample set division, spectral pretreatment, model establishment, and optimum wavelength selection. Spectral extraction was completed in ENVI4.7, and the remaining steps were performed in MATLAB R2010a.

The average spectrum of every sample was calculated and considered as the spectrum of this sample. The average spectrum of every pork sample was extracted from the region of interest (ROI) selected by the polygon tool in ENVI4.7. Through the polygon tool, the edges and seriously reflective regions of the sample were efficiently excluded from the ROI. The extracted spectral data from the cold fresh pork samples were put in a matrix named X (161 rows, 520 columns), where the rows represent 161 pork samples and the columns represent 520 wavelengths.

After spectral extraction, the Monte Carlo sampling algorithm (MCS) [18] was utilized for outlier detection. Several methods of sample set partition, such as Kennard-Stone (KS) [19], sample set partitioning based on joint X-Y distances (SPXY) [20], random sampling (RS), duplex, CG, were utilized to divide the sample set of cold fresh pork into the calibration and test sets. The most appropriate sample set partition method was determined based on the statistical results of the calibration and test sets obtained by different methods.

Mean centering (MC) can significantly improve the performance of the PLSR model. Thus, this method should generally always be used. The spectra of the samples of cold fresh pork were processed by several spectral preprocessing methods: MC, autoscale (AS), multiplicative scattering correction (MSC) combined with MC, standard normalized variate (SNV) combined with MC, first derivative (FD) combined with MC, second derivative (SD) combined with MC, orthogonal signal correction (OSC) combined with MC, and normalization combined with MC. The PLSR models were then established using the whole wavelengths, and the most suitable spectral preprocessing method was determined based on the performance parameters of the PLSR models.

Hyperspectral data has large amount of redundant information because some different wavelengths have the same spectral information, which will cause some adverse effects on the prediction accuracy and speed of the hyperspectral model. Some characteristic wavelength selection algorithm can solve this problem well. In this paper, the competitive adaptive reweighted sampling algorithm [21], which has remarkable ability in selecting characteristic wavelengths, was utilized to select the characteristic wavelengths of the pH value of cold fresh pork. A new model (CARS-PLSR) was established with the selected optimum wavelengths.

2.6 Model Performance Parameters

Model performance was evaluated by utilizing leave one out validation with four parameters (\( \text{R}_{{\text{cv}}}^{\text{2}} \), \( \text{R}_{\text{p}}^{\text{2}} \), RMSECV, RMSEP). The values of \( \text{R}_{{\text{cv}}}^{\text{2}} \) and \( \text{R}_{\text{p}}^{\text{2}} \) are larger, and the values of RMSECV and RMSEP are lower. Hence, the performance of the corresponding model is better.

3 Results and Discussions

3.1 Spectral Profiles

The spectra which were obtained from the hyperspectral images of the 161 samples of cold fresh pork are shown in Fig. 1.

Fig. 1.
figure 1

Reflectance spectra of the samples of cold fresh pork

3.2 Outliers of Pork Samples

The outliers of the sample set of cold fresh pork were detected by MCS method, and the results are presented in Fig. 2.

Fig. 2.
figure 2

Results of the outlier detection by MCS

Figure 2 indicates that sample no. 82 and sample no. 152 were outliers. After deleting the two outliers, the remaining 159 normal samples were used for subsequent analysis.

3.3 Selection of the Sample Set Partition Method

The statistical results of the calibration set (120 samples) and test set (39 samples) obtained by KS, SPXY, RS, duplex, and CG are shown in Table 1.

Table 1. Statistical results for the pH values of cold fresh pork

Table 1 indicates that the KS algorithm only included the maximum pH value into the calibration set, whereas SPXY, RS, duplex, and CG algorithm all integrated the minimum and maximum pH values into the calibration set. Thus, the pH value range of the test set obtained by SPXY, RS, duplex, and CG was within their corresponding calibration set only. Before the sample partition, the mean pH value of all the samples was determined to be 5.5861. Table 1 also indicates that the mean value of 5.5863 in the calibration set and the mean value of 5.5779 in the test set obtained by CG were the closest values to the mean value of 5.5861 of all the samples. In other words, the calibration and test sets obtained by the CG algorithm were well-distributed. Hence, the CG algorithm was determined to be the most suitable sample set partition method in this study.

3.4 PLSR Models Using the Whole Wavelengths

The PLSR models were established using the whole wavelengths after preprocessing the spectra using different methods, the results are presented in Table 2.

Table 2. Results of PLSR models built by using the whole wavelengths after different spectral pre-treatments

Table 2 indicates that, after the spectra were preprocessed by normalization combined with MC, the performance of the pH value PLSR model built using the whole wavelengths was optimal, with \( \text{R}_{{\text{cv}}}^{\text{2}} \) equaled to 0.7680 and \( \text{R}_{\text{p}}^{\text{2}} \) equaled to 0.6940, which were the maximum values, RMSECV equaled to 0.1113 and RMSEP equaled to 0.1204, which were the minimum values. Thus, normalization combined with MC was determined to be the most suitable spectral preprocessing method when the PLSR model for predicting the pH value of cold fresh pork was established using the whole wavelengths.

3.5 Selection of Optimum Wavelengths

By CARS algorithm, 35 optimum wavelengths closely related to the pH value of cold fresh pork, were selected. The distribution of the characteristic wavelengths is presented in Fig. 3.

Fig. 3.
figure 3

Distribution of the characteristic wavelengths selected by CARS

3.6 PLSR Models Using Optimum Wavelengths

New PLSR models were built by using the characteristic wavelengths after the spectra were preprocessed by different methods. The results are shown in Table 3.

Table 3. Results of the PLSR models built by using the selected wavelengths after different spectral pre-treatments

Table 3 clearly indicates that, after the spectra were preprocessed by MC, the new PLSR model built by using the characteristic wavelengths had very good prediction ability, with \( \text{R}_{{\text{cv}}}^{\text{2}} \) equaled to 0.8581, \( \text{R}_{\text{p}}^{\text{2}} \) equaled to 0.8668, RMSECV equaled to 0.0858, and RMSEP equaled to 0.0772. Table 2 and Table 3 also show that, better results were achieved by the new PLSR model than by the PLSR model built using the whole wavelengths. Moreover, more than 93 % of the wavelengths were eliminated (i.e., 35 vs. 520). The prediction ability of the new PLSR model and the number of characteristic wavelengths all indicated that the CARS algorithm was efficient in selecting the optimum wavelength in this study.

4 Conclusions

In this study, the pH value of cold fresh pork was non-destructively detected based on hyperspectral imaging (HSI) technique, and some useful data processing methods were discussed. The PLSR prediction model was built by using the whole wavelengths and the characteristic wavelengths, respectively. Different methods of sample set division and spectral preprocessing were compared. The CG algorithm was determined to be the most suitable method of sample set division for cold fresh pork samples, and normalization combined with MC method was identified as the optimal spectral preprocessing method for the PLSR model established using the whole wavelengths, which resulted in \( R_{cv}^{2} \) equaled to 0.7680, \( R_{p}^{2} \) equaled to 0.6940, RMSECV equaled to 0.1113, and RMSEP equaled to 0.1204. The characteristic wavelengths were selected by using CARS method to improve the performance of the PLSR model. Out of 520 wavelengths, only 35 optimum wavelengths were considered in developing a new PLSR prediction model, which performed effectively, with \( R_{cv}^{2} \) equaled to 0.8581, \( R_{p}^{2} \) equaled to 0.8668, and RMSECV equaled to 0.0858, and RMSEP equaled to 0.0772, after preprocessing the spectra by MC. The overall results indicated that suitable data processing method can effectively improve the performance of the PLSR model for predicting the pH value of cold fresh pork and the HSI technique is a powerful method for non-destructive detection of the pH value of cold fresh pork.