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

Crack Defect Detection Processing Algorithm and Method of MEMS Devices Based on Image Processing Technology

간접 관련 화학·수지 · (21) 에폭시수지 (14) 드라이 필름(포토레지스트)(15) 디스플레이 패널재료

기본 정보

저자
  1. Yu Zheng — Science and technology on reliability physics and application technology of electronic component laboratory, East China Institute of Photo-electron IC, Bengbu 233000, China
  2. Susu Li — Science and technology on reliability physics and application technology of electronic component laboratory, East China Institute of Photo-electron IC, Bengbu 233000, China
  3. Yuan Xiang — Science and technology on reliability physics and application technology of electronic component laboratory, East China Institute of Photo-electron IC, Bengbu 233000, China
  4. Zhenxing Zhu — Science and technology on reliability physics and application technology of electronic component laboratory, East China Institute of Photo-electron IC, Bengbu 233000, China
DOI
10.1109/access.2023.3331152
저널
IEEE Access
발행년도
2023
발행기관
Institute of Electrical and Electronics Engineers
피인용수
7
라이선스
cc-by-nc-nd
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1109/access.2023.3331152
토픽
Surface Roughness and Optical Measurements
OpenAlex ID
W4388505114

평가 내용

관련도
간접 관련
사업분야
화학·수지 · (21) 에폭시수지
부 분야
(14) 드라이 필름(포토레지스트), (15) 디스플레이 패널재료
R&D 측면
물성·성능 평가
확신도
0.70
근거 용어
crack defect detection, MEMS devices, image processing, reliability, surface defects
판단 근거
본 논문은 MEMS 소자의 표면 균열(crack)을 이미지 프로세싱으로 검출하는 알고리즘을 다루고 있습니다. 이는 코오롱인더스트리의 직접적인 제품은 아니나, 전자재료(14, 15) 및 화학/수지 분야의 미세 구조 결함 분석이나 신뢰성 평가 공정에 응용 가능한 기술입니다.
R&D 활용 포인트
전자재료 및 필름 제조 공정 중 발생하는 미세 결함(crack, scratch)을 자동 검출하는 머신 비전 시스템의 알고리즘 고도화에 활용 가능합니다.
평가 입력
본문 50,405자 중 30,032자 발췌

초록

In order to solve the problem that the crack defects generated on the surface of MEMS devices are difficult to detect under high overload impact, this paper proposes a crack detection method based on attribute weighted naive Bayes improved OTSU algorithm.Based on the analysis of the surface defects in MEMS devices image, the edge information of the crack defect in the image is extracted by image processing such as image detail sharpening, grayscale processing, image enhancement and edge extraction based on Canny operator, and the pseudo crack in the image is removed by the least square method; the attribute weighted naive Bayes algorithm is introduced to improve the traditional OTSU image processing method, the crack defect detection results of the MEMS devices image are obtained, the crack defects are quantitatively characterized, and the length and width of the crack defects are calculated.Comparative experiments were conducted using multiple detection methods, the results showed that the crack detection method proposed in this paper can obtain the crack defect information of MEMS devices efficiently and accurately.

본문 50,405자

