Abstract

At present, rapid, nondestructive, and objective identification of unqualified salted sea cucumbers with excessive salt content is extremely difficult. Artificial identification is the most common method, which is based on observing sea cucumber deformation during recovery after applying-removing pressure contact. This study is aimed at simulating the artificial identification method and establishing an identification model to distinguish whether the salted sea cucumber exceeds the standard by means of machine vision and machine learning technology. The system for identification of salted sea cucumbers was established, which was used for delivering the standard and uniform pressure forces and collecting the deformation images of salted sea cucumbers during the recovery after pressure removal. Image texture features of contour variation were extracted based on histograms (HIS) and gray level cooccurrence matrix (GLCM), which were used to establish the identification model by combining general regression neural networks (GRNN) and support vector machine (SVM), respectively. Contour variation features of salted sea cucumbers were extracted using a specific algorithm to improve the accuracy and stability of the model. Then, the dimensionality reduction and fusion of the feature images were achieved. According to the results of the models, the SVM identification model integrated with GLCM (GLCM-SVM) was found to be optimal, with accuracy, sensitivity, and specificity of 100%, 100%, and 100%, respectively. In particular, the sensitivity reached 100%, demonstrating an excellent identification ability to excessively salted sea cucumbers of the optimized model. This study illustrated the potential for identification of salted sea cucumbers based on pressure contact by combining image texture of contour varying with machine learning.

1. Introduction

Sea cucumbers are rich in collagen, amino acids, trace elements, and a variety of bioactive substances and exhibit high medicinal value [1, 2]. As fresh sea cucumbers are easily exposed to autolysis [3, 4], they are processed immediately by cooking, salting, or drying so that they can be conveniently stored and transported [5, 6]. Commercially available sea cucumbers mainly include dry sea cucumbers, salted sea cucumbers, and instant sea cucumbers. Salted sea cucumbers are not only used as raw material for dry sea cucumbers and instant sea cucumbers but also sold directly as the final product, which has a huge demand. The internal organs of fresh sea cucumbers are first removed, and then, they are cleaned, precooked, and salted to prepare salted sea cucumbers [7]. According to the Chinese Fisheries Industry Standard (SC/T3215-2014) regulations [8], the salt content of qualified salted sea cucumbers should be no more than 25%. With the increase in salt content, the medicinal and nutritional values of sea cucumbers are reduced [1, 9]. Additionally, texture property and flavor also decline [1012]. Merchants illegally use saturated salt solution to repeatedly soak sea cucumbers to increase their weight and also mix unqualified products with excessive salt contents with qualified samples to make huge profits.

Currently, identification of unqualified salted sea cucumbers with excessive salt content is conducted using two methods: lab detection and artificial detection. Direct titration and potentiometric titration are the two commonly used lab detection methods for this purpose [13]. However, lab detection methods are time-consuming and destructive and have high requirements for professional personnel. Sea cucumbers are rich in collagen, the salt concentration interferes with the degree of protein denaturation, and the texture properties show complex variations [1, 14, 15]. Based on this, during the manufacturing of salted sea cucumbers, an artificial identification method is widely used to judge whether the salted sea cucumber has excessive salt content, by observing the dynamic recovery of the sea cucumbers after removing pressure contact. This method focuses primarily on texture properties, such as hardness and elasticity, requires high tester experience, is not conducive to large-scale and automatic identification, and is easily affected by subjective factors of testers. The texture analyzer is a reliable device for the detection of texture properties and can achieve the quantitative detection of sample textures [16]. Wang et al. studied the influence of different heat treatment processes on the wall of sea cucumbers by means of a texture analyzer [17]. Geng et al. studied the relationship between the rehydration time and texture parameters such as hardness, chewiness, and rehydration rate using a texture analyzer [18]. Furthermore, in order to determine the structure and texture characteristics of meat products, a texture analyzer was used in parallel with other instruments to determine the characteristics of meat products [19]. However, the abovementioned method is destructive as it requires the material to be cut into sample blocks of standard specification, which takes a long time. The cucumber identification mainly focused on physical and chemical index laboratory tests, such as protein, polysaccharides, and fat [20, 21]. The nondestructive testing method of unqualified salted sea cucumber identification has not been reported. Wang et al. have used hyperspectral technology to detect the freshness of sea cucumbers, which have provided some ideas for us to understand the characteristics of sea cucumber in nondestructive detection [22]. Therefore, an objective, rapid, nondestructive method of salted sea cucumbers is necessary to control and maintain the sea cucumber market and identify unqualified salted sea cucumbers.

