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

A Novel Machine Vision System for the Inspection of Micro-Spray Nozzle

관련 엔지니어링 플라스틱 · (23) 컴파운드

기본 정보

저자
  1. Kuo-Yi Huang — Department of Bio-Industrial Mechatronics Engineering, National Chung Hsing University, Tai-Chung 402, Taiwan
  2. Yu-Ting Ye — Department of Mechatronic Engineering, Huafan University, New Taipei City 223, Taiwan.
DOI
10.3390/s150715326
저널
Sensors
발행년도
2015
발행기관
Multidisciplinary Digital Publishing Institute
피인용수
11
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.3390/s150715326
토픽
Surface Roughness and Optical Measurements
OpenAlex ID
W1563718313

평가 내용

관련도
관련
사업분야
엔지니어링 플라스틱 · (23) 컴파운드
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
LLM(gemma-4-26b-a4b-it) 평가로 '엔지니어링 플라스틱 > 컴파운드' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

In this study, we present an application of neural network and image processing techniques for detecting the defects of an internal micro-spray nozzle. The defect regions were segmented by Canny edge detection, a randomized algorithm for detecting circles and a circle inspection (CI) algorithm. The gray level co-occurrence matrix (GLCM) was further used to evaluate the texture features of the segmented region. These texture features (contrast, entropy, energy), color features (mean and variance of gray level) and geometric features (distance variance, mean diameter and diameter ratio) were used in the classification procedures. A back-propagation neural network classifier was employed to detect the defects of micro-spray nozzles. The methodology presented herein effectively works for detecting micro-spray nozzle defects to an accuracy of 90.71%.

본문 25,915자