본문 펼치기
Date of publication xxxx 00, 0000, date of current version xxxx 00, 0000. _Digital Object Identifier 10.1109/ACCESS.2022.Doi Number_ # Crack Defect Detection Processing Algorithm and Method of MEMS Devices based on Image Processing Technology Yu Zheng, Susu Li, Yuan Xiang, Zhenxing Zhu Science and technology on reliability physics and application technology of electronic component laboratory, East China Institute of Photo-electron IC, Bengbu 233000, China [Correspondence: zhengyu0905@yeah.net](mailto:zhengyu0905@yeah.net) This research was funded by the project of science and technology on reliability physics and application technology of electronic component laboratory(Grant number:2022-JCJQ-LB-067/6142806220301) ABSTRACT In order to solve the problem that the crack defects generated on the surface of MEMS devices are difficult to detect under high overload impact, this paper proposes a crack detection method based on attribute weighted naive Bayes improved OTSU algorithm. Based on the analysis of the surface defects in MEMS devices image, the edge information of the crack defect in the image is extracted by image processing such as image detail sharpening, grayscale processing, image enhancement and edge extraction based on Canny operator, and the pseudo crack in the image is removed by the least square method; the attribute weighted naive Bayes algorithm is introduced to improve the traditional OTSU image processing method, the crack defect detection results of the MEMS devices image are obtained, the crack defects are quantitatively characterized, and the length and width of the crack defects are calculated. Comparative experiments were conducted using multiple detection methods, the results showed that the crack detection method proposed in this paper can obtain the crack defect information of MEMS devices efficiently and accurately. INDEX TERMS MEMS devices; crack defect detection; image segmentation; quantitative characterization I. INTRODUCTION The modules of Micro-Electro-Mechanical-Systems (MEMS) mainly include micro-sensor, signal processing circuits and micro-actuators, etc. [1-3], and the size of these modules is between a few microns and a few millimeters, with the characteristics of miniaturization, high precision, high reliability and low power consumption [4-5]. Nowadays MEMS devices are widely used in aerospace, medical, military and other fields, and have important application value [6-8]. MEMS devices play a crucial role in various application scenarios; they must deal with a variety of complex environments, so that their entire life cycle will be subjected to temperature, humidity, vibration, shock, radiation and other environmental stresses independent or coupled effects. In the field of weapon testing, due to the phenomenon of high overload during the launch of the projectile, under the action of high overload, it is easy to cause the phenomenon of high temperature burning or extrusion of MEMS devices in the missile-borne actuator, which makes the chip pin fall off or the surface crack and other defects, which will cause the missile-borne actuator to lose its own performance. Therefore, in the missile-borne test experiment, a high overload experiment is often required. The performance change of the device is observed by applying a high acceleration simulation experiment to the MEMS device. After the simulation experiment, the MEMS device after high acceleration impact is removed, and the defects on the chip surface are detected by artificial or machine vision methods. In traditional experiments, manual detection is used to detect defects. However, manual detection has many variable factors and cannot quantitatively describe defects, which affects the accuracy and reliability of detection. Therefore, manual detection has a significant subjective impact, poor real-time performance, high labor intensity and high false detection rate. With the development of computer image processing technology, the method of using machine vision equipment such as metallographic microscopy, ultrasonic scanning and X-ray scanning to obtain images and judge the surface defect information in the images has been developed [9]. The introduction of machine vision reduces the manual operation of surface defect detection and improves the automation level of the detection process. In recent years, many scholars have conducted relevant research on defect detection based on machine vision. Yuan et al. [10] proposed a tire appearance defect detection method combining histogram of oriented gradient (HOG) and local binary pattern (LBP) features. Firstly, a tire image data set is constructed to provide defective and normal tire images. Then, the directional gradient histogram and local binary pattern features of the tire image are extracted respectively to train the support vector machine (SVM) classifier. Finally, the support vector machine classifier combines directional gradient histogram and the local binary pattern feature to calculate the prediction scores of the test image. These scores can be used to determine whether the test image is a defective tire image or a normal tire image, so as to achieve the purpose of tire appearance defect detection. Aiming at the problem of surface defects of stamping blanks, Shang et al. [11] proposed a method for detecting surface defects of stamping blanks by combining normalized cross correlation (NCC) template matching accelerated based on Gaussian pyramid and background subtraction. In order to segment defects from complex rail surface images during high-speed motion, He et al. [12] established a background model of rail surface images based on the fact that the rail surface images have basically unchanged pixel values along the rail direction, and proposed a rail surface defect detection algorithm based on background difference. To a certain extent, this method solves the influence of adverse factors such as image illumination changes, uneven reflection, and few features during the segmentation of rail surface defects. Guo et al. [13] proposed a method for surface defect detection of ceramic bowls based on machine vision. This method mainly realizes the edge detection of surface defects by combining Kirsch operator and Canny operator. It is difficult for traditional image processing algorithms to effectively deal with the problems of uneven illumination or serious noise interference in subway tunnel crack defect images. Liu et al. [14] studied an improved crack detection algorithm based on structural analysis based on pixel-level processing to improve the quality of tunnel images. In terms of using image processing methods to detect electronic components, Jung et al. [15] used the camera system to capture the defect data image of the plate product. By analyzing and processing the images, they proposed crack detection technology based on image processing. The detection method mainly locates the defect position of the electronic components and realizes the crack defect detection. Lv et al. [16] proposed to use Canny-region splitting and merging algorithm to detect surface defects such as scratches and dirt on the surface of electronic components. Although there are many good ideas and methods to detect defects by using image processing technology, there is no relevant reference on the detection of crack defects of the surface of MEMS devices under high overload. Moreover, due to the fact that the surface of the MEMS devices is actually a metal surface, there is a reflection effect and the defect characteristics are not obvious, it is difficult to locate during detection, which is easy to cause false detection and missed detection, and the detection is difficult. According to the analysis of surface defects of MEMS devices, this paper proposes a crack detection method based on attribute weighted naive Bayes improved OTSU algorithm, and quantitatively characterizes the crack on the basis of extracting the crack skeleton. These information can provide data basis for detecting the failure of MEMS devices under high overload. The main contributions and highlights of this paper are: (1) According to the analysis of MEMS devices image surface defects, the defect edge information in the image is extracted by image detail sharpening, grayscale processing, image enhancement and edge extraction based on Canny operator, and the pseudo crack in the image is removed by least square method. (2) Based on the traditional OTSU image processing method, the attribute weighted naive Bayes algorithm is introduced to improve the OTSU algorithm, and the crack defect detection results of MEMS devices images are obtained. (3) The Zhang-Suen thinning algorithm is used to extract the crack skeleton of the MEMS devices image, and the calculation model of the length and width of the crack is established. The structure of the paper is arranged as follows: Section 2 introduces the detailed process of image processing of MEMS devices. Section 3 gives the crack defect detection method of MEMS devices image. Section 4 describes the quantitative characterization calculation method of crack defects of MEMS devices image. Section 5 gives the experiment and result analysis of crack defects of MEMS devices image. Section 6 gives a summary. II. THE SURFACE DEFECT ANALYSIS AND IMAGE PROCESSING OF MEMS DEVICES _A._ _ANALYSIS OF SURFACE DEFECTS OF MEMS_ _DEVICES_ MEMS devices usually work in a resonant state. During the working process, the movable parts carry out cyclic mechanical movements in specific forms, such as stretching, compression, bending, vibration, thermal expansion and thermal contraction [17], the alternating stress will gradually accumulate the fatigue damage of the material, resulting in cracks, and even lead to structural fracture, make the MEMS device unusable. Figure 1 (a) shows that a curved crack is generated inside the MEMS device under high overload. Cracks will propagate from the surface of the MEMS device along the thickness direction, which makes the device have serious reliability problems and affects its normal operation. Figure 1 (b) shows that there are cracks between the two metals in the MEMS device. The cracks will form an electrical path between the two strips of metal, resulting in a short circuit during normal operation of the MEMS device. The crack defects caused by stress sensitivity are often related to the production environment, processing technology and micro-component materials of the device, and even involve the design of molds or micro-component structures. In Figure 1, there are some crack defects in the red frame. ##### neighborhood of ( i 0, j 0), and g p ( i 0, j 0) is the gray prediction value of the central pixel, then ## g (, b )   a, b F ( a, b W ) ( i 0, j 0, a, b _p_ _a_ ##  W ( i 0, j 0, a, b ) (1) ( _a_, _b W_ ) ( _i_ 0, _j_ 0, _a_, _b_ ) 0 0 _p_ ( _a_ ( _a_, ) _a_, _b_ 0 0 ##  W ( i 0, j 0, a, b ) _a_, _b_ , ##  , _b_ 0 _a_, _b_ 0 (a) A curved crack image on the surface of the MEMS device (b) There is a crack image between the two metals on the surface of the MEMS device FIGRUE 1. Surface crack defect image of MEMS device _B._ _MEMS DEVICES IMAGE PROCESSING_ In order to eliminate the defect-independent information in the MEMS devices image and improve the detection accuracy of the surface defects in the MEMS devices image, the image needs to be processed. The specific process is shown in Figure 2. #### where F  a, b  is the gray value of the neighborhood pixel; the weighting coefficient W  i 0, j 0, a, b  is the comprehensive result of the spatial domain kernel and the pixel range domain kernel. The expressions of the spatial domain kernel and the pixel range domain kernel are shown in formulas (2) and (3).  exp  ( _i_ 0  _a_ )2  (2 _j_ 0  _b_ )2   2  _r_   exp  _F_ ( _i_ 0, _j_ 02)  _s_ 2 _F_ ( _a_, _b_ ) 2  ( _i_ 0, _j_ 0, _a_, _b_ )  exp  ( _i_ 0  _a_ )2  (2 _j_ 0  _b_ )2  2  _r_ _S_ ( _i_ 0, _j_ 0, _a_, _b_ )  exp  ( _i_ 0  _a_ )2  (2 _j_ 0  _b_  2  _r_ ( _i_ 0, _j_ 0, _a_, _b_ )  exp  _F_ ( _i_ 0, _j_ 02)  _s_ 2 _F_ ( _a_, _b_ ) 2 (2) (3) _I_ ( _i_ 0, _j_ 0, _a_, _b_ )  exp  _F_ ( _i_ 0, _j_ 02)  _s_ 2 _F_ ( _a_, _b_ MEMS devices Image detail original image sharpening Image detail Image grayscale processing original image Pseudo-crack Crack boundary removal extraction removal Crack boundary Image extraction enhancement FIGRUE 2. Image processing flow chart. 1) IMAGE DETAIL SHARPENING The MEMS devices images are inevitably blurred during the collection process. In order to enhance the detail information of the MEMS devices image and highlight the edge details of the surface crack of MEMS devices, bilateral filtering is used to sharpen the MEMS devices images. The spatial proximity of the collected image and the pixel value are taken as the weight conditions, which not only considers the Euclidean distance of the pixel space domain, but also considers the difference of the gray value in the pixel range domain [18], so as to realize the filtering and denoising processing under the condition of ensuring the edge information of the image. ##### Suppose that ( i 0, j 0) is the coordinates of the central pixel, ( _a_, _b_ ) is the coordinates of one pixel in the where  _r_ and  _s_ are spatial standard deviation and gray standard deviation respectively. Bilateral filtering is a compromise processing method by combining the spatial proximity of the image and the similarity of the pixel values, and taking into account the spatial information and gray similarity to achieve the purpose of edge preservation and denoising. Figure 3 (a) is the detail sharpening processing result of MEMS devices image (curved cracks), and Figure 3 (b) is the detail sharpening processing result of MEMS devices image (cracks penetrating between two metals). (a) The detail sharpening processing result of MEMS devices image (curved cracks) (b) The detail sharpening processing result of MEMS devices image (cracks penetrating between two metals) FIGURE 3. MEMS devices image detail sharpening effect. It can be seen from Figure 3 that bilateral filtering can not only sharpen the surface crack details of MEMS devices image and highlight the surface crack characteristics of components, but also reduce the influence of surface stains and other factors on the image. 2) IMAGE GRAY PROCESSING The original images of MEMS devices collected in this paper are all color images. The color images are synthesized by red, green and blue colors, which are also called RGB images. Because the color features of the crack of MEMS devices image are not rich, the MEMS devices image is grayed, that is, the RGB color image is converted into a grayscale image, which not only retains the main features of the image, but also reduces the computational cost of the computer. #### If any pixel in the image is defined as  i, j , and the gray value here is Gray(, _i_ _j_ ), the values corresponding to the three color channels are R(, _i_ _j_ ) , G(, _i_ _j_ ) , B(, _i_ _j_ ), respectively. The corresponding weights are  1,  2,  3, and satisfy  1  2  3  1 . The appropriate weighted average of RGB three primary color components can obtain the best gray image. Gray(, _i_ _j_ ) =  1  R(, _i_ _j_ )+  2  G(, _i_ _j_ )+  3  B(, _i_ _j_ ) (4) The MEMS device image after sharpening process is implemented by the weighted average grayscale method [19], and the converted grayscale image is shown in Figure 4. (a) Grayscale processing result of MEMS devices Image (curved cracks) (b) Grayscale processing result of MEMS devices Image (cracks penetrating between two metals) FIGURE 4. Grayscale processing of MEMS devices Image. 3) IMAGE ENHANCEMENT In order to improve the unobvious defect features in MEMS devices image, it is necessary to improve the contrast of MEMS devices images. Taking any point _x_ (, _i_ _j_ ) of the image as the center, in the area with a window size of (2 _n_  1)  (2 _n_  1), the local mean and variance can be expressed as: _i_  _n_ _j_  _i_  _n_ _j_  _n_ <u>1</u> _i_  _n_ _j_  _n_ ## (, i j )  2  x ( k, l ) (2 _n_  1) _k_  _i_ _n l_  _j_ _n_ ## hx (, i j )  2  x ( k, l (2 _n_  1) _k_  _i_ _n l_  _j_ _n_ _x_ <u>1</u> _i_  _n_ _j_ _n_ ##  2  x ( k, l ) (5) (2 _n_  1) _k_  _i_ _n l_  _j_ _n_  _n_ _j_  _i_  _n_ _j_  _n_ ### 2 x (, i j )  1 2  i  n j  n [ x ( k, l )  hx (, i j )]2 (2 _n_  1) _k_  _i_ _n l_  _j_ _n_ ###  2 x (, i j )  1 2  i  n j n [ x ( k, l )  hx (, i j )]2 (6) (2 _n_  1) _k_  _i_ _n l_  _j_ _n_ ### x (, i j )  2  [ x ( k, l )  hx (, i j (2 _n_  1) _k_  _i_ _n l_  _j_ _n_ ##### where hx (, i j ) is the mean value, which can be approximately considered as the background part; x  k, l  is the pixel value in the  2 n  1  2 n  1  region;  2 x (, i j ) ##### is the local variance [20]. At this time, x ( k, l )  hx (, i j ) is the high-frequency detail part, and the gain product of the high frequency is : ##### f (, i j )  hx (, i j )+ G (, i j )[ x (, i j )  hx (, i j )] <sup>(7)</sup> where _f_ (, _i_ _j_ ) is the value after gain. Based on Figures 4 (a) and 4(b), the effect of image enhancement is shown in Figure 5. (a) Image enhancement processing result of MEMS devices (curved cracks) (b) Image enhancement processing result of MEMS devices (cracks penetrating between two metals) FIGRUE 5. Image enhancement processing result of MEMS devices. Comparing Figures 3,4 and 5, it can be seen that after the image enhancement processing of the collected MEMS devices images, the crack defect contour is clearer, which effectively improves the contrast of the image and provides more useful information for the boundary extraction of the next crack defect. 4) CRACK DEFECT BOUNDARY EXTRACTION In order to realize the extraction of the image area of the MEMS devices, the detected crack edge pixels and their surrounding pixels are defined as sensitive areas and positioned by detecting the crack edge or linear characteristics. Based on Canny operator detection algorithm, the crack edge of MEMS devices image is roughly extracted. The specific steps are as follows: (1) In order to remove noise, Gaussian filtering is used to smooth the MEMS devices images [21]. Firstly, the original color image of the MEMS devices is grayed, and then the MEMS devices image is denoised by convolution operation with Gaussian function.  _x_ 2  _y_ 2  _h_ ( _x_, _y_ )  exp   2   2   (8) is not sure whether they are edge points, so it is necessary to judge by searching the eight connected regions of pixels, which can get two threshold edge images. Based on Figure 5, the results of Canny operator to extract its edge features are shown in Figure 6. (a) MEMS devices image edge feature extraction result (curved cracks) (b) MEMS devices image edge feature extraction results (cracks penetrating between two metals) FIGRUE 6. The edge feature extraction results of MEMS devices image. 5) PSEUDO CRACK DEFECT REMOVAL There are false crack information in the images of MEMS devices taken by imaging equipment, which are horizontally or vertically distributed with the longitudinal axis of the device, and are similar to the gray scale of crack defects. In order to prevent false cracks from being misjudged as cracks in crack detection and improve the segmentation accuracy of image segmentation, false cracks are removed by image processing methods. From the morphological properties of the crack and the pseudo-crack formed by the tangent, the variance of the pixel distribution of the crack and the pseudocrack can be calculated by the least square method. The variance of the pixel distribution of the pseudo-crack formed by the tangent is linearly related to the tangent length, and the distribution variance of the pseudo-crack is very small. On the contrary, the real crack is random and uncertain, and the variance of the distribution of different crack pixels is not related to the length, and the variance of the crack _g_ ( _x_, _y_ )  _h_ ( _x_, _y_ )  _f_ ( _x_, _y_ ) (9) where _h_ ( _x_, _y_ ) is the Gaussian function of the omitted coefficient; _f_ ( _x_, _y_ ) is the grayscale image and _g_ ( _x_, _y_ ) is the smoothed image. (2) Calculate the amplitude and direction of the gradient The direction of calculating the gradient is to find the position where the gray value changes the most in the image. The calculated amplitude of the gradient is:  ( _x_, _y_ )   12( _x_, _y_ )  22( _x_, _y_ ) (10) The direction of the gradient is :  tan  1 <u></u> 12 tan  1 <u></u> <u>2</u> <u>(</u> _<u>x</u>_ <u>,</u> _<u>y</u>_ <u>)</u>  1( _x_, _y_ )  tan  1 <u>2</u> (11) 1 _<u>x</u>_ <u>,</u> _<u>y</u>_ _x_, _y_ where  1  _x_, _y_   _f_ ( _x_, _y_ )  _h_ 1( _x_, _y_ ) ,  1  1 1  1  2 ( _x_, _y_ )  _f_ ( _x_, _y_ )  _h_ 2( _x_, _y_ ) , _h_ 1  1 1 , _h_ 2  1  1 . (3) Non-maximum suppression of amplitude After the gradient is calculated, the crack edge cannot be determined immediately. The point with the largest local gradient needs to be retained and the local non-maximum value needs to be set to zero. (4) Double threshold detection edge The two thresholds of <sup>_T_</sup> 1 <sup>and</sup> <sup>_T_</sup> 2 <sup>are used to detect the</sup> edge, where _T_ 1  _T_ 2, the edge pixel with a gradient greater than <sup>_T_</sup> 2 <sup>is a strong edge point. If it is between</sup> <sup>_T_</sup> 2 <sup>and</sup> <sup>_T_</sup> 1 <sup>,</sup> this point is a weak edge point. If the gradient value of the pixel is less than <sup>_T_</sup> 1 <sup>, it is considered that this point is not an</sup> edge point and suppresses this point. For weak edge points, it distribution is large. The steps of the pseudo crack removal algorithm are as follows: (1) Based on the MEMS devices image extracted from the edge of the crack defect, the MEMS devices image is scanned, and the continuous curves in the image are numbered and stored. (2) The unprocessed and stored curves in the image are tested in turn. If they cannot be found, the algorithm ends. (3) The least squares algorithm is used for the pixels on the curve. (4) The variance of the pixel distribution of the curve is obtained by the least square algorithm. If the variance of the distribution is less than the set value, the curve is a pseudo crack, and the pixel points of the curve should be removed. Otherwise, the pixel points of the curve are retained. The pseudo-cracks are removed from Figure 6 after Canny operator extracts the edge features of the defect image, and the MEMS devices image after removing the pseudo-cracks is obtained, as shown in Figure 7. (a) Pseudo crack removal effect of MEMS devices image (curved crack) (b) Pseudo crack removal effect of MEMS devices image (cracks penetrating between two metals) FIGRUE 7. Pseudo crack removal effect of MEMS devices image. Comparing Figures 6 and 7, it can be seen that the pseudo cracks in the images of MEMS devices have been obviously removed, which can effectively improve the accuracy of subsequent crack detection. III. CRACK DEFECT DETECTION OF MEMS DEVICES IMAGE When the gray difference between the cracks in the MEMS devices image and the gray level of the device itself is not large, the double peaks in the histogram of the MEMS devices image are not obvious enough, and the effect of the OTSU algorithm is not ideal. In order to improve the detection effect of the algorithm, the attribute weighted naive Bayes algorithm is introduced into the traditional OTSU image processing method [22-23]. Naive Bayesian classification algorithm is: _n_ ### C ( x ) Nω = arg P ( Ck )  p ( xi |Ck )  ( i ),1  k  m (16) _i_ _i=1_ ### ( x ) Nω = arg P ( Ck )  p ( xi |Ck )  ( i ),1 _P(X |C)P(C)_ _P(C | X)=_ _P(X)_ (12) where _P_ ( _C_ | _X_ ) is the posterior probability that condition _X_ belongs to category _C_ ; _P_ ( _X_ | _C_ ) is the posterior probability that category _C_ belongs to condition _X_ ; _P_ ( _C_ ) is the prior probability of class _C_ ; _P_ ( _X_ ) is the prior probability of condition _X_ . If there are a total of _n_ attribute variables A(A,A1 2,,A _n_ ) in the data set, the feature vector _X_ = ( _x_ 1, _x_ 2,, _xn_ ) represents the specific value of the attribute variable, and there are _m_ category variables _C_, which have different values _C_ 1, _C_ 2,L, _Cm_, _Test_  _x_ 1, _x_ 2,L, _xn_ as the test set, _Train_  _x_ 1, _x_ 2,L, _xn_, _Ci_ as the training set. Under the premise of independent assumptions, there is: _n_ _n_ ### P ( x1,x2,L,xn |Ck ) =  p ( xi |Ck ),1  k  m (13) _i=1_ ### ( x1,x2,L,xn |Ck ) =  p ( xi |Ck ) The posterior probability is: ### k | x ) = P ( Ck )  n p ( xi |ck _P_ ( _x_ ) _i=1_ ### P ( Ck | x ) = P ( Ck )  n p ( xi |ck ) 1,  k  m (14) _P_ ( _x_ ) _i=1_ ### ( Ck | x ) = P ( Ck )  n p ( xi |ck ) 1, _P_ ( _x_ ) _i=1_ If _P_ ( _x_ ) is a constant, the naive Bayesian model is: _n_ _n_ ### C ( x ) N = arg P ( Ck )  p ( xi |Ck ) 1,  k  m (15) _i_ _i=1_ ### ( x ) N = arg P ( Ck )  p ( xi |Ck ) 1, In order to improve and enhance the classification effect of the traditional Naive Bayes algorithm, different weights are given to each type of attribute according to the degree of influence of each type of attribute on the classification. This method not only has the high classification accuracy of the traditional naive Bayes algorithm, but also reduces the negative impact of the association between certain attributes in practice. The formula of attribute weighted optimization naive Bayesian model is: _n_ where  ( ) _i_ is the weight value of class attribute A _i_ . In MEMS devices image processing, the MEMS devices image is converted into a grayscale image. The grayscale image is a two-dimensional matrix, so the pixels in the MEMS devices image are discrete data. The segmentation of the OTSU algorithm can also be regarded as a grayscale classification [24-25]. Based on this feature, the attribute weighted naive Bayesian algorithm is used to improve the OTSU algorithm. Assuming that the total number of pixels is _N_ gray image _GN_, and the gray level is _LN_, the gray histogram is ##### H N   hN 0, hN 1,L, hNL  1  . Therefore, the gray probability density of _e_ is _p_ ( _e_ )  _n_ ( _e_ ) / _N_, _e_  0,1,L _L_  1, and ##### n ( e ) represents the number of pixels when the gray level is _L_  1 _e_  _p_ ( _e_ )  0 1 _M_ _G_  _e_  _p_ ( _e_ ###  _e_  0 _G_ _L_  1  _e_  _p_ ( _e_ ) (21) ###  _e_  0 Because the image is divided into two categories to calculate the maximum variance between the two parts, the variance of the _GN_ 0 part is:  _N_ 2 0  _p_ ( _GN_ 0 )  ( _M_ ( _GN_ 0 )  2 2 _N_ 0  _p_ ( _GN_ 0 )  ( _M_ ( _GN_ 0 )  _M_ _G_ ) _p_ ( _GN_ 0 )  ( _M_ ( _GN_ 0 )  _M_ ( _GN_ 0 )  ( _M_ ( _GN_ 0 )  _M_ _G_ ) _N_ 0  _p_ ( _GN_ 0 )  ( _M_ ( _GN_ 0 )  _M_ _G_ _N_ 0 _N_ 0 2 <sup>(22)</sup>  _p_ ( _GN_ 1)  ( _M_ ( _GN_ 1)  _M_ _NG_ ) 2 1)  ( _M_ ( _GN_ 1)  _M_ _NG_ ) _p_ ( _GN_ 1)  ( _M_ ( _GN_ 1)  _M_ ( _GN_ 1)  ( _M_ ( _GN_ 1)  _M_ _NG_ ) _N_ 1)  ( _M_ ( _GN_ 1)  _M_ _NG_ The overall variance of the original grayscale image is: _L_  1 2  ( _e_  _M_ )2 ###  _L_  _L_  1  ( _e_  _M_ _G_ )2  _p_ ( _e_ ) (23) ###  _e_  0 2 2 ###  G   ( e  M G )  p ( e _G_  ( _e_  _M_ _G_ _e_ 2 ( _e_  _M_ _G_ )  _p_ ( _e_ )  0 1 _p_ ( _e_ ) _L_  1 _p_ ( _e_ )  1. Let the initial threshold value _T_ = 1, ###  _e_, then : _L_   1 _e_  _p_ ( _e_ )  1 0 _e_ the original crack gray image is divided into two parts: _GN_ 0 and _GN_ 1, then the gray level probability of _GN_ 0 is: _T_ ## p ( GN 0 )   p ( e _e_  0 ## ( GN 0 )   p ( e ) _e_  0 _N_ _T_ _p_ ( _e_ ) (17) ##   _e_  0 The average probability of each gray level in _GN_ 0 is: _T_  _e_ _T_ ###  e  e 0  (18) ###  e  e 0  p ( GN 0 | e )   _<u>e</u>_ <u></u> <u>1</u> ###  e  e 0  p ( GN 0 | e )  p ( e _M_ ( _GN_ 0 )  _<u>e</u>_ <u></u> <u>1</u> _p_ ( _GN_ 0 ) ###  e  e 0  p ( GN 0 | e )  p ( e ) ( _GN_ 0 )  _<u>e</u>_ <u></u> <u>1</u> _p_ ( _GN_ 0 ) ###  e  e 0  p ( GN 0 | e ) _GN_ 0 )  _<u>e</u>_ <u></u> <u>1</u> _p_ ( _GN_ 0 ) _e_ 0 _N_ _N_ 0 )  _<u>e</u>_ <u></u> <u>1</u> _e_ 0 _N_ 0 0 )  _<u>e</u>_ <u></u> <u>1</u> _p_ ( _GN_ 0 ) _<u>e</u>_ <u></u> <u>1</u> _N_ , _T_ ##  _GR_ ( _e_ ( _e_ ) where  _e_ 0 is the weighting coefficient, _GR_ ( _e_ )  _e_ 0  _T_ _GR_ ( _e_ ##  _e_ 0 _T_  0 ( _e_ ) 0 _e_  _GR_ ( _e_ ) is the gain rate of the gray level _e_ . The average probability of each gray level in _GN_ 0 becomes: _T_  _e_ _T_ ##  e  e  _e_  ##   _<u>e</u>_ <u></u> <u>1</u> _G_ ( ##  e  e  p ( G _M_ ( _GN_ 0 )  _<u>e</u>_ <u></u> <u>1</u> _p_ ( _GN_ 0 ) ##  e  e  p ( GN 0 | e ) ( _GN_ 0 )  _<u>e</u>_ <u></u> <u>1</u> _p_ ( _GN_ 0 ) _e_ _N_ _N_ 0 )  _<u>e</u>_ <u></u> <u>1</u> _e_ _N_ 0 0 )  _<u>e</u>_ <u></u> <u>1</u> _p_ ( _GN_ 0 ) _e_ _<u>e</u>_ <u></u> <u>1</u> (19) _N_ ) Similarly, the average probability of each gray level in _GN_ 1 is: _L_  1 1  _e_ _L_  1 ###  e  e 1  (20) ###  e   _<u>e</u>_ <u></u> _<u>T</u>_ <u>1</u> _p_ _p_ ( _GN_ 1 | _e_ ###  e  e 1  p ( G _M_ ( _GN_ 1)  _<u>e</u>_ <u></u> _<u>T</u>_ <u>1</u> _p_ ( _GN_ 1) ###  e  e 1  p ( GN 1 | e ) ( _GN_ 1)  _<u>e</u>_ <u></u> _<u>T</u>_ <u>1</u> _p_ ( _GN_ 1) _e_ 1 _N_ _N_ 1)  _<u>e</u>_ <u></u> _<u>T</u>_ <u>1</u> _e_ 1 _N_ 1 1)  _<u>e</u>_ <u></u> _<u>T</u>_ <u>1</u> _p_ ( _GN_ 1) The crack detection results are shown in Figure 8. (a) Crack detection result of MEMS devices image (curved cracks) (b) Crack detection result of MEMS devices image (cracks penetrating between two metals) FIGRUE 8. Crack detection result of MEMS devices image. IV. QUANTITATIVE CHARACTERIZATION OF CRACK DEFECTS of MEMS DEVICES IMAGE The crack defects are segmented by MEMS devices image processing. In order to improve the accuracy of crack measurement, the crack is quantitatively characterized on the basis of the segmented crack image, and the length and width of the crack are calculated. It is necessary to extract the crack skeleton first, and the Zhang-Suen refinement algorithm is <u></u> _<u>T</u>_ _N_ where  _e_ 1 is the weight coefficient of each gray level in _<u>GR</u>_ <u>(</u> _<u>e</u>_ <u>)</u> _e_ 1  _L_ <u></u> 1 . _<u>GR</u>_ <u>(</u> _<u>e</u>_ <u>)</u>  _e_ 1  _L_ <u></u> 1 _GR_ ( _e_ ##  _L_ _L_ <u></u> 1 ##   _T_ _<u>GR</u>_ <u>(</u> _<u>e</u>_ _GN_ 1,  _e_ 1  _L_ <u></u> 1 ( _e_ ) _e_  _e_  _T_ 1 Therefore, the mean value of the original grayscale image is: used to extract the crack skeleton of the MEMS devices image [26]. _A._ _CRACK DEFECT LENGTH_ The steps of crack length calculation are as follows: (1) The crack skeleton diagram is divided into _n_ regions, and the distance between each point in each region is calculated. (2) Take the longest distance as the crack length in the region: neighborhood point coordinate. Select a point of the crack on the MEMS devices image, and select a rectangular neighborhood region of the point, then calculate the width of the crack in each rectangular neighborhood. Let _D_ be the radius of the neighborhood and _A_ be the linear neighborhood, then: _A_  ( _I_ _g_ ( _x_ 0, _y_ 0), _I_ _g_ ( _x_ 1, _y_ 1),, _I_ _g_ ( _x_ 2 _D_, _y_ 2 _D_ )) (26) ##### where I g ( xD, yD ) is the crack point and ( xi, yi ) is the _lk_  max ( _x_ _j_  _xk_ )2  ( _y_ _j_  _yk_ )2 (24) ###   where _j_  1,2,L, _n_, _k_  1,2,L, _n_, and _j_  _k_ . (3) Add the crack lengths of _n_ rectangular regions, and the total length of the crack is: The mean and standard deviation of the MEMS devices image in the neighborhood are defined as: _b_ _b_ ##   _R_ ##  _P_ ( _R_ ( _Rm_ ) _m_ _m_ _r_  _a_ (27)  _n_ ( _Rm_   )2 _P_ ( _Rm_ ) _Rm_   )2 _P_ ( _R_ 2 _n_ ##   lk (25) _k_  1  _b_ ##   RmP ( Rm _r_  _a_  _b_ ##   ( Rm   _m_  _a_ _m_ _m_ _m_  _a_ _b_  ## l   lk _k_  1 _b_ ##  ##   ( Rm   ) 1 _B._ _CRACK DEFECT WIDTH_ The flow chart of crack width calculation is shown in Figure 9. Binary fracture skeleton diagram Select the skeleton point rectangular neighborhood Calculate the slope of fracture strike in rectangular neighborhood Calculate the normal slope of the center point Select the center point normal linear neighborhood Calculate the crack width in the neighborhood The maximum value of each neighborhood is the crack width. The variable _Po_ 1 is set to represent the boundary of one side of the crack, which is:  _Po_ 1  _I_ _g_ ( _xD_  _o_ 1, _yD_  _o_ 1),   _Po_ 1  , _Po_ 1  1    _o_ 1  0,1,, _D_ .  _Po_ 1  _I_ _g_ ( _xD_  _o_ 1, _y_ ( _xD_  _o_ 1, _yD_  _o_ 1),  _o_ 1 _D_  1 _o_ 1 _g_ _D_  _o_ 1 _g_ _D_  _o_ 1 _D_  _o_ 1 _Po_ 1  , _Po_ _o_ 1  0,1,, _D_ . _o_ 1 _o_ 1 , _Po_ 1  1  , , _Po_ 1  1  , _o_ 1  1  1 (28) 1  0,1,, _D_ . Similarly, the scalar _Po_ 2 is defined to calculate the other side boundary, which is:  _Po_ 2  _I_ _g_ ( _xD_  _o_ 2, _yD_  _o_ 2 ),   _Po_ 2  , _Po_ 2  1    _o_ 2  0,1,, _D_ .  _Po_ 2  _I_ _g_ ( _xD_  _o_ 2, _y_ ( _xD_  _o_ 2, _yD_  _o_ 2 ),  _o_ 2 _D_  2 _o_ 2 _g_ _D_  _o_ 2 _g_ _D_  _o_ 2 _D_  _o_ _Po_ 2  , _Po_ _o_ 2  0,1,, _D_ . _o_ 2 _o_ 2 , _Po_ 2  1  , , _Po_ 2  1  , _o_  1 (29) 2  0,1,, _D_ . The width of the crack is calculated as: _width_  _o_ 1  _o_ 2 (30) Based on the two images of MEMS devices provided in Figure 1, the quantitative characterization of cracks is obtained by image processing, as shown in Table I. The test results are as follows: the maximum deviation between the proposed method and the actual crack length is 6μm, and the maximum deviation from the actual crack width is 5μm. FIGRUE 9. Flow chart of crack width calculation TABLE I <u>QUANTITATIVE CHARACTERIZATION OF CRACKS</u> Length /μm Width /μm MEMS devices images Manual measurement <u>method</u> Deviation value The detection method proposed <u>in this paper</u> The detection method proposed <u>in this paper</u> Manual measurement <u>method</u> Deviation value Figure 1 (a) 62 67 5 21 26 5 Figure 1 (b) 131 137 6 9 11 2 V. EXPERIMENTS AND RESULT ANALYSIS Based on the collected many MEMS devices images with different crack defects, the MEMS devices defect detection method based on image processing proposed in this paper is used for image processing. In order to verify the detection accuracy of this method, a comparative test of detection accuracy is carried out. The original images of different MEMS devices are shown in Figure 10. In Figure 10, there are some crack defects in the red frame. The image obtained by the image processing method proposed in this paper is shown in Figure 11. The crack detection results of the proposed method and other methods in References [14], [15] and [27] are shown in Figure 12. (a) (b) (c) (d) FIGRUE 10. The collected original image. (a) Original image 1; (b) Original image 2; (c) Original image 3; (d) Original image 4. (a) (b) (c) (d) FIGRUE 11. The original image after processing. (a) Original image 1 after processing; (b) Original image 2 after processing; (c) Original image 3 after processing; (d) Original image 4 after processing. (a1) (a2) (a3) (a4) (b1) (b2) (b3) (b4) (c1) (c2) (c3) (c4) (d1) (d2) (d3) (d4) FIGRUE 12. Crack detection result of MEMS devices Images. In Figure 12, (a1) - (a4) are the crack detection results of the original image 1 using the method proposed in this paper, the references [14], [15] and [27]; (b1) - (b4) are the crack detection results of the original image 2 using the method proposed in this paper, the references [14], [15] and [27]; (c1) - (c4) are the crack detection results of the original image 3 using the method proposed in this paper, the references [14], [15] and [27]; (d1) - (d4) are the crack detection results of the original image 4 using the method proposed in this paper, the references [14], [15] and [27]. In order to reflect the effect of the proposed method for extracting cracks, the cracks in Figures 12(a1), (b1), (c1) and (d1) were marked, the red part marked the cracks of the MEMS devices, so that the morphology of the cracks, such as length, width and properties, could be seen more directly and clearly. The collected MEMS devices images are processed, and the OTSU algorithm improved by the naive Bayesian algorithm based on attribute weighting is used to segment the crack information and background information. On the basis of crack skeleton extraction, the length and width of the crack are measured, and the length and width of the crack in the MEMS deviceS images processed by the methods of references [14], [15] and [27] are measured. The measurement results are shown in Tables II and III. TABLE Ⅱ <u>CRACK LENGTH TEST RESULTS</u> The detection method proposed <u>in this paper</u> No. Manual measurement <u>method</u> Reference [14] Reference [15] Reference [27] Original image 1 215 223 201 204 225 Original image 2 37 33 24 26 43 Original image 3 82 87 71 92 90 Original image 4 64 69 52 72 71 TABLE Ⅲ <u>CRACK WIDTH TEST RESULTS</u> The detection method proposed <u>in this paper</u> No. Manual measurement <u>method</u> Reference [14] Reference [15] Reference [27] Original image 1 17 14 11 9 13 Original image 2 26 28 31 19 29 Original image 3 21 25 10 28 26 Original image 4 19 22 12 25 23 In Tables II and III, the units of the result are μm. Through Tables II and III, the error between the crack detection results of the method proposed in this paper and the methods of references [14], [15] and [27] and the manual measurement results is obtained. Figure 13 is the crack length error result, and Figure 14 is the crack width error result. FIGRUE 13. Calculation error of crack length. FIGRUE 14. Calculation error of crack width. In Figures 13 and 14, <sup>_e_</sup> _l_ 1 <sup>and</sup> _ew_ 1 are the absolute error of crack length and crack width obtained by the proposed ##### method and manual measurement method, respectively; el 2 and _ew_ 2 are the absolute error of crack length and crack width obtained by method of reference [14] and manual measurement method, respectively; <sup>_e_</sup> _l_ 3 and <sup>_e_</sup> _w_ 3 are the absolute error of crack length and crack width obtained by method of reference [15] and manual measurement method, ##### respectively; el 4 and ew 4 are the absolute error of crack length and crack width obtained by method of reference [27] ##### and manual measurement method, respectively; n is the number of MEMS devices image. It can be seen from Figures 13 and 14 that the maximum absolute errors between the length and width of the crack detected by the proposed method and the manual measurement method are the smallest, which are 8μm and 4μm respectively. The deviation between the detection results of the method proposed in reference [14] and the manual measurement method is the largest, which is related to its inability to effectively deal with the characteristics of false defects. The deviation between the detection results of the method proposed in reference [27] and the manual measurement method is close to the deviation between the detection results and the manual measurement method in this paper, which is slightly larger. This is related to the effective training of YOLOv4 network, which can improve the detection accuracy. In order to verify the superiority of the crack detection method proposed in this paper, the running time of the image processing of the MEMS devices taken by 1000 frames is tested. The methods of this paper, references [14], [15] and [27] are used respectively. The comparison results are shown in Table IV. TABLE Ⅳ <u>CRACK DETECTION COMPARISON RESULTS</u> Crack test method Testing time / s Accuracy of detection Reference [14] 129.6 47.8% Reference [15] 311.7 71.3% Reference [27] 452.0 86.2% Method of this paper 248.1 94.6% It can be seen from Table IV that reference [14] has a great advantage in training time, but the effect of defect detection is not ideal, and the accuracy rate is only 47.8 %. This is mainly through the combination of Kirsch operator and Canny operator to realize the edge detection of surface defects. It is difficult to effectively deal with the problems of uneven illumination or serious noise interference in crack defect images. Compared with the method in reference [14], the detection method in reference [15] can effectively improve the accuracy of detection, but its detection time is also greatly increased. The surface defect detection method of electronic components based on improved YOLOv4 is proposed in reference [27]. Although the accuracy of detecting cracks on MEMS devices is improved compared with references [14] and [15], its detection time is longer, which is not conducive to practical engineering applications. The method proposed in this paper not only has an accuracy of 94.6 %, but also has a relatively short detection time, which is more conducive to the accurate detection of cracks of MEMS devices image in practical engineering experiments. VI. CONCLUSIONS In order to extract the crack information in the MEMS devices image efficiently and accurately, the MEMS devices image is blurred and contains a lot of irrelevant information. The edge of the defect in the MEMS devices image is extracted by image detail sharpening, grayscale processing, image enhancement and edge processing based on Canny operator, and the pseudo crack information similar to the crack defect is removed by the least square method. The crack detection method based on attribute weighted naive Bayes improved OTSU algorithm is studied. The Zhang-Suen refinement algorithm is used to extract the crack skeleton, and the calculation method of crack length and width is established. Through experimental verification, the method proposed in this paper can accurately detect the cracks of MEMS devices image. The research results provide a detection method for the reliable and stable operation of MEMS devices under high impact. ACKNOWLEDGMENT This research was funded the project of science and technology on reliability physics and application technology of electronic component laboratory (Grant number:2022-JCJQ-LB-067/6142806220301) REFERENCES [1] Hari K, Verma SK, Krishna IRP, Seena V. Out-of-plane dual flexure MEMS piezoresistive accelerometer with low cross axis sensitivity. _Microsystem_ _Technologies-Micro-and_ _Nanosystems-Information_ _Storage and Processing Systems_, 2018, 24(5):2437-2444. [2] Jianxiong Zhu, Xinmiao Liu, Qiongfeng Shi, Tianyiyi He, Zhongda Sun, Xinge Guo, Weixin Liu, Othman Bin Sulaiman, Bowei Dong, Chengkuo Lee. Development trends and perspectives of future sensors and MEMS/NEMS. _Micromachines_, 2020, 11(1):1-30. [3] Yan Wang, Jian Zhao, Pengbo Liu Yang Xia. Design and experimental error analysis of triaxial accelerometer based on PZT tube support structure. _Chinese Journal of Scientific Instrument_, 2020, 41(7):91-98. [4] Kaifu Li, Ting Jiang, Xiaowei Guo, Shaorong Li, Longguan Zhang, Xing Zhang, Song Mou. Design of three-mass MEMS triaxial capacitive accelerometer. _Journal of Electronic Measurement and_ _Instrumentation_, 2021, 35(10):193-201. [5] Yujun Yang, Peng Wang, Manlong Chen, Changming Zhang, Fan Yang, Fangfang Chen. Simulation design of high g value piezoresistive acceleration sensor. _Transducer and Microsystem_ _Technologies_, 2022, 41(6):78-82. [6] Jie He, Weiwei Gao, Hui Wang, Binbin Yue, Fan Zhang, Zhigang Zhang. Wheel steering angle measurement method of agricultural machinery based on GNSS heading differential and MEMS gyroscope. _Journal of South China Agricultural University_, 2020, 41(5):91-98. [7] Weijie Tian, Xiaofeng Wang, Jie Luo. Spacecraft hidden target point measurement based on MEMS laser radar. _Computer Measurement_ _and Control_, 2020, 28(3):1-5. [8] Congchun Zhang, Yuan He, Jiacheng Xie, Debo Wang. Optimization of overload power of capacitive MEMS microwave power sensor. _Microelectronics_, 2021,51(3):434-438. [9] Umanskii AA, Simachev AS, Golovatenko AV, Dumova LV. Nature detection of internal defects in railroad rails produced by EVRAZ ZSMK company using ultrasonic control in mill flow. _Metal Science_ _and Heat Treatment_, 2022, 64(5-6):350-354. [10] Hongbin Liu, Xinghao Jia, Chenhui Su, Hongjuan Yang, Chengdong Li. Tire appearance defect detection method via combining HOG and LBP features. _Frontiers in Physics_, 2022,10:1099261. [11] Yetong Shang, Chenghao Liu, Jing Wang, Xiangzhi Kong, Yuyang He, Honglei Wei. Machine vision inspection of surface defects of stamping blank. _Modular_ _Machine_ _Tool_ _and_ _Automatic_ _Manufacturing Technique_, 2022,12:85-88. [12] Zhendong He, Yaonan Wang, Jie Liu, Feng Yin. Background differencing-based high-speed rail surface defect image segmentation. _Chinese Journal of Scientific Instrument_, 2016, 37(3):640-649. [13] Meng Guo, Liaolin Hu, Jiangtao Zhao. Surface defect detection method of ceramic bowl based on Kirsch and Canny operator. _Acta_ _Optica Sinica_, 2016, 36(9):27-33. [14] Xuanran Liu, Liqiang Zhu, Yaodong Wang, Zujun Yu. A crack detection system of subway tunnel based on image processing. _Measurement and Control_, 2022, 55(3-4):164-177. [15] Hongfeng Lv, Hao Xia, Jun Luo, Lei Liu. Surface defect detection of electronic components based on machine vision. Electronic _Product_ _Reliability and Environmental_, 2021,39(S1): 18-21. [16] HweeKwon Jung, ChangWon Lee, Gyuhae Park. Fast and non invasive surface crack detection of press panels using image processing. _Procedia Engineering_, 2017,188:72-79. [17] Xiangguang Li, Qinwen Huang, Yunhui Wang, Qinwen Huang, Zhibin Wang. The response of electrostatic MEMS structure under mechanical shock and electrostatic forces. _Applied Mechanics and_ _Materials_, 2013, 427:120-123. [18] Di Wang, Tao Shen. Research on weak and small infrared target detection algorithm under complex sky background. _Acta Optica_ _Sinica_, 2020, 40(5):103-110. [19] Mei Liu, Xinsong Xue, Guangwen Liu, Zhi Liu, Hua Cai. Contrast enhancement algorithm for gray scale of color images. _Journal of_ _Changchun University of Science and Technology (Natural Science_ _Edition)_, 2018, 41(5):70-74. [20] Mousania Younes, Karimi Salman, Farmani Ali. Optical remote sensing, brightness preserving and contrast enhancement of medical images using histogram equalization with minimum cross-entropyOtsu algorithm. _Optical and Quantum Electronics_ . 2022, 55(2):105. [21] Lapusinskij Aleksandr, Suzdalev Ivan, Goranin Nikolaj, Janulevicius Justinas, Ramanauskaite Simona, Stankunavicius Gintautas. The application of hough transform and canny edge detector methods for the visual detection of cumuliform clouds. _Sensors_, 2021, 21(17): 5821. [22] Yi Wang, Yuhao Huang, Kai Yang, Zhihan Chen, Cheng Luo. Generator fault classification method based on multi-source information fusion naive Bayes classification algorithm. _Energies_, 2022, 15(24): 9635-9635. [23] Wei Zhang, Zhihai Wang, Jidong Yuan, Haiyang Liu. A locally attribute weighted naive Bayes classifier. J _ournal of Beijing Jiaotong_ _University_, 2018,42(2):14-21. [24] Yujun Bao, Lili Zhou, Peng Duan. A weighted naive Bayes classification algorithm based on a genetic algorithm. _Journal of_ _Yunnan Minzu University (Natural Sciences Edition),_ 2018, 27(6): 525-529. [25] Shuang Shi, Pengfei Feng, Qian Sun. An algorithm for target extraction based on Bayesian estimation and multi between-cluster variance. _Journal of Projectiles, Rockets, Missiles and Guidance_, 2020, 40(2):32-34. [26] Yanjuan Wu, Jian Wang, Yunliang Wang. Crop stem recognition and localization method based on skeleton extraction algorithm. _Transactions of the Chinese Society for Agricultural Machinery_, 2022, 53(11):334-340. [27] Feng Wen, Yuming Chen. Research on surface defect detection technology of electronic components based on improved YOLOv4. _Journal of Shenyang Ligong University_, 2021, 40(2):1-8. Yu Zheng received his bachelor's degree in applied physics from Jilin University in 2008. He is currently a senior engineer at the East China Institute of Photo-Electron IC, mainly engaged in the research and development of MEMS devices and integrated circuits, as well as research on testing technology. Susu Li received a bachelor's degree in Environmental engineering from Anhui University of Science and Technology in 2005. She is currently a senior engineer at the East China Institute of Photo-Electron IC, mainly engaged in the research and development of MEMS devices and integrated circuits. Yuan Xiang received the B.S. degree in material forming and control engineering from Huazhong University of Science and Technology in 2011. He is currently a senior engineer of East China Institute of PhotoElectron IC, mainly engaged in research on packaging technology of special devices and integrated product groups. Zhenxing Zhu received the B.S. degree in communication engineering from Nanjing University of Science and Technology, Nanjing, China, in 2010. Then he received the M.S. degree in communication and information system from Xi'an Technological University, Xi'an, China, in 2013.He is currently a senior engineer with East China Institute of PhotoElectron IC,where he is engaged in research and development of semiconductor integrated circuit and hybrid integrated circuit.

