Foreign Detection Based on Wavelet Transform Algorithm with Image Analysis Mechanism in the Inner Wall of the Tube

Jinlong Zhu* , Fanhua Yu* , Mingyu Sun* , Dong Zhao* and Qingtian Geng*

Abstract

Abstract: A method for detecting foreign substances in mould based on scatter grams was presented to protect moulds automatically during moulding production. This paper proposes a wavelet transform foreign detection method based on Monte Carlo analysis mechanism to identify foreign objects in the tube. We use the Monte Carlo method to evaluate the image, and obtain the width of the confidence interval by the deviation statistical gray histogram to divide the image type. In order to stabilize the performance of the algorithm, the high-frequency image and the low-frequency image are respectively drawn. By analyzing the position distribution of the pixel gray in the two images, the suspected foreign object region is obtained. The experiments demonstrate the effectiveness of our approach by evaluating the labeled data.

Keywords: Foreign Substance Inspection , Monte Carlo , Wavelets Transform

1. Introduction

In recent years, it is very important to improve the quality of a foreign substance inspection apparatus, because it could help to determine detecting infinitesimal foreign substances, and to assist industrial production and so on. Products with surface ribs, such as rifled tubes, longitudinally ribbed plates, are more and more widely used in industry and everyday life. In order to ensure the quality of the product, we need to detect the foreign substance in the inner wall of the tube. Many inspection techniques for foreign substance algorithms were presented. Due to the poor resolution and weak contrast, the algorithms are difficult to precisely detect foreign substance, when the image contains noise and artifacts pollute. The object of inspection techniques for foreign substance is to detect all foreign substance. Qin and Wang [1] has study of online inspection technique for foreign substance in ampoule. To enhance the contrast of the background and the foreign substance in ampoule, a reflective lighting method which illuminates in side direction is designed in a vision system. Qin et al. [2] proposed an inspection algorithm based on cascade classifiers is presented for detecting small moving foreign substances with low signalto- noise ratio (SNR) and low contrast in sequential images.

The algorithm obtains three features of absolute difference, local difference contrast and neighborhood correlation from the sequential images of an ampoule. But there are not universal algorithms for inspection [3-5]. The wavelet transformation is one of the most popular of the time-frequencytransformations [6]. The wavelet transform can provide us with the frequency of the signals and the time associated to those frequencies, making it very convenient for its application in numerous fields [7,8]. For instance, signal processing of accelerations for gait analysis [9], for fault detection [10,11], for image compression [12], for design of low power pacemakers and also in ultra-wideband (UWB) wireless communications [10]. Singh and Khare [13] have proposed a new multimodal medical image fusion using Daubechies complex wavelet transform (DCWT) at multiple levels which is based on multiresolution principle. The proposed method fuses the complex wavelet coefficients of source images using maximum selection rule. Banerjee and Mitra [14] propose cross wavelet transform (XWT) to analyze and classify electrocardiogram (ECG) signals. Agarwal et al. [15] propose a novel algorithm for image retrieval based on color edge detection and discrete wavelet transform (DWT). This method is different from the existing histogram-based methods. The proposed algorithm generates feature vectors that combine both color and edge features.

Although the wavelet transform method has many advantages over other methods in foreign matter detection. However, the irregularities of threaded pipe image can produce errors so that influence the stability of the wavelet transformation detection. We propose a foreign object detection algorithm based on wavelet filtering. The wavelet transform has a good local property, carrier phase data can be divided into high frequency part and low frequency part by wavelet transform. The wavelet transform is used to decompose the input image into two parts: high frequency and low frequency, and edge detection is performed separately. The foreign substance recognition is performed on the high frequency edge and the low frequency edge by using the local area square-difference principle in the wavelet domain. We can get more effective recognition results than traditional methods.

Organization of the paper is as follows: in Section 2, the wavelet transform is described. Section 3 describes advanced the foreign body detection algorithm based on wavelet transform. Section 4 introduces the image analysis based on Monte Carlo methods. Section 5 shows implementations of our method and the results. Section 6 summarized our work.