본문 펼치기
_Sensors_ 2015, _15_, 15326-15338; doi:10.3390/s150715326 _Article_ <mark>OPEN ACCESS</mark> # _sensors_ ISSN 1424-8220 www.mdpi.com/journal/sensors ## A Novel Machine Vision System for the Inspection of Micro-Spray Nozzle Kuo-Yi Huang <sup>1,</sup> * and Yu-Ting Ye <sup>2</sup> 1 Department of Bio-Industrial Mechatronics Engineering, National Chung Hsing University, Tai-Chung 402, Taiwan 2 Department of Mechatronic Engineering, Huafan University, New Taipei City 223, Taiwan; E-Mail: alexyeh1120@hotmail.com * Author to whom correspondence should be addressed; E-Mail: kuoyi@nchu.edu.tw; Tel.: +886-4-2285-2463; Fax: +886-4-2285-9351. Academic Editor: Vittorio M.N. Passaro _Received: 14 May 2015 / Accepted: 25 June 2015 / Published: 29 June 2015_ Abstract: In this study, we present an application of neural network and image processing techniques for detecting the defects of an internal micro-spray nozzle. The defect regions were segmented by Canny edge detection, a randomized algorithm for detecting circles and a circle inspection (CI) algorithm. The gray level co-occurrence matrix (GLCM) was further used to evaluate the texture features of the segmented region. These texture features (contrast, entropy, energy), color features (mean and variance of gray level) and geometric features (distance variance, mean diameter and diameter ratio) were used in the classification procedures. A back-propagation neural network classifier was employed to detect the defects of micro-spray nozzles. The methodology presented herein effectively works for detecting micro-spray nozzle defects to an accuracy of 90.71%. Keywords: micro-spray nozzle; image processing; neural network 1. Introduction Nozzles are a common mechanical component and are widely used in agriculture, manufacturing and the service industry. A micro-spray nozzle is an important component in an agricultural sprayer, which is used to spray water, pesticides and nutrients. Real-time flow uniformity depends on the _Sensors_ 2015, _15_ 15327 internal quality of the micro-spray nozzle. Unstable flow will be created because of internal defects. The price and quality of micro-spray nozzles are down due to such defects. The internal defects of micro-spray nozzles usually result during cutting procedures with a CNC (computer numerical control) machine. Chang and Yu [1] proposed a triangular-pitch shell-and-tube spray evaporator featuring an interior spray technique. The dry-out phenomenon is prevented, and the heat transfer performance is improved in their study. In addition, micro-spray nozzles have to be sorted manually, because the surface of the micro-spray nozzle is heterogeneous, which makes auto-detection very difficult. Image processing techniques are a powerful method and are widely used to inspect industrial products. Chen _et al._ [2] designed an automatic damage detection system of an engineering ceramic surface with image processing techniques, pattern recognition and machine vision. Paniagua _et al._ [3] proposed a neuro-fuzzy classification system to inspect the quality of industrial cork samples by incorporating techniques based on Gabor filtering techniques and neuro-fuzzy computing with three wavelet-based texture quality features. A microscopic vision system [4] has been employed to measure the surface roughness of the micro-heterogeneous texture in a deep hole, by virtue of the frequency domain features of microscopic images and a back-propagation artificial neural network optimized by the genetic algorithm. Indeed, neural networks, geometric, color and texture features were often employed in the classification of plants and crops [5–7]. Shen _et al._ [8] used the Otsu method, HSI color system and Sobel operator to extract disease spot regions and calculate leaf areas. Park _et al._ [9] employed an unsupervised segmentation algorithm by Gaussian mixture models to segment color image regions. However, to the best of the authors’ knowledge, there is no literature on the inspection of the internal quality of micro-spray nozzles using image processing techniques. Some research [10–12] talked about the determination of drop sizes and shapes for spray nozzles. The drop size distribution of an irrigation spray nozzle was determined using image processing techniques, and the relationship between drop size distribution, operating pressure and nozzle size were discussed [10]. The droplet shape and size of a diesel spray had been detected using wavelet transform, a Gaussian filter and sub-pixel contour extraction [11]. The gray level gradient, boundary curvature detection, the Hough transform and the convex-hull method were employed to count and size particles in the field of sprays [12]. Currently, the internal damages of micro-spray nozzles are manually inspected (sorted) using stereomicroscopes. The procedures are laborious and ineffective. The labor cost was about 80% of the total cost for micro-spray nozzle products. The detection process has to be automated to reduce the total cost. Thus, this paper aims to develop a machine vision system to correctly and automatically inspect the micro-spray nozzle. The specific goals are: (1) to develop an algorithm to segment the defect region; (2) to extract the gray level and texture features; and (3) to classify different grades using the aforementioned features by a classifier. In summary, we develop a machine vision system to correctly and automatically inspect and classify micro-spray nozzles. The system includes an extraction algorithm of defect regions, a feature estimation algorithm for defect regions and a classifier for the quality of micro-spray nozzles. _Sensors_ 2015, _15_ 15328 2. Materials and Methods _2.1. Micro-Spray Nozzle Structure and Defects_ Micro-spray nozzles (shown in Figure 1) are provided by Natural Fog Multi-Tech Precision Industry Corporation Ltd. (Tai-Chung, Taiwan). The structure profile of the micro-spray nozzle is shown in Figure 2. The outlet diameter of the micro-spray nozzle is 0.1 mm. There are two inclined annular-planes, A and B (as shown in Figure 2), on the inside surface of the micro-spray nozzle. Figure 3 depicts the circle textures in the inner image of micro-spray nozzles after CNC machine manufacturing. The defects of micro-spray nozzles were made by the CNC machine during the manufacturing procedures. The defects appear on the outlet and inclined planes A and B. Four possible defects, which include the outlet shape and deckle edge, pellet and stripe metal filings on inclined planes, are shown in Figure 3. The purpose of this study is to inspect the defects of micro-spray nozzles automatically using a machine vision system. Micro-spray nozzle Figure 1. Micro-spray nozzle. <u>47</u> <u>25</u> Unit: mm 98.8 30 <u>30°</u> 70° <u>0.1</u> 95 Figure 2. The profile of the micro-spray nozzle. _Sensors_ 2015, _15_ 15329 ( a ) ( b ) ( c ) ( d ) Figure 3. Four possible defects. ( a ) Small outlet; ( b ) Deckle edge of outlet; ( c ) Pellet metal fillings; ( d ) Strip metal fillings. _2.2. Hardware System_ The machine vision system implemented to inspect the inner images of micro-spray nozzles is illustrated in Figure 4. This system includes an IEEE 1394 CCD color camera (DFK-31BF03, Imaging Source Inc., Bremen, Germany), a stereomicroscope (Stemi 2000-C, Zeiss Inc., Oberkochen, Germany), a front illuminating white light LED with a diffuse filter, a fixed table and a personal computer. Open Source Computer Vision Library (OpenCV1.0, Intel Corporation) and Visual C++ 6.0 programming are linked to the programs to grab images of 1024 × 768 pixels. (a) Configuration diagram (b) Implemented prototype CCD Camera Stereomicroscopes Light source Micro-spray nozzle Fixed table Light source Figure 4. Illustration of the machine vision system for micro-spray nozzle defect inspection. _Sensors_ 2015, _15_ 15330 _2.3. Region Segmentation and Features Extraction_ Algorithms that include the estimation of the outlet’s geometric feature and segmentation of the region of interest (ROI), a circle inspection (CI) algorithm and a classifier are proposed to detect micro-spray nozzle defects. Details of the proposed algorithms are described as follows. 2.3.1. Outlet Extraction Segmentation of the ROI image is an essential procedure once the features of the micro-spray nozzle have been extracted. Firstly, the outlet image (as shown in Figure 5) is segmented using Otsu’s auto-thresholding method and hole-filling operations [13]. By assuming that the binary image of the outlet is _f_ ( _x_ _i_, <sup>_y_</sup> _i_ ) (where _i_ = 1, 2, …, _m_ and the total number of pixels is _m_ ), the centroid is obtained as _m_ _m_ ## =  xi / m, _i_ =1 ## Y =  yi / m _i_ =1 _m_ ## =  yi / m . The covariance matrix is defined as _i_ =1 _m_ _yi_ / 1 ## C = (  U Ui iT ) / m − MM T _i_ =1 _m_ ## = (  U Ui iT ) / m − MM T, in which _i_ =1 ## (  U Ui iT ) / _i_ =1 _m_ ## X =  xi / m _i_ =1 _xi_ / 1 _Ui_ is the _i_ -th coordinate vector of the image and ## M = (  Ui ) / m _i_ =1 _m_ ## = (  Ui ) / m is the mean vector. T indicates vector _i_ =1 ## (  Ui ) / _i_ =1 _m_ transposition. A pair of orthogonal eigenvectors of the covariance matrix is then calculated. The geometric features—principle axis length ( _Lp_ ), secondary axis ( _Ls_ ), centroid, area ( _A_ ), perimeter ( _P_ ), compactness ( _P_ <sup>2</sup> /4π _A_ ), diameter ratio (min./max. diameter, _Dmm_ ) and mean diameter ( _Dmean_ ) of the outlet—are computed using eigenvectors. Secondly, two geometric features—diameter ratio and mean diameter—are employed in the micro-spray nozzle classification process. ( a ) ( b ) Figure 5. Outlet image segmentation. ( a ) Orignal image; ( b ) Outlet image. The ROI of inclined annular-planes is the internal image of the micro-spray nozzle, as shown in Figure 6. Segmenting the ROI effectively is an important procedure once the defects have been detected. Firstly, Canny edge detection [13], a randomized algorithm for detecting circles [14], hole-filling operation and the AND logic operator are used to segment the ROI of the inclined annular-planes. _Sensors_ 2015, _15_ 15331 ROI Figure 6. ROI diagram. The procedures of extraction are as follows. Step 1. Canny edge detection for the original image (Figure 7a), shown as Figure 7b. Step 2. Randomized algorithm for detecting circles, shown as Figure 7c. Step 3. The ring region is filled using a hole-filling operation, shown as Figure 7d. Step 4. The ROI (shown as Figure 7e) is segmented using the AND logic operator for Figure 7a,d. Step 5. Geometric features’ computation. (a) (b) (e) Figure 7. ( a ) Original image; ( b ) after Canny edge detection; ( c ) randomized algorithm for detecting circles; ( d ) the image after hole-filling operation; ( e ) ROI image with the AND logic operator for (a,d). _Sensors_ 2015, _15_ 15332 2.3.2. Possible Defect Segmentation Segmenting defect regions is an important procedure before possible defects (including the deckle edge, pellet and stripe metal fillings) are detected and classified. A prior experiment proceeded as follows. Firstly, an inspection circle is used to find gray levels with scanning resolution in a pixel, as shown in Figure 8. There are different distribution forms of gray levels in different circles, as illustrated in Figure 9. However, the difference between defects and non-defects is difficult to distinguish using the thresholding method [13]. Therefore, a novel method, the circle inspection algorithm (CI algorithm), is proposed for defect region segmentation of micro-spray nozzles in this study. Scanning direction CRmax Circle 1 CRmin (xc,yc) Circle 2 Figure 8. The scanning direction of the circle inspection for the ROI. 250 200 Circle 1 150 100 50 Circle 2 0 0 50 100 150 200 250 300 350 Position (Degree) Figure 9. The distribution of gray levels of the circle inspection. The CI algorithm is effectively executed to extract defect regions for internal images of micro-spray nozzles according to the differences of the gray level gradient. The CI algorithm is described as follows: _Sensors_ 2015, _15_ 15333 Step 1. The distribution of the gray level on the image is estimated along the circle _CRj_ (with scanning resolution in a pixel); ( _xc_, _yc_ ) is the center, and _Rmin_ < _Rj_ < _Rmax_ . Step 2. Compute the gray level gradient ( _Gi_ ) of the circle, as demonstrated in Figure 10 on Circle 1. <u>1</u>  _g_ ( _i_ ) - _g_ ( _i_ - _n_ )   _g_ ( _i_ ) - _g_ ( _i_ + _n_ )  =   +   2  _n_   _n_  <u>1</u>  _g_ ( _i_ ) - _g_ ( _i_ - _n_ )   _g_ ( _i_ ) - _g_ ( _i_ + _n_ _Gi_ =   +  2  _n_   _n_ <u>1</u>  _g_ ( _i_ ) - _g_ ( _i_ - _n_ )   _g_ ( _i_ ) - _g_ ( _i_ + _n_ ) _i_ =   +  2  _n_   _n_ = <u>1</u> 2 _g_ ( _i_ ) - _g_ ( _i_ - _n_ ) - _g_ ( _i_ + _n_ ) (1) 2 _n_ where _g_ ( _i_ ) is the gray level of the circle, _i_ is the position of the circle and _n_ is the distance. Step 3. Segment the possible defect regions ( _PDR_ ). ####  If Gi ≥ T, then g ( i ) ∈  ####  If Gi < T, then g ( i ) ∈ #### If Gi ≥ T, then g ( i ) ∈ PDR #### g ( i ) ( i ) ∈ _i_ , #### If Gi < T, then g ( i ) ∈ Normal (2) _i_ , where _T_ is a threshold value. 220 200 180 160 140 120 100 80 160 170 180 190 200 210 220 230 240 250 Position Figure 10. Parameters of gray level gradient computation. _2.4. Classification: Classifier_ Geometric, texture and color features analysis have been widely employed in classification. With proper feature selections, the design of a classifier can be greatly simplified. This study adopts the geometric feature (mean diameter, diameter ratio, distance variance), the color features (mean gray level, variance of gray level) and texture features (contrast, energy and entropy from the gray level co-occurrence matrix (GLCMs) [15]) to classify defects and non-defects using a back propagation neural network [16] (BPNN, as shown in Figure 11). Mathematical formulations of these features are given in Table 1. _Sensors_ 2015, _15_ 15334 Outlet Features Defect NonDefect Output Layer Segmented Region Features _<mark>W</mark>_ _IH_ _<mark>W</mark>_ _HO_ Hidden Layer Input Layer Figure 11. The structure of the back propagation neural network (BPNN) classifier. Table 1. Mathematical formulations of the features. _N_ ### Distance Variance Variance of 1  i ( D ( xi, yi ) − D ) _N_ ### 1  i ( D ( xi, yi ) − D _<u>N</u>_ Mean gray level <u>�</u> = <u>�</u> <sup><u>1</u></sup> <sup>�</sup> <u>�����(�, y)</u> <u>���</u> <u>1</u> _N_ ### Gray level variance  i ( f ( xi, yi ) − f ) _<u>N</u>_ Contrast (orientations 45°, 90°, 135° and 180°) ( _i_ - _j_ )2 _p_ 2 (, _i_ _j_, _d_ ###  _i_ _j_ ( _i_ - _j_ )2 _p_ 2 (, _i_ _j_, _d_,θ) _p_ (, _i_ _j_, _d_,θ)log( _p_ ( _i_, _j_, _d_ ### −  _p_ (, _i_ _j_, _d_,θ)log( _p_ ( _i_, _j_, _d_,θ)) ### Entropy (orientations 45°, 90°, 135° and 180°) −  _i_ _j_ Energy (orientations 45°, 90°, 135° and 180°) _p_ 2 (, _i_ _j_, _d_ ###  _i_ _j_ 2 (, _i_ _j_, _d_,θ) Note: _D_ ( _xi_, _yi_ ) is the distance between location ( _xi_, _yi_ ) and the outlet center, _p_ ( _i_, _j_, _d_, θ) represents the relative frequency of a gray level co-occurrence matrix (GLCM) of an image _g_ ( _xi_, _yi_ ), where _i_ is the gray level at location ( _x_, _y_ ) and _j_ represents the gray level of a neighboring pixel at a distance _d_ and an orientation from location ( _xi_, _yi_ ). The GLCM of distance 1 pixel and orientations 45°, 90°, 135° and 180° are used for the isolated image. In this study, the BPNN classifier consists of three layers: an input layer, a hidden layer and an output layer (as shown in Figure 11). The input layer has 17 nodes, which are related to 3 geometric features, 2 color features and 12 texture features, normalized between 0 and 1. The output layer is made of nodes, related to two categories: defect and non-defect. Initially, the number of nodes _nH_ in the hidden layer is calculated using the following formula: _nH_ = 0.5( _nI_ + _nO_ ) + 2 (3) where _nI_ is the number of input nodes and _no_ is the number of output nodes. The objective of the learning process is to find a relation in a pattern that was made by the features of each segmented _Sensors_ 2015, _15_ 15335 region. The BPNN is trained, and the weights are changed until the error convergence criterion approaches 0.1. The error signal is given by: �(�) = �(��(�) −��(�)) <sup>�</sup> (4) ��� where _dk_ ( _t_ ) is the desired response for neuron _k_ ( _k_ = 1~2) and _yk_ ( _t_ ) is the output signal of neuron _k_ at iteration _t_ . _2.5. Overall Descriptions_ The overall steps involved in the defect region segmentation and classification are shown in Figure 12. The algorithm for the classification of defects included image processing techniques, the CI algorithm and the BPNN classifier, are fully described in the previous two sections. The program employed for detecting and classifying the defects is written in Microsoft Visual C++ 6.0 and OpenCV 1.0. Possible Defect Region Image ROI Segmentation Segmentation and Compute Features BPNN Classifier Defects Detection Randomized Detecting Circle AlgorithmCanny Edge Detection, CI Algorithm Figure 12. Segmentation and classification steps. 3. Results and Discussion In this paper, a defect detection (DD) software for a micro-spray nozzle is developed using image processing techniques and the CI algorithm (written in Visual C++ 6.0 with OpenCV 1.0), as outlined in the first few steps shown in Figure 12. The algorithm is summarized as follows: Step 1. Two geometric features of the outlet are computed. Step 2. The ROIs are segmented using Canny edge detection, a randomized algorithm for detecting circles, hole-filling and the AND logic operators. Step 3. Possible defect regions are segmented by the CI algorithm. Step 4. Estimate 15 features of the segmented regions. Step 5. Establish and test the BPNN classifier to classify defects and non-defects. The functions of DD include file operations (acquire, load and save images) and image analysis operations (binary operator, hole-filling, remove noises using closing, opening and Canny edge). The geometrics of the outlet, texture and color features of the segmented region are obtained, and defects can be detected by the DD computation accurately and rapidly. The difference between defects and non-defect regions is not obvious in the original image of a micro-spray nozzle, as shown in Figure 13a. Possible defect regions, including defects and non-defects, are segmented using the CI algorithm (parameters _n_ = 6, _T_ = 11 are selected after some experimentations) _Sensors_ 2015, _15_ 15336 and image processing techniques (such as hole-filling, erosion, dilation, opening, closing and Canny edge operators), as indicated in Figure 13b. Figure 13c results using the AND logic operator for Figure 13a,b. Hence, the defects of micro-spray nozzles (Figure 13d) are detected according to the BPNN classification. In order to establish the BPNN classifier, 698 samples (with 565 non-defects and 133 defects) are randomly sampled. Eleven hidden nodes are obtained by Equation (3) according to 17 input features, and two output categories. The BPNN classifier is implemented using functions of MATLAB 8.0. For each configuration, the training sample set is randomly selected from all samples until the BPNN convergence is achieved. Over-fitting often occurs when the training set contains some incorrect samples in the BPNN. As the grades of micro-spray nozzles in training samples are already known before the training process, over-fitting is unlikely to occur. To ensure that the influence of over-fitting is trivial during the training process, the maximum number of iterations is set to 100,000. Further studies showed that the same inspection effect is obtained when the error rate convergence criterion is smaller than 0.1. Randomly-sampled images (1486 non-defects and 118 defects) are used to test the system. The accuracy of the classification is 90.71%. The accuracy of outlet shape and strip fillings is 100%. However, a few deckle edges and pellet fillings of the images can not be detected using the proposed algorithms, examples of classification failure and explanations are shown in Table 2. (c) (d) Figure 13. ( a ) Original image; ( b ) segmented binary image after the CI algorithm; ( c ) segmented image after the CI algorithm; ( d ) classification result. In this study, the proposed system can detect and classify visible defects with a CCD camera accurately and efficiently. In the future, we hope that the detection and classification system can be applied to an auto-inspection system for micro-spray nozzles. _Sensors_ 2015, _15_ 15337 Table 2. Examples of classification failure and explanations. <u>Original Image</u> <u>ROI</u> <u>Explanation</u> Deckle edges are removed after Case 1: Deckle edge ROI segmentation operator. Case 2: Deckle edge Case 3: Pellet filings Deckle edges cannot be segmented by the CI algorithm because they are not obvious. Pellet fillings cannot be segmented by the CI algorithm because they are not obvious. Case 4: Dark image The image is blurred and dark. 4. Conclusions Real-time flow uniformity depends on the internal quality of the micro-spray nozzle, and unstable flow will result because of internal defects. A novel inspection system for internal defects of micro-spray nozzles is developed in this study. The image processing techniques, Canny edge detection, a randomized algorithm for detecting circles, the circle inspection algorithm and the BPNN classifier are used to establish the micro-spray nozzle detection system. Possible defects can be segmented efficiently using the CI algorithm and image processing techniques. Geometric, color and texture features of the defects are obtained to establish a BPNN classifier. Testing results show that the defects of the micro-spray nozzles can be detected efficiently using the proposed system. In a future study, we aim to refine the inspection algorithm in order to increase the inspection accuracy for the production line of micro-spay nozzles. Author Contributions All authors have made significant contributions to the paper. Huang K.Y. initiated the idea to develop the inspection system of micro-spray nozzles. Huang K.Y. and Ye Y.T. developed the inspection algorithms and the classifier together. Ye Y.T. wrote programs and performed the experiment. Huang, K.Y. contributed to the paper organization and technical writing to final version. Conflicts of Interest The authors declare no conflict of interest. _Sensors_ 2015, _15_ 15338 References 1. Chang, T.B.;Yu, L.Y. Optimal nozzle spray cone angle for triangular-pitch shell-and-tube interior spray evaporator. _Int. J. Heat Mass Transf._ 2015, _85_, 463–472. 2. Chen, S.; Lin, B.; Han, X.; Liang, X. Automated inspection of engineering ceramic grinding surface damage based on image recognition. _Int. J. Adv. Manuf. Technol._ 2013, _66_, 431–443. 3. Paniagua, B.; Vega-Rodríguez, M.A.; Gómez-Pulido, J.A.; Sánchez-Pérez, J.M. Automatic texture characterization using Gabor filters and neurofuzzy computing _. Int. J. Adv. Manuf. Technol._ 2011, _52_, 15–32. 4. Liu, W.; Tu, X.; Jia, Z.; Wang, W.; Ma, X.; Bi, X. An improved surface roughness measurement method for micro-heterogeneous texture in deep hole based on gray-level co-occurrence matrix and support vector machine _. Int. J. Adv. Manuf. Technol._ 2013, _69_, 583–593. 5. López-García, F.; Andreu-García, G.; Blasco, J.; Aleixos, N.; Valiente, J. Automatic detection of skin defects in citrus fruits using a multivariate image analysis approach. _Comput. Electron. Agric._ 2010, _71_, 189–197. 6. Kavdir, I. Discrimination of sunflower, weed and soil by artificial neural networks. _Comput. Electron. Agric._ 2004, _44_, 153–160. 7. Camargo, A.; Smith, J.S. An image-processing based algorithm to automatically identify plant disease visual symptoms. _Biosyst. Eng._ 2009, _102_, 9–21. 8. Shen, W.; Wu, Y.; Chen, Z.; Wei, H. Grading method of leaf spot disease based on image processing. In Proceedings of the 2008 International Conference on Computer Science and Software Engineering, Wuhan, China,12–14 December 2008; pp. 491–494. 9. Park, J.H.; Lee, G.S.; Park, S.Y. Color image segmentation using adaptive mean shift and statistical model-based methods. _Comput. Math. Appl._ 2009, _57_, 970–980. 10. Sudheera, K.P.; Pandab, R.K. Digital image processing for determining drop sizes from irrigation spray nozzles. _Agric. Water Manag._ 2000, _45_, 159–167. 11. Blaisot, J.B.; Yon, J. Droplet size and morphology characterization for dense sprays by image processing: Application to the diesel spray. _Exp. Fluids_ 2005, _39_, 997–994. 12. Lee, S.Y.; Kim, Y.D. Sizing of spray particles using image processing technique. _KSME Int. J._ 2004, _18_, 879–894. 13. Gonzalez, R.C.; Woods, R.E. _Digital Image Processing_, 3rd ed.; Prentice Hall: Upper Saddle River, NJ, USA, 2002. 14. Chen, T.C.; Chung, K.L. An efficient randomized algorithm for detecting circles. _CVGIP Comput._ _Vis. Image Underst._ 2001, _83_, 172–191. 15. Haralick, R.M.; Shanmugam, K.; Dinstein, I. Textual features for image classification. _IEEE Trans._ _Syst. Man Cybern._ 1973, _3_, 610–621. 16. Fausett, L. _Fundamentals of Neural Networks_ : _Architectures_, _Algorithms_, _and Applications_ ; Prentice-Hall: Upper Saddle River, NJ, USA, 1994. © 2015 by the authors; licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution license (http://creativecommons.org/licenses/by/4.0/).