섹션 본문 105문단 · 33,028자

(제목 없음)

1In order to solve the problem that the crack defects generated on the surface of MEMS devices are difficult to detect under high overload impact, this paper proposes a crack detection method based on attribute weighted naive Bayes improved OTSU algorithm.Based on the analysis of the surface defects in MEMS devices image, the edge information of the crack defect in the image is extracted by image processing such as image detail sharpening, grayscale processing, image enhancement and edge extraction based on Canny operator, and the pseudo crack in the image is removed by the least square method; the attribute weighted naive Bayes algorithm is introduced to improve the traditional OTSU image processing method, the crack defect detection results of the MEMS devices image are obtained, the crack defects are quantitatively characterized, and the length and width of the crack defects are calculated.Comparative experiments were conducted using multiple detection methods, the results showed that the crack detection method proposed in this paper can obtain the crack defect information of MEMS devices efficiently and accurately.

I. INTRODUCTION

2The modules of Micro-Electro-Mechanical-Systems (MEMS) mainly include micro-sensor, signal processing circuits and micro-actuators, etc. [1], [2], [3], and the size of these modules is between a few microns and a few millimeters, with the characteristics of miniaturization, high precision, high reliability and low power consumption [4], [5].Nowadays MEMS devices are widely used in aerospace, medical, military and other fields, and have important application value [6], [7], [8].MEMS devices play a crucial role in various application scenarios; they must deal with a variety of complex environments, so that their entire life cycle will be subjected to temperature, humidity, vibration, shock, radiation and other environmental stresses independent or coupled effects.In the field of weapon testing, due to the phenomenon of high overload during the launch of the projectile, under the action The associate editor coordinating the review of this manuscript and approving it for publication was Sudhakar Radhakrishnan .