2. Wavelet Transform

A function [TeX:] $$\psi \in L ^ { 2 } ( \mathbb { R } )$$ is called an orthonormal wavelet, if it can be used to define a Hilbert basis that is a complete orthonormal system, for the Hilbert space [TeX:] $$L ^ { 2 } ( \mathbb { R } )$$ of square integrable functions. The Hilbert basis is constructed as the family of functions [TeX:] $$\left\{ \psi _ { j k } : j , k \in \mathbb { Z } \right\}$$ by means of dyadic translations and dilations of [TeX:] $$\psi$$.

(1)
[TeX:] $$\psi _ { j k } ( x ) = 2 ^ { \overline { 2 } } \psi \left( 2 ^ { j } x - k \right) \quad j , k \in \mathbb { Z }$$

If under the standard inner product on [TeX:] $$L ^ { 2 } ( \mathbb { R } )$$

(2)
[TeX:] $$\langle f , g \rangle = \int _ { - \infty } ^ { \infty } f ( x ) \overline { g ( x ) } d x$$

This family is orthonormal, it is an orthonormal system:

(3)
[TeX:] $$\left\langle \psi _ { j k } , \psi _ { l m } \right\rangle = \int _ { - \infty } ^ { \infty } \psi _ { j k } ( x ) \overline { \psi _ { l m } ( x ) } d x$$

where [TeX:] $$\sigma _ { j l }$$ is the Kronecker delta. Completeness is satisfied if every function [TeX:] $$f \in L ^ { 2 } ( \mathbb { R } )$$ may be expanded in the basis as formula (4). With convergence of the series understood to be convergence in norm. Such a representation of f is known as a wavelet series.

(4)
[TeX:] $$f ( x ) = \sum _ { j , k = - \infty } ^ { \infty } c _ { j k } \psi _ { j k } ( x )$$

The feature parameters of wavelet multi-scale edges include direction, amplitude, position and scale. It can effectively denoise and remove the false edges. The method detects the edge of the image F(U, V) by looking for the local extrema of the wavelet transform. Let [TeX:] $$\theta ( u , v )$$, meet

(5)
[TeX:] $$\iint _ { R ^ { 2 } } \theta ( u , v ) d \mu d v = 1 , \lim _ { \mu , y \rightarrow \infty } \theta ( u , v ) = 0$$

(6)
[TeX:] $$\theta _ { s } ( u , v ) = \frac { 1 } { s ^ { 2 } } \theta \left( \frac { u } { s } , \frac { v } { s } \right)$$

(7)
[TeX:] $$\varphi ^ { 1 } ( u , v ) = \frac { \partial \theta ( u , v ) } { \partial \mu } , \varphi 2 = \frac { \partial \theta ( u , v ) } { \partial v }$$

F(U, V) in the s scale on the two component of 2D wavelet transform as follows.

(8)
[TeX:] $$W ^ { 1 } f ( s , u , v ) = \iint _ { R ^ { 2 } } f ( x , y ) \frac { 1 } { s } \varphi ^ { 1 } \left( \frac { x - u } { s } , \frac { y - u } { s } \right) d x d y = \left( f * \varphi _ { s } ^ { 1 } \right) ( u , v )$$

(9)
[TeX:] $$W ^ { 2 } f ( s , u , v ) = \iint _ { R ^ { 2 } } f ( x , y ) \frac { 1 } { s } \varphi ^ { 2 } \left( \frac { x - u } { s } , \frac { y - u } { s } \right) d x d y = \left( f * \varphi _ { s } ^ { 2 } \right) ( u , v )$$

Hence,

(10)
[TeX:] $$\left[ \begin{array} { c } { W ^ { 1 } f ( s , u , v ) } \\ { W ^ { 2 } f ( s , u , v ) } \end{array} \right] = s \left( \begin{array} { c } { \left( f ^ { * } \varphi _ { s } ^ { 1 } \right) ( u , v ) } \\ { \left( f * \varphi _ { s } ^ { 2 } \right) ( u , v ) } \end{array} \right) = s \left( \begin{array} { c } { \frac { \partial } { \partial u } \left( f * \theta _ { s } \right) ( u , v ) } \\ { \frac { \partial } { \partial v } \left( f * \theta _ { s } \right) ( u , v ) } \end{array} \right) = s \nabla \left( f * \theta _ { s } \right) ( u , v )$$

