Abstract
In manufacturing, vision-based inspections are effective nondestructive methods for implementing object discrimination. To minimize inspection times, multiple-object discrimination must be implemented for one inspection image. However, multiple-object inspections are difficult to perform in manufacturing because of the lack of distinct objects in inspection images. In addition, inspectors might fail to use multiple sensing devices when concurrently detecting objects. This article proposes a novel multiple-object sensing system that incorporates a local-adaptive-region-growing–based learning method for adaptively segmenting multiple-camera images for multiple-object discrimination. The proposed local-adaptive-region-growing method and support vector machine-based discrete wavelet transform can effectively classify multiple objects in the local subregions of inspection images. The proposed system bridges the gap between sensing devices and inspectors for solving problems encountered when concurrently using multiple sensing devices. The learning method yielded more favorable results than existing inspection methods have. Furthermore, a standard test series was developed for quantitatively comparing inspection methods.
Keywords
Introduction
Object discrimination techniques have increasingly been included in industrial inspection applications. Vision-based inspection systems have been employed as effective nondestructive inspection methods. Minimizing conventional inspection times requires implementing a learning technique for discriminating among multiple objects in a single inspection image. However, inspecting multiple objects is difficult in manufacturing because of the lack of distinct objects in inspection images. Furthermore, inspectors might fail to use multiple sensing devices for concurrently detecting objects. Therefore, employing an effective inspection system that incorporates an adaptive learning method for detecting multiple objects is essential for solving the above problems. Automatic or adaptive region growing 1 is one of several current adaptive image segmentation techniques. The motivation of the work is that an adaptive learning method is proposed as a solution to effectively detect multiple objects for one inspection image. The proposed learning method involves using local-adaptive-region-growing (LARG) image segmentation combined with a support vector machine (SVM)–based discrete wavelet transform (DWT) to implement multiple-object discrimination.
The contributions of the work are summarized as follows: The LARG method can adaptively segment multiple-camera images and effectively classify multiple objects in the local subregions of an inspection image. The proposed multiple-object sensing system can solve problems associated with using sensing devices and bridge the gap between sensing devices and inspectors. Finally, the proposed method can be used as an inspection tool for automatically selecting the most suitable parameters for inspecting multiple objects.
Related work
This section describes the existing vision-based inspection methods (including SVM-based inspection, multiple-object segmentation, and region-growing recognition) related to the work and finally addresses the differences between this study and the existing methods.
Recent studies have investigated industry inspection methods on the basis of vision-based techniques. For SVM-based inspections, He et al. 2 employed an automated defect-classification method for detecting defects in aircraft structures, in which an SVM was used to build a classifier model and predict the type of defect. However, the classification and prediction was based on artificial defects. Nashat et al. 3 proposed a machine vision inspection system for detecting small cracks in baked products. Detection was based on an SVM featuring selection criteria focused on detecting cracks that formed an approximate line. For monitoring production processes, a weighted support vector machine (WSVM) was proposed for controlling chart pattern recognition. 4 The authors of that study tested the SVM and WSVM for several normal and abnormal classification problems and found that the WSVM outperformed the SVM in various fault scenarios. However, the sensitivity and classification accuracy of the WSVM was lower in detecting rare abnormal patterns. Furthermore, SVMs have been applied in a range of electrophysiological signal processing tasks. Lajnef et al. 5 proposed a decision tree–based multiclass SVM classification system for implementing and evaluating an automatic sleep staging framework. The SVM-based method was a visible alternative to existing automatic methods for sleep-stage classification. In an SVM-based industrial inspection system requiring multiple-object discrimination, the purpose of the SVM method is not only to accurately classify objects in multiple inspection images but also to effectively perform multiple-object discrimination in a single inspection image. Multiple-object segmentation and extraction play critical roles in this process.
Multiple-object segmentation and extraction have been studied in recent years. Evaluations and comparisons of object boundary-detection techniques can be found in the literature. 6 Among the boundary-extraction-based segmentation techniques in the literature, the deformable model of active contours is one of the most efficient techniques for segmenting two-dimensional (2D) and three-dimensional (3D) images. Two categorized approaches that incorporate the deformable model are the edge-based and region-based approaches. Edge-based approaches are so titled because the information they use for plotting curves to the edges is strictly along the boundary. 7 Thus, a strong edge must be detected to drive the curve. Edge-based approaches can detect a strong edge for driving curves, which evolves to match the contour of an object in an image. However, these approaches fail in the presence of noise. 8 Region-based approaches are highly adapted to situations in which extracting boundaries from the inspection target is difficult. However, such approaches are computationally intensive. 9 For multiple-object segmentation and extraction, this article proposes a LARG segmentation and DWT-based feature extraction method as a solution.
The literature addresses various region-growing recognition methods. One method proposed in the literature 10 involves automatically obtaining the homogeneity criterion from regional characteristics for segmenting medical images. This method is based on a model for describing the homogeneity and simple shape properties of a region. However, errors occur when the assumptions of the formulated model regarding homogeneity and region shape are inaccurate. A novel region-growing method 11 based on local cube tracking was employed to segment a small local cube in order to detect a vessel segment, and the resultant local cube was determined on the basis of the segmentation results. The procedure was repeated until the segmentation was complete. In previous studies10,11 and this study, conducting region-growing procedures typically produced highly defined object boundaries for subsequent region-oriented segmentation. Automatic segmentation has been a fundamental problem in studies because any inaccuracy in this procedure can distort the segmentation results, particularly when segmenting multiple objects.
Based on previous studies, the existing methods including the SVM and the region-growing recognition are similar to those used in the work. However, the study employed the SVM-based method combined with multiple-object segmentation and extraction for effectively performing multiple-object discrimination in a single inspection image. This LARG strategy enables the segmenting of multiple-object images without computing the assessment function for every pixel added to the local region, and no bimodal histogram is required. Furthermore, the study involved using the proposed learning method, which comprises LARG segmentation and SVM combined with a DWT-based feature extraction method for automatically inspecting multiple sensed objects. Finally, this study proposed a standard test series for quantitatively comparing inspection methods in the manufacturing field.
The remainders of this article are organized as follows: section “Proposed method” presents the proposed method for automatically inspecting multiple sensed objects. Section “Experimental results and discussion” presents the experimental results by applying the proposed method to various samples, as well as a comparison of various inspection methods. The final section offers the conclusions of this study.
Proposed method
This section describes the proposed LARG method including LARG learning algorithm and SVM learning classifier and then introduces the LARG-based learning approach for the automated inspection of multiple sensed objects.
LARG learning algorithm
The proposed LARG-based learning algorithm involves first using a set of initial seeds in the local growth regions {R0,0, R0,1, R1,0, R1,1}, each of which comprises several local subregions. Within these local subregions, each initial seed is considered as being surrounded by a group of pixels if the following selection criterion is satisfied
where
This article proposes a learning method for determining the threshold