3of high overload, it is easy to cause the phenomenon of high temperature burning or extrusion of MEMS devices in the missile-borne actuator, which makes the chip pin fall off or the surface crack and other defects, which will cause the missile-borne actuator to lose its own performance.Therefore, in the missile-borne test experiment, a high overload experiment is often required.The performance change of the MEMS device is observed by applying a high acceleration simulation experiment to the MEMS device.After the simulation experiment, the MEMS device after high acceleration impact is removed, and the defects on the chip surface are detected by artificial or machine vision methods.

4In traditional experiments, manual detection is used to detect defects.However, manual detection has many variable factors and cannot quantitatively describe defects, which affects the accuracy and reliability of detection.Therefore, manual detection has a significant subjective impact, poor real-time performance, high labor intensity and high false detection rate.With the development of computer image processing technology, the method of using machine vision equipment such as metallographic microscopy, ultrasonic scanning and X-ray scanning to obtain images and judge the surface defect information in the images has been developed [9].The introduction of machine vision reduces the manual operation of surface defect detection and improves the automation level of the detection process.In recent years, many scholars have conducted relevant research on defect detection based on machine vision.Yuan et al. [10] proposed a tire appearance defect detection method combining Histogram of Oriented Gradient (HOG) and Local Binary Pattern (LBP) features.Firstly, a tire image data set is constructed to provide defective and normal tire images.Then, the HOG and LBP features of the tire image are extracted respectively to train the Support Vector Machine (SVM) classifier.Finally, the SVM classifier combines HOG and LBP feature to calculate the prediction scores of the test image.These scores can be used to determine whether the test image is a defective tire image or a normal tire image, so as to achieve the purpose of tire appearance defect detection.Aiming at the problem of surface defects of stamping blanks, Shang et al. [11] proposed a method for detecting surface defects of stamping blanks by combining Normalization Cross Correlation (NCC) template matching accelerated based on Gaussian pyramid and background subtraction.In order to segment defects from complex rail surface images during high-speed motion, He et al. [12] established a background model of rail surface images based on the fact that the rail surface images have basically unchanged pixel values along the rail direction, and proposed a rail surface defect detection algorithm based on background difference.To a certain extent, this method solves the influence of adverse factors such as image illumination changes, uneven reflection, and few features during the segmentation of rail surface defects.Guo et al. [13] proposed a method for surface defect detection of ceramic bowls based on machine vision.This method mainly realizes the edge detection of surface defects by combining Kirsch operator and Canny operator.It is difficult for traditional image processing algorithms to effectively deal with the problems of uneven illumination or serious noise interference in subway tunnel crack defect images.Liu et al. [14] studied an improved crack detection algorithm based on structural analysis based on pixel-level processing to improve the quality of tunnel images.In terms of using image processing methods to detect electronic components, Jung et al. [15] used the camera system to capture the defect data image of the plate product.By analyzing and processing the images, they proposed crack detection technology based on image processing.The detection method mainly locates the defect position of the electronic components and realizes the crack defect detection.Lv et al. [16] proposed to use Canny-region splitting and merging algorithm to detect surface defects such as scratches and dirt on the surface of electronic components.Although there are many good ideas and methods to detect defects by using image processing technology, there is no relevant reference on the detection of crack defects of the surface of MEMS devices under high overload.Moreover, due to the fact that the surface of the MEMS devices is actually a metal surface, there is a reflection effect and the defect characteristics are not obvious, it is difficult to locate during detection, which is easy to cause false detection and missed detection, and the detection is difficult.According to the analysis of surface defects of MEMS devices, this paper proposes a crack detection method based on attribute weighted naive Bayes improved OTSU algorithm, and quantitatively characterizes the crack on the basis of extracting the crack skeleton.These information can provide data basis for detecting the failure of MEMS devices under high overload.