섹션 본문 38문단 · 15,237자

(제목 없음)

1In this study, we present an application of neural network and image processing techniques for detecting the defects of an internal micro-spray nozzle. The defect regions were segmented by Canny edge detection, a randomized algorithm for detecting circles and a circle inspection (CI) algorithm. The gray level co-occurrence matrix (GLCM) was further used to evaluate the texture features of the segmented region. These texture features (contrast, entropy, energy), color features (mean and variance of gray level) and geometric features (distance variance, mean diameter and diameter ratio) were used in the classification procedures. A back-propagation neural network classifier was employed to detect the defects of micro-spray nozzles. The methodology presented herein effectively works for detecting micro-spray nozzle defects to an accuracy of 90.71%.

Introduction

2Nozzles are a common mechanical component and are widely used in agriculture, manufacturing and the service industry. A micro-spray nozzle is an important component in an agricultural sprayer, which is used to spray water, pesticides and nutrients. Real-time flow uniformity depends on the OPEN ACCESS internal quality of the micro-spray nozzle. Unstable flow will be created because of internal defects. The price and quality of micro-spray nozzles are down due to such defects. The internal defects of micro-spray nozzles usually result during cutting procedures with a CNC (computer numerical control) machine. Chang and Yu [1] proposed a triangular-pitch shell-and-tube spray evaporator featuring an interior spray technique. The dry-out phenomenon is prevented, and the heat transfer performance is improved in their study. In addition, micro-spray nozzles have to be sorted manually, because the surface of the micro-spray nozzle is heterogeneous, which makes auto-detection very difficult.