[TeX:] $$\nabla \left( f ^ { * } \theta _ { s } \right) ( U , V )$$ is the gradient of the smoothing function.

(11)
[TeX:] $$M f ( s , u , v ) = \sqrt { \left| W ^ { 1 } f ( s , u , v ) \right| ^ { 2 } + \left| W ^ { 2 } f ( s , u , v ) \right| ^ { 2 } }$$

The angle between the gradient direction and the horizontal direction is:

(12)
[TeX:] $$A f ( s , u , v ) = \arctan \left( \frac { W ^ { 1 } f ( s , u , v ) } { W ^ { 2 } f ( s , u , v ) } \right)$$

Therefore, the maximum value of the smoothing function [TeX:] $$\nabla \left( f * \theta _ { s } \right) ( U , V )$$ along the gradient direction is equal to the maximum value of the [TeX:] $$\nabla \left( f * \theta _ { s } \right) ( U , V )$$ wave transforming mode.

If [TeX:] $$M f ( s , u , v ) \left( U _ { 1 } , V _ { 1 } \right)$$ in one-dimensional neighborhood points along the gradient direction [TeX:] $$( U , V ) = \left( U _ { 1 } , V _ { 1 } \right) + \lambda f \left( U _ { 1 } , V _ { 1 } \right)$$. The edge of the image is the largest modulus with a wavelet coefficient greater than a certain threshold.

3. The Foreign Body Detection Algorithm based on Wavelet Transform

H0 filter is a low-pass filter, and the output is the approximate value of the image. H1 filter is a high pass filter, and the output is high frequency or detail part of the image. When the signal source sends information, it is difficult to identify the signal due to the superposition of noise and interference. So it is necessary to remove the noise and interference components in the signal to effectively analyze the image. When the frequency of the noise is higher or lower than the effective signal, a filtering method is usually used to remove the noise. The filtering method is a frequency domain processing method. When analyzing the frequency characteristics of the signal, the portion where the signal change rate is small corresponds to the low frequency component, and the signal change rate is large corresponds to the high frequency component. Wavelet analysis is time-frequency localization analysis method with a fixed window area, but the window shape is variable, and the time window and the frequency window can be changed. It can use longer time intervals to obtain more accurate low frequency signal rate. Acquire high frequency signal information in short time intervals. In practical engineering applications, the analysis of the signal may contain many spikes or mutation, and the noise is not fixed white noise. For this kind of signal noise reduction processing, with the traditional fast Fourier transform (FFT) analysis, it is impossible to give a signal at a certain point in time. Wavelet analysis is a new signal processing method, the frequency components of various signals were decomposed into different frequency bands, which provides an effective way for signal filtering, denoising and feature extraction. We propose a foreign body detection algorithm based on wavelet transform in Fig. 1.

Fig. 1.
Foreign body detection framework.
Fig. 2.
Background and foreign body image analysis: (a) low frequency image, (b) gray image, (c) binary image, (d) image expansion and closed operation, and (e) image noise reduction.
Fig. 3.
Foreign body detection: (a) original image, (b) low frequency image, (c) high frequency image, (d) edge detection base on wavelet transform of low frequency image, (e) edge detection base on wavelet transform of high frequency image, (f) corrosion of low frequency image, and (g) corrosion of high frequency image.