5The main contributions and highlights of this paper are:

6(1) According to the analysis of MEMS devices image surface defects, the defect edge information in the image is extracted by image detail sharpening, grayscale processing, image enhancement and edge extraction based on Canny operator, and the pseudo crack in the image is removed by least square method.

7(2) Based on the traditional OTSU image processing method, the attribute weighted naive Bayes algorithm is introduced to improve the OTSU algorithm, and the crack defect detection results of MEMS devices images are obtained.

8(3) The Zhang-Suen thinning algorithm is used to extract the crack skeleton of the MEMS devices image, and the calculation model of the length and width of the crack is established.

9The structure of the paper is arranged as follows: Section II introduces the detailed process of image processing of MEMS devices.Section III gives the crack defect detection method of MEMS devices image.Section IV describes the quantitative characterization calculation method of crack defects of MEMS devices image.Section V gives the experiment and result analysis of crack defects of MEMS devices image.Section VI gives a summary.

II. THE SURFACE DEFECT ANALYSIS AND IMAGE PROCESSING OF MEMS DEVICES A. ANALYSIS OF SURFACE DEFECTS OF MEMS DEVICES

10MEMS devices usually work in a resonant state.During the working process, the movable parts carry out cyclic mechanical movements in specific forms, such as stretching, compression, bending, vibration, thermal expansion and thermal contraction [17], the alternating stress will gradually accumulate the fatigue damage of the material, resulting in cracks, and even lead to structural fracture, make the MEMS device unusable.Figure 1 (a) shows that a curved crack is generated inside the MEMS device under high overload.Cracks will propagate from the surface of the MEMS device along the thickness direction, which makes the MEMS device have serious reliability problems and affects its normal operation.Figure 1 (b) shows that there are cracks between the two metals in the MEMS device.The cracks will form an electrical path between the two strips of metal, resulting in a short circuit during normal operation of the MEMS device.The crack defects caused by stress sensitivity are often related to the production environment, processing technology and micro-component materials of the MEMS device, and even involve the design of molds or micro-component structures.In Figure 1, there are some crack defects in the red frame.

