원시데이터 수집 시스템
선정목록으로

Color Classification of Wooden Boards Based on Machine Vision and the Clustering Algorithm

관련 필름·전자재료 · (16) CPI(투명 폴리이미드)

기본 정보

저자
  1. Ye Lin — College of Electrical Engineering and Automation, Fuzhou University, Fuzhou 350000, China|||Key Laboratory of Industrial Automation Control Technology and Information Processing, Education Department of Fujian Province, Fuzhou 350000, China
  2. Dan Chen — College of Electrical Engineering and Automation, Fuzhou University, Fuzhou 350000, China|||Key Laboratory of Industrial Automation Control Technology and Information Processing, Education Department of Fujian Province, Fuzhou 350000, China
  3. Shijia Liang — College of Electrical Engineering and Automation, Fuzhou University, Fuzhou 350000, China
  4. Zhezhuang Xu — College of Electrical Engineering and Automation, Fuzhou University, Fuzhou 350000, China|||Key Laboratory of Industrial Automation Control Technology and Information Processing, Education Department of Fujian Province, Fuzhou 350000, China
  5. Yang Qiu — College of Electrical Engineering and Automation, Fuzhou University, Fuzhou 350000, China
  6. Jiahao Zhang — College of Electrical Engineering and Automation, Fuzhou University, Fuzhou 350000, China
  7. Xinxiang Liu — Key Laboratory of Industrial Automation Control Technology and Information Processing, Education Department of Fujian Province, Fuzhou 350000, China
DOI
10.3390/app10196816
저널
Applied Sciences
발행년도
2020
발행기관
Multidisciplinary Digital Publishing Institute
피인용수
19
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.3390/app10196816
토픽
Color Science and Applications
OpenAlex ID
W3091144137

평가 내용

관련도
관련
사업분야
필름·전자재료 · (16) CPI(투명 폴리이미드)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > CPI(투명 폴리이미드)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Color classification of wooden boards is helpful to improve the appearance of wooden furniture that is spliced from multiple wooden boards. Due to the similarity of colors among wooden boards, manual color classification is inaccurate and unstable. Thus, supervised learning algorithms can hardly be used in this scenario. Moreover, wooden boards are long, and their images have a high resolution, which may lead to the growth of computational complexity. To overcome these challenges, in this paper, we propose a new mechanism for color classification of wooden boards based on machine vision. The image of the wooden board is preprocessed to subtract irrelevant colors, and the feature vector is extracted based on 3D color histogram to reduce the computational complexity. In the offline clustering, the feature vector sets are partitioned into different clusters through the K-means algorithm. Then, the clustering result can be used in the online classification to classify the new wood image. Furthermore, to process the abnormal images of wooden boards, we propose an improved algorithm with centroid improvement and image filtering. The experimental results verify the effectiveness of the proposed mechanism.

본문 33,351자