3Image processing techniques are a powerful method and are widely used to inspect industrial products. Chen et al. [2] designed an automatic damage detection system of an engineering ceramic surface with image processing techniques, pattern recognition and machine vision. Paniagua et al. [3] proposed a neuro-fuzzy classification system to inspect the quality of industrial cork samples by incorporating techniques based on Gabor filtering techniques and neuro-fuzzy computing with three wavelet-based texture quality features. A microscopic vision system [4] has been employed to measure the surface roughness of the micro-heterogeneous texture in a deep hole, by virtue of the frequency domain features of microscopic images and a back-propagation artificial neural network optimized by the genetic algorithm. Indeed, neural networks, geometric, color and texture features were often employed in the classification of plants and crops [5][6][7]. Shen et al. [8] used the Otsu method, HSI color system and Sobel operator to extract disease spot regions and calculate leaf areas. Park et al. [9] employed an unsupervised segmentation algorithm by Gaussian mixture models to segment color image regions.

4However, to the best of the authors' knowledge, there is no literature on the inspection of the internal quality of micro-spray nozzles using image processing techniques. Some research [10][11][12] talked about the determination of drop sizes and shapes for spray nozzles. The drop size distribution of an irrigation spray nozzle was determined using image processing techniques, and the relationship between drop size distribution, operating pressure and nozzle size were discussed [10]. The droplet shape and size of a diesel spray had been detected using wavelet transform, a Gaussian filter and sub-pixel contour extraction [11]. The gray level gradient, boundary curvature detection, the Hough transform and the convex-hull method were employed to count and size particles in the field of sprays [12].

