A Comparative Study to Assess the Effectiveness of Surface Texture Classification Algorithms

DOI : 10.17577/IJERTV1IS7541

Download Full-Text PDF Cite this Publication

Text Only Version

A Comparative Study to Assess the Effectiveness of Surface Texture Classification Algorithms

A Comparative Study to Assess the Effectiveness of Surface Texture Classification Algorithms

1D M Shivanna 2M B Kiran

1Lecturer, 2Professor, Department of Mechanical Engineering, Dayananda Sagar College of Engineering, Bangalore, India.

Abstract Surface texture measurement plays a very important role in predicting the functional performance of the components. An attempt has been made in this paper, to assess the effectiveness of texture classification by Gabor filters and Tree Structured Wavelet Transform. The method is used successfully for inspecting surfaces made of Milling, Shaping, EDM and sandblasting processes. The proposed method uses a relatively low cost vision system for analyzing different textures. The method is non-contact, quick and finds application in inspecting components produced by computer integrated manufacturing. High classification accuracy is possible.

Keywords-Surface Textures; Process Identification; Texture classification; Image classification

  1. INTRODUCTION

    The surface texture is important for many reasons including friction, wear, lubrication, contact with other parts, and the ability to hold coating. Hence there were many research attempts in the past for measuring surface texture. Several well-known roughness parameters are used to quantify surface texture Gadelmawla et. al.,2002[1]. The surface roughness parameters like Ra, is used to describe a surface. However, it is possible that two surface textures can have the same Ra, but their frictional characteristics could be different Menezeset. al.,2006[2].Thus complete understanding of surface texture is very much required for predicting the functional performance of the component. Surface texture produced on a component is governed by the manufacturing process. Also, the texture produced by every manufacturing process is unique. Hence, texture analysis assumes special significance. The proposed method of texture analysis uses a low cost vision system and is non- destructive and non-contact in nature.

    Texture is generally used to characterize the surface of a given component and it is one of the main features used in image processing and pattern recognition. A discrete tonal

    feature on a digital image is a connected set of resolution cells all of which have the same or almost the same intensity. Texture is concerned with the spatial distribution of image intensities and discrete tonal features. When a small area of the image has a little variation of discrete tonal features, the dominant property of the area is grey tone. When a small area has wide variation of discrete tonal features the dominant property of that area is texture Haralick et.al. 1973 [3].

  2. APPROACHES TO TEXTURE ANALYSIS

Much research has been done in the area of analyzing the human visual system and also in trying to simulate human vision as long as Machine vision is involved. Pickett in 1970[4] mentioned that some of the basic properties of the optical data which the visual system may measure include the various characteristics of elements (viz. size, shape, colour orientation), number or density of elements and arrangement of elements. The Visual features approximated in computational form were coarseness, contrast, directionality, line- likeliness, regularity and roughness. In 1978, Julesz [5] characterized the statistical and structural approaches as perceptual and cognitive respectively. Basically texture

classification schemes can be classified into statistical, structural and multi resolution filtering methods.

2.1. STATISTICAL METHODS

The statistical methods extract a set of parameters (features) from a given image Devdas and Imbert 1984[6]. The parameters are then used as input features for classification using the techniques of statistical pattern recognition. The parameters were derived over space or frequency domain. There are different methods in statistical approach Weszca et al. 1976[7].

    1. The grey-level difference method Haralick et al. 1973[3] estimated the probability density function for differences between picture function values.

    2. The spatial grey level dependence method Haralick et al. 1973[3] estimated the joint grey level distribution for two grey levels at distance d, and an angle . The grey level differences and joint grey level distributions are known as first and second order statistics respectively. The first order statistics are embedded in second order statistics as marginal density functions.

    3. The grey-level run length method estimated the identical runs, where an identical run is defined as a set of connected pixels having the same grey level Galloway 1975[8]; Chu et al. 1990[9]. One of the characteristic aspects of texture is its spatial granularity (frequency content) and repetitiveness. Fourier Transform techniques are used to extract such information Lendaris and Stanley 1970[10].