본문 펼치기
Color classification of wooden boards is helpful to improve the appearance of wooden furniture that is spliced from multiple wooden boards. Due to the similarity of colors among wooden boards, manual color classification is inaccurate and unstable. Thus, supervised learning algorithms can hardly be used in this scenario. Moreover, wooden boards are long, and their images have a high resolution, which may lead to the growth of computational complexity. To overcome these challenges, in this paper, we propose a new mechanism for color classification of wooden boards based on machine vision. The image of the wooden board is preprocessed to subtract irrelevant colors, and the feature vector is extracted based on 3D color histogram to reduce the computational complexity. In the offline clustering, the feature vector sets are partitioned into different clusters through the K-means algorithm. Then, the clustering result can be used in the online classification to classify the new wood image. Furthermore, to process the abnormal images of wooden boards, we propose an improved algorithm with centroid improvement and image filtering. The experimental results verify the effectiveness of the proposed mechanism. Introduction Wooden boards are the main components of various products in the wooden furniture industry [1]. The boards always have to be spliced together to construct a larger board. Moreover, to improve the quality of the product, boards with a similar color are preferred to be spliced together. Traditionally, wooden boards are manually classified by experienced workers, and there is no criteria for classifying wooden boards by color similarity. The efficiency of manual classification is low, and the accuracy cannot be guaranteed due to the similarity of colors and the fatigue of workers. To solve this problem, this paper focuses on the classification of wooden boards with the help of machine vision techniques. Introduction Some research works have been proposed to classify the colors of wood. In [2], the author used luminosity differences in black walnut wood to discriminate walnut wood color according to color analysis. In [3], seven wood species were identified based on a specific color of each wood species, which was determined by the analysis of RGB (red, green, blue) color components. The quantitative color analysis performs well only when the color differences between the wood objects are significant. However, the colors of wooden boards are similar; thus, they can hardly be classified by quantitative color measurement. Introduction Machine learning algorithms have been used for image color classification. In [4], the authors used the k-nearest neighbor (k-NN) classification principle to classify rock images based on color textures. Reference [5] selected color histograms of three channels in both the RGB and HSV (hue, saturation, value) color spaces as a single feature to recognize induced emotions. In [6], wooden boards were classified by a supervised machine learning classifier based on the main color characteristic obtained through the HSV color model and the co-occurrence matrix characteristic. Introduction However, these works can hardly be used for the color classification of wooden boards due to the following challenges. First, the colors of wooden boards are similar, which makes manual classification inaccurate and unstable. In this case, the supervised learning algorithms can hardly be used to classify the wooden boards based on their color. Secondly, wooden boards are long; thus, their images have a high resolution, which leads to the growth of the computational complexity. On the other hand, the color is the dominating feature in the image of wooden boards. This characteristic has to be considered to reduce the computational complexity. Introduction To overcome these challenges, in this paper, we firstly analyze the images of wooden boards and derive their characteristics. Based on the analysis, we propose a new mechanism for the color classification of wooden boards. The framework includes image preprocessing, feature extraction, offline clustering, and online classification. The image preprocessing algorithm is used to subtract the background and stains on the surface of the wood. Then, the feature vector is extracted from the processed image based on the 3D color histogram. In the offline clustering, the feature vector sets are partitioned into different clusters by the K-means algorithm. Finally, in the online classification, the clustering result is used as the classifier to classify the new wood image. Furthermore, to process the abnormal images of wooden boards, we propose an improved algorithm with centroid improvement and image filtering. The experiments are executed to prove the effectiveness of the proposed mechanism. Introduction The rest of this paper is organized as follows. Section 2 gives an overview of various color image classification methods. Section 3 studies the characteristics of wooden board images. The framework proposed for color classification of wooden boards is described in Section 4. The algorithm to process the abnormal images is introduced in Section 5. Section 6 presents the experimental results to study the performance of the proposed mechanism. Finally, the conclusion is given in Section 7. Related Work Color classification of wooden boards is important to improve the quality of wooden furniture where the boards with a similar color are preferred to splice together. Related Work Quantitative color analysis is used to classify the colors of wood. In [2], the author evaluated walnut wood color using the international CIE (Commission International de l'Eclairage) method and found that luminosity can be used to discriminate color in walnut wood. In [3], the surface color region of seven wood species was determined by the analysis of RGB color components, and a specific color of each wood species was used to identify wood species present in a chip mixture. In [7], the authors found that the three parameters (L*, a*, and b*) are adequate for the classification of thermally-modified ash and beech hardwood according to the analysis of the wood color with the CIE L*a*b* color space (L* for the lightness from black to white, a* from green to red, and b* from blue to yellow). In [8], the authors used the CIE L*a*b* system to discriminate the variability of the wood color and determined the correlation with the wood's basic density for ten Amazonian tree species. Related Work Machine learning algorithms have become popular solutions for signal processing [9][10][11]. They have also been used for color classification of wooden boards. In [6], the authors studied the supervised machine learning methods for wood classification based on the main color characteristic obtained through the HSV color model and co-occurrence matrix characteristic. In [12], the average RGB histogram value for each color channel and the static characteristics of the gray-level co-occurrence matrix were used as features to identify the strength of wood. In [13], the SVM (support vector machine) model achieved an accuracy of 0.960 for classification of thermally-modified wood using the color lightness parameter as a feature. Related Work In addition, approaches related to the classification of other color images were proposed. In [4], the k-nearest neighbor (k-NN) classification principle was used to classify rock images based on color features in the Gabor space. Reference [14] selected eight color features of the images extracted in the HSV, HSL (hue, saturation, lightness), and HSI (hue, saturation, intensity) color spaces to classify farmland images with the k-NN algorithm. In [15], the authors used SVM to study the performance of color histograms in different color spaces for content based color image classification. Reference [5] examined the performance of a wide range of classifiers in recognizing induced emotions using the color histogram as a single feature, and different numbers of color histogram bins in both RGB and HSV color spaces were considered in the examination. In [16], the red, green, and blue color components of the RGB color model were selected as features to classify the different groups of materials with supervised machine learning algorithms. Related Work However, due to the color similarity among wooden boards, the supervised learning algorithms can hardly be used for the color classification of wooden boards. To solve this problem, the clustering algorithms may be a reasonable solution, which has been used to process images in some applications. Reference [17] used the k-means algorithm to classify galaxies into morphological clusters by their visual similarity. In [18], the G-means algorithm was used for intrusion detection. In [19], the authors adopted the fuzzy c-means clustering algorithm for color image segmentation. Related Work Nevertheless, to the best of our knowledge, there is no related work that has used the clustering algorithm for color classification of wooden boards. The images of wooden boards have their own characteristics; thus, related works cannot be used directly. This motivates our work, which will be described in the following sections. Image Characteristics of Wooden Boards We firstly designed a machine vision testbed to obtain the images of wooden boards. The framework is shown in Figure 1. It is composed of four main parts: a conveyor, a line scan industrial camera, a computer, and a printer. The wooden boards are automatically moved to the image capture area by a conveyor. The frames with 1 × 2048 pixels captured by the camera are continuously combined to obtain a whole image. With the support of the Industrial Internet of Things [20,21], the images are transmitted to the computer for color classification. After the image is classified, the computer outputs a label of this wooden board to the printer. Then, the printer prints the label on the surface of the wooden board. A sample of a wood image obtained through the machine vision system is shown in Figure 2. The resolution of the captured image is 8000 × 2048 pixels. Its image has a high resolution, which may lead to high computational complexity. Moreover, it is clear that the color is the dominating feature in the color classification of wooden boards. We will use this characteristic to reduce the computational complexity. Figure 3 shows the color difference of the wooden boards. When the wooden boards are spliced together, it is easy to justify their difference. However, their colors are generally similar when we observe them separately. In this case, the manual color classification is inaccurate and unstable, and the supervised learning algorithms can hardly be used in this scenario. We will prove this result with experiments in Section 6. As shown in Figure 4, there are some stains on the surface of boards. Before the wooden boards are scanned by the camera, there are several processes by which wooden boards are forced to stay straight. Therefore, some wooden boards would receive indentations with dark colors that are generated by machines, as shown in Figure 4a. Moreover, wooden boards may be dyed by the machines with lubricating oil inevitably, as shown in Figure 4b. Some boards contain natural defects, as shown in Figure 4c. These stains would affect the accuracy of the color classification of wooden boards. Therefore, it is necessary to subtract the regions of these stains on the wooden boards. Color Classification of Wooden Boards The framework of the proposed mechanism consists of image preprocessing, feature extraction, offline clustering, and online classification, as shown in Figure 5. The wood images are firstly processed based on the color ranges in the HSV color space to remove irrelevant colors in the image. Then, the feature vector is extracted from the preprocessed wood image in the RGB color space. In the offline clustering, the feature vector sets extracted from the preprocessed wood images are partitioned into different clusters based on the K-means algorithm. The clustering result can be used in the online classification to classify the new wood image. The details are given as follows. Figure 5. The framework of the color classification of wooden boards. Image Preprocessing In the color classification of wooden boards, only the wood color information is useful in the image. Therefore, the HSV color information [22] is used to process wood images before classification. The wood color ranges in the H, S, and V channels can be used for removing the background and stains simultaneously [23]. Image Preprocessing Based on the set of images in the offline phase, we use the image segmentation algorithm to detect the boundaries of the boards and then remove the backgrounds of the wood images. The obtained images are converted from the RGB color space into the HSV color space, and the number of pixels with each value in the H, S, and V channels is calculated, respectively [24]. We calculate the confidence interval at a 95% confidence level for the pixel values in the H, S, and V channels, respectively. The intervals can be used to remove the irrelevant colors whose pixel values are not in these intervals. Then, we would obtain wood images whose backgrounds are removed, and irrelevant colors on the surface of wooden boards are transformed into black. Feature Extraction Considering the fact that only color information is useful for color classification of wooden boards, we propose a feature extraction method based on the 3D color histogram [25]. The RGB color space [26] is used as the feature extraction space. In order to represent wood color information more accurately, the ranges that describe the color distribution in the three channels need to be specified. The number of pixels with each value in the R, G, and B channels is calculated, respectively, using the preprocessed wood images. Then, the confidence intervals in the RGB channels at a 95% confidence level are calculated, respectively. Based on the confidence intervals, the wood color subspace can be derived. Feature Extraction After getting the wood color subspace, we divide the color range into the same number of bins in each dimension. With different numbers of bins in each dimension, the wood color subspace would be partitioned into different numbers of cells. For example, if the number of bins in each dimension is eight, the wood color subspace would consist of 8 × 8 × 8 cells, as shown in Figure 6. For the features extracted from the wood image, the proportions of the number of pixels in each cell to the total number of pixels in the wood color subspace are calculated to represent wood color characteristics. Therefore, the dimension of the extracted feature vector is the third power of the number of bins. Feature Extraction We denote the number of bins as N b . When N b increases, the number of cells in the wood color subspace increases; thus, the color differences between pixels in each cell would be reduced. On the other hand, more computational resources are required in the offline clustering process. We will evaluate its impact by the experiments in Section 6.3. Offline Clustering Since it is hard to classify the color of wooden boards manually, the clustering algorithm is used to generate the classifier for the color classification of wooden boards. A large number of wood images should be firstly collected by the testbed. Then, the image preprocessing algorithm is used to remove the background and the stains in the wood image. Obtaining the preprocessed wood images, the feature extraction algorithm is executed to generate feature vector sets of the wood images. Finally, the obtained feature vector sets are partitioned into clusters by using the K-means algorithm. Offline Clustering In the process of clustering by K-means [27], k feature vectors would be firstly derived from the feature vector sets as initial centroids, where k is a user-specified parameter. Each feature vector is assigned to the cluster based on the shortest distance. Then, the centroid of each cluster is updated by taking the mean of the values in each dimension of the feature vectors of each cluster. Some feature vectors may move from one cluster to another cluster. After that, new centroids are calculated, and the feature vectors are assigned to the new clusters. The assignment and update of the centroids repeat, until the convergence criteria are met, i.e., no feature vector changes clusters, or equivalently, until the centroids remain the same. In this paper, the euclidean distance is used to find the distance between feature vectors and centroids. Offline Clustering The number of clusters k has a great impact on the performance of clustering. More clusters can improve the accuracy of the color classification of wooden boards. However, it also increases the burden of sorting wooden boards after the classification. How to determine the number of clusters will be discussed in Section 6.2. Online Classification After the offline clustering, the centroids of clusters can be used as a classifier to classify new images in real time. When a new image of a wooden board is obtained by the camera, the background of this image and stains on the surface of the wood would be firstly removed through the image preprocessing algorithm. Then, the feature vector of this preprocessed wood image is generated in the process of feature extraction. Obtaining the feature vector, the distances between the new wood images and centroids are computed. Based on the shortest distance, the class label of the cluster will be assigned to the new image. The color classification is completed. Abnormal Wooden Board Processing Generally, there are a few abnormal wooden boards whose color is quite different from the others. The images of abnormal wooden boards in the offline clustering would affect the accuracy of centroids. Moreover, the abnormal wooden board should be filtered out in the online classification to ensure the quality of the products. Abnormal Wooden Board Processing In this section, we propose an improvement algorithm to process the abnormal wooden boards. It includes centroid improvement and image filtering, as shown in Figure 7. The details are given as follows. Centroid Improvement The abnormal values of the feature vector generated by abnormal wooden boards would lead to the deviation of the centroid. To eliminate the effects of abnormal wood images in the offline clustering, the centroid improvement algorithm is proposed to improve the centroids. Centroid Improvement The feature vectors would be partitioned into different clusters after offline clustering. At each cluster, we calculate the confidence interval at a 95% confidence level for the values in the same dimension of feature vectors, then the values that are not in the interval are considered as the abnormal values and would be removed. The mean of the remaining values is calculated to replace the value in this dimension of the centroid. The same method would be used for all dimensions of the feature vector. Then, the improved centroids can be obtained after all clusters are processed. The improved centroids can be used to classify wood images in the online classification. Image Filtering In the online classification, the abnormal wooden boards have to be filtered out to ensure the quality of products. Thus, the image filtering algorithm is proposed to filter out the abnormal wood boards in the online classification. Image Filtering We firstly use the improved centroids obtained through the centroid improvement algorithm to calculate the distances between the extracted feature vectors and the improved centroid for each cluster. Then, the confidence interval for distances at a 95% confidence level is calculated, and the distance threshold can be derived by the upper bound of the interval. Image Filtering In the online classification, when the distance between the image and its centroid is greater than the distance threshold, the new wooden board will be assigned to the abnormal class. Experiments In the experiments, two sets of images are obtained from the testbed separately. The first set contains 15,000 images, which are used for the offline training. The second set, which contains 1000 images, is used in the online classification to evaluate the performance of the proposed mechanism. Experiments There are four parts of the experiments. At first, wood color distributions in both the HSV and RGB color spaces are studied. Secondly, we test the performance of the classification mechanism using different numbers of clusters and bins. Finally, we study the impact of the abnormal wooden boards processing. The details are given as follows. Wood Color Distribution We firstly evaluate the intervals to describe the wood color distribution in the HSV and RGB color space. Based on the 15,000 obtained wood images, Figure 8 shows the numbers of pixels with each value in the H, S, and V channels, respectively. We calculate the confidence intervals for pixel values at a 95% confidence level, which are [9,22] in the H channel, [59,131] in the S channel, and [134, 219] in the V channel, respectively. According to these intervals, any irrelevant color whose pixel values are not in these intervals can be removed in the process of image preprocessing. Wood Color Distribution In the RGB color space, the numbers of pixels with each value in the R, G, and B channel are calculated, respectively, as shown in Figure 9. Similarly, the confidence intervals at a 95% confidence level for pixel values in the three channels are calculated, which are [134,218], [105,185], and [73, 149], respectively. These intervals are used to construct the wood color subspace, in which the features of the wood color are extracted. It is important to note that the wood color subspace is only 3.08% of the whole RGB color space. Thus, the extracted features can represent wood colors more accurately. Wood Color Distribution Crystals 2020, 10, x FOR PEER REVIEW 2 of 17 Introduction The convection flow of fluid occurs due to the temperature difference and heat transference rate. In particular, the mechanism of convection can be classified into three types, which are free, forced and mixed. Free or natural convection is solely caused by the buoyancy force, while forced convection happens because of the external sources such as pump and fan. Mixed convection occurs when those two convections occur simultaneously. Engineering fields contain many applications of free convection flow, for instance, automatic control system of electrical and electronic components [1]. It is found that the obtained findings from the stretching sheet flow of viscous fluid with free Performance with Different Numbers of Clusters We firstly study the classification performance with different numbers of clusters. The numbers of clusters k are set as 20, 40, and 60, respectively. The number of bins is fixed at N b = 16. Three metrics are used for evaluating the clustering results. The mean squared distance is the average of the squared distances of samples to their closest cluster center. Silhouette scores [17] range from −1 to 1: a high silhouette score indicates that the object is well matched to its own cluster and distinct from neighboring clusters. The Calinski-Harabasz score of a clustering is in [0, +∞] and should be maximized [28]. Performance with Different Numbers of Clusters The results are given in Table 1. When we choose k to be 20, the mean squared distance is 0.00295, the global mean silhouette score is 0.155, and Calinski-Harabasz score is 1767. When there are 40 clusters, the three values are 0.00225, 0.146, and 1248, respectively. With k = 60, we obtain 0.00192, 0.143, and 1008. As the number of clusters increases from 20 to 40 and then to 60, the global mean silhouette score and Calinski-Harabasz score decrease, which indicates that the quality of the clustering result becomes poorer. On the other hand, the value of the mean squared distance becomes smaller, which indicates that the similarity between the objects in their own cluster becomes greater. According to the opposite results given above, it is hard to evaluate the performance of the color classification of wooden boards simply based on traditional clustering metrics. To solve this problem, we propose a new metric to evaluate the accuracy of color classification manually. We design software to display the test image and the representative image simultaneously. The representative image of each cluster is determined by the image in the cluster that is closest to its centroid. Then, the volunteers are asked to filter the images that are clearly different from the representative image. The definition of the proposed classification accuracy is the percentage of images that are not filtered by the volunteers. Performance with Different Numbers of Clusters In this experiment, one-thousand images are classified by the clustering result with different numbers of clusters, respectively. Five volunteers, which consist of three experts (A, B, and C) and two students (D and E), are asked to judge the classification results. Table 2 shows the classification accuracy determined by the volunteers. The average classification accuracies of the proposed mechanism with 20, 40, and 60 clusters are 91.8%, 94.3%, and 96.8%, respectively, which indicates that the classification accuracy increases as the number of clusters grows. It is important to note that the classification accuracy with the same number of clusters is obviously different among different volunteers. This verifies the difficulty in classifying wood color manually. On the other hand, it is obvious that the classification accuracy determined by the students is higher than that by the experts. This indicates that the untrained volunteers have difficulty discerning the color differences among some wooden boards. Furthermore, we compare the images filtered by the three experts. For each pair of experts, the numbers of images filtered by both experts are counted. The results are reported in Table 3. With k = 20, the number is 41, 34, and 25, respectively. Compared with the result given in Table 2, the same selected images are fewer than the total number of selected images for each judgment result, which indicates that the experts have different perspectives on comparing the color similarity of wooden boards. This proves that the accuracy of manual classification can hardly be guaranteed; thus, the supervised machine learning algorithms cannot be used in this scenario. Performance with Different Numbers of Bins This section studies the classification accuracy with different numbers of bins N b . The number of bins is chosen to be 8, 16, and 32, respectively, and the number of cluster is set as k = 20. Performance with Different Numbers of Bins There are 1000 images classified by the clustering result with different N b , respectively. Five volunteers are asked to judge the classification results. The classification accuracies with different values of N b are given in Table 4. The average classification accuracies of the proposed mechanism with N b = 8, 16, and 32 are 88.5%, 91.8%, and 88.7%, respectively. The results of the average classification accuracy indicate that the average classification accuracy increases with N b increasing from eight to 16, while the average classification accuracy decreases with N b increasing from 16 to 32. Considering the results given above and the computational complexity in the offline clustering, the number of bins is recommended to be set as 16 for the color classification of wooden boards. Performance with Different Numbers of Bins Moreover, the classification accuracies with N b = 8 determined by experts indicate that the classification mechanism achieves poor performance in this scenario, while it performs better from the perspective of students. It verifies that the manual classification of wooden boards by color is unstable among operators with different experience. Effect of Abnormal Wooden Boards' Processing In this section, we evaluate the performance of the color classification mechanism with abnormal wooden boards' processing. The number of bins N b is set as 16, and the number of cluster is fixed at k = 40. Effect of Abnormal Wooden Boards' Processing The clustering result with N b = 16 and k = 40 is firstly used to complete centroids' improvement and to find a distance threshold used for image filtering. For each cluster, we calculate the confidence intervals at a 95% confidence level for the values in each dimension of the feature vectors. For each dimension, the values that are not in the intervals would be removed. The mean of the remaining values in each dimension is calculated to derive the improved centroid. After getting the new centroids, we calculate the distances between feature vectors and their centroids according to the clustering result. Then, the confidence interval at a 95% confidence level for these distances is calculated, which is [−0.0012, 0.0062]. The upper bound 0.0062 is considered as the distance threshold. Effect of Abnormal Wooden Boards' Processing Then, we use the improved centroids to classify 1000 images of wooden boards. Compared with the basic mechanism, there are 32 wood images transferred to other clusters. The mean squared distance, the global mean silhouette score, and the Calinski-Harabasz score are calculated for comparison. As reported in Table 5, the mean squared distance, the global mean silhouette score, and the Calinski-Harabasz score are 0.002557, 0.1265, and 84.43, respectively, in the basic mechanism. With the improved centroids used for classification, they are 0.002556, 0.1273, and 84.67. The mean squared distance decreases, and the global mean silhouette score and the Calinski-Harabasz score become greater. This verifies the effectiveness of the centroid improvement. Then, we study the effect of the improved centroids and image filtering on the classification accuracy. Using the improved centroids and the distance threshold 0.0062 in the classification, there are 54 wood images filtered out from 1000 images. Five volunteers are asked to process 1000 images, which have been classified by the improved centroids. The classification accuracies with different classification methods are given in Table 6. Effect of Abnormal Wooden Boards' Processing With the basic mechanism for color classification, the average classification accuracy is 94.3%. For comparison, the average classification accuracy with improved centroids is 96.0%. When 54 abnormal wood images are filtered by the image filtering algorithm, the classification accuracy reaches up to 96.9% on average. These results prove the effectiveness of centroid improvement and image filtering. Effect of Abnormal Wooden Boards' Processing Finally, we study the number of images that are filtered by volunteers and the image filtering algorithm simultaneously. The results are given in Figure 10. It is clear to see that the number of images increases with the reduction of the distance threshold. This result proves the effectiveness of the image filtering algorithm. Nevertheless, some images with short distances to their centroids are filtered by volunteers. We will study this problem in future works. 'LVWDQFH7KUHVKROG 1XPEHURI,PDJHV 9ROXQWHHU$ 9ROXQWHHU% 9ROXQWHHU& 9ROXQWHHU' 9ROXQWHHU( Conclusions In this paper, we propose a mechanism for color classification of wooden boards. The mechanism includes image preprocessing, feature extraction, offline clustering, and online classification. The image preprocessing algorithm is used to subtract the background and stains on the surface of the wood. Then, the feature vector is extracted from the preprocessed image. In the offline clustering, the feature vector sets extracted from wood images are partitioned into different clusters by the K-means algorithm. In the online classification process, the clustering result is used as a classifier to classify the new board. Furthermore, to process the abnormal images of wooden boards, we propose an improved algorithm with centroid improvement and image filtering. The experimental results demonstrate the effectiveness of the proposed mechanism. They also prove that the clustering based mechanism is a reasonable solution for classifying the objects that can hardly be classified by human vision due to their color similarity. Conclusions In future works, we will study how to improve the classification accuracy by clustering algorithms. New clustering algorithms will be used in the system to check their performance. For example, the G-means algorithm will be considered to process abnormal wooden boards and produce the clustering result simultaneously. Conclusions Author Contributions: Conceptualization, Y.L., S.L. and Z.X.; data curation, Y.L., D.C., S.L. and X.L.; formal analysis, Y.L., S.L. and Z.X.; investigation, Y.L., D.C., S.L. and Y.Q.; methodology, Y.L., S.L. and Z.X.; software, Y.L., S.L. and J.Z.; writing, original draft, Y.L. and D.C.; writing, review and editing, Z.X. All authors read and agreed to the published version of the manuscript.

섹션 본문 52문단 · 32,076자

(제목 없음)

1Color classification of wooden boards is helpful to improve the appearance of wooden furniture that is spliced from multiple wooden boards. Due to the similarity of colors among wooden boards, manual color classification is inaccurate and unstable. Thus, supervised learning algorithms can hardly be used in this scenario. Moreover, wooden boards are long, and their images have a high resolution, which may lead to the growth of computational complexity. To overcome these challenges, in this paper, we propose a new mechanism for color classification of wooden boards based on machine vision. The image of the wooden board is preprocessed to subtract irrelevant colors, and the feature vector is extracted based on 3D color histogram to reduce the computational complexity. In the offline clustering, the feature vector sets are partitioned into different clusters through the K-means algorithm. Then, the clustering result can be used in the online classification to classify the new wood image. Furthermore, to process the abnormal images of wooden boards, we propose an improved algorithm with centroid improvement and image filtering. The experimental results verify the effectiveness of the proposed mechanism.

Introduction

2Wooden boards are the main components of various products in the wooden furniture industry [1]. The boards always have to be spliced together to construct a larger board. Moreover, to improve the quality of the product, boards with a similar color are preferred to be spliced together. Traditionally, wooden boards are manually classified by experienced workers, and there is no criteria for classifying wooden boards by color similarity. The efficiency of manual classification is low, and the accuracy cannot be guaranteed due to the similarity of colors and the fatigue of workers. To solve this problem, this paper focuses on the classification of wooden boards with the help of machine vision techniques.

3Some research works have been proposed to classify the colors of wood. In [2], the author used luminosity differences in black walnut wood to discriminate walnut wood color according to color analysis. In [3], seven wood species were identified based on a specific color of each wood species, which was determined by the analysis of RGB (red, green, blue) color components. The quantitative color analysis performs well only when the color differences between the wood objects are significant. However, the colors of wooden boards are similar; thus, they can hardly be classified by quantitative color measurement.

4Machine learning algorithms have been used for image color classification. In [4], the authors used the k-nearest neighbor (k-NN) classification principle to classify rock images based on color textures. Reference [5] selected color histograms of three channels in both the RGB and HSV (hue, saturation, value) color spaces as a single feature to recognize induced emotions. In [6], wooden boards were classified by a supervised machine learning classifier based on the main color characteristic obtained through the HSV color model and the co-occurrence matrix characteristic.

5However, these works can hardly be used for the color classification of wooden boards due to the following challenges. First, the colors of wooden boards are similar, which makes manual classification inaccurate and unstable. In this case, the supervised learning algorithms can hardly be used to classify the wooden boards based on their color. Secondly, wooden boards are long; thus, their images have a high resolution, which leads to the growth of the computational complexity. On the other hand, the color is the dominating feature in the image of wooden boards. This characteristic has to be considered to reduce the computational complexity.

6To overcome these challenges, in this paper, we firstly analyze the images of wooden boards and derive their characteristics. Based on the analysis, we propose a new mechanism for the color classification of wooden boards. The framework includes image preprocessing, feature extraction, offline clustering, and online classification. The image preprocessing algorithm is used to subtract the background and stains on the surface of the wood. Then, the feature vector is extracted from the processed image based on the 3D color histogram. In the offline clustering, the feature vector sets are partitioned into different clusters by the K-means algorithm. Finally, in the online classification, the clustering result is used as the classifier to classify the new wood image. Furthermore, to process the abnormal images of wooden boards, we propose an improved algorithm with centroid improvement and image filtering. The experiments are executed to prove the effectiveness of the proposed mechanism.

7The rest of this paper is organized as follows. Section 2 gives an overview of various color image classification methods. Section 3 studies the characteristics of wooden board images. The framework proposed for color classification of wooden boards is described in Section 4. The algorithm to process the abnormal images is introduced in Section 5. Section 6 presents the experimental results to study the performance of the proposed mechanism. Finally, the conclusion is given in Section 7.

Related Work

8Color classification of wooden boards is important to improve the quality of wooden furniture where the boards with a similar color are preferred to splice together.

9Quantitative color analysis is used to classify the colors of wood. In [2], the author evaluated walnut wood color using the international CIE (Commission International de l'Eclairage) method and found that luminosity can be used to discriminate color in walnut wood. In [3], the surface color region of seven wood species was determined by the analysis of RGB color components, and a specific color of each wood species was used to identify wood species present in a chip mixture. In [7], the authors found that the three parameters (L*, a*, and b*) are adequate for the classification of thermally-modified ash and beech hardwood according to the analysis of the wood color with the CIE L*a*b* color space (L* for the lightness from black to white, a* from green to red, and b* from blue to yellow). In [8], the authors used the CIE L*a*b* system to discriminate the variability of the wood color and determined the correlation with the wood's basic density for ten Amazonian tree species.

10Machine learning algorithms have become popular solutions for signal processing [9][10][11]. They have also been used for color classification of wooden boards. In [6], the authors studied the supervised machine learning methods for wood classification based on the main color characteristic obtained through the HSV color model and co-occurrence matrix characteristic. In [12], the average RGB histogram value for each color channel and the static characteristics of the gray-level co-occurrence matrix were used as features to identify the strength of wood. In [13], the SVM (support vector machine) model achieved an accuracy of 0.960 for classification of thermally-modified wood using the color lightness parameter as a feature.

11In addition, approaches related to the classification of other color images were proposed. In [4], the k-nearest neighbor (k-NN) classification principle was used to classify rock images based on color features in the Gabor space. Reference [14] selected eight color features of the images extracted in the HSV, HSL (hue, saturation, lightness), and HSI (hue, saturation, intensity) color spaces to classify farmland images with the k-NN algorithm. In [15], the authors used SVM to study the performance of color histograms in different color spaces for content based color image classification. Reference [5] examined the performance of a wide range of classifiers in recognizing induced emotions using the color histogram as a single feature, and different numbers of color histogram bins in both RGB and HSV color spaces were considered in the examination. In [16], the red, green, and blue color components of the RGB color model were selected as features to classify the different groups of materials with supervised machine learning algorithms.

12However, due to the color similarity among wooden boards, the supervised learning algorithms can hardly be used for the color classification of wooden boards. To solve this problem, the clustering algorithms may be a reasonable solution, which has been used to process images in some applications. Reference [17] used the k-means algorithm to classify galaxies into morphological clusters by their visual similarity. In [18], the G-means algorithm was used for intrusion detection. In [19], the authors adopted the fuzzy c-means clustering algorithm for color image segmentation.

13Nevertheless, to the best of our knowledge, there is no related work that has used the clustering algorithm for color classification of wooden boards. The images of wooden boards have their own characteristics; thus, related works cannot be used directly. This motivates our work, which will be described in the following sections.

Image Characteristics of Wooden Boards

14We firstly designed a machine vision testbed to obtain the images of wooden boards. The framework is shown in Figure 1. It is composed of four main parts: a conveyor, a line scan industrial camera, a computer, and a printer. The wooden boards are automatically moved to the image capture area by a conveyor. The frames with 1 × 2048 pixels captured by the camera are continuously combined to obtain a whole image. With the support of the Industrial Internet of Things [20,21], the images are transmitted to the computer for color classification. After the image is classified, the computer outputs a label of this wooden board to the printer. Then, the printer prints the label on the surface of the wooden board. A sample of a wood image obtained through the machine vision system is shown in Figure 2. The resolution of the captured image is 8000 × 2048 pixels. Its image has a high resolution, which may lead to high computational complexity. Moreover, it is clear that the color is the dominating feature in the color classification of wooden boards. We will use this characteristic to reduce the computational complexity. Figure 3 shows the color difference of the wooden boards. When the wooden boards are spliced together, it is easy to justify their difference. However, their colors are generally similar when we observe them separately. In this case, the manual color classification is inaccurate and unstable, and the supervised learning algorithms can hardly be used in this scenario. We will prove this result with experiments in Section 6. As shown in Figure 4, there are some stains on the surface of boards. Before the wooden boards are scanned by the camera, there are several processes by which wooden boards are forced to stay straight. Therefore, some wooden boards would receive indentations with dark colors that are generated by machines, as shown in Figure 4a. Moreover, wooden boards may be dyed by the machines with lubricating oil inevitably, as shown in Figure 4b. Some boards contain natural defects, as shown in Figure 4c. These stains would affect the accuracy of the color classification of wooden boards. Therefore, it is necessary to subtract the regions of these stains on the wooden boards.

Color Classification of Wooden Boards

15The framework of the proposed mechanism consists of image preprocessing, feature extraction, offline clustering, and online classification, as shown in Figure 5. The wood images are firstly processed based on the color ranges in the HSV color space to remove irrelevant colors in the image. Then, the feature vector is extracted from the preprocessed wood image in the RGB color space. In the offline clustering, the feature vector sets extracted from the preprocessed wood images are partitioned into different clusters based on the K-means algorithm. The clustering result can be used in the online classification to classify the new wood image. The details are given as follows. Figure 5. The framework of the color classification of wooden boards.

Image Preprocessing

16In the color classification of wooden boards, only the wood color information is useful in the image. Therefore, the HSV color information [22] is used to process wood images before classification. The wood color ranges in the H, S, and V channels can be used for removing the background and stains simultaneously [23].

17Based on the set of images in the offline phase, we use the image segmentation algorithm to detect the boundaries of the boards and then remove the backgrounds of the wood images. The obtained images are converted from the RGB color space into the HSV color space, and the number of pixels with each value in the H, S, and V channels is calculated, respectively [24]. We calculate the confidence interval at a 95% confidence level for the pixel values in the H, S, and V channels, respectively. The intervals can be used to remove the irrelevant colors whose pixel values are not in these intervals. Then, we would obtain wood images whose backgrounds are removed, and irrelevant colors on the surface of wooden boards are transformed into black.

Feature Extraction

18Considering the fact that only color information is useful for color classification of wooden boards, we propose a feature extraction method based on the 3D color histogram [25]. The RGB color space [26] is used as the feature extraction space. In order to represent wood color information more accurately, the ranges that describe the color distribution in the three channels need to be specified. The number of pixels with each value in the R, G, and B channels is calculated, respectively, using the preprocessed wood images. Then, the confidence intervals in the RGB channels at a 95% confidence level are calculated, respectively. Based on the confidence intervals, the wood color subspace can be derived.

19After getting the wood color subspace, we divide the color range into the same number of bins in each dimension. With different numbers of bins in each dimension, the wood color subspace would be partitioned into different numbers of cells. For example, if the number of bins in each dimension is eight, the wood color subspace would consist of 8 × 8 × 8 cells, as shown in Figure 6. For the features extracted from the wood image, the proportions of the number of pixels in each cell to the total number of pixels in the wood color subspace are calculated to represent wood color characteristics. Therefore, the dimension of the extracted feature vector is the third power of the number of bins.

20We denote the number of bins as N b . When N b increases, the number of cells in the wood color subspace increases; thus, the color differences between pixels in each cell would be reduced. On the other hand, more computational resources are required in the offline clustering process. We will evaluate its impact by the experiments in Section 6.3.

Offline Clustering

21Since it is hard to classify the color of wooden boards manually, the clustering algorithm is used to generate the classifier for the color classification of wooden boards. A large number of wood images should be firstly collected by the testbed. Then, the image preprocessing algorithm is used to remove the background and the stains in the wood image. Obtaining the preprocessed wood images, the feature extraction algorithm is executed to generate feature vector sets of the wood images. Finally, the obtained feature vector sets are partitioned into clusters by using the K-means algorithm.

22In the process of clustering by K-means [27], k feature vectors would be firstly derived from the feature vector sets as initial centroids, where k is a user-specified parameter. Each feature vector is assigned to the cluster based on the shortest distance. Then, the centroid of each cluster is updated by taking the mean of the values in each dimension of the feature vectors of each cluster. Some feature vectors may move from one cluster to another cluster. After that, new centroids are calculated, and the feature vectors are assigned to the new clusters. The assignment and update of the centroids repeat, until the convergence criteria are met, i.e., no feature vector changes clusters, or equivalently, until the centroids remain the same. In this paper, the euclidean distance is used to find the distance between feature vectors and centroids.

23The number of clusters k has a great impact on the performance of clustering. More clusters can improve the accuracy of the color classification of wooden boards. However, it also increases the burden of sorting wooden boards after the classification. How to determine the number of clusters will be discussed in Section 6.2.

Online Classification

24After the offline clustering, the centroids of clusters can be used as a classifier to classify new images in real time. When a new image of a wooden board is obtained by the camera, the background of this image and stains on the surface of the wood would be firstly removed through the image preprocessing algorithm. Then, the feature vector of this preprocessed wood image is generated in the process of feature extraction. Obtaining the feature vector, the distances between the new wood images and centroids are computed. Based on the shortest distance, the class label of the cluster will be assigned to the new image. The color classification is completed.

Abnormal Wooden Board Processing

25Generally, there are a few abnormal wooden boards whose color is quite different from the others. The images of abnormal wooden boards in the offline clustering would affect the accuracy of centroids. Moreover, the abnormal wooden board should be filtered out in the online classification to ensure the quality of the products.

26In this section, we propose an improvement algorithm to process the abnormal wooden boards. It includes centroid improvement and image filtering, as shown in Figure 7. The details are given as follows.

Centroid Improvement

27The abnormal values of the feature vector generated by abnormal wooden boards would lead to the deviation of the centroid. To eliminate the effects of abnormal wood images in the offline clustering, the centroid improvement algorithm is proposed to improve the centroids.

28The feature vectors would be partitioned into different clusters after offline clustering. At each cluster, we calculate the confidence interval at a 95% confidence level for the values in the same dimension of feature vectors, then the values that are not in the interval are considered as the abnormal values and would be removed. The mean of the remaining values is calculated to replace the value in this dimension of the centroid. The same method would be used for all dimensions of the feature vector. Then, the improved centroids can be obtained after all clusters are processed. The improved centroids can be used to classify wood images in the online classification.

Image Filtering

29In the online classification, the abnormal wooden boards have to be filtered out to ensure the quality of products. Thus, the image filtering algorithm is proposed to filter out the abnormal wood boards in the online classification.

30We firstly use the improved centroids obtained through the centroid improvement algorithm to calculate the distances between the extracted feature vectors and the improved centroid for each cluster. Then, the confidence interval for distances at a 95% confidence level is calculated, and the distance threshold can be derived by the upper bound of the interval.

31In the online classification, when the distance between the image and its centroid is greater than the distance threshold, the new wooden board will be assigned to the abnormal class.

Experiments

32In the experiments, two sets of images are obtained from the testbed separately. The first set contains 15,000 images, which are used for the offline training. The second set, which contains 1000 images, is used in the online classification to evaluate the performance of the proposed mechanism.

33There are four parts of the experiments. At first, wood color distributions in both the HSV and RGB color spaces are studied. Secondly, we test the performance of the classification mechanism using different numbers of clusters and bins. Finally, we study the impact of the abnormal wooden boards processing. The details are given as follows.

Wood Color Distribution

34We firstly evaluate the intervals to describe the wood color distribution in the HSV and RGB color space. Based on the 15,000 obtained wood images, Figure 8 shows the numbers of pixels with each value in the H, S, and V channels, respectively. We calculate the confidence intervals for pixel values at a 95% confidence level, which are [9,22] in the H channel, [59,131] in the S channel, and [134, 219] in the V channel, respectively. According to these intervals, any irrelevant color whose pixel values are not in these intervals can be removed in the process of image preprocessing.

35In the RGB color space, the numbers of pixels with each value in the R, G, and B channel are calculated, respectively, as shown in Figure 9. Similarly, the confidence intervals at a 95% confidence level for pixel values in the three channels are calculated, which are [134,218], [105,185], and [73, 149], respectively. These intervals are used to construct the wood color subspace, in which the features of the wood color are extracted. It is important to note that the wood color subspace is only 3.08% of the whole RGB color space. Thus, the extracted features can represent wood colors more accurately.

36Crystals 2020, 10, x FOR PEER REVIEW 2 of 17

Introduction

37The convection flow of fluid occurs due to the temperature difference and heat transference rate. In particular, the mechanism of convection can be classified into three types, which are free, forced and mixed. Free or natural convection is solely caused by the buoyancy force, while forced convection happens because of the external sources such as pump and fan. Mixed convection occurs when those two convections occur simultaneously. Engineering fields contain many applications of free convection flow, for instance, automatic control system of electrical and electronic components [1]. It is found that the obtained findings from the stretching sheet flow of viscous fluid with free

Performance with Different Numbers of Clusters

38We firstly study the classification performance with different numbers of clusters. The numbers of clusters k are set as 20, 40, and 60, respectively. The number of bins is fixed at N b = 16. Three metrics are used for evaluating the clustering results. The mean squared distance is the average of the squared distances of samples to their closest cluster center. Silhouette scores [17] range from −1 to 1: a high silhouette score indicates that the object is well matched to its own cluster and distinct from neighboring clusters. The Calinski-Harabasz score of a clustering is in [0, +∞] and should be maximized [28].

39The results are given in Table 1. When we choose k to be 20, the mean squared distance is 0.00295, the global mean silhouette score is 0.155, and Calinski-Harabasz score is 1767. When there are 40 clusters, the three values are 0.00225, 0.146, and 1248, respectively. With k = 60, we obtain 0.00192, 0.143, and 1008. As the number of clusters increases from 20 to 40 and then to 60, the global mean silhouette score and Calinski-Harabasz score decrease, which indicates that the quality of the clustering result becomes poorer. On the other hand, the value of the mean squared distance becomes smaller, which indicates that the similarity between the objects in their own cluster becomes greater. According to the opposite results given above, it is hard to evaluate the performance of the color classification of wooden boards simply based on traditional clustering metrics. To solve this problem, we propose a new metric to evaluate the accuracy of color classification manually. We design software to display the test image and the representative image simultaneously. The representative image of each cluster is determined by the image in the cluster that is closest to its centroid. Then, the volunteers are asked to filter the images that are clearly different from the representative image. The definition of the proposed classification accuracy is the percentage of images that are not filtered by the volunteers.

40In this experiment, one-thousand images are classified by the clustering result with different numbers of clusters, respectively. Five volunteers, which consist of three experts (A, B, and C) and two students (D and E), are asked to judge the classification results. Table 2 shows the classification accuracy determined by the volunteers. The average classification accuracies of the proposed mechanism with 20, 40, and 60 clusters are 91.8%, 94.3%, and 96.8%, respectively, which indicates that the classification accuracy increases as the number of clusters grows. It is important to note that the classification accuracy with the same number of clusters is obviously different among different volunteers. This verifies the difficulty in classifying wood color manually. On the other hand, it is obvious that the classification accuracy determined by the students is higher than that by the experts. This indicates that the untrained volunteers have difficulty discerning the color differences among some wooden boards. Furthermore, we compare the images filtered by the three experts. For each pair of experts, the numbers of images filtered by both experts are counted. The results are reported in Table 3. With k = 20, the number is 41, 34, and 25, respectively. Compared with the result given in Table 2, the same selected images are fewer than the total number of selected images for each judgment result, which indicates that the experts have different perspectives on comparing the color similarity of wooden boards. This proves that the accuracy of manual classification can hardly be guaranteed; thus, the supervised machine learning algorithms cannot be used in this scenario.

Performance with Different Numbers of Bins

41This section studies the classification accuracy with different numbers of bins N b . The number of bins is chosen to be 8, 16, and 32, respectively, and the number of cluster is set as k = 20.

42There are 1000 images classified by the clustering result with different N b , respectively. Five volunteers are asked to judge the classification results. The classification accuracies with different values of N b are given in Table 4. The average classification accuracies of the proposed mechanism with N b = 8, 16, and 32 are 88.5%, 91.8%, and 88.7%, respectively. The results of the average classification accuracy indicate that the average classification accuracy increases with N b increasing from eight to 16, while the average classification accuracy decreases with N b increasing from 16 to 32. Considering the results given above and the computational complexity in the offline clustering, the number of bins is recommended to be set as 16 for the color classification of wooden boards.

43Moreover, the classification accuracies with N b = 8 determined by experts indicate that the classification mechanism achieves poor performance in this scenario, while it performs better from the perspective of students. It verifies that the manual classification of wooden boards by color is unstable among operators with different experience.

Effect of Abnormal Wooden Boards' Processing

44In this section, we evaluate the performance of the color classification mechanism with abnormal wooden boards' processing. The number of bins N b is set as 16, and the number of cluster is fixed at k = 40.

45The clustering result with N b = 16 and k = 40 is firstly used to complete centroids' improvement and to find a distance threshold used for image filtering. For each cluster, we calculate the confidence intervals at a 95% confidence level for the values in each dimension of the feature vectors. For each dimension, the values that are not in the intervals would be removed. The mean of the remaining values in each dimension is calculated to derive the improved centroid. After getting the new centroids, we calculate the distances between feature vectors and their centroids according to the clustering result. Then, the confidence interval at a 95% confidence level for these distances is calculated, which is [−0.0012, 0.0062]. The upper bound 0.0062 is considered as the distance threshold.

46Then, we use the improved centroids to classify 1000 images of wooden boards. Compared with the basic mechanism, there are 32 wood images transferred to other clusters. The mean squared distance, the global mean silhouette score, and the Calinski-Harabasz score are calculated for comparison. As reported in Table 5, the mean squared distance, the global mean silhouette score, and the Calinski-Harabasz score are 0.002557, 0.1265, and 84.43, respectively, in the basic mechanism. With the improved centroids used for classification, they are 0.002556, 0.1273, and 84.67. The mean squared distance decreases, and the global mean silhouette score and the Calinski-Harabasz score become greater. This verifies the effectiveness of the centroid improvement. Then, we study the effect of the improved centroids and image filtering on the classification accuracy. Using the improved centroids and the distance threshold 0.0062 in the classification, there are 54 wood images filtered out from 1000 images. Five volunteers are asked to process 1000 images, which have been classified by the improved centroids. The classification accuracies with different classification methods are given in Table 6.

47With the basic mechanism for color classification, the average classification accuracy is 94.3%. For comparison, the average classification accuracy with improved centroids is 96.0%. When 54 abnormal wood images are filtered by the image filtering algorithm, the classification accuracy reaches up to 96.9% on average. These results prove the effectiveness of centroid improvement and image filtering.

48Finally, we study the number of images that are filtered by volunteers and the image filtering algorithm simultaneously. The results are given in Figure 10. It is clear to see that the number of images increases with the reduction of the distance threshold. This result proves the effectiveness of the image filtering algorithm. Nevertheless, some images with short distances to their centroids are filtered by volunteers. We will study this problem in future works.

'LVWDQFH7KUHVKROG

491XPEHURI,PDJHV 9ROXQWHHU$ 9ROXQWHHU% 9ROXQWHHU& 9ROXQWHHU' 9ROXQWHHU(

Conclusions

50In this paper, we propose a mechanism for color classification of wooden boards. The mechanism includes image preprocessing, feature extraction, offline clustering, and online classification. The image preprocessing algorithm is used to subtract the background and stains on the surface of the wood. Then, the feature vector is extracted from the preprocessed image. In the offline clustering, the feature vector sets extracted from wood images are partitioned into different clusters by the K-means algorithm. In the online classification process, the clustering result is used as a classifier to classify the new board. Furthermore, to process the abnormal images of wooden boards, we propose an improved algorithm with centroid improvement and image filtering. The experimental results demonstrate the effectiveness of the proposed mechanism. They also prove that the clustering based mechanism is a reasonable solution for classifying the objects that can hardly be classified by human vision due to their color similarity.

51In future works, we will study how to improve the classification accuracy by clustering algorithms. New clustering algorithms will be used in the system to check their performance. For example, the G-means algorithm will be considered to process abnormal wooden boards and produce the clustering result simultaneously.

52Author Contributions: Conceptualization, Y.L., S.L. and Z.X.; data curation, Y.L., D.C., S.L. and X.L.; formal analysis, Y.L., S.L. and Z.X.; investigation, Y.L., D.C., S.L. and Y.Q.; methodology, Y.L., S.L. and Z.X.; software, Y.L., S.L. and J.Z.; writing, original draft, Y.L. and D.C.; writing, review and editing, Z.X. All authors read and agreed to the published version of the manuscript.

참고문헌 25건

  1. G-Means: A Clustering Algorithm for Intrusion Detection Lecture notes in computer science · Springer Science+Business Media · 2009 10.1007/978-3-642-02490-0_69
  2. Integrated defect detection and optimization for cross cutting of wooden boards European Journal of Operational Research · Elsevier BV · 1998 10.1016/s0377-2217(97)00181-1
  3. Classification of farmland images based on color features Journal of Visual Communication and Image Representation · Elsevier BV · 2015 10.1016/j.jvcir.2015.02.011
  4. Rock image classification using color features in Gabor space Journal of Electronic Imaging · SPIE · 2005 10.1117/1.2149872
  5. Content Based Color Image Classification using SVM 2011 10.1109/itng.2011.202
  6. A Novel 3-D Color Histogram Equalization Method With Uniform 1-D Gray Scale Histogram IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2010 10.1109/tip.2010.2068555
  7. Research on Wooden Board Classification Based on Color and Texture Features Jisuanji fangzhen · China Aerospace Science and Industry Corporation · 2008
  8. The Impact of Weather Condition on Radio-Based Distance Estimation: A Case Study in GSM Networks With Mobile Measurements IEEE Transactions on Vehicular Technology · Institute of Electrical and Electronics Engineers · 2015 10.1109/tvt.2015.2479591
  9. Channel State Reconstruction Using Multilevel Discrete Wavelet Transform for Improved Fingerprinting-Based Indoor Localization IEEE Sensors Journal · IEEE Sensors Council · 2016 10.1109/jsen.2016.2602840
  10. Hue preserving‐based approach for underwater colour image enhancement IET Image Processing · Institution of Engineering and Technology · 2017 10.1049/iet-ipr.2017.0359
  11. FaceME: Face-to-Machine Proximity Estimation Based on RSSI Difference for Mobile Industrial Human–Machine Interaction IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2018 10.1109/tii.2018.2829847
  12. Detection of Micro Solder Balls Using Active Thermography Technology and <italic>K</italic>-Means Algorithm IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2018 10.1109/tii.2018.2839614
  13. Approach of personnel location in roadway environment based on multi-sensor fusion and activity classification Computer Networks · Elsevier BV · 2018 10.1016/j.comnet.2018.10.022
  14. Single Image Dehazing Using Haze-Lines IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2018 10.1109/tpami.2018.2882478
  15. Classification of thermally treated wood using machine learning techniques Wood Science and Technology · Springer Science+Business Media · 2018 10.1007/s00226-018-1073-3
  16. Superpixel-Based Fast Fuzzy C-Means Clustering for Color Image Segmentation IEEE Transactions on Fuzzy Systems · Institute of Electrical and Electronics Engineers · 2018 10.1109/tfuzz.2018.2889018
  17. A Color Image Segmentation Method Based on Region Salient Color and Fuzzy C-Means Algorithm Circuits Systems and Signal Processing · Birkhäuser · 2019 10.1007/s00034-019-01126-w
  18. Galaxy morphological classification in deep-wide surveys via unsupervised machine learning Monthly Notices of the Royal Astronomical Society · Oxford University Press · 2019 10.1093/mnras/stz3006
  19. A Framework of Priority-Aware Packet Transmission Scheduling in Cluster-Based Industrial Wireless Sensor Networks IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2019 10.1109/tii.2019.2944980
  20. Identification and classification of materials using machine vision and machine learning in the context of industry 4.0 Journal of Intelligent Manufacturing · Springer Science+Business Media · 2019 10.1007/s10845-019-01508-6
  21. Identification of wood species by application of visible spectral reflectance. Wood Research · 2010
  22. Wood Strength Classification Based on RGB Color and Image Texture Using KNN Method 2019 10.1109/isitia.2019.8937239
  23. Color Space Transformation and Multi-Class Weighted Loss for Adhesive White Blood Cell Segmentation IEEE Access · Institute of Electrical and Electronics Engineers · 2020 10.1109/access.2020.2970485
  24. Recognizing Induced Emotions With Only One Feature: A Novel Color Histogram-Based System IEEE Access · Institute of Electrical and Electronics Engineers · 2020 10.1109/access.2020.2975174
  25. WOOD COLORIMETRY FOR THE CHARACTERIZATION OF AMAZONIAN TREE SPECIES: A SUBSIDY FOR A MORE EFFICIENT CLASSIFICATION CERNE · Federal University of Lavras · 2019 10.1590/01047760201925042650