5Currently, the internal damages of micro-spray nozzles are manually inspected (sorted) using stereomicroscopes. The procedures are laborious and ineffective. The labor cost was about 80% of the total cost for micro-spray nozzle products. The detection process has to be automated to reduce the total cost. Thus, this paper aims to develop a machine vision system to correctly and automatically inspect the micro-spray nozzle. The specific goals are: (1) to develop an algorithm to segment the defect region; (2) to extract the gray level and texture features; and (3) to classify different grades using the aforementioned features by a classifier.

6In summary, we develop a machine vision system to correctly and automatically inspect and classify micro-spray nozzles. The system includes an extraction algorithm of defect regions, a feature estimation algorithm for defect regions and a classifier for the quality of micro-spray nozzles.

Micro-Spray Nozzle Structure and Defects

7Micro-spray nozzles (shown in Figure 1) are provided by Natural Fog Multi-Tech Precision Industry Corporation Ltd. (Tai-Chung, Taiwan). The structure profile of the micro-spray nozzle is shown in Figure 2. The outlet diameter of the micro-spray nozzle is 0.1 mm. There are two inclined annular-planes, A and B (as shown in Figure 2), on the inside surface of the micro-spray nozzle. Figure 3 depicts the circle textures in the inner image of micro-spray nozzles after CNC machine manufacturing. The defects of micro-spray nozzles were made by the CNC machine during the manufacturing procedures. The defects appear on the outlet and inclined planes A and B. Four possible defects, which include the outlet shape and deckle edge, pellet and stripe metal filings on inclined planes, are shown in Figure 3. The purpose of this study is to inspect the defects of micro-spray nozzles automatically using a machine vision system.

