Wavelet and Eigen-Space Feature Extraction for Classification of Metallography Images Pavel Praks a,1 , Marcin Grzegorzek b , Rudolf Moravec c , Ladislav Válek d , and Ebroul Izquierdo b a Dept. of Applied Mathematics, Technical University of Ostrava, Czech Republic b Multimedia & Vision Research Group, Queen Mary University of London, UK c Research and Development, Mittal Steel Ostrava plc, Ostrava, Czech Republic d QT - Production Technology, Mittal Steel Ostrava plc, Ostrava, Czech Republic Abstract. In this contribution a comparison of two approaches for classification of metallography images from the steel plant of Mittal Steel Ostrava plc (Ostrava, Czech Republic) is presented. The aim of the classification is to monitor the process quality in the steel plant. The first classifier represents images by feature vectors extracted using the wavelet transformation, while the feature computation in the second approach is based on the eigen-space analysis. Experiments made for real metallography data indicate feasibility of both methods for automatic image classification in hard industry environment. Keywords. Measurement, hard industry, human factors, content-based image retrieval, wavelet transformation, statistical classification, numerical linear algebra, partial symmetric eigenproblem, iterative solvers.

1. Introduction Any meaningful human activity requires perception. Under perception realization, evaluation, and interpretation of sensory impressions is understood. It allows the human to acquire knowledge about the environment, to react to it, and finally to influence it. There is no reason in principle why perception could not be simulated by some other matter, or instance, a digital computer [6]. The aim of the simulation is not the exact modeling of the human brain activities, but the obtainment of similar perception results. Research activities concerned with the mathematical and technical aspects of perception are the field of pattern recognition. One of the most important perceptual abilities is vision. The processing of visual impressions is the task of image analysis. The main problem of image analysis is the recognition, evaluation, and interpretation of known patterns or objects in images. 1 Dept.

of Information and Knowledge Engineering, University of Economics, Prague, Czech Republic. Correspondence to: Pavel Praks, Dept. of Applied Mathematics, VŠB – Technical University of Ostrava, 17. listopadu 15, CZ 708 33 Ostrava, Czech Republic. Tel.: +420 59 732 4181; Fax: +420 59 691 9597; E-mail: [email protected].

2n × 2n Gray Level Image f κ,ρ ..

xm

.

l

k

s=0

s = −1

bs,0,0 bs,1,0 bs,2,0 bs,3,0 bs,0,0 bs,1,0

d2,s

bs,0,1 bs,1,1 bs,2,1 bs,3,1 bs,0,1 bs,1,1

2|bs|

..

bs,0,2 bs,1,2 bs,2,2 bs,3,2 .

d0,s

bs

s = sb = −2 d2,s

d2,s+1

d0,s d1,s d1,s

d0,s+1

d1,s+1

bs,0,3 bs,1,3 bs,2,3 bs,3,3

Figure 1. 2D signal decomposition with the wavelet transformation for a local neighborhood of size 4 × 4 pixels. The final coefficients result from gray values b0,k,l and have the following meaning: b−2 : low-pass horizontal and low-pass vertical, d0,−2 : low-pass horizontal and high-pass vertical, d1,−2 : high-pass horizontal and high-pass vertical, d2,−2 : high-pass horizontal and low-pass vertical.

In this paper, the problem of automatic pattern classification in real metallography images from the steel plant of Mittal Steel Ostrava plc (Ostrava, Czech Republic) is addressed. The objective is to monitor the process quality in the steel plant. For this reason two different image classification algorithms are used and compared in this contribution. The first one computes feature vectors with the wavelet transformation, while in the second one the eigen-space analysis is applied. The paper is structured as follows. Section 2 describes the theoretical background of the wavelet-based image classifier. In Section 3, intelligent image retrieval using the partial eigen-problem is presented. Experimental comparison of these two approaches for image classification follows in Section 4, while Section 5 closes the paper with some conclusions.