B. MEMS DEVICES IMAGE PROCESSING

11In order to eliminate the defect-independent information in the MEMS devices image and improve the detection accuracy of the surface defects in the MEMS devices image, the image needs to be processed.The specific process is shown in Figure 2.

1) IMAGE DETAIL SHARPENING

12The MEMS devices images are inevitably blurred during the collection process.In order to enhance the detail information of the MEMS devices image and highlight the edge details of the surface crack of MEMS devices, bilateral filtering is used to sharpen the MEMS devices images.The spatial proximity of the collected image and the pixel value are taken as the weight conditions, which not only considers the Euclidean distance of the pixel space domain, but also considers the difference of the gray value in the pixel range domain [18], so as to realize the filtering and denoising processing under the condition of ensuring the edge information of the image.

13Suppose that (i 0 , j 0 ) is the coordinates of the central pixel, (a, b) is the coordinates of one pixel in the neighborhood of (i 0 , j 0 ) and g p (i 0 , j 0 ) is the gray prediction value of the central pixel, then

14where F (a, b) is the gray value of the neighborhood pixel; the weighting coefficient W (i 0 , j 0 , a, b) is the comprehensive result of the spatial domain kernel and the pixel range domain kernel.The expressions of the spatial domain kernel and the pixel range domain kernel are shown in formulas ( 2) and (3).

15where σ r and σ s are spatial standard deviation and gray standard deviation, respectively.Bilateral filtering is a compromise processing method by combining the spatial proximity of the image and the similarity of the pixel values, and taking into account the spatial information and gray similarity to achieve the purpose of edge preservation and denoising.Figure 3 It can be seen from Figure 3 that bilateral filtering can not only sharpen the surface crack details of MEMS devices image and highlight the surface crack characteristics of components, but also reduce the influence of surface stains and other factors on the image.