The first and second order statistics (co- occurrence matrices) are the most commonly used statistical methods for texture discrimination Helstrom 1968; Haralick 1973[3]. One problem with the co-occurrence method is related to the need to define d and angle , which would fully specify the method.

    1. STRUCTURAL METHODS

      The structural approach assumed that a set of primitive units can be identified. It then defined textures as a combination of such primitives according to different placement

      rules. There are two major problems with this approach. First it is not easy to identify the primitives. Secondly the patterns are repeated according to pre-specified rules and should allow us for a stochastic change in the replication process and the same should apply for the pattern themselves Haralick et. al. 1973[3].

      A major stumbling block for the texture analysis problem is that of determining the appropriate size and shape of the area from which the textural features should be extracted Haralick 1973[3]. The area of the minimal texture in which the meaningful information can be extracted is known as the cell unit.

    2. MULTI RESOLUTION FILTERING

      There are a lot of similarities between multi resolution filtering techniques (e.g. Gabor Filtering) and human visual process. Gabor filtering is used to characterize the texture in spatial-frequency domain.

      A two dimensional Gabor function A.C. Bovik 1990[11] is defined as

      (1)

      Where, x and y are the standard deviations of the Gaussian envelopes along the x and y directions, Long F.et al.,2003[12]. Then a set of Gabor filters can be obtained by rotations and dilations of g(x,y). Some of the limitations of the approach have been reported in Kiran et al. [13]. An attempt has been made in this paper to evaluate the effectiveness of texture classification by Gabor Filters and Tree Structured Wavelet Transform.

      The following paragraphs highlight the theory and application of both the methods.

  1. THEORY OF TREE-STRUCTURED WAVELET TRANSFORM

Wavelet transform, means the decomposition of a signal with a family of real orthonormal bases ym,n(x) obtained through translation and dilation of a kernel function y (x).

(2)

Where m and n are integers. Due to the orthonormal property, the wavelet coefficient of a signal f (x) can be easily computed as follows.

And the following formula

can be used to construct f(x) from its wavelet coefficients. Wavelet y(x) can be determined as follows. Scaling function

(x), is defned which satisfies the two-

scale difference Daubechies [14]

(3)

The wavelet kernel (x) is determined as follows.

(4)

The coefficients h(k) and g(k) play a very crucial role in a given discrete wavelet transform. To perform the wavelet transform does not require the explicit forms of (x) and (x) but only depends on h(k)

and g(k). Consider a J-level wavelet decomposition which can be written as

(6)

Where coefficients c0,k are given and coefficients cj+1,n and dj+1,n at scale j+1 are related to the coefficient Cj,k at scale j through

(7)

Where 0 j J. Thus, (7) provides a recursive algorithm for wavelet decomposition through h(k) and g(k), and the final outputs include a set of J-level wavelet coefficients dj,n, 1 j J, and the coefficient cJ,n for a low-resolution component J,k (x). Similarly,

recursive algorithm can be derived for function

synthesis based on its wavelet coefficients dj,n, 1 j J and cJ,n

Where

(5)

(8)

It is convenient to view the decomposition (7) as passing a signal cj,k through a pair of filters

The coefficients h(k) in (3) have to meet several conditions for the set of basis wavelet functions in (2) to be unique, orthonormal, and have a certain degree of regularity Strang [15]. Several different sets of coefficients h(k) satisfying the above conditions can be found in the wavelet literature Daubechies [14], Daubechies[16], Mallat SG [17], Mallat SG [18].

H and G with impulse responses (n) and (n) and down sampling the filtered signals by two(dropping every other sample), where (n

) and (n) are defined as

(n) = h(-n), (n) = g(-n).

The pair of filters H and G correspond to the halfband lowpass and highpass filters,