Hardware System

8The machine vision system implemented to inspect the inner images of micro-spray nozzles is illustrated in Figure 4. This system includes an IEEE 1394 CCD color camera (DFK-31BF03, Imaging Source Inc., Bremen, Germany), a stereomicroscope (Stemi 2000-C, Zeiss Inc., Oberkochen, Germany), a front illuminating white light LED with a diffuse filter, a fixed table and a personal computer. Open Source Computer Vision Library (OpenCV1.0, Intel Corporation) and Visual C++ 6.0 programming are linked to the programs to grab images of 1024 × 768 pixels.

Region Segmentation and Features Extraction

9Algorithms that include the estimation of the outlet's geometric feature and segmentation of the region of interest (ROI), a circle inspection (CI) algorithm and a classifier are proposed to detect micro-spray nozzle defects. Details of the proposed algorithms are described as follows.

Outlet Extraction

10Segmentation of the ROI image is an essential procedure once the features of the micro-spray nozzle have been extracted. Firstly, the outlet image (as shown in Figure 5) is segmented using Otsu's auto-thresholding method and hole-filling operations [13]. By assuming that the binary image of the outlet is

11(where i = 1, 2, …, m and the total number of pixels is m), the centroid is obtained as

12The covariance matrix is defined as The ROI of inclined annular-planes is the internal image of the micro-spray nozzle, as shown in Figure 6. Segmenting the ROI effectively is an important procedure once the defects have been detected. Firstly, Canny edge detection [13], a randomized algorithm for detecting circles [14], hole-filling operation and the AND logic operator are used to segment the ROI of the inclined annular-planes. The procedures of extraction are as follows.