2. Statistical Wavelet-Based Classification In this section, a statistical wavelet-based approach for image classification is presented. Section 2.1 describes the training of statistical models for different image concepts. These models are then used for image classification, which is presented in Section 2.2. 2.1. Training of Statistical Concept Models Before images can be classified in the recognition phase (Section 2.2), statistical models Mκ for all image concepts Ωκ considered in a particular classification task are learned in the training phase. The concept modeling starts with the collection of training data. In this work real metallography images from a cooking plant are used for this reason. Subsequently, the original training images are converted and resized into gray level images of size 2n × 2n (n ∈ N) pixels. In all these preprocessed training images 2D local feature vectors cκ,m are extracted using the wavelet transformation [4]. Training images are divided into neighborhoods of size 2|bs| × 2|bs| (in Figure 1, 4 × 4 pixels). These neighborhoods are treated as 2D discrete signals b0 and decomposed to low-pass and high-pass coefficients. The resulting coefficients bsb, d0,bs , d1,bs , and d2,bs are then used for feature vector computation

cκ,m (xm ) =



ln(2sb|bsb|) ln[2sb(|d0,bs | + |d1,bs | + |d2,bs |)]



.

(1)

The feature vectors cκ,m are modeled by normal density functions pκ,m = p(cκ,m |µκ,m , σ κ,m ) .

(2)

Due to the large number of training images for each concept Ω κ , it is possible to estimate the mean value vector µκ,m and the standard deviation vector σ κ,m for all image locations xm , i. e., all feature vectors cκ,m . Finally, statistical models Mκ for all image concepts Ωκ are created and ready for use in the classification phase (Section 2.2) 2.2. Image Classification Once the concept modeling (Section 2.1) is finished, the system is able to classify images taken from a real world environment. First, a test image f is taken, preprocessed, and local feature vectors cm are computed in it in the same way as in the training phase (Section 2.1). Second, the classification algorithm based on the Maximum Likelihood (ML) Estimation is started. The task of the image classification algorithm is to find the concept Ωκb , (or just its index κ b) of the test image f . In order to do so, the density values for all concepts Ω κ have to be compared to each other. Assuming that the feature vectors c m are statistically independent on each other, the density value for the given test image f and concept Ω κ is computed with pκ =

m=M Y

p(cm |µκ,m , σ κ,m ) ,

(3)

m=1

where M is the number of all feature vectors in the image f . All data required for computation of the density value pκ with (3) is stored in the statistical concept model Mκ . These density values are then maximized with the Maximum Likelihood (ML) Estimation [10] κ b = argmax pκ

.

(4)

κ

Having the index κ b of the resulting concept the classification problem for the image f is solved. 3. Latent Semantic Indexing In this section, we present the intelligent image retrieval using the partial eigen-problem. The numerical linear algebra is used as a basis for the information retrieval in the retrieval strategy called Latent Semantic Indexing, see for instance [1], [2]. LSI can be viewed as a variant of a vector space model, where the database is represented by the document matrix, and a user’s query of the database is represented by a vector. LSI also contains a low-rank approximation of the original document matrix via the Singular Value Decomposition (SVD) or the other numerical methods. The SVD is used as an automatic tool

for identification and removing redundant information and noise from data. The next step of LSI involves the computation of the similarity coefficients between the filtered user’s query and filtered document matrix. The well-known cosine similarity can be used for a similarity modeling. Recently, the methods of numerical linear algebra are also successfully used for the face recognition and reconstruction [5], image retrieval [8,7], as a tool for information extraction from internet data [9] and for iris recognition problem [7]. The "classical" LSI application in information retrieval algorithm has the following basic steps: i) The Singular Value Decomposition of the term matrix using numerical linear algebra. SVD is used to identify and remove redundant noise information from data. ii) The computation of the similarity coefficients between the transformed vectors of data and thus reveal some hidden (latent) structures of data. Numerical experiments pointed out that some kind of dimension reduction, which is applied to the original data, brings to the information retrieval following two main advantages: (i) automatic noise filtering and (ii) natural clustering of data with "similar" semantic. 3.1. Image Coding In our approach [8,7], a raster image is coded as a sequence of pixels. Then the coded image can be understood as a vector of an m-dimensional space, where m denotes the number of pixels (attributes). Let the symbol A denote a m × n term-document matrix related to m keywords (pixels) in n documents (images). Let us remind that the (i, j)element of the term-document matrix A represents the colour of i-th position in the j-th image document. 3.2. Implementation Details of Latent Semantic Indexing In this section we will describe the possible software implementation of the Latent Semantic Indexing method. Let the symbol A denotes the m × n document matrix related to m pixels in n images. The aim of SVD is to compute decomposition A = U SV T ,