respectively, and are called the quadrature mirror filters in the signal processor literature. The reconstruction procedure is implemented by up sampling the sub signals cj+1 and dj+1 (inserting a zero between neighboring samples) and filtering with h(n) and g(n), respectively, and adding these two filtered signals together. Usually the signal decomposition scheme is performed recursively to the output of the lowpass filter . This leads to the conventional wavelet transform or the so-called pyramid-structured wavelet decomposition.

    1. Texture feature extraction

      Algorithm: Tree-Structured Wavelet Transform

      1. A textured image is decomposed with 2-D two-scale wavelet transform into 4 sub images, which can be viewed as the parent and children nodes in a tree.

      2. Energy of each decomposed image (children node) is calculated as follows. That is, if the decomposed image is x (m,n), with

        1 m M and 1 n N, the energy is

      3. If the energy of a sub image is significantly smaller than others, we stop the decomposition in this region since it contains less information. This step can be achieved by comparing the energy with the largest energy value in the same scale. That is, if e < Cemax, stop decomposing this region where C is a constant less than 1.

      4. If the energy of a sub image is significantly larger, the above decomposition procedure is applied to the sub image.

      Practically, the size of the smallest sub images should be used as a stopping criterion for further decomposition. If the decomposed channel has a very narrow size, the location and energy value of the feature may vary widely from sample to sample so that the feature may not be robust. According to our experience, the size of the smallest sub images should not be less than 16×16. Consequently, if the input image size is 256×256 (or 64×64), a 4-level (or 2-level) tree-structured wavelet transform is appropriate. It is also worthwhile

      to point out that the above tree- structured wavelet transform provides a non-redundant representation, and it takes no more space to store the wavelet coefficients than it does to store the original image.

    2. Selection of texture features

      An appropriate way to perform the wavelet transform for textures is to detect the significant frequency channels and then to decompose them further.

      It is observed that it is usually unnecessary and expensive to decompose all sub signals in each scale to achieve a full decomposition. The following criterion is used to avoid a full decomposition.

      (9)

      Where x = (x1,,xN), as the energy function to locate dominant frequency channels. Although there exists other norms such as the l2-norm for the energy function, we find that the l1 and l2 norms make little difference in the final results.

    3. Method of texture discrimination

      K- nearest neighbor is used as the classifier in the proposed approach. After selecting a feature subset, according to the successive scheme, k-nearest neighbor classifier scheme for a set of features is implemented. Each feature is normalized by its mean and variance, of a total of n samples one sample is held out to classify. Let Xt be the test sample and Xd be the design or training sample. The Euclidean distance between the test sample and the training sample in the normalized feature space is used to determine the k-nearest neighbors of Xt. The classifier then assigns

      Xt to the class most frequently encountered in the k-neighbors.

  1. THEORY OF GABOR FILTER

In the proposed work, the Gabor filters are generated by using three different radial center frequencies and eight orientations as described by Tou J.Y, Tay Y.H. and Lau

P.Y. in 2007[19]. The convolution is first performed by applying Fast Fourier transform (FFT), point to point