13Step 1. Canny edge detection for the original image (Figure 7a), shown as Figure 7b.

14Step 2. Randomized algorithm for detecting circles, shown as Figure 7c.

15Step 3. The ring region is filled using a hole-filling operation, shown as Figure 7d.

16Step 4. The ROI (shown as Figure 7e) is segmented using the AND logic operator for Figure 7a,d.

17Step 5. Geometric features' computation.

Possible Defect Segmentation

18Segmenting defect regions is an important procedure before possible defects (including the deckle edge, pellet and stripe metal fillings) are detected and classified. A prior experiment proceeded as follows. Firstly, an inspection circle is used to find gray levels with scanning resolution in a pixel, as shown in Figure 8. There are different distribution forms of gray levels in different circles, as illustrated in Figure 9. However, the difference between defects and non-defects is difficult to distinguish using the thresholding method [13]. Therefore, a novel method, the circle inspection algorithm (CI algorithm), is proposed for defect region segmentation of micro-spray nozzles in this study. The CI algorithm is effectively executed to extract defect regions for internal images of micro-spray nozzles according to the differences of the gray level gradient. The CI algorithm is described as follows: Step 1. The distribution of the gray level on the image is estimated along the circle CRj (with scanning resolution in a pixel); (xc, yc) is the center, and Rmin < Rj< Rmax.

19Step 2. Compute the gray level gradient ( i G ) of the circle, as demonstrated in Figure 10 on Circle 1.

20where g(i) is the gray level of the circle, i is the position of the circle and n is the distance.

21where T is a threshold value.

Classification: Classifier

22Geometric, texture and color features analysis have been widely employed in classification. With proper feature selections, the design of a classifier can be greatly simplified. This study adopts the geometric feature (mean diameter, diameter ratio, distance variance), the color features (mean gray level, variance of gray level) and texture features (contrast, energy and entropy from the gray level co-occurrence matrix (GLCMs) [15]) to classify defects and non-defects using a back propagation neural network [16] (BPNN, as shown in Figure 11). Mathematical formulations of these features are given in Table 1. In this study, the BPNN classifier consists of three layers: an input layer, a hidden layer and an output layer (as shown in Figure 11). The input layer has 17 nodes, which are related to 3 geometric features, 2 color features and 12 texture features, normalized between 0 and 1. The output layer is made of nodes, related to two categories: defect and non-defect. Initially, the number of nodes nH in the hidden layer is calculated using the following formula:

23where nI is the number of input nodes and no is the number of output nodes. The objective of the learning process is to find a relation in a pattern that was made by the features of each segmented region. The BPNN is trained, and the weights are changed until the error convergence criterion approaches 0.1. The error signal is given by:

24where dk(t) is the desired response for neuron k (k = 1~2) and yk(t) is the output signal of neuron k at iteration t.

Overall Descriptions

25The overall steps involved in the defect region segmentation and classification are shown in Figure 12. The algorithm for the classification of defects included image processing techniques, the CI algorithm and the BPNN classifier, are fully described in the previous two sections.

26The program employed for detecting and classifying the defects is written in Microsoft Visual C++ 6.0 and OpenCV 1.0.

Results and Discussion

27In this paper, a defect detection (DD) software for a micro-spray nozzle is developed using image processing techniques and the CI algorithm (written in Visual C++ 6.0 with OpenCV 1.0), as outlined in the first few steps shown in Figure 12. The algorithm is summarized as follows:

28Step 1. Two geometric features of the outlet are computed.

29Step 2. The ROIs are segmented using Canny edge detection, a randomized algorithm for detecting circles, hole-filling and the AND logic operators.

30Step 3. Possible defect regions are segmented by the CI algorithm.

31Step 4. Estimate 15 features of the segmented regions.

32Step 5. Establish and test the BPNN classifier to classify defects and non-defects.