The wavelet transform method is to transform the input image into high frequency image and low frequency image. We adopt two kinds of processing methods for low frequency image. The first approach would be to use the square method to transform the low frequency image (Fig. 2(a)) into gray scale (Fig. 2(b)), and then use the moments-preserving method to transform the gray image into the binary image (Fig. 2(c)). In the process of binary image correction, in order to facilitate the acquisition of target edge information, image expansion, closed operation (Fig. 2(d)) and image denoising methods (Fig. 2(e)) are adopted. The image I1 to be analyzed is obtained using the first type of method. The second kinds of low frequency image processing methods (Fig. 3(b)). We use the edge enhancement method to detect the edge of the low frequency image (Fig. 3(d)). According to the results of the edge detection, we can dilation and closed operation the image to obtain the image I2 (Fig. 3(f)). For the high frequency image (Fig. 3(c)), we use the wavelet transform for edge detection (Fig. 3(e)), and then dilation the edge detection results and closed operation to get I3 (Fig. 3(g)). We use I1, I2, and I3 to improve the accuracy of the algorithm. The I1 is used as the input image of the tube to analyze the background area of the tube surface and the suspected foreign object area. The I2 is used to detect suspected foreign object in low frequency images. The I3 is used to detect suspected foreign object in high frequency images. Finally, the Monte Carlo method evaluates suspicious foreign objects in the three images to determine the foreign object area.

4. The Analysis Mechanism based on Monte Carlo

A Monte Carlo simulation is a computerized mathematical technique that allows people to account for the probability in quantitative analysis and decision making. Monte Carlo methods are a class of computational algorithms that rely on repeated random sampling to calculate their results [16,17]. The probability of an event can be estimated by the frequency of the event in a large number of trials, and when the sample size is large enough, it is assumed that the frequency of occurrence of the event is its probability [18]. Monte Carlo simulation furnishes the decision-maker with a range of possible outcomes and the probabilities they will occur for any choice of action. It shows extreme possibilities (the outcomes of going for broke and the most conservative decision) along with all conceivable consequences for middle-of-the-road decisions [19].

Fig. 4 shows the number of simulations is 500 times. The analysis principles are applied to estimate the probability indices for suspected foreign bodies by combining their weights. We select sensitive factors as stochastic variable in the image analysis. The factors consist of two principal events (location and size of suspected foreign bodies). The model follows a particular pattern:

1. Define a domain of possible inputs for the foreign body assessment.

2. Randomly generate inputs from a probability distribution sampled over the domain.

3. Perform a deterministic estimate on the inputs according to distribution characteristics of the random variable.

4. Get the probability value.

The probability distribution is defined using values that are positively skewed, not symmetric like a normal distribution. It is used to represent the values that don’t go below zero but have unlimited positive potential. For a lognormal distribution X, the parameters denoted [TeX:] $$\mu \text { and } \sigma$$ are, respectively, the mean and the standard deviation of the variable's natural logarithm. [TeX:] $$\mathrm { X } = \mathrm { e } \mu + \sigma \mathrm { Z } , \text { and } \mathrm { Z }$$ is a standard normal variable. Norm = NORMSINV (LAP), NORMSINV is the inverse function of the standard normal distribution function,[TeX:] $$\sigma \ { \mathrm { i } } = - \mathrm { Ri } / \mathrm { Norm }$$. See Table 1 for the location of the suspected foreign body.

According to the distribution function, we parse the inverse function of the random variable. Then it calculates the results iteratively, each time drawing a different set of random deviates from the probability functions. Five hundred Monte Carlo simulation iterations are used. Finally, we calculate the mean value of each event as the recognition result.

Fig. 4.
Monte Carlo algorithm flowchart.
Table 1.
The probability distribution function and inverse function

5. Experiment Result and Analysis

First, the square transform method converts the low frequency image into a gray-scale image. In addition, we choose exponential transformation, piecewise linear transformation, square root transformation and logarithmic transformation as comparison algorithms. Fig. 5(a) is an exponentially transformed image, with the result that too many black pixels cause a lot of trouble for future processing and application. Fig. 5(c) is a piecewise linear transformation, which results in the algorithm detecting more pseudo foreign object regions. In Fig. 5(d) and (e) are square root transformation and logarithmic transform, respectively. Their results indicate that too large a white background makes it difficult to detect foreign objects. Fig. 5(b) is a square transform with a large proportion of black pixels and a uniform distribution.