2) IMAGE GRAY PROCESSING

16The original images of MEMS devices collected in this paper are all color images.The color images are synthesized by red, green and blue colors, which are also called RGB images.Because the color features of the crack of MEMS devices image are not rich, the MEMS devices image is grayed, that is, the RGB color image is converted into a grayscale image, which not only retains the main features of the image, but also reduces the computational cost of the computer.

17If any pixel in the image is defined as (i, j), and the gray value here is Gray(i, j), the values corresponding to the three color channels are R(i, j), G(i, j), B(i, j), respectively.The corresponding weights are κ 1 , κ 2 , κ 3 , respectively.These weights satisfy κ 1 + κ 2 + κ 3 = 1.The appropriate weighted average of RGB three primary color components can obtain the best gray image.

18The MEMS device image after sharpening process is implemented by the weighted average grayscale method [19], and the converted grayscale image is shown in Figure 4.

3) IMAGE ENHANCEMENT

19In order to improve the unobvious defect features in MEMS devices image, it is necessary to improve the contrast of MEMS devices images.Taking any point x(i, j) of the image as the center, in the area with a window size of (2n + 1) × (2n + 1), the local mean and variance can be expressed as:

20where h x (i, j) is the mean value, which can be approximately considered as the background part; x (k, l) is the pixel value in the (2n + 1)×(2n + 1) region; σ 2

21x (i, j) is the local variance [20].At this time, x(k, l)−h x (i, j) is the high-frequency detail part, and the gain product of the high frequency is:

22where f (i, j) is the value after gain.

23Based on Figures 4 (a) and 4(b), the effect of image enhancement is shown in Figure 5. Comparing figures 3,4 and 5, it can be seen that after the image enhancement processing of the collected MEMS devices images, the crack defect contour is clearer, which effectively improves the contrast of the image and provides more useful information for the boundary extraction of the next crack defect.

4) CRACK DEFECT BOUNDARY EXTRACTION

24In order to realize the extraction of the image area of the MEMS devices, the detected crack edge pixels and their surrounding pixels are defined as sensitive areas and positioned by detecting the crack edge or linear characteristics.Based on Canny operator detection algorithm, the crack edge of MEMS devices image is roughly extracted.The specific steps are as follows:

25(1) In order to remove noise, Gaussian filtering is used to smooth the MEMS devices images [21].

26Firstly, the original color image of the MEMS devices is grayed, and then the MEMS devices image is denoised by convolution operation with Gaussian function.

27where h(x, y) is the Gaussian function of the omitted coefficient; f (x, y) is the grayscale image and g(x, y) is the smoothed image.

28(2) Calculate the amplitude and direction of the gradient.The direction of calculating the gradient is to find the position where the gray value changes the most in the image.The calculated amplitude of the gradient is:

29The direction of the gradient is:

30where

31(3) Non-maximum suppression of amplitude.

32After the gradient is calculated, the crack edge cannot be determined immediately.The point with the largest local gradient needs to be retained and the local non-maximum value needs to be set to zero.

33(4) Double threshold detection edge.The two thresholds of T 1 and T 2 are used to detect the edge, where T 1 < T 2 , the edge pixel with a gradient greater than T 2 is a strong edge point.If it is between T 2 and T 1 , this point is a weak edge point.If the gradient value of the pixel is less than T 1 , it is considered that this point is not an edge point and suppresses this point.For weak edge points, it is not sure whether they are edge points, so it is necessary to judge by searching the eight connected regions of pixels, which can get two threshold edge images.

34Based on Figure 5, the results of Canny operator to extract its edge features are shown in Figure 6.

5) PSEUDO CRACK DEFECT REMOVAL

35There is false crack information in the images of MEMS devices taken by imaging equipment, which are horizontally or vertically distributed with the longitudinal axis of the device, and are similar to the gray scale of crack defects.In order to prevent false cracks from being misjudged as cracks in crack detection and improve the segmentation accuracy of image segmentation, false cracks are removed by image processing methods.From the morphological properties of the crack and the pseudo-crack formed by the tangent, the variance of the pixel distribution of the crack and the pseudo-crack can be calculated by the least square method.The variance of the pixel distribution of the pseudo-crack formed by the tangent is linearly related to the tangent length, and the distribution variance of the pseudo-crack is very small.On the contrary, the real crack is random and uncertain, and the variance of the distribution of different crack pixels is not related to the length, and the variance of the crack distribution is large.The steps of the pseudo crack removal algorithm are as follows:

36(1) Based on the MEMS devices image extracted from the edge of the crack defect, the MEMS devices image is scanned, and the continuous curves in the image are numbered and stored.

37(2) The unprocessed and stored curves in the image are tested in turn.If they cannot be found, the algorithm ends.

38(3) The least squares algorithm is used for the pixels on the curve.

39(4) The variance of the pixel distribution of the curve is obtained by the least square algorithm.If the variance of the distribution is less than the set value, the curve is a pseudo crack, and the pixel points of the curve should be removed.Otherwise, the pixel points of the curve are retained.

40The pseudo-cracks are removed from Figure 6 after Canny operator extracts the edge features of the defect image, and the MEMS devices image after removing the pseudo-cracks is obtained, as shown in Figure 7. Comparing Figures 6 and 7, it can be seen that the pseudo cracks in the images of MEMS devices have been obviously removed, which can effectively improve the accuracy of subsequent crack detection.

III. CRACK DEFECT DETECTION OF MEMS DEVICES IMAGE

41When the gray difference between the cracks in the MEMS devices image and the gray level of the device itself is not large, the double peaks in the histogram of the MEMS devices image are not obvious enough, and the effect of the OTSU algorithm is not ideal.In order to improve the detection effect of the algorithm, the attribute weighted naive Bayes algorithm is introduced into the traditional OTSU image processing method [22], [23].

42Naive Bayesian classification algorithm is:

43where P(C|X ) is the posterior probability that condition X belongs to category C; P(X |C) is the posterior probability that category C belongs to condition X ; P(C) is the prior probability of class C and P(X ) is the prior probability of condition X .

44If there are a total of n attribute variables

45represents the specific value of the attribute variable, and there are m category variables C, which have different values

46as the training set.Under the premise of independent assumptions, there is:

47The posterior probability is:

48If P(x) is a constant, the naive Bayesian model is:

49In order to improve and enhance the classification effect of the traditional Naive Bayes algorithm, different weights are given to each type of attribute according to the degree of influence of each type of attribute on the classification.This method not only has the high classification accuracy of the traditional naive Bayes algorithm, but also reduces the negative impact of the association between certain attributes in practice.The formula of attribute weighted optimization naive Bayesian model is:

50where ω(i) is the weight value of class attributeA i .

51In MEMS devices image processing, the MEMS devices image is converted into a grayscale image.The grayscale image is a two-dimensional matrix, so the pixels in the MEMS devices image are discrete data.The segmentation of the OTSU algorithm can also be regarded as a grayscale classification [24], [25].Based on this feature, the attribute weighted naive Bayesian algorithm is used to improve the OTSU algorithm.

52Assuming that the total number of pixels is N gray imageG N ; the gray level is L N and the gray histogram is

53The average probability of each gray level in G N 0 is:

54where ω e0 is the weighting coefficient,

55GR(e)

56, GR(e)

57is the gain rate of the gray level e.

58The average probability of each gray level in G N 0 becomes:

59Similarly, the average probability of each gray level in G N 1 is:

60where ω e1 is the weight coefficient of each gray level in

61.

62Therefore, the mean value of the original grayscale image is:

63Because the image is divided into two categories to calculate the maximum variance between the two parts, the variance of the G N 0 part is:

64The overall variance of the original grayscale image is:

65The crack detection results are shown in Figure 8.

IV. QUANTITATIVE CHARACTERIZATION OF CRACK DEFECTS of MEMS DEVICES IMAGE

66The crack defects are segmented by MEMS devices image processing.In order to improve the accuracy of crack measurement, the crack is quantitatively characterized on the basis of the segmented crack image, and the length and width of the crack are calculated.It is necessary to extract the crack skeleton first, and the Zhang-Suen refinement algorithm is used to extract the crack skeleton of the MEMS devices image [26].

A. CRACK DEFECT LENGTH

67The steps of crack length calculation are as follows:

68(1) The crack skeleton diagram is divided into n regions, and the distance between each point in each region is calculated.

69(2) Take the longest distance as the crack length in the region:

70where

71(3) Add the crack lengths of n rectangular regions, and the total length of the crack is:

72The flow chart of crack width calculation is shown in Figure 9. then calculate the width of the crack in each rectangular neighborhood.Let D be the radius of the neighborhood and A be the linear neighborhood, then:

73where I g (x D , y D ) is the crack point and (x i , y i ) is the neighborhood point coordinate.

74The mean and standard deviation of the MEMS devices image in the neighborhood are defined as:

75The variable P o1 is set to represent the boundary of one side of the crack, which is:

76Similarly, the scalar P o2 is defined to calculate the other side boundary, which is:

77The width of the crack is calculated as:

78Based on the two images of MEMS devices provided in Figure 1, the quantitative characterization of cracks is obtained by image processing, as shown in Table 1.The test results are as follows: the maximum deviation between the proposed method and the actual crack length is 6µm, and the maximum deviation from the actual crack width is 5µm.

V. EXPERIMENTS AND RESULT ANALYSIS

79Based on the collected many MEMS devices images with different crack defects, the MEMS devices defect detection method based on image processing proposed in this paper is used for image processing.In order to verify the detection accuracy of this method, a comparative test of detection accuracy is carried out.The original images of different MEMS devices are shown in Figure 10.In Figure 10, there are some crack defects in the red frame.The image obtained by the image processing method proposed in this paper is shown in Figure 11.The crack detection results of the proposed method and other methods in [14], [15], and [27] are shown in Figure 12.In Figure 12, (a1) -(a4) are the crack detection results of the original image 1 using the method proposed in this paper, the References [14], [15], and [27]; (b1) -(b4) are the crack detection results of the original image 2 using the method proposed in this paper, the References [14], [15], and [27]; (c1) -(c4) are the crack detection results of the original image 3 using the method proposed in this paper, the References [14], [15], and [27]; (d1) -(d4) are the crack detection results of the original image 4 using the method proposed in this paper, the References [14], [15], and [27].In order to reflect the effect of the proposed method for extracting cracks, the cracks in Figures 12(a1), (b1), (c1) and (d1) were marked, the red part marked the cracks of the MEMS devices, so that the morphology of the cracks, such as length, width and properties, could be seen more directly and clearly.