33The functions of DD include file operations (acquire, load and save images) and image analysis operations (binary operator, hole-filling, remove noises using closing, opening and Canny edge). The geometrics of the outlet, texture and color features of the segmented region are obtained, and defects can be detected by the DD computation accurately and rapidly.

34The difference between defects and non-defect regions is not obvious in the original image of a micro-spray nozzle, as shown in Figure 13a. Possible defect regions, including defects and non-defects, are segmented using the CI algorithm (parameters n = 6, T = 11 are selected after some experimentations) and image processing techniques (such as hole-filling, erosion, dilation, opening, closing and Canny edge operators), as indicated in Figure 13b. Figure 13c results using the AND logic operator for Figure 13a,b. Hence, the defects of micro-spray nozzles (Figure 13d) are detected according to the BPNN classification.

35In order to establish the BPNN classifier, 698 samples (with 565 non-defects and 133 defects) are randomly sampled. Eleven hidden nodes are obtained by Equation (3) according to 17 input features, and two output categories. The BPNN classifier is implemented using functions of MATLAB 8.0. For each configuration, the training sample set is randomly selected from all samples until the BPNN convergence is achieved. Over-fitting often occurs when the training set contains some incorrect samples in the BPNN. As the grades of micro-spray nozzles in training samples are already known before the training process, over-fitting is unlikely to occur. To ensure that the influence of over-fitting is trivial during the training process, the maximum number of iterations is set to 100,000. Further studies showed that the same inspection effect is obtained when the error rate convergence criterion is smaller than 0.1. Randomly-sampled images (1486 non-defects and 118 defects) are used to test the system. The accuracy of the classification is 90.71%. The accuracy of outlet shape and strip fillings is 100%. However, a few deckle edges and pellet fillings of the images can not be detected using the proposed algorithms, examples of classification failure and explanations are shown in Table 2. In this study, the proposed system can detect and classify visible defects with a CCD camera accurately and efficiently. In the future, we hope that the detection and classification system can be applied to an auto-inspection system for micro-spray nozzles.

36(c) (d)

Case 4: Dark image

37The image is blurred and dark.

Conclusions

38Real-time flow uniformity depends on the internal quality of the micro-spray nozzle, and unstable flow will result because of internal defects. A novel inspection system for internal defects of micro-spray nozzles is developed in this study. The image processing techniques, Canny edge detection, a randomized algorithm for detecting circles, the circle inspection algorithm and the BPNN classifier are used to establish the micro-spray nozzle detection system. Possible defects can be segmented efficiently using the CI algorithm and image processing techniques. Geometric, color and texture features of the defects are obtained to establish a BPNN classifier. Testing results show that the defects of the micro-spray nozzles can be detected efficiently using the proposed system. In a future study, we aim to refine the inspection algorithm in order to increase the inspection accuracy for the production line of micro-spay nozzles.

참고문헌 15건

  1. Fundamentals of neural networks 1993
  2. An image-processing based algorithm to automatically identify plant disease visual symptoms Biosystems Engineering · Elsevier BV · 2008 10.1016/j.biosystemseng.2008.09.030
  3. Digital image processing for determining drop sizes from irrigation spray nozzles Agricultural Water Management · Elsevier BV · 2000 10.1016/s0378-3774(99)00079-7
  4. Automatic texture characterization using Gabor filters and neurofuzzy computing The International Journal of Advanced Manufacturing Technology · Springer Science+Business Media · 2010 10.1007/s00170-010-2706-3
  5. Discrimination of sunflower, weed and soil by artificial neural networks Computers and Electronics in Agriculture · Elsevier BV · 2004 10.1016/j.compag.2004.03.006
  6. Droplet size and morphology characterization for dense sprays by image processing: application to the Diesel spray Experiments in Fluids · Springer Science+Business Media · 2005 10.1007/s00348-005-0026-4
  7. Textural Features for Image Classification IEEE Transactions on Systems Man and Cybernetics · Institute of Electrical and Electronics Engineers · 1973 10.1109/tsmc.1973.4309314
  8. An Efficient Randomized Algorithm for Detecting Circles Computer Vision and Image Understanding · Elsevier BV · 2001 10.1006/cviu.2001.0923
  9. Optimal nozzle spray cone angle for triangular-pitch shell-and-tube interior spray evaporator International Journal of Heat and Mass Transfer · Elsevier BV · 2015 10.1016/j.ijheatmasstransfer.2015.01.123
  10. An improved surface roughness measurement method for micro-heterogeneous texture in deep hole based on gray-level co-occurrence matrix and support vector machine The International Journal of Advanced Manufacturing Technology · Springer Science+Business Media · 2013 10.1007/s00170-013-5048-0
  11. Automatic detection of skin defects in citrus fruits using a multivariate image analysis approach Computers and Electronics in Agriculture · Elsevier BV · 2010 10.1016/j.compag.2010.02.001
  12. Automated inspection of engineering ceramic grinding surface damage based on image recognition The International Journal of Advanced Manufacturing Technology · Springer Science+Business Media · 2012 10.1007/s00170-012-4338-2
  13. Sizing of spray particles using image processing technique KSME International Journal · Korean Society of Mechanical Engineers · 2004 10.1007/bf02990860
  14. Grading Method of Leaf Spot Disease Based on Image Processing 2008 10.1109/csse.2008.1649
  15. Color image segmentation using adaptive mean shift and statistical model-based methods Computers & Mathematics with Applications · Elsevier BV · 2008 10.1016/j.camwa.2008.10.053