(5)

where S ∈ Rm×n is a diagonal matrix with nonnegative diagonal elements called the singular values, U ∈ Rm×m and V ∈ Rn×n are orthogonal matrices1 . The columns of matrices U and V are called the left singular vectors and the right singular vectors respectively. The decomposition can be computed so that the singular values are sorted in decreasing order. The full SVD decomposition (5) is memory and time consuming operation, especially for large problems. Although the document matrix A is often sparse, the matrices U and V have a dense structure. Due these facts, only a few k-largest singular values of A and the corresponding left and right singular vectors are computed and stored in memory. The number of singular values and vectors which are computed and kept in memory 1A

matrix Q ∈ Rn×n is said to be orthogonal if the condition Q−1 = QT holds.

can be chosen experimentally as a compromise between the speed/precision ratio of the LSI procedure. We implemented and tested LSI procedure in the Matlab system by Mathworks. Following [2] the Latent Semantic Indexing procedure can be written in Matlab by the following way. Procedure Original LSI [Latent Semantic Indexing] function sim = lsi(A,q,k) % Input: % A ... the m × n matrix % q ... the query vector % k ... Compute k largest singular values and vectors; k ≤ n % Output: % sim ... the vector of similarity coefficients [m,n] = size(A); 1. Compute the co-ordinates of all images in the k-dimensional space by the partial SVD of a document matrix A. [U,S,V] = svds(A,k); % Compute the k largest singular values of A; The rows of V contain the coordinates of images. 2. Compute the co-ordinate of a query vector q qc = q’ * U * pinv(S); % The vector qc includes the co-ordinate of the query vector q; The matrix pinv(S) contains reciprocals of non-negative singular values (an pseudoinverse); The symbol ’ denotes the transpose superscript. 3. Compute the similarity coefficients between the co-ordinates of the query vector and images. for i = 1:n % Loop over all images sim(i)=(qc*V(i,:)’)/(norm(qc)*norm(V(i,:))); end; % Compute the similarity coefficient for i-th image; V (i, :) denotes the i-th row of V . The procedure lsi returns to a user the vector of similarity coefficients sim. The i-th element of the vector sim contains a value which indicate a "measure" of a semantic similarity between the i-th document and the query document. The increasing value of the similarity coefficient indicates the increasing semantic similarity. 3.3. Partial Eigen-problem The image retrieval process can be powered very effectively when the time consuming Singular Value Decomposition of LSI is replaced by the partial symmetric eigenproblem, which can be solved by using fast iterative solvers [7]. Let us assume the following relationship between the singular value decomposition of the matrix A and the symmetric eigenproblem of the symmetric square matrices A T A:

Figure 2. An example of results of the wavelet (left) and partial eigen-problem based image retrieval (right). The query image is situated in left up corner and it is related to the query LCT52XP1010229_a.jpg. The well-classified images are at positions 1, 3 and 5 for the wavelet method and at positions 1 – 3 for the partial eigen-problem method.

A = U SV T

(6)

AT = (U SV T )T = V S T U T

(7)

AT A = V S T (U T U )SV T = V S T SV T

(8)

Moreover, let us assume the SVD decomposition (5) again. Because of the fact that the matrix V is orthogonal, the following matrix identity holds: AV = U S.

(9)

Finally, we can express the matrix U in the following way: AV S + ≈ U

(10)

Here the symbol S + denotes the Moore-Penrose pseudoinverse (pinv). Let us accent that the diagonal matrix S contains only non-negative singular values for real cases; The singular values less than tol ≈ 0 are cut off by the Matlab eigs(A’*A, k) command. There is no exact routine for the selection of the optimal number of computed singular values and vectors [3]. For this reason, the number of singular values and associated singular vectors used for the partial symmetric eigenproblem was estimated experimentally, but it seems that k < 10 is suitable for real image databases. For example, we choose k = 8 for the large-scale NIST TRECVID 2006 data [11]. In contrast to the SVD approach, the size of the partial symmetric eigenproblem (the size of AT A matrix) does not depend on the number of pixels (keywords) at all. Since the number of computed singular values k << n for real problems and k is small, the image retrieval using the partial symmetric eigenproblem is more efficient [7] than the "classical" SVD approach [2].