80The collected MEMS devices images are processed, and the OTSU algorithm improved by the naive Bayesian algorithm based on attribute weighting is used to segment the crack information and background information.On the basis of crack skeleton extraction, the length and width of the crack are measured, and the length and width of the crack in the MEMS devices images processed by the methods of References [14], [15], and [27] are measured.The measurement results are shown in Tables 2 and 3.

81In Tables 2 and 3, the units of the result are µm.Through Tables 2 and 3, the error between the crack detection results of the method proposed in this paper and the methods of References [14], [15], and [27] and the manual measurement results is obtained.Figure 13 is the crack length error result, and Figure 14 is the crack width error result.

82In Figures 13 and 14, e l1 and e w1 are the absolute error of crack length and crack width obtained by the proposed method and manual measurement method, respectively; e l2 and e w2 are the absolute error of crack length and crack width obtained by method of Reference [14] and manual measurement method, respectively;e l3 and e w3 are the absolute error of crack length and crack width obtained by method of Reference [15] and manual measurement method, respectively; e l4 and e w4 are the absolute error of crack length and crack width obtained by method of Reference [27] and manual measurement method, respectively; n is the number of MEMS devices image.It can be seen from figures 13 and 14 that the maximum absolute errors between the length and width of the crack detected by the proposed method and the manual measurement method are the smallest, which are 8µm and 4µm respectively.The deviation between the detection results of the method proposed in Reference [14] and the manual measurement method is the largest, which is related to its inability to effectively deal with the characteristics of false defects.The deviation between the detection results of the method proposed in Reference [27] and the manual measurement method is close to the deviation between the detection results and the manual measurement method in this paper, which is slightly larger.This is related to the effective training of YOLOv4 network, which can improve the detection accuracy.

83In order to verify the superiority of the crack detection method proposed in this paper, the running time of the image processing of the MEMS devices taken by 1000 frames is tested.The methods of this paper, References [14], [15], and [27] are used respectively.The comparison results are shown in Table 4.It can be seen from Table 4 that reference [14] has a great advantage in training time, but the effect of defect detection is not ideal, and the accuracy rate is only 47.8 %.This is mainly through the combination of Kirsch operator and Canny operator to realize the edge detection of surface defects.It is difficult to effectively deal with the problems of uneven illumination or serious noise interference in crack defect images.Compared with the method in Reference [14], the detection method in Reference [15] can effectively improve the accuracy of detection, but its detection time is also greatly increased.The surface defect detection method of electronic components based on improved YOLOv4 is proposed in Reference [27].Although the accuracy of detecting cracks on MEMS devices is improved compared with References [14] and [15], its detection time is longer, which is not conducive to practical engineering applications.The method proposed in this paper not only has an accuracy of 94.6 %, but also has a relatively short detection time, which is more conducive to the detection of cracks of MEMS devices image practical engineering experiments.

VI. CONCLUSION

84In order to extract the crack information in the MEMS devices image efficiently and accurately, the MEMS devices image is blurred and contains a lot of irrelevant information.The edge of the defect in the MEMS devices image is extracted by image detail sharpening, grayscale processing, image enhancement and edge processing based on Canny operator, and the pseudo crack information similar to the crack defect is removed by the least square method.The crack detection method based on attribute weighted naive Bayes improved OTSU algorithm is studied.The Zhang-Suen refinement algorithm is used to extract the crack skeleton, and the calculation method of crack length and width is established.

85Through experimental verification, the method proposed in this paper can accurately detect the cracks of MEMS devices image.The research results provide a detection method for the reliable and stable operation of MEMS devices under high impact.MEMS is a microsystem based on the movable micromechanical chip produced by the combination of microelectronics chip manufacturing technology and precision machinery.It is a new chip technology with distinctive interdisciplinary characteristics, which brings transformative development for the miniaturization, integration and intelligence of mechanical and electrical products.Among, MEMS devices have the advantages of high integration, strong function, light weight, low power consumption, low thermal constant, vibration resistance, shock resistance and radiation resistance; it plays an important role in miniaturization, low cost and performance improvement of the system.

86In the fields of consumer electronics and automotive electronics, mass manufacturing technology is vigorously developed through high-volume MEMS devices, while high-end MEMS devices in aerospace and other fields need to develop their customized manufacturing technology in order to obtain MEMS devices that meet special needs.The development trend of MEMS devices in aerospace systems is to replace large and bulky devices on space carriers, communication and navigation platforms and payloads, and finally realize the miniaturization, intelligence and integration of aerospace systems.In the application of MEMS devices in aerospace systems, the radiation, vacuum, thermal shock, vibration and packaging in the space specific working environment directly affect its reliability, so it is necessary to further promote more in-depth research on MEMS devices, especially in the aspect of high reliability.It can be seen that the research work in this paper has certain application value.

FIGURE 1 .

87FIGURE 1. Surface crack defect image of MEMS device.

88(a) is the detail sharpening processing result of MEMS devices image (curved cracks), and Figure 3 (b) is the detail sharpening processing result of MEMS devices image (cracks penetrating between two metals).

FIGURE 2 .FIGURE 3 .

89FIGURE 2. Image processing flow chart.

FIGURE 4 .

90FIGURE 4. Grayscale processing of MEMS devices Image.

FIGURE 5 .

91FIGURE 5. Image enhancement processing result of MEMS devices.

FIGURE 6 .

92FIGURE 6.The edge feature extraction results of MEMS devices image.

FIGURE 7 .

93FIGURE 7. Pseudo crack removal effect of MEMS devices image.

94the gray probability density of e is p(e) = n(e)/N , e = 0, 1, • • • L − 1, and n(e) represents the number of pixels when the gray level is e, ) = 1.Let the initial threshold value T = 1, the original crack gray image is divided into two parts: G N 0 and G N 1 , then the gray level probability of G N 0 is:

FIGURE 8 .

95FIGURE 8. detection result of MEMS devices image.

FIGURE 9 .

96FIGURE 9. Flow chart of crack width calculation.

FIGURE 10 .

97FIGURE 10.The collected original image.(a) Original image 1; (b) Original image 2; (c) Original image 3; (d) Original image 4.

FIGURE 12 .

98FIGURE 12. Crack detection result of MEMS devices Images.

FIGURE 13 .

99FIGURE 13.Calculation error of crack length.

FIGURE 14 .

100FIGURE 14. Calculation error of crack width.

101YU ZHENG received the bachelor's degree in applied physics from Jilin University, in 2008.He is currently a Senior Engineer with the East China Institute of Photo-Electron IC, mainly engaged in the research and development of MEMS devices and integrated circuits and research on testing technology.SUSU LI received the bachelor's degree in environmental engineering from the Anhui University of Science and Technology, in 2005.She is currently a Senior Engineer with the East China Institute of Photo-Electron IC, mainly engaged in the research and development of MEMS devices and integrated circuits.YUAN XIANG received the B.S. degree in material forming and control engineering from the Huazhong University of Science and Technology, in 2011.He is currently a Senior Engineer with the East China Institute of Photo-Electron IC, mainly engaged in research on packaging technology of special devices and integrated product groups.ZHENXING ZHU received the B.S. degree in communication engineering from the Nanjing University of Science and Technology, Nanjing, China, in 2010, and the M.S. degree in communication and information system from Xi'an Technological University, Xi'an, China, in 2013.He is currently a Senior Engineer with the East China Institute of Photo-Electron IC, where he is engaged in research and development of semiconductor integrated circuit and hybrid integrated circuit.

TABLE 1 .

102Quantitative characterization of cracks.

TABLE 2 .

103Crack length test results.

TABLE 3 .

104Crack width test results.

TABLE 4 .

105Crack detection comparison results.

참고문헌 13건

  1. The Response of Electrostatic MEMS Structure under Mechanical Shock and Electrostatic Forces Applied Mechanics and Materials · Trans Tech Publications · 2013 10.4028/www.scientific.net/amm.427-429.120
  2. Surface Defect Detection Method of Ceramic Bowl Based on Kirsch and Canny Operator Acta Optica Sinica · Shanghai Institute of Optics and Fine Mechanics · 2016 10.3788/aos201636.0904001
  3. Fast and Non-invasive Surface Crack Detection of Press Panels Using Image Processing Procedia Engineering · Elsevier BV · 2017 10.1016/j.proeng.2017.04.459
  4. Out-of-plane dual flexure MEMS piezoresistive accelerometer with low cross axis sensitivity Microsystem Technologies · Springer Science+Business Media · 2017 10.1007/s00542-017-3679-z
  5. Development Trends and Perspectives of Future Sensors and MEMS/NEMS Micromachines · Multidisciplinary Digital Publishing Institute · 2019 10.3390/mi11010007
  6. Research on Weak and Small Infrared Target Detection Algorithm Under Complex Sky Background Acta Optica Sinica · Shanghai Institute of Optics and Fine Mechanics · 2020 10.3788/aos202040.0512001
  7. A locally attribute weighted naive Bayes classifier Beijing Jiaotong Daxue Xuebao. Zirankexueban · 2018
  8. The Application of Hough Transform and Canny Edge Detector Methods for the Visual Detection of Cumuliform Clouds Sensors · Multidisciplinary Digital Publishing Institute · 2021 10.3390/s21175821
  9. A crack detection system of subway tunnel based on image processing Measurement and Control · SAGE Publishing · 2022 10.1177/00202940211062015
  10. Nature Detection of Internal Defects in Railroad Rails Produced by EVRAZ ZSMK Company Using Ultrasonic Control in Mill Flow Metal Science and Heat Treatment · Springer Science+Business Media · 2022 10.1007/s11041-022-00813-x
  11. Optical remote sensing, brightness preserving and contrast enhancement of medical images using histogram equalization with minimum cross-entropy-Otsu algorithm Optical and Quantum Electronics · Springer Science+Business Media · 2022 10.1007/s11082-022-04341-z
  12. Generator Fault Classification Method Based on Multi-Source Information Fusion Naive Bayes Classification Algorithm Energies · Multidisciplinary Digital Publishing Institute · 2022 10.3390/en15249635
  13. Tire appearance defect detection method via combining HOG and LBP features Frontiers in Physics · Frontiers Media · 2023 10.3389/fphy.2022.1099261