Fig. 5.
Statistical analysis of gray scale histogram: (a) exponential transformation, (b) square transformation image, (c) segmental linear transformation image, (d) square root transformation image, and (e) logarithmic transformation image.
Fig. 6.
Binary image of square transformation image: (a) Otsu image, (b) minimum error image, (c) maximum entropy image, (d) minimum bias-normal distribution image, and (e) moment-preserving image.
Fig. 7.
The edge detection: (a) Roberts, (b) Sobel, (c) Prewitt method, (d) Kirsch, (e) Gauss-Laplacian, (f) level detection, (g) vertical detection, (h) wavelet, and (i) edge equalization.

The maximum entropy method which is a low frequency passed image based on wavelet multiresolution filters is proposed for binarization, and the result is satisfactory. Otsu method leads to excessive impurity to influence the recognition of foreign body in Fig. 6(a). The minimum error method mixes the background and foreign matter, making it difficult to identify the foreign matter in Fig. 6(b). The maximum entropy method (Fig. 6(c)), the minimum bias-normal distribution method (Fig. 6(d)) and the moment preserving method (Fig. 6(e)) can generate a sharp contour image as compared with the above method. But the maximum entropy method is better than the other two methods. The binary image obtained by the maximum entropy method is the basic framework of image analysis. Finally, the detection algorithm uses the basic frame to identify foreign objects based on the low-frequency image and highfrequency image edge detection.

Fig. 7 is a comparison of our proposed method (Fig. 7(h)) with other edge detection methods. Fig. 7(d) and (e) is difficult to identify the edge of foreign bodies. The results of Fig. 7(b), (c), and (f) are too much interference, making it difficult to identify foreign objects effectively. Fig. 7(g) is a vertical edge detection that contains too many discrete points that do not form an effective boundary. Fig. 7(a) and (i) detect more pronounced boundaries than other methods. Compared with these two methods, we propose a wavelet method with smaller interference boundary and higher recognition accuracy.

Firstly, the distribution of histogram was used to classify images into five categories (C1, C2, C3, C4 and C5) in Fig. 8.

Our algorithm can effectively identify the location of foreign bodies for the five categories as shown in Fig. 9. The red region is the final result of algorithm analysis.

Fig. 8.
Histogram classification image.
Fig. 9.
The red region is the final result of algorithm analysis.
Table 2.
Foreign body recognition of the proposed method

In the five types of input images, we prove that our proposed algorithm can identify foreign objects as shown in Table 2. Each type of image is prepared with 500 test cases to test the performance of the algorithm. The precision indicates the ratio of detected foreign body area (foreign body) and the recognition of the detected foreign body area. The error probability indicates detected foreign object (false foreign object) accounted for the proportion of detected foreign object. The missed rate indicates the proportion of unidentified foreign bodies occupying foreign bodies. The accuracy rate of C1 and C5 is 100%. The recognition accuracy of C2 and C3 is up to 99.0789% and 99.2%, respectively. The C4 recognition accuracy rate is 98.6%, but the reason is the lack of illumination with 4% omission of foreign object detection. The proposed algorithm is more accurate than the traditional wavelet transform algorithm, as shown in Tables 3 and 4. The difference between the two is that the traditional wavelet algorithm will determine the background area (similar to the foreign body) as the foreign object area which leads to decreased the accuracy of recognition. Therefore, with the enhancement of image contrast and the uniform distribution of pixels, the proposed algorithm is more accurate. We propose a foreign detecting algorithm based on wavelet transform to achieve the purpose of practical application.

Table 4 shows that our proposed algorithm improves the accuracy of foreign object recognition. The experimental results are more reasonable than other methods.

Table 3.
Foreign body recognition of the traditional wavelet
Table 4.
Foreign body recognition precision (%) of comparative method

6. Conclusion