multiplication and Inverse Fast Fourier transform (IFFT). In order to minimize the dimensionality of the feature set Gabor filters are down sized and Singular Value Decomposition is used as described by Tou J.Y, Tay Y.H. and Lau P.Y. in 2007.

  1. EXPERIMENTAL SET-UP

    Figure.1 shows the experimental set-up. Specimens made of different manufacturing processes Milling, Shaping, EDM and Sandblasting are used in the classification experiment. Table 1 and 2 shows sample details of Milled and Shaped components. The training set for each class comprised of 16 non-overlapping 32×32 sub images (Figure.2) taken from 512×480 digitized version of the above textures.

    CCD

    Camera

    Light source

    Vision

    Test Surface

    Fig.1:Experimental set-up used for classifying surface textures.

    The vision system (Figure.1) consists of a CCD (Charge Coupled Device) Camera PULNIX for grabbing the image of a machined surface, illuminated by normal lighting. A higher end computer (server) used for storing and processing of surface image. The server also consists of a special purpose, advanced image processing hardware for quick processing of surface images. The images are processed for different types of noise including electronic noise by using special software designed and developed for this purpose. The software installed in the server is also used for extracting features for classification of different textures.

    1. Specimen Preparation

      Specimens are prepared by various machining operations such as Milling Shaping, EDM and Sandblasting processes to produce different machined surface textures, by varying machining parameters Table 1 and 2 shows sample details of Milled and Shaped components. Figure 2 shows the captured images are obtained from vision system using CCD (charge coupled device) Camera.

      Texture ID

      Speed (rpm)

      Depth of Cut (mm)

      Feed (mm/ min)

      Stylus Ra (m) value

      M1

      280

      0.4

      12.5

      1.31

      M2

      280

      0.4

      31.5

      1.53

      M3

      280

      0.4

      80.0

      3.18

      M4

      280

      0.4

      100.0

      3.30

      M5

      280

      0.4

      200.0

      2.80

      M6

      280

      0.4

      250.0

      3.70

      Texture ID

      Speed (rpm)

      Depth of

      Cut (mm)

      Feed (mm/ stroke)

      Stylus Ra(m) value

      S1

      30

      0.5

      0.2

      14

      S2

      30

      0.5

      0.4

      41

      S3

      30

      0.5

      0.6

      58

      S4

      30

      0.5

      0.8

      60

      S5

      30

      0.5

      0.2

      12

      EDM Surface

      Shaped Surface

      Milled surface

      Shaped surface

      Milled Surface

      Shaped Surface

      Shaped Surface

      Shaped Surface

      Sandblasted surface

      EDM Surface

      Milled Surface

      Shaped Surface

      Fig.2 Sample images of training set.

      Figure 3 and 4 shows sample images of test set.

  2. CLASSIFICATION USING TREE- STRUCTURED WAVELET TRANSFORM

    The following paragraphs highlight the significant steps in the classification algorithm.

    1. Learning phase

      1. Given m samples are obtained from the same texture, each sample image is decomposed with the tree-structured wavelet transform and the normalized energy is calculated at its leaves which defines an energy function on the spatial/frequency domain known as the energy map.

      2. A representative energy map is generated for each texture by averaging the energy maps over all m samples.

      3. The process is repeated for all textures.

      Fig.3 Sample images of test set.

      EDM Surface

      Shaped Surface

      Milled Surface

      Shaped Surface

      Sandblasted surface

      EDM Surface

      Fig.4 Sample images of test set.

    2. Classification phase

      1. An unknown texture is decomposed with the tree-structured wavelet transform and its energy map is determined.

      2. The first J dominant channels are selected which are the leaf nodes in the energy map with the largest energy values as features. This feature set is denoted by x = (x1,,xJ).

      3. For texture i in the database, pick up the energy values in the same channels are located and the energy value is denoted by by

        mi = (mi,1,mi,J).

      4. The discrimination function for textures in the candidate list is calculated by

        Di = distance (x, mi)

        (10)

      5. Assign the unknown texture to texture i

      If Di < Dj for all j i.

      The above algorithm uses the energy values at the J most dominant channels as features for classification. Thus, it implicitly assumes that high energy means better discriminability.

      Table 3: The classified results of training set

      Real

      Samples of Class

      1

      2

      3

      4

      C.R.R

      1

      50

      0

      0

      0

      100

      2

      3

      47

      0

      0

      94

      3

      0

      3

      47

      0

      94

      4

      0

      0

      0

      50

      100

      Average C.R.R = 97% Conventions used in Table 3:

      Class 1: Shaped surface; 2: EDM surface; 3: Milled surface; 4: Sand blasted surface; C.R.R: Average Correct Recognition rate.

      The entire set of training samples is classified in this way, holding out a new sample each time (Table 3). The classification accuracy is 97% in Tree-Structured Wavelet Transform.

  3. CLASSIFICATION USING GABOR FILTERS

Surface texture extraction experiment consists of the following steps:

  1. Texture feature extraction

  2. Selection of texture features

  3. Method of texture discrimination

  4. Classification and results

    1. Texture feature extraction:

      Different components, made from milling(Table1) ,shaping (Table2), sandblasting and EDM, are selected for surface texture measurement. Gabor filters are generated by using different three radial centre and eight orientations. The convolution is performed by applying Fast Fourier Transform (FFT), point-to-point multiplication and inverse Fast Fourier Transform (IFFT).

    2. Selection of Texture features:

      Due to the complexity of the features produced, Gabor filters are down sampled and the singular value decomposition is used to reduce the dimensionality of the feature set.

    3. Method of texture discrimination:

k-nearest neighbour is used as the classifier in the proposed approach. After selecting a feature subset, according to the successive scheme, k-nearest neighbour classifier scheme for a set of features is implemented. Each feature is normalized by its mean and variance. Of a total of n samples one sample is held out to classify. Let Xt be the test sample and Xd be the design or training sample. The Euclidean distance between the test sample and the training sample in the normalized feature space is used to determine the k nearest neighbours of

Xt. The classifier then assigns Xt to the class most frequently encountered in the k-neighbours.

Table 4 The classified results of training set

Real Sampl

es of Class

1

2

3

4

C.R.R

1

50

0

0

0

100

2

3

47

0

0

93.75

3

0

3

47

0

93.75

4

0

0

0

50

100

Average C.R.R = 96%

Conventions used in Table 4:

Class 1: Shaped surface; 2: EDM surface; 3: Milled surface; 4: Sand blasted surface; C.R.R: Average Correct Recognition rate.

The entire set of training samples is classified in this way, holding out a new sample each time. The classification accuracy is 96%.

  1. CONCLUSIONS

    An attempt has been made in this paper to evaluate the effectiveness of (1) Gabor Filters and (2) Tree-Structured Wavelet Transform algorithms, in classifying different surface textures. The method is non-contact and non destructive in nature.

    Texture classification by Gabor filter method has achieved the classification accuracy of 96% and the method could be used for classifying machined surfaces made out of EDM, Milling, Shaping, Grinding and Sandblasting.

    Texture classification by Tree-Structured Wavelet Transform method has achieved the classification accuracy of 97% and the method could be used for classifying machined surfaces made out of EDM, Milling, Shaping, Grinding and Sandblasting.

  2. REFERENCES

  1. Gadelmawla ES, Koura MM, Maksoud TMA, Elewa IM, Soliman HH, Roughness parameters, Jour. Material. Proc. Tech., 123 (1), 133-145.,2002.

  2. Menezes PL, Kishore, Kailas SV, Effect of directionality of unidirectional grinding marks on friction and transferlayer formation of Mg on steel using inclined scratch test, Mater. Sci and Eng., A 429 (1-2), 149-160.,2006.

  3. Haralick R.M., Shanmugam K. and Dinstein I., Texture features for Image classification, IEEE Transactions on Systems,Man and Cybernatics, 3,610-621, 1973.

  4. Pickett, R.M. Visual Analysis of Texture in the Detection and Recognition of Objects. In: Lipkin,

  5. B.Julesz, Experiments in the Visual Perception of Texture, Scientific American, 232, 4, 1975, 34-43.

  6. Devdas Shetty and Clement Imbert, Computer Identification of machined surfaces, Journal of Testing and Evaluation, JTEVA,12,No.6, 375- 379.,1984.

  7. Weszka J.S and Rosenfeld A., An application of Texture analysis to materials inspection, Pattern Recognition, 8, 195-199, 1976.

  8. Galloway M.M, Texture analysis using grey level run lengths, Computer Vision Graphics Image Processing,4,172- 179,1975.

  9. Chu A., Sehgal C.M., and GreenLeaf J.F., Use of grey level value distribution of run lengths for texture analysis, Pattern Recognition Letters,11,415-420.,1990.

  10. G.G. Lendaris and G.L. Stanley,

    Diffraction-pattern sampling for automatic pattern recognition, proc. IEEE 58, 198-216 (1970).

  11. A.C. Bovik, M Clark and W.S. Geisler, Multichannel Texture Analysis using localised spatial filters, IEEE Trans. Patt. Anal. Machine. Intell.,Vol 12, jan 1990.

  12. Long F., Zhang H.J., and Feng D.D., Fundamentals of content based Image Retrieval, Multimedia Information Retrieval and Management Technological Fundamentals and Applications, Springer 2003

  13. M. B. Kiran and P.V. Shashikumar, Automated Inspection of Machined Surfaces in Computer Integrated Manufacturing, The International Conference on Operational Excellence for Global Competitiveness- ICOEGC-2011- International Conference held in Bangalore, INDIA, February, 2011.

  14. I Daubechies, Orthogonal bases of compactely supported wavelets, Communications on pure and applied mathematics, vol41, pp 909-996, Nov 1988.

  15. G Strang, Waveltes and Dilation equations

    : A brief introduction, SIAM Rev, vol. 31, pp 614-627, Dec., 1989.

  16. I Daubechies,, The wavelet Transform, time frequency localization and signal analysis, IEEE Tran. Infor. Theory, vol. 36, pp 961-1005, Sept.1990.

  17. S.G.Mallat, Multiresolution approximation and wavelet orthonormal bases of L2, Tran. Amer. Math.Soc., June 1989.

  18. S.G.Mallat,, A Theory for Multiresolution signal decomposition: the wavelet representation, IEEE Tran, Pattern Anal. And Machine Intelli., vol.11, pp 674-693, July 1989.

  19. Tau J.Y., Lau P.Y., and Tay Y.H., Computer based wood recognition system, Proceedings in International workshop on Advaced Image Technology, 197- 202,2007.

Leave a Reply