Figure 3. An example of results of the wawelet (left) and partial eigen-problem based image retrieval (right). The query image is situated in left up corner and it is related to the query LDT70SP1010023_a.jpg. The well-classified images are at positions 1 – 3 and 7 for the wavelet method and at positions 1 – 4, 6 and 7 for the partial eigen-problem method.

Figure 4. An example of results of the wawelet (left) and partial eigen-problem based image retrieval (right). The query image is situated in left up corner and it is related to the query SCK60U12.jpg. The well-classified images are at positions 1 – 4 and 7 – 9 for the wavelet method and at positions 1 – 3, 5 and 7 for the partial eigen-problem method.

4. Experiments and Results 4.1. Experimental Data We experimented with real metallography images taken from the steel plant of Mittal Steel Ostrava plc, Ostrava, Czech Republic. In fact, we deal with sample images of con-

Figure 5. An example of results of the wawelet (left) and partial eigen-problem based image retrieval (right). The query image is situated in left up corner and it is related to the query SDK53M27. All retrieved images (except image no. 2) are well-classified by the wavelet method. All retrieved images (except image no. 4) are well-classified by the the partial eigen-problem method.

tinuously cast steel from billet device for continuous steel casting. This device produces billets of 180 mm square, 160 and 210 mm round. The closer parameters are stated in the Table 1. Steel samples from the cast billets are taken away for the device for continuous steel casting. These are crosscuts of the cast billets. These samples are conveyed into metallography lab where they are mechanically adjusted. In order to stress a sample macrostructure, crosscut etching is done. Consequently, photographs of these etched crosscuts are being taken. Commissioned on:

7 December 1993

Type:

billet, radial, two-point alignment

Heat volume:

205 tons

Casting method:

closed, through submerged nozzles and stoppers

Casting arc radius:

10.5 ; 21m (two-point alignment)

Cooling of semi-product:

water (single component)

Cutting of semis:

torch cutting

Slab marking: punching, 10-character code Table 1. Basic chosen parameters of the device for continuous casting No. 1.

Evaluation time of one image

0.36 secs.

Local feature vectors from neighborhoods

8 × 8 pixels

Type of wavelet transformation 8 TAB Johnshon Wavelet Table 2. Properties of the Statistical Wavelet-Based Classification method.

Properties of the document matrix A Number of keywords Number of documents Size in memory

458×480 = 219 840 40 67.089 MB

The SVD-Free LSI processing parameters Dim. of the original space 40 Dim. of the reduced space (k) 6 0.64 secs. Time for AT A operation 0.219 secs. Results of the eigensolver 0.859 secs. The total time Table 3. Image retrieval using the partial eigen-problem method; Properties of the document matrix (up) and LSI processing parameters (down).

Photographs from the verification of electromagnetic steel mixing in the crystallizer have been used for verifying of the described methods. The total number of images in the image database was 83. The number of images in the training set was 20. 4.2. Experimental Results The results of image retrieval experiments are presented in Fig. 2 - Fig. 5. The resulted images are presented by decreasing order of similarity. The query image is situated in left up corner. The similarity of the query image and the retrieved image is written in parentheses. In order to achieve well arranged results, only 9 most significant images are presented. The presented shape of the crosscuts does not respond to a reality completely (they were slightly deformed at the photograph evaluation). It can be stated that these are the first results for billets 180mm square and 210mm round. The evaluated subject was the whole crosscut of billet samples. 4.3. Conclusions for Experiments Our results indicate that the both methods can automatically recognize the shape and the type of images found in our image database. The behaviour of both methods is close to the classification of a human expert. Moreover, the results of Table 2 and Table 3 indicate a possibility of real-time analysis. The first results point out that the discussed methods can be also used for the evaluation of crosscut macro structure of billet samples. In order to achieve more precise evaluation results, individual areas of a sample crosscut images should be deeply analyzed in the future work. This deeper image analyze is also important for searching metallurgical relations in images, which are hidden in the image database.