An improved wavelet transform algorithm with image analysis mechanism has been proposed to detect the foreign bodies on the inner wall of a threaded pipe image. We combine the Monte Carlo method to analyze the probability of foreign body. The algorithm chooses typical characteristics (location and size of suspicious regions) as evaluation parameters. The image analysis mechanism can generate a background with the suspected foreign object region to initialize the contours. This mechanism uses the connected domain to separate the background, the clutter, the foreign objects. The wavelet transform is used to detect the edge of foreign object in low frequency and high frequency image, and the foreign object is determined by the background analysis. Experimental results show that the algorithm has a promising recognition effect. Compared with the traditional wavelet transform method, this method can obtain the boundary region closer to the foreign object. However, the intensity of the light affects the accuracy of the algorithm so that our research is continuing in future work.

Acknowledgement

This paper is funded by National Natural Science Foundation of China (Grant No. 61604019), science and technology development project of Jinlin Province (No. 20160520098JH and 20180201086SF), Education Department of Jilin Province (No. JJKH20181181KJ and JJKH20181165KJ), Jilin Provincial Development and Reform Commission (No. 2017C031-2).

Biography

Jinlong Zhu
https://orcid.org/0000-0002-2341-0542

He was born in 1984. He received the B.E. and M.S. degrees in computer science and technology from Jilin University, China, in 2003 and 2007, respectively. He is a lecturer, School of Computer Science and Technology, Changchun Normal University, Jilin, China. His research interests include computer algorithms and simulation, evacuation planning, image processing and 3D modelling.

Biography

Fanhua Yu
https://orcid.org/0000-0002-0775-111X

He received D.S. degree in computer science and engineering from Jilin University in 2003. He is a professor, School of Computer Science and Technology, Changchun Normal University, Jilin, China. His current research interests include artificial neural network and fuzzy system.

Biography

Mingyu Sun
https://orcid.org/0000-0002-7053-5524

He received D.S. degree in computer science and technology from Jilin University in 2016. He is a lecturer, School of Computer Science and Technology, Changchun Normal University, Jilin, China. His major research interests include computer graphics and computer image processing.

Biography

Dong Zhao
https://orcid.org/0000-0002-8313-8835

He received M.S. degree in computer science and technology, Changchun University of Science and Technology in 2008. He is an associate professor, School of Computer Science and Technology, Changchun Normal University, Jilin, China. His research interests include intelligent information system and embedded technology.

Biography

Qingtian Geng
https://orcid.org/0000-0003-3764-3037

He is currently an associate professor in School of Computer Science and Technology, Changchun Normal University, Jilin, China. He received his B.S. and M.S. degrees in computer science and technology from Jilin University of Technology and Jilin University in 1996 and 2005, respectively. He received his Ph.D. degree in computer science and technology from Jilin University in 2016. His current research fields include image processing and pattern recognition.