The development of optical instrument and sensor technology has led to increasing application of computer vision technology for rapid and nondestructive food detections [2325]. In recent years, a combination of machine learning and computer vision technology is popularly used to study the relationship between image feature information and detection targets, which has achieved good results in the evaluation of apparent meat quality, fat content and palatability prediction, automatic categorization of fruits, adulteration identification of food, and so forth [23, 2628]. The above researches have proved that it is feasible to track the contour variation in the recovery process of salted sea cucumber with computer vision and machine learning. To sum up, the artificial identification method of observing the deformation during the recovery of sea cucumber after pressure contact has been proved to be rapid and effective, but it is not conducive to automated mass production. If existing instruments such as the texture analyzer mentioned above can be used to output uniform and standard pressure forces, and the contour variation can be tracked by a computer vision system, it is possible to realize the nondestructive and rapid identification of unqualified sea cucumbers.

This study is aimed at simulating the artificial identification method using a machine vision system and texture analyzer so as to establish a model reflecting the qualitative relationship between contour variation of salted sea cucumber during the recovery after pressure contact and its quality. The potential and feasibility of the aforementioned method for the identification of unqualified salted sea cucumbers were verified. The study was divided into five parts: (1) simulation of pressing in artificial identification and delivery of standard and uniform pressure forces using a texture analyzer, (2) development of an image acquisition system for capturing the contour images of salted sea cucumbers during the recovery after pressure contact, (3) establishment of an algorithm specifically for extracting contour images of salted sea cucumbers during the recovery and dimensionality reduction and fusion of contour information at the image level, (4) extraction of image textures based on histogram (HIS) and gray level cooccurrence matrices (GLCM), and (5) development of models for rapid and nondestructive identification of unqualified salted sea cucumbers. Figure 1 illustrates the identification process.

2. Materials and Methods

2.1. Materials and Method

Fresh sea cucumbers (100–120 g) were purchased from a local seafood market in Dalian, China, and transported to the lab in ice-containing insulation containers. After removing their organs and inner wall longitudinal ribs, they were cooked in a 100°C water bath for 30 min and stored at 4°C for use after natural cooling. The sea cucumbers were divided into two groups [29, 30]: the first group (G1) of samples were salted in a saturated salt solution for 2 days; the second group (G2) of samples were first salted in a supersaturated salt solution for 2 days and then salted in dry salt for 2 days. The salt solutions were changed every 24 h.

2.2. Image Acquisition System

Figure 1(a) shows the image acquisition system for the identification of unqualified salted sea cucumbers. Its main components included a TMS-PRO texture analyzer (FTC, VA, USA), a camera (EOS 550C, Canon Inc., Tokyo, Japan), a rectangular probe, and an acrylic stage. Salted sea cucumber was placed on the stage, and pressure forces were applied on the sample with the texture analyzer. Contour variation images of the sample were collected during its recovery. The probe motion was divided into four phases, as shown in Figure 1(b): the probe was moved up without load motion (C1); the probe was loaded with pressure to the target force (C2); the probe was stationary and remained as the target force (C3); and the probe was quickly returned to its origin (C4). The test conditions of the texture analyzer were as follows: the test probe was a rectangular probe of  mm2, no-load speed was 60 mm/min, trigger force was 0.2 N, loading speed was 30 mm/min, target force was 60 N, holding time was 12 s, recovery speed was 990 mm/min, and return height was 50 mm. The camera parameters were set as follows: the image resolution was pixel2, frequency was 30 fps, and file format of the image was BMP.

2.3. Selection and Processing of Key-Frame Image (KI)

The image sequences of 1–50 frames in phase C4 were determined as KIs, which were used to represent the contour variations of sea cucumbers during the recovery after pressure forces were revoked. As KIs had a large amount of data and interferences of noise, background, and other information, region of interest (ROI) extraction, ROI region normalization, ROI contour extraction, and KI dimensionality reduction and fusion (Figure 1(c)) were required to ensure accurate extraction of image features related to identification. The ROI extraction process used median filtering to eliminate isolated noise points in the image [28, 29], which applied a rectangular template with a structure. The Otsu method was used to segment the sea cucumber from the background to obtain the binary image of the sea cucumber with the background removed [31]. Based on this, the binary image contour of the sea cucumber was smoothed: a closed operation was adopted to fuse the narrow gaps and slender curved parts of the sea cucumber contour to eliminate unconnected areas (small holes) and fill the gaps on the contour. A circular structural element with a radius of three pixels was selected to perform the closed operation; simultaneously, some small unconnected areas were removed. After morphological processing, the complete sea cucumber contour is obtained, but there are still some large connected areas in the image background, so small-area removal was used to eliminate larger noise; the removed area exceeded 3600 pixels, and the judgment principle of the connected area was eight neighborhoods. The final ROI obtained was the complete sea cucumber area [32, 33].

The interference of redundant information was reduced, and the variation characteristics of the contour were enhanced by fusing the ROI contour information of 50-frame KIs into an image to achieve KI dimensionality reduction and fusion as follows. First, the ROI area of KI was standardized by Han and Bhanu’s method [33] to ensure that the long axis of the sea cucumber was parallel to the horizontal position and all centroids coincided. Subsequently, based on this, the contour of the ROI region was extracted and the contour image sequences were fused in an image through logical addition operations to prepare for feature extraction. The logical operation process was as follows: where is the pixel of the dimensionality-reduced image, is the pixel of binary KI, reflects the sequence number of KI, and is the feature image after dimensionality reduction.

2.4. Feature Extraction

Image texture is one of the most important inherent features of an image, which has important statistical significance in representing material properties [3436]. The image texture can be regarded as a function of spatial variation of the brightness intensity of the images. Through the specific image texture features, image characteristics such as smoothness, coarseness, and regularity of each surface in different order directions can be measured [37]. After fusing the contour features of KIs into an image, image texture features were extracted to represent time-varying contour features during the recovery stage (C4) of the samples. At present, a large number of statistical image texture features have been applied, which obtained good results in industrial applications, biomedical, remote sensing areas, and target recognition. Among many, HIS and GLCM have been widely used in texture analysis and classification [38]. Therefore, HIS and GLCM methods were then used to extract image texture features in the study [39, 40]. Mean (), standard variation (), smoothness (), third-order matrix (), uniformity (), and entropy () were extracted as the HIS-based image texture features. Thereinto, , , , and represent the average brightness, average contrast, average smoothness of the brightness, and randomness in the ROI area, respectively. represents the skewness of the HIS; if the HIS is symmetrical, the value is 0; if skewed to the right, the value is positive; and if skewed to the left, the value is negative. represents the difference between gray levels, which was the largest when the gray levels were equal. The formulas for the features were shown below: where the feature image obtained in this study was a binary matrix with a grayscale of 2 and a gray level of 0 or 1; is the mathematical expression of HIS; refers to the number of pixels with a gray level of ; refers to the number of pixels corresponding to the image; and refers to the grayscale. GLCM was defined as the probability that two pixels with gray levels and were located at points with a distance of (1 pixel) in the direction (0°, 45°, 90°, and 135°). It was denoted by . Contrast (), correlation (Cor), energy (), homogeneity (), maximum probability (), and entropy (En) were extracted as the GLCM-based image texture features. Thereinto, is a measure of the drastic change between the adjacent pixels. When the image has an almost constant grayscale, the value is lower. Cor is a value to measure the linear dependence of the image grayscale. It presents the linear relationship between the grayscales of neighbouring pixel pairs. is a measure of the uniformity or thickness of the texture. When all the elements of GLCM are almost equal, it achieves the smallest value. measures the homogeneity of the image, which is sensitive to the near-diagonal elements of the GLCM, indicating the grayscale similarity between adjacent pixels. measures the maximum value of . En measures the disorder of an image, which is negatively correlated with . [4143]. A total of twenty-four image texture features were obtained based on GLCM, which were , Cor, , , , and En in four directions (0°, 45°, 90°, and 135°) of the image. The GLCM-based image texture features were expressed as follows [39, 44]: where is the order of GLCM, with as the image that is a binary image; and represent the mean of row and column for GLCM; and and are line and column standard deviation (SD) of GLCM. Variance normalization was performed on the extracted features to remove the influence of different feature dimensions [28]: where is the feature value after variance normalization, is the SD before variance normalization, is the mean of the feature value, and is the SD of the feature value.

2.5. Identification Model of Unqualified Salted Sea Cucumbers

As a radial neural network based on nonlinear regression analysis, general regression neural networks (GRNN) showed good nonlinear mapping capability and global 1convergence, which was widely applied in classification, detection, and prediction [45]. By introducing the kernel function mapping method, nonlinear problems were transformed into linear problems in the high-dimensional space in using a support vector machine (SVM), which had obvious advantages in terms of solving nonlinear problems, small samples, and high-dimensional detection [46, 47]. Therefore, GRNN and SVM were employed to establish models for the identification of unqualified salted sea cucumbers in this study. A total of 120 samples were used to establish the adulteration model, with 60 samples in G1 and G2 groups, respectively. The ratio of the training set to the test set was 6 : 4, that is, 72 samples were selected for the training set of the model ( and ) and 48 samples were selected for the model prediction set ( and ). Neurons of the input layer in the GRNN and SVM models were composed of image texture features [44]. The one-way analysis of variance (ANOVA) was used to eliminate the features that were not significantly affected by salt content change. In this study, the HIS-based detection model had six inputs, which corresponded to , , , , , and image texture features. The GLCM-based detection model had 22 inputs, which corresponded to the GLCM image texture features (45°, 90°, and 135°), Cor (0°, 45°, 90°, and 135°), (0°, 45°, 90°, and 135°), (45°, 90°, and 135°), (0°, 45°, 90°, 135°), and En (0°, 45°, 90°, and 135°). The outputs were the corresponding category labels; G1 corresponded to label 1 and G2 to label 2, which, respectively, represented qualified samples (salt ) and unqualified samples (salt ).

The spread value (SV) of GRNN and penalty parameter () and kernel function () of SVM are very critical for model accuracy and generalized ability. These parameters must be optimized and determined before models are built. Sixfold cross-validation (CV) is applied in this paper to evaluate the accuracy and generalized ability of the GRNN model with different SV. The search range of the SV is set to 0.1 to 2, and the step length is set to 0.1. The results of the GRNN model corresponding to different SV were analyzed by means of the mean square error (MES), and the SV was determined as the optimal after sixfold CV with the minimum MES [48, 49]. For the SVM model, the radial basis function was selected as the kernel function. Through the sixfold cross-validation, the optimization of parameters of and is realized by using the genetic algorithm here, in which the number of iterations, the population, and the search range of and were set to 200, 20, 2-10-210, and 2-10-210, respectively [50].

According to the method of Wang et al. for model performance evaluating [51], the performance of the model was evaluated using parameters such as accuracy (Ac), sensitivity (Se), and specificity (Sp), where Ac indicated the ratio of the number of the salted cucumber samples that are identified correctly to the total number of samples irrespective of the sample type; Se and Sp represented the proportion of correctly identified qualified samples and unqualified samples, respectively. True positive (TP) and true negative (TN) indicate correct identification of a qualified and unqualified salted sea cucumber sample; false positive (FP) indicates that the unqualified salted sea cucumber was identified as a qualified sample; false negative (FN) indicates that the qualified sample was identified as an unqualified one. The parameters (Ac, Se, and Sp) were calculated as follows: where NTP, NTN, NFP, and NFN indicate the number of TP, TN, FP, and FN samples, respectively. The higher the parameter value, the better the detection effect of the model for qualified and unqualified salted sea cucumber samples. The Matlab 2014b (The MathWorks Inc., MA, USA) software was used for the processing of image data and construction of the detection model.

3. Results and Discussion

3.1. Sample Statistical Analysis

The statistical data of G1 and G2 samples are shown in Table 1. A total of 120 samples with different contents of sea salt were used for experiments. The G1 samples with salt contents less than 25% were defined as qualified, while G2 samples with salt contents more than 25% were defined as unqualified.

3.2. ROI and Its Contour Extraction

The quality of ROI extraction directly affected the accuracy of feature extraction, which was one of the most important steps in image analysis and discrimination [23, 52]. Figure 2 shows the results of KI processing. After graying and median filtering (Figures 2(b) and 2(c)), some noise was eliminated, and the image quality was improved to a certain extent. As shown in Figure 2(d), the image segmented by the Otsu method removed most of the background information interference [53]; however, contours of sea cucumbers appeared to have pits and spikes. As shown in Figure 2(e), the image contour was smoothed to some extent after the closed operation, eliminating the impact on contours due to light and acquisition equipment. Then, the small-area removal method was used to remove a small amount of large-area noise image contour (Figure 2(f)) to obtain the final image of the ROI region and provide a better image environment for subsequent feature extraction. Finally, standardized processing was implemented, and the centroid and axial normalization of KI was realized to ensure that the sea cucumber contour during the recovery was more comparable, as shown in Figure 2(g). On this basis, the ROI region contour (Figure 2(h)) was extracted to eliminate the effect of collection position and angle on contour variation, which was prepared for the logical addition operation of 50 KIs.

3.3. Analysis of the Feature Images and the Microstructure Images

The contour variation information during the recovery of sea cucumber in the C4 stage was fused into one image, which was defined as the feature image, so as to reduce the amount of calculation and the interference of redundant information through the logical addition operations of 50 contour images (Figures 3(a) and 3(c)). One of the feature images of G1 and G2 samples is demonstrated in Figures 3(a) and 3(c), respectively. The external contour was the sea cucumber contour of the first image in the C4 stage, and the internal contour was the sea cucumber contour of the 50th image. After salting in saturated saline, the collagen denatured and the fiber structure was damaged. As shown in Figure 3(d), compared with the G1 sample (Figure 3(b)), the filamentous fibers of the G2 sample disappeared, and the fiber section showed a flaky structure and was more likely to break. The gap of the G2 sample became larger, causing easy exchange between the body wall of sea cucumber and the salt of the environment. The microstructure images indicated that the texture properties of the salted sea cucumber may change complicated with the salt content. Guizani et al. studied the effect of salting treatment on the quality of shark meat. The study demonstrated that the number of salting days and salt content reached a certain level, the hardness of shark meat increased, the elasticity decreased, and the cohesiveness increased [54]. As shown in Figures 3(a) and 3(c), under the same target force, the deformation of the G1 sample was less than that of the G2 sample, which might have been caused by the increase in hardness with the increase in the salt content of G2 sample. To sum up, with the increase in the salt content, the hardness, elasticity, and other features of salted sea cucumber samples changed completely, resulting in a difference in deformation degree and recovery speed between G1 and G2 samples. Therefore, in this study, image texture features were used to characterize the contour variation in the recovery process, and the relationship between image texture features and salt content was established to realize the identification of unqualified salted sea cucumber.

3.4. Extraction and Analysis of Image Features

Figure 4 shows a scatter plot based on the HIS and GLCM image texture feature. Figure 4(a) shows that the distributions of six HIS-based image texture features (, , , , , and ) were significantly different. One-way ANOVA was performed on G1 and G2 samples. The results are shown in Table 2. The six image texture features of G1 and G2 samples were all significantly related, indicating that the impact of salt content on the aforementioned image texture features was extremely significant. Figure 4(b) shows that, among the GLCM-based image texture features, differences between the and features of G1 and G2 samples were small, and the differences among Cor, , , and En were obvious. The significant analysis results of G1 and G2 samples are shown in Table 3. No significant difference was found between image texture feature and at 0°, indicating that the salt content had no significant effect on the aforementioned features. Extremely significant differences were found among Cor, , , and En of G1 and G2 samples, indicating that contour similarity, local change, and uniformity under the different salting processes showed significant variations during the recovery process of the samples. Based on the aforementioned analysis, , , , , , , (45°, 90°, and 135°), (45°, 90°, and 135°), Cor (0°, 45°, 90°, and 135°), (0°, 45°, 90°, and 135°), (0°, 45°, 90°, and 135°), and En (0°, 45°, 90°, and 135°) were selected for modeling.

3.5. Model Development

According to the aforementioned research results and image texture features during the recovery process, GRNN and SVM were used to establish detection models for the unqualified salted sea cucumber identification. The models based on HIS and GLCM features were named HIS-GRNN, GLCM-GRNN, HIS-SVM, and GLCM-SVM, respectively.

Figure 5 shows the SV optimization process of sixfold CV. For each CV process, with the increase of SV, most MES values showed an overall trend of first decrease and then increase, which indicates the value of SV has a certain influence on the performance of GRNN models. As shown in Figure 5, the minimum MSE values for HIS-GRNN and GLCM-GRNN models were obtained during the 1st and 2nd CV, respectively; accordingly, 0.2 and 0.9 were determined to be the optimized SVs for HIS-GRNN and GLCM-GRNN modeling.

Figure 6 shows the parameters and of the HIS-SVM and GLCM-SVM model optimization fitness curve. In order to avoid overfitting or underfitting, the highest accuracy of fivefold CV of its training set is taken as the fitness function for parameters evaluating. As shown in Figure 6, the orange circle and the red dots represent the average fitness and the best fitness of each iteration, respectively. When the best fitness reaches the maximum, the corresponding value of and is determined as the optimal parameters, that is, when the highest accuracy of fivefold CV of the training set was 91.66% and 94.44%, the optimized parameters and of HIS-SVM were determined as 1.6075 and 0.0022, and the parameters of the GLCM-SVM model were determined as 1.2397 and 0.0813, respectively.

Table 4 shows the performances of the four models: HIS-GRNN, GLCM-GRNN, HIS-SVM, and GLCM-SVM. For the prediction set, the identification results are intuitively illustrated in Figure 7. The operation times of all GRNN models were greater than that of SVM models, which indicated that the SVM model was faster in handling the classification of salted sea cucumber. In this study, the number of input had a small effect on the modeling operation time, but the advantages of the HIS-SVM model in terms of the operation time will gradually appear with the increase in the number of processing samples in practical production. In terms of Ac, the Ac values of GLCM-based models were greater than 95%, while the Ac values of HIS-based models were between 80 and 90%. It indicated that the GLCM-based models were more advantageous in the identification of different levels of salted sea cucumber, i.e., the image texture features of GLCM were more significantly affected by changes in salt content. Besides, the Se values of GLCM-GRNN and GLCM-SVM models were 100%, indicating that the two models had a strong ability to identify unqualified samples (G2). Similarly, the Sp values indicated that HIS-SVM and GLCM-SVM models had a strong ability to identify qualified samples (G1). In general, the GLCM feature combined with the SVM model (GLCM-SVM) had the best discrimination effect. The excellent performance of the model indicated that the method established in this paper was suitable for the identification of unqualified salted sea cucumber.

4. Conclusions

Identification of unqualified salted sea cucumbers was illustrated based on pressure contact by combining image texture of contour variation with machine learning methods. A method was established to exert standard and uniform pressure contact, and image data of sea cucumber contour variation during the recovery process were collected after pressure removal. An image processing method specifically for the image texture of sea cucumber contour variation was constructed, and the dimensionality reduction and integration of contour image data were achieved. Based on this, HIS and GLCM image texture features integrated with GRNN and SVM were used to establish the identification models (HIS-GRNN, GLCM-GRNN, HIS-SVM, and GLCM-SVM). After comparison, GLCM-SVM had the best detection effect, and its Ac, Se, and Sp were 100%, 100%, and 100%, respectively, indicating that this method had a better identification effect for unqualified and qualified salted sea cucumbers. The aforementioned research results proved that the contour variation feature of sea cucumbers during the recovery process combined with a specific machine learning method could achieve the objective, rapid, and nondestructive adulteration detection of salted sea cucumbers. In subsequent studies, the performance of the identification model can be further improved by increasing the number of samples. Further, quantitative prediction of sample texture quality can be achieved by including traditional texture property data.

Data Availability

The data used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest

The authors declare no conflicts of interest.

Acknowledgments

This work was supported by the Natural Science Foundation of China (31701696), the Natural Science Foundation of Liaoning Province (2020-MS-273 and 20180551017), and the Innovative Support Program for High-level Personnel of Dalian (2017RQ128).