5. Conclusion In this paper, a comparison of two approaches for automatic pattern classification in images taken from a real world environment has been presented. The experimental data in the form of metallography images has been provided by the Mittal Steel Ostrava plc (Ostrava, Czech Republic). The objective of this research activity is to monitor the quality

process in the steel plant. The first classifier used for this reason (Section 2) represents image patterns by feature vectors extracted with the wavelet transformation, while the second one (Section 3) is based on the eigen-space analysis. Classification results for experiments presented in Section 4 prove a very high performance of both approaches in a real world environment. In the future, the statistical wavelet-based approach (Section 2) will be combined with the eigen-based analysis (Section 3). One can imagine that a fusion of these two methods will bring a significant improvement in terms of classification rates. Acknowledgments The research has been also partially supported by a program "Information Society" of the Academy of Sciences of the Czech Republic, project No. 1ET401940412. The work leading to this contribution has been partially supported by the European Commission under contract FP6-027026-K-SPACE. References [1] W. M. Berry, Z. Drmaˇc, and J. R. Jessup. Matrices, vector spaces, and information retrieval. SIAM Review, 41(2):336–362, 1999. [2] D.A. Grossman and O.Frieder. Information retrieval: Algorithms and heuristics. Kluwer Academic Publishers, Second edition, 2000. [3] Berry W. M., Dumais S. T., and O’Brien G. W. Using linear algebra for intelligent information retrieval. SIAM Review, 37:573–595, 1995. [4] S. Mallat. A theory for multiresolution signal decomposition: The wavelet representation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 11(7):674–693, July 1989. [5] N. Muller, L. Magaia, and B. M. Herbst. Singular value decomposition, eigenfaces, and 3d reconstructions. SIAM Review, 46(3):518–545, 2004. [6] H. Niemann. Pattern Analysis and Understanding. Springer-Verlag, Berlin, Heidelberg, Germany, 1990. [7] Praks P., Machala L., and Snášel V. On SVD-free Latent Semantic Indexing for iris recognition of large databases. Multimedia Data mining and Knowledge Discovery. Ed. V. A. Petrushin and L. Khan, Springer-Verlag London Limited, 2007. [8] P. Praks, J. Dvorský, and V. Snášel. Latent semantic indexing for image retrieval systems. In SIAM Conference on Applied Linear Algebra. The College of William and Mary, Williamsburg, USA, http://www.siam.org/meetings/la03/proceedings/Dvorsky.pdf, July 2003. [9] V. Svátek, M. Labský, P. Praks, and O. Šváb. Information extraction from html product catalogues: coupling quantitative and knowledge-based approaches. In Dagstuhl Seminar on Machine Learning for the Semantic Web. Research Center for Computer Science, Wadern, Germany, http://www.smi.ucd.ie/Dagstuhl-MLSW/proceedings/labskysvatek-praks-svab.pdf, February 2005. [10] A. R. Webb. Statistical Pattern Recognition. John Wiley & Sons Ltd, Chichester, UK, 2002. [11] P. Wilkins, T. Adamek, P. Ferguson, M. Hughes, G. J. F. Jones, G. Keenan, K. McGuinness, J. Malobabic, N. E. O’Connor, D. Sadlier, A. F. Smeaton, R. Benmokhtar, E. Dumont, B. Huet, B. Merialdo, E. Spyrou, G. Koumoulos, Y. Avrithis, R. Moerzinger, P. Schallauer, W. Bailer, Q. Zhang, T. Piatrik, K. Chandramouli, E. Izquierdo, L. Goldmann, M. Haller, T. Sikora, P. Praks, J. Urban, X. Hilaire, and J. M. Jose. K-space at trecvid 2006. In Proceedings of the TRECVid Workshop, Gaithersburg, Maryland, USA, 2006. NIST, http://wwwnlpir.nist.gov/projects/tvpubs/tv6.papers/k-space.pdf.

Wavelet and Eigen-Space Feature Extraction for ...

instance, a digital computer [6]. The aim of the ... The resulting coefficients bbs, d0,bs, d1,bs, and d2,bs are then used for feature ..... Science, Wadern, Germany ...

1017KB Sizes 1 Downloads 228 Views

Recommend Documents

Wavelet and Eigen-Space Feature Extraction for ...
Experiments made for real metallography data indicate feasibility of both methods for automatic image ... cessing of visual impressions is the task of image analysis. The main ..... Multimedia Data mining and Knowledge Discovery. Ed. V. A. ...

feature extraction & image processing for computer vision.pdf ...
feature extraction & image processing for computer vision.pdf. feature extraction & image processing for computer vision.pdf. Open. Extract. Open with. Sign In.

Local Wavelet Pattern: A New Feature Descriptor for ...
An example image considered from the Nema-CT database to show the effect of each step. (a) Considered Image, (b) the final local wavelet pattern map.

Local Wavelet Pattern: A New Feature Descriptor for ...
Local Wavelet Pattern: A New Feature Descriptor for Image Retrieval in Medical CT Databases. IEEE Transactions on Image ... Proposed local wavelet pattern (LWP) utilized the inter- neighbor relationship using .... Public Information Repository,” Jo

A Random Field Model for Improved Feature Extraction ... - CiteSeerX
Center for Biometrics and Security Research & National Laboratory of Pattern Recognition. Institute of ... MRF) has been used for solving many image analysis prob- lems, including .... In this context, we also call G(C) outlier indicator field.

Matlab FE_Toolbox - an universal utility for feature extraction of EEG ...
Matlab FE_Toolbox - an universal utility for feature extraction of EEG signals for BCI realization.pdf. Matlab FE_Toolbox - an universal utility for feature extraction ...

Adaptive spectral window sizes for feature extraction ...
the spectral window sizes, the trends in the data will be ... Set the starting point of the 1st window to be the smallest ... The area under the Receiver Operating.

Learning a Selectivity-Invariance-Selectivity Feature Extraction ...
Since we are interested in modeling spatial features, we removed the DC component from the images and normalized them to unit norm before the learning of the features. We compute the norm of the images after. PCA-based whitening. Unlike the norm befo

IC_26.Data-Driven Filter-Bank-Based Feature Extraction for Speech ...
IC_26.Data-Driven Filter-Bank-Based Feature Extraction for Speech Recognition.pdf. IC_26.Data-Driven Filter-Bank-Based Feature Extraction for Speech ...

A Random Field Model for Improved Feature Extraction ... - CiteSeerX
Institute of Automation, Chinese Academy of Science. Beijing, China, 100080 ... They lead to improved tracking performance in situation of low object/distractor ...

Feature Extraction for Outlier Detection in High ...
Literature Review. Linear subspace analysis for feature extraction and dimensionality reduction has been stud- ..... Applied Soft Computing, 10(1):1–35, 2010. 73.

FuRIA: A Novel Feature Extraction Algorithm for Brain-Computer ...
for Brain-Computer Interfaces. Using Inverse Models ... Computer Interfaces (BCI). ▫ Recent use of ... ROIs definition can be improved (number, extension, …).

PCA Feature Extraction For Change Detection In.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. PCA Feature ...

Matlab FE_Toolbox - an universal utility for feature extraction of EEG ...
Matlab FE_Toolbox - an universal utility for feature extraction of EEG signals for BCI realization.pdf. Matlab FE_Toolbox - an universal utility for feature extraction of EEG signals for BCI realization.pdf. Open. Extract. Open with. Sign In. Main me

Feature Extraction for Outlier Detection in High ...
Outlier detection is an important data mining task and has been widely studied in .... is extracted from a transformation of the original data space (vector space).

PCA Feature Extraction For Change Detection In ieee.pdf ...
Whoops! There was a problem previewing this document. Retrying... Download. Connect more apps... PCA Feature ... In ieee.pdf. PCA Feature E ... n In ieee.pdf.

Affine Invariant Feature Extraction for Pattern Recognition
Nov 13, 2006 - I am also thankful and grateful to my thesis supervisor Dr. Syed Asif Mehmood Gilani for his continuous guidance and support that he extended during the course of this work. I had numerous discussions with him over the past year and he

ClusTrack: Feature Extraction and Similarity Measures ...
Apr 16, 2015 - “ClusTrack”, available at the Genomic HyperBrowser web server [12]. We demonstrate the .... the HyperBrowser server hosting the ClusTrack tool. ..... Available from: http://david.abcc.ncifcrf.gov/home.jsp. Accessed 2013 Nov 6 ...