References

  • 1 Y. Qin, B. Wang, "Study of on-line inspection technique for foreign substance in Ampoule," in Proceedings of International Conference on Artificial Intelligence, Management Science and Electronic Commerce, Dengleng, China, 2011;pp. 4342-4345. doi:[[[10.1109/AIMSEC.2011.6009975]]]
  • 2 Y. Qin, B. X. Wang, W. Li, C. Y. Y ang, "Inspection of small moving foreign substances in ampoule based on cascade classifiers," Optics and Precision Engineering, vol. 20, no. 1, pp. 190-196, 2012.doi:[[[10.3788/ope.20122001.0190]]]
  • 3 H. T. Chou, C. Y. Chen, T. Y amamoto, N. Hoshi, K. Kawamura, "Foreign substance inspection apparatus," U.S. Patent 6977721 Dec. 20, 2005.custom:[[[https://patents.google.com/patent/US4468120A/en]]]
  • 4 L. Zhang, A. Xiang, "An improved region growing algorithm and its application of foreign substances inspection," Nondestructive T esting, vol. 32, no. 7, pp. 490-492, 2010.custom:[[[http://en.cnki.com.cn/Article_en/CJFDTOTAL-WSJC201007008.htm]]]
  • 5 F. Mao, S. Y. Zhang, C. L. Huang, "Inspection of foreign substances in mould using image scattergrams and multi-resolution analysis," Journal of Zhejiang University (Engineering Science), vol. 43, no. 10, pp. 1749-1756, 2009.doi:[[[10.3785/j.issn.1008-973X.2009.10.001]]]
  • 6 V. Skorpil, J. Stastny, "Wavelet transform for image analysis," in Proceedings of IEEE/Siberian Conference on Control and Communications, Tomsk, Russia, 2003;pp. 50-55. custom:[[[-]]]
  • 7 F. Jing, S. Ning, "A novel wavelet transform algorithm for feature extraction of hyperspectral remote sensing image," in Proceedings of 2009 International Conference on Computational Intelligence and Natural Computing, Wuhan, China, 2009;pp. 147-150. doi:[[[10.1109/CINC.2009.142]]]
  • 8 A. V. Katsuk, "Application of wavelet in image analysis," in Proceedings of the 8th Russian-Korean International Symposium on Science and Technology, Tomsk, Russia, 2004;pp. 140-142. doi:[[[10.1109/KORUS.2004.1555570]]]
  • 9 J. Liu, "Shannon wavelet spectrum analysis on truncated vibration signals for machine incipient fault detection," Measurement Science and Technology, vol. 23, no. 5, 2012.doi:[[[10.1088/0957-0233/23/5/055604]]]
  • 10 A. N. Akansu, W. A. Serdijn, I. W. Selesnick, "Emerging applications of wavelets: a review," Physical Communication, vol. 3, no. 1, pp. 1-18, 2010.doi:[[[10.1016/j.phycom.2009.07.001]]]
  • 11 S. Li, J. Wen, "A model-based fault detection and diagnostic methodology based on PCA method and wavelet transform," Energy and Buildings, vol. 68, pp. 63-71, 2014.doi:[[[10.1016/j.enbuild.2013.08.044]]]
  • 12 S. M. Hossain, M. Y. Razib, I. Karim, Image Compression Using Wavelet Transform. Saarbruucken, Gemany: VDM Verlag Dr. Muller, 2010.custom:[[[https://www.morebooks.de/store/gb/book/image-compression-using-wavelet-transform/isbn/978-3-639-27994-8]]]
  • 13 R. Singh, A. Khare, "Fusion of multimodal medical images using Daubechies complex wavelet transform: a multiresolution approach," Information Fusion, vol. 19, pp. 49-60, 2014.doi:[[[10.1016/j.inffus.2012.09.005]]]
  • 14 S. Banerjee, M. Mitra, "Application of cross wavelet transform for ECG pattern analysis and classification," IEEE Transactions on Instrumentation and Measurement, vol. 63, no. 2, pp. 326-333, 2014.doi:[[[10.1109/TIM.2013.2279001]]]
  • 15 S. Agarwal, A. K. Verma, N. Dixit, "Content based image retrieval using color edge detection and discrete wavelet transform," in Proceedings of 2014 International Conference on Issues and Challenges Intelligent Computing Techniques, Ghaziabad, India, 2014;pp. 368-372. doi:[[[10.1109/ICICICT.2014.6781310]]]
  • 16 C. Yardim, P. Gerstoft, W. S. Hodgkiss, "Statistical maritime radar duct estimation using hybrid genetic algorithm–Markov chain Monte Carlo method," Radio Science, vol. 42, no. 3, 2007.custom:[[[https://scholar.google.co.kr/scholar?hl=ko&as_sdt=0%2C5&q=Statistical+maritime+radar+duct+estimation+using+hybrid+genetic+algorithm%E2%80%93Markov+chain+Monte+Carlo+method&btnG=]]]
  • 17 S. B. Ahmad, A. Sarfehnia, M. R. Paudel, A. Kim, S. Hissoiny, A. Sahgal, B. Keller, "Evaluation of a commercial MRI Linac based Monte Carlo dose calculation algorithm with geant 4," Medical Physics, vol. 43, no. 2, pp. 894-907, 2016.doi:[[[10.1118/1.4939808]]]
  • 18 B. J. Minsley, "A trans-dimensional Bayesian Markov chain Monte Carlo algorithm for model assessment using frequency-domain electromagnetic data," Geophysical Journal International, vol. 187, no. 1, pp. 252-272, 2011.doi:[[[10.1111/j.1365-246x.2011.05165.x]]]
  • 19 J. Zhang and W. Li, 2014 (Online). Available:, https://arxiv.org/abs/1407.3336
  • 20 D. Y. Jia, T. H. Ding, "Detection of foreign materials in cotton using a multi-wavelength imaging method," Measurement Science & Technology, vol. 16, no. 6, pp. 1355-1365, 2005.doi:[[[10.1088/0957-0233/16/6/018]]]
  • 21 Y. P. Guan, "Automatic extraction of lips based on multi-scale wavelet edge detection," IET Computer Vision, vol. 2, no. 1, pp. 23-33, 2008.doi:[[[10.1049/iet-cvi:20070061]]]
  • 22 F. Chen, W. Wang, "Target recognition in clutter scene based on wavelet transform," Optics Communications, vol. 282, no. 4, pp. 523-526, 2009.doi:[[[10.1016/j.optcom.2008.10.061]]]

Table 1.

The probability distribution function and inverse function
Min Max CP R LAP Norm μ σi
1 87 97 0.8 4 0.1 -1.28155 2.97025 0.433271
2 85 95 0.85 4.2 0.075 -1.43953 1.19025 0.412706
3 83 96 0.8 4.1 0.1 -1.28155 1.98025 0.433271
4 89 97 0.9 4.2 0.05 -1.64485 2.97025 0.392641
5 90 96 0.85 4 0.075 -1.43953 1.98025 0.412706
6 82 96 0.85 4.1 0.075 -1.43953 1.98025 0.412706
7 81 95 0.85 4.2 0.075 -1.43953 1.19025 0.412706
8 80 96 0.8 4.1 0.1 -1.28155 1.98025 0.433271
9 86 95 0.85 4.1 0.075 -1.43953 1.19025 0.412706
10 87 95 0.9 4 0.05 -1.64485 1.19025 0.392641
Y 9.9225 0.058463809
σ 3.15 0.241792905
cv 3.44% 8.39%
Min = the congestion minimum value, Max = the congestion maximum value, CP = coverage probability.

Table 2.

Foreign body recognition of the proposed method
Precision (%) Error probability Proportion of missing
C1 100 0 0
C2 99.0789 0.844 0
C3 99.2 0.8 0
C4 98.6 0.14 0.005
C5 100 0 0

Table 3.

Foreign body recognition of the traditional wavelet
Precision (%) Error probability Proportion of missing
C1 74.7198 25.2802 0
C2 70.0422 29.9578 0
C3 72.68 27.32 0
C4 69.8 30.2 0
C5 74.776 25.224 0

Table 4.

Foreign body recognition precision (%) of comparative method
This study Multi-wavelength [20] Wavelet edge [21] Wavelet transform [22]
C1 100 89.3 87.3 91.0
C2 99.156 89.0 81.1 89.2
C3 99.2 89.1 82.3 89.3
C4 98.6 86.2 78.5 87.5
C5 100 89.2 88.2 91.0
Foreign body detection framework.
Background and foreign body image analysis: (a) low frequency image, (b) gray image, (c) binary image, (d) image expansion and closed operation, and (e) image noise reduction.
Foreign body detection: (a) original image, (b) low frequency image, (c) high frequency image, (d) edge detection base on wavelet transform of low frequency image, (e) edge detection base on wavelet transform of high frequency image, (f) corrosion of low frequency image, and (g) corrosion of high frequency image.
Monte Carlo algorithm flowchart.
Statistical analysis of gray scale histogram: (a) exponential transformation, (b) square transformation image, (c) segmental linear transformation image, (d) square root transformation image, and (e) logarithmic transformation image.
Binary image of square transformation image: (a) Otsu image, (b) minimum error image, (c) maximum entropy image, (d) minimum bias-normal distribution image, and (e) moment-preserving image.
The edge detection: (a) Roberts, (b) Sobel, (c) Prewitt method, (d) Kirsch, (e) Gauss-Laplacian, (f) level detection, (g) vertical detection, (h) wavelet, and (i) edge equalization.
Histogram classification image.
The red region is the final result of algorithm analysis.