Abstract
In this paper, 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. After some sample set partition methods, some spectral pretreatment methods, and some optimum wavelength selection methods were compared respectively, the most suitable data processing method was chosen and the robust hyperspectral model for predicting the pH value of cold fresh pork was established. The results indicated that the pH value hyperspectral model of cold fresh pork established by using the whole wavelengths after the sample set was divided by using concentration gradient (CG) algorithm, and the spectral data was pretreated by using normalization combined with mean center(MC) had the best prediction abilities, with the determination coefficients \( \text{R}_{{\text{cv}}}^{\text{2}} \) equaled to 0.768, \( \text{R}_{\text{p}}^{\text{2}} \) equaled to 0.694, RMSECV equaled to 0.1113, and RMSEP equaled to 0.1204. The results also indicated that the model established by using the characteristic wavelengths which were selected by using CARS algorithm had better prediction abilities, 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. All the results showed that suitable data processing methods was advantageous to the prediction ability of the model, and that HSI technique can be utilized to measure the pH value of cold fresh pork in a rapid and non-destructive way.
You have full access to this open access chapter, Download conference paper PDF
Similar content being viewed by others
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.
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.
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 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 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.
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 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.
References
Brewer, M.S., Novakofski, J., Freise, K.: Instrumental evaluation of pH effects on ability of pork chops to bloom. Meat Sci. 72(4), 596–602 (2006)
Andrews, B.S., Hutchison, S., Unruh, J.A., et al.: Influence of pH at 24H postmortem on quality characteristics of pork loins aged 45 days postmortem. J. Muscle Foods 18(4), 401–419 (2007)
van Laack, R.L., Stevens, S.G., Stalder, K.J.: The influence of ultimate pH and intramuscular fat content on pork tenderness and tenderization. J. Anim. Sci. 79(2), 392–397 (2001)
Knox, B.L., Van, Laack R.L.J.M., Davidson, P.M.: Relationships between ultimate pH and microbial, chemical, and physical characteristics of vacuum-packaged pork loins. J. Food Sci. 73(3), M104–M110 (2008)
Bryhni, E.A., Byrne, D.V., Rodbotten, M., et al.: Consumer and sensory investigations in relation to physical/chemical aspects of cooked pork in scandinavia. Meat Sci. 65(2), 737–748 (2003)
Yitao, L., Yuxia, F., Xueqian, W., et al.: Online determination of pH in fresh pork by visible/near-infrared spectroscopy. Guang Pu Xue Yu Guang Pu Fen Xi 30(3), 681–684 (2010)
He, H.J., Wu, D., Sun, D.W.: Application of hyperspectral imaging technique for non-destructive pH prediction in salmon fillets. In: Proceedings of the 3rd CIGR International Conference of Agricultural Engineering (CIGR-AgEng2012), Valencia, Spain
Naganathan, G.K., Grimes, L.M., Subbiah, J., et al.: Visible/near-infrared hyperspectral imaging for beef tenderness prediction. Comput. Electron. Agric. 64(2), 225–233 (2008)
Naganathan, G.K., Grimes, L.M., Subbiah, J., et al.: Partial least squares analysis of near-infrared hyperspectral images for beef tenderness prediction. Sens. Instrum. Food Qual. Saf. 2(3), 178–188 (2008)
Elmasry, G., Sun, D.W., Allen, P.: Non-destructive determination of water-holding capacity in fresh beef by using NIR hyperspectral imaging. Food Res. Int. 44(9), 2624–2633 (2011)
Elmasry, G., Sun, D.W., Allen, P.: Near-infrared hyperspectral imaging for predicting colour, pH and tenderness of fresh beef. J. Food Eng. 110(1), 127–140 (2012)
Kamruzzaman, M., ElMasry, G., Sun, D.W., et al.: Prediction of some quality attributes of lamb meat using near-infrared hyperspectral imaging and multivariate analysis. Anal. Chim. Acta 714(3), 57–67 (2012)
Qiao, J., Wang, N., Ngadi, M.O., et al.: Prediction of drip-loss, pH, and color for pork using a hyperspectral imaging technique. Meat Sci. 76(1), 1–8 (2007)
Qiao, J., Ngadi, M.O., Wang, N., et al.: Pork quality and marbling level assessment using a hyperspectral imaging system. J. Food Eng. 83(1), 10–16 (2007)
Yankun, P., Jing, Z., Wei, W., et al.: Potential prediction of the microbial spoilage of beef using spatially resolved hyperspectral scattering profiles. J. Food Eng. 102(2), 163–169 (2011)
Feifei, T., Yankun, P., Yongyu, L., et al.: Simultaneous determination of tenderness and escherichia coli contamination of pork using hyperspectral scattering technique. Meat Sci. 90(3), 851–857 (2012)
NY/T 821-2004. Agriculture standard: technical specification for determination of meat quality of pigs
Dongsheng, C., Yizeng, L., Qingsong, X., et al.: A new strategy of outlier detection for QSAR/QSPR. J. Comput. Chem. 31(3), 592–602 (2010)
Wu, W., Walczak, B., Massart, D.L., et al.: Artificial neural networks in classification of NIR spectral data: design of the training set. Chemometr. Intell. Lab. Syst. 33(95), 35–46 (1996)
Galvao, R.K.H., Araujo, M.C.U., Jose, G.E., et al.: A method for calibration and validation subset partitioning. Talanta 67(4), 736–740 (2005)
Hongdong, L., Yizeng, L., Qingsong, X., et al.: Key wavelengths screening using competitive adaptive reweighted sampling method for multivariate calibration. Anal. Chim. Acta 648(1), 77–84 (2009)
Acknowledgment
Fund for this research was provided by the project 2662015QC024 supported by the Fundamental Research funds for the Central Universities.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2016 IFIP International Federation for Information Processing
About this paper
Cite this paper
Liu, S., Zhai, R., Peng, H. (2016). Non-destructive Detection of the pH Value of Cold Fresh Pork Using Hyperspectral Imaging Technique. In: Li, D., Li, Z. (eds) Computer and Computing Technologies in Agriculture IX. CCTA 2015. IFIP Advances in Information and Communication Technology, vol 478. Springer, Cham. https://doi.org/10.1007/978-3-319-48357-3_26
Download citation
DOI: https://doi.org/10.1007/978-3-319-48357-3_26
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-48356-6
Online ISBN: 978-3-319-48357-3
eBook Packages: Computer ScienceComputer Science (R0)