Local subregions of {R0,0, R0,1, R1,0, R1,1} and the corresponding thresholds

Learning classifier
An SVM was employed to implement the learning classification. SVM is designed to construct a hyperplane as the decision surface to maximize the margin of separation between positive and negative examples.
12
Consider the set of feature values belonging to two separate classes
while
where
where
Table 1 displays the class labels of the samples, and Figure 1 provides the location of each class in an inspection image. The DWT-based features extracted from each image are used as inputs for datasets. The relationship among the DWT coefficients can be expressed as follows
Class labels of the samples used in the experiments.
where
Learning classification results from various sample sizes for each class.
For SVM classifiers, two parameters (the parameter
Testing accuracy for various combinations of the parameter
RBF: radial basis function.
Adaptive learning approach for the automated inspection of multiple sensed objects
This section describes the development of the proposed multiple-object sensing system and learning approach. As an example of an industrial inspection, the learning method was applied to inspect multiple eyeglass lenses. The technology used in the manufacturing process of eyeglass lenses determines the degree of curvature of the lenses. This study further modified the conventional inspection process in manufacturing to effectively classify multiple eyeglass lenses in a single image. Inspecting multiple eyeglass lenses is a difficult task in manufacturing because the inspector could fail to concurrently focus the multiple sensing telescopes on the target panels. Therefore, developing a multiple-object sensing system is crucial to bridging the gap between the sensing telescopes and inspector.
In optical multiple-object inspections, synchronous image information between the sensing devices and inspector is critical in evaluating the reliability and stability of detection processes. Figure 3 depicts the configuration of the proposed inspection system. To obtain the information, a camera array (four cameras), which is positioned after a telescope array (four sensing telescopes) and triggered by an acquisition device, acquires synchronous images of multiple objects. The synchronous image information is transmitted from the camera array to an industrial computer equipped with a frame grabber for capturing a single image composed of the synchronous images.

Configuration of the proposed inspection system.
As illustrated in Figure 3, a standard inspection process for multiple eyeglass lenses was developed and conducted as follows: The target panel, which included multiple targets (four targets), was installed on a platform. The multiple targets indicated the degree of curvature of multiple eyeglass lenses (four eyeglass lenses), which were mounted on the support frame of the telescope array. The distance between the target panel and telescope array was 10.67 m. During the inspection, multiple eyeglass lenses with unknown degrees of curvature were mounted on the telescope array, and the surface light from the platform illuminated the target panel. Conventionally, telescope lenses are manually focused on the target panel. The proposed learning method involved processing telescopic images captured by multiple cameras, an approach that can rapidly determine the degrees of curvature of the multiple eyeglass lenses to solve the problem of simultaneously focusing the multiple telescopes.
Figure 4 displays a schematic diagram of the multiple-object sensing system. Compared with conventional vision-based inspections in manufacturing, the proposed system enables sensing and classifying multiple objects in addition to applying a suitable processing (segmentation and classification) strategy on the basis of the sensing results. The system procedure can be summarized as follows: (1) input the sample images from the image queue, (2) determine whether the image satisfies the condition for multiple-object processing, (3) execute the LARG-based algorithm (including LARG segmentation and DWT extraction), (4) perform SVM classification, and (5) confirm that no image remains in the image queue. As displayed in Table 1, for inspecting 200 classes {A, B, C, D} of sample images,
where

Schematic diagram of the proposed multiple-object sensing system.
As provided in Figure 5, the proposed approach applies the following steps to automatically obtain
Step 1: A total of 200 images are tested for a given
Step 2: Given a value of 1 for initial seeds in the gray-level image,
Step 3: The LARG-based learning algorithm is implemented;
Step 4: Feature extraction is implemented on the basis of a
Step 5: Images are classified using the SVM;
Step 6: The recognition rate is determined at each adjustable threshold

Flow diagram of the LARG-based algorithm.
The recognition rate is defined as follows
where
Step 7: The process stops when the sample images in all cases of the given
For example, step 1 tests sample images with a six-level DWT. Step 2 determines the thresholds of
Experimental results and discussion
This section describes the classification results obtained using the proposed method and compares them with those reported in previous studies. The experiment was conducted to test the accuracy and performance of the proposed method.
The experiment setup detail is described as follows. As displayed in Figure 3, the experiment setup for the test included a target panel, telescope array, camera array, and industrial computer. The distance between the target panel and telescope array was 10.67 m. Data on the test lenses were listed in Table 1. The lenses were selected from 200 validation samples. During the inspection, the lenses with unknown degrees of curvature were mounted on the telescope array, and the surface light from the platform illuminated the target panel.
Significant results from each experiment include multiple-object classifications, effectiveness of the proposed system, and accuracy and performance of the proposed method. The classification results reveal that the proposed method can be used as a multiple-object inspection tool for automatically selecting the most suitable parameters for inspections. The proposed system, which incorporates the LARG method and SVM-based DWT, can effectively classify multiple objects in the local subregions of inspection images and solve the problem of simultaneously using multiple sensing devices. The proposed method outperformed the other hybrid methods.
Learning classification results from using the proposed method
Figure 6(a)–(d) provides the LARG segmentations with

Image segments with the
Learning classification results from the proposed method with four-level and six-level DWTs.
DWT: discrete wavelet transform.
T (rows): true values; P (columns): predicted values; Results (values/values): four-level DWT or six-level DWT.
Table 5 provides an example of the selection thresholds of the sample images with the
Selected thresholds for {A, B, C, D} and {E, F, G, H} with
DWT: discrete wavelet transform.
LOO-CV mean squared error of approximation coefficient A6 with
LOO-CV: leave-one-out cross-validation.
The learning algorithm introduced computational complexity
17
in the experiment. The time cost function
where O(log
Running time growth rates when using the learning algorithm.
The learning classifiers based on K-nearest neighbor (KNN),
18
artificial neural network (ANN),
19
and Bayes classifier
20
were also compared using the proposed method. Similarly, 80 datasets in one inspection image were randomly selected as training samples, and the other 200 datasets were used as validation samples for evaluating the performance of the classifiers. In the KNN classification, the input data were a set of six-level DWT coefficients, and the output was a class membership ({A, B, C, D} or {E, F, G, H}). The inspection image was classified by a majority vote of its neighbors among
where

Cost function
To employ the proposed method in another application, objects were placed at different angles for inspection. The inspection can be employed in applications such as inspecting the rotation, position, and tracking of objects. As a test inspection, the learning method was applied to inspect coins placed at various angles. Table 8 provides the class labels of the coin samples (80 training samples and 200 validation samples). With the same setup displayed in Figure 3, the experiment proceeded as follows: A target panel, which included coins placed at four unique angles (Figure 8), was installed on a platform. Four telescopes were mounted on the support frame of the telescope array. Table 9 lists the classification results with a six-level DWT, demonstrating an average accuracy rate of 96%.
Class labels of the coin samples used in the experiments.

Class {I, J, K, L} of coin samples: (a) class I, (b) class J, (c) class K, and (d) class L.
Classification results of the coin samples when using the proposed method with the six-level DWT.
DWT: discrete wavelet transform.
T (rows): true values, P (columns): predicted values.
Standard test series and comparison of existing methods
A standard test series (Figure 9) in the manufacturing field was proposed for quantitatively comparing the inspection methods. Hybrid schemes of feature extraction methods combined with classification methods were compared to test the proposed method. The DWT, spherical-wavelet-transform (SWT), and invariant (INV) feature extraction methods represent DWT-based, spherical-wavelet-based, 21 and moment-INV-based 22 feature extraction, respectively. The classification methods are the SVM, KNN, ANN, and Bayes classifier methods (section “Learning classification results from using the proposed method”).

Standard test series in the manufacturing field.
For SWT feature extraction, the relationship of SWT coefficients
where
where (
The procedure for testing the series of existing classification methods and new hybrid approaches can be summarized as follows: (1) input existing classification methods, (2) set the accuracy threshold for the comparison, (3) compare the accuracy and efficiency of the existing classification methods, (4) obtain the high-performance classification method, (5) input the new hybrid approaches of the existing feature extraction methods according to the high-performance classification method, (6) set the accuracy threshold for the new hybrid approaches, (7) compare the accuracy and efficiency of the new hybrid approaches, and (8) obtain the new high-performance hybrid method.
The threshold of accuracy in the standard test series was set to 0.90. The experimental results demonstrate that the accuracy rates for the KNN, ANN, and Bayes classifiers were below 90%. The SVM was the classification method with the strongest performance (test procedures 1–4). The hybrid schemes of the feature extraction methods (DWT, SWT, and INV) combined with the SVM are coded as DWT-SVM, SWT-SVM, and INV-SVM, respectively. When the given values of the threshold were 0.90, 0.93, and 0.95 for test procedures 5–8, the new hybrid methods were {DWT-SVM, SWT-SVM, INV-SVM}, {DWT-SVM, SWT-SVM}, and {DWT-SVM}, respectively. Thus, the accuracy rates were 93% for the SWT-SVM, 90% for the INV-SVM, and 95% for the proposed DWT-SVM. Figure 10 provides the time cost function

Cost function
Conclusion
This article proposes an adaptive learning method and standard test series for detecting multiple objects in manufacturing. The proposed learning LARG algorithm combined with the DWT-based SVM classification can adaptively segment multiple-camera images and effectively classify multiple objects in the local subregions of inspection images. The proposed method can inspect multiple objects in one inspection image and solve problems encountered when concurrently using multiple sensing devices. The results demonstrate that the proposed learning algorithm can be used as an inspection tool for automatically selecting the most suitable parameters for inspecting multiple objects. The learning classifier outperforms other classifiers in conducting industrial inspections. The proposed method attained a recognition rate of 95% and outperformed other hybrid methods. However, inspecting multiple ambiguous objects may be a challenge in manufacturing. Further research directions include creating a new feature description method and feature-based inspection method for detecting ambiguous objects in manufacturing.
Footnotes
Academic Editor: Duc T Pham
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This work was supported by the Shih Chien University of Taiwan (grant no. 104-08-01008).
