Texture Measures for Improved Watershed Segmentation of Froth Images Gordon Forbes1 , Gerhard de Jager2 1

2 Mineral Processing Research Unit Digital Image Processing Group Department of Chemical Engineering Department of Electrical Engineering University of Cape Town University of Cape Town Private Bag, Rondebosch, 7701 Private Bag, Rondebosch, 7701 [email protected]

[email protected]

Abstract Luc Vincent’s fast watershed algorithm has been successfully applied to determine the bubble size distribution in an image of froth when the bubbles are all of similar size [1]. This technique fails to work successfully when the image contains both tiny and large bubbles. A new technique is proposed which combines the use of a texture measure, the output of an initial watershed and a further watershed stage to successfully segment both tiny and large bubbles.

1. Introduction Over the last few years, numerous advances have been made in applying machine vision technology to froth flotation. Flotation is a process used in many mines to concentrate the amount of desired mineral, before further processing (eg. smelting). Maintaining operation of a flotation circuit at an optimal condition is not easy to achieve due to the large number of input parameters (air, level, reagents) as well as the large number of possible disturbances (mill performance, ore type changes) to each float cell. Typically, changes to the input variables are made by an experienced operator, based on a visual inspection of the froth. These operators look at features such as: bubble size, froth velocity, froth colour and froth texture.

2. Watershed for Bubble Segmentation The watershed algorithm has been successfully used to segment individual bubbles in froth images [1, 2, 3, 4]. The froths on which the watershed algorithm was used typically consisted of large bubbles with a fairly consistent size. This is shown in Figure 1. When the watershed segmentation is applied to images of froths that contain both large as well as tiny bubbles, the result is either an over-segmentation of the large bubbles (when minimal low-pass filtering is used in the pre-processing stage) or the under-segmentation of the very tiny bubbles (when more low-pass filtering is used). These two cases are shown in Figure 2 and 3.

Figure 1: An well segmented froth image. Note that all of the bubbles are of similar size.

Figure 2: An under-segmented froth image. Note that some of the regions contain many tiny bubbles.

3. Classification of Tiny Bubbles The output of the watershed algorithm is a set of blobs. In the case of under-segmentation, the output blobs are either a single bubble, or a collection of tiny bubbles. There is a distinct visual difference between the two types of blobs, which can be seen in Figure 4. Because of this visual difference, it was expected that a texture measure would be able to distinguish between a blob that was a single bubble, and one which was in fact a

and the set of 9 filters generated from the following kernels: L3 = [ 1 E3 = [ -1 S3 = [ -1

Figure 3: An over-segmented froth image. Note that the larger bubbles have been erroneously divided into multiple regions.

2 1 ] 0 1 ] 2 -1 ]

These kernels were applied to both the single bubble and the tiny bubble datasets. The texture energy was calculated for every item in both datasets. The texture energy was normalised against the area of the blob being analysed so as to ensure comparable features. Thornton’s separability index [10] was then used to determine which sets of features where best suited for discriminating between the two datasets. The results are shown in Table 1. Features Used E3E3 E3S3 S3S3 L3S3 L3L3 E3E3 E3S3 S3L3 L3L3 E3E3 S3E3 S3S3 S3L3 L3L3 E3E3 S3S3 L3S3 L3L3 E3E3 E3S3 S3E3 S3S3 S3L3 L3L3

Figure 4: Left: a single bubble. Right: many tiny bubbles.

collection of tiny bubbles. A data set was created by hand that consisted of 108 examples of single bubbles and 107 examples of clusters of tiny bubbles (identified from the erroneous watershed segmentation). Numerous texture measures are available to be used to classify these blobs. Such texture measures include: texture spectrum [5], grayscale co-occurrence matrices (GSCOMs) [6], Fourier methods [7, 8], Laws’ texture measures [9] and others. Since the blobs to be analysed were of irregular shape, the Fourier techniques where not used. The texture spectrum was not used as it was expected that the resultant texture spectrum would be too sparsely populated to give meaningful results when looking at very small blobs. Initial tests were conducted using Laws’ texture measures and GSCOMs.

Table 1: Separability indices for the dataset using 9 Laws filters.

As can be clearly seen from Table 1, at least four features are required to achieve a good separability index. 3.2. Grayscale Co-occurrence Matrix Measures Texture measures based on the GSCOM were used to discriminate between the two datasets of single bubbles and collections of tiny bubbles. The specific measures, based on the GSCOM, P , that were investigated included [6, 7]: Maximum Probability: max(Pij ) X Energy: Pij2 Contrast:

X

= = = = =

[ 1 4 [ -1 -2 [ -1 0 [ -1 2 [ 1 -4

(i − j)2 Pij

X i,j

6 4 1 ] 0 2 1 ] 2 0 -1 ] 0 -2 1 ] 6 -4 1 ]

(2) (3)

i,j

3.1. Laws’ Texture Measures

L5 E5 S5 W5 R5

(1)

i,j

Homogeneity:

Law’s texture measures[9] were implemented using both the set of 25 filters generated from the following kernels:

Separability Index 0.9581 0.9535 0.9535 0.9535 0.9488

Entropy:



X

Pij 1 + |i − j|

Pij log Pij

(4) (5)

i,j

Again, Thornton’s separability index was used to determine which of these features were most suited to the classification of blobs as either a single bubble or a collection of tiny bubbles. Numerous features subsets provided 100% separability. This is shown in Table 2. All of the sets which achieved this level of separation included

Features Used 12345 1234 1235 123 1345 134 135 13 2345 235 23 345 35 3 1245

Separability Index 1.000 1.000 1.000 1.000 1.000 1.000 1.000 1.000 1.000 1.000 1.000 1.000 1.000 1.000 0.995

4. Contrast A surface plot of the contrast measure (Figure 6 and 7) shows why this feature performs particularly well at discriminating between a single bubble and collections of tiny bubbles.

Table 2: Separability indices for the datasets using GSCOM features.

Feature 3 4 5 1 2

Separability Index 1.000 0.986 0.684 0.544 0.540

Figure 6: Left: A typical surface plot of the GSCOM of a bubble. Right: The image it is based on.

Table 3: Separability indices using single GSCOM features.

feature number 3, contrast. The separability indices for using a single feature are shown in Table 3. Based on these results, a simple linear classifier was created that would be able to classify all of the blobs in a watershed segmentation as either a bubble or a collection of tiny bubbles. The results of running the classifier on a frame of froth is shown in Figure 5.

Figure 7: Left: A typical surface plot of the GSCOM of a collection of tiny bubbles. Right: The image it is based on.

Figure 5: Blue indicates blobs classified as single bubbles, yellow indicates blobs classified as collections of tiny bubbles. This is the same input image as in Figure 2.

It is clear from these figures that there is a distinct difference between the two GSCOMs. In particular, the GSCOM for the single bubble has high values along the diagonal. This is because most of the values in the image have neighbouring values which are very similar to each other. In blobs with many tiny bubbles, neighbouring pixels often have highly dissimilar values, resulting in a GSCOM with a close to uniform distribution. It is because of these differences in the GSCOM that the contrast feature can successfully discriminate be-

tween the two types of blob. This is evident from the (i − j)2 term which emphasises terms far away from the diagonal. Similarly, the homogeneity feature also performs well. It has the term |i − j| in the denominator which emphasises terms along the diagonal of the GSCOM.

5. Optimising the Contrast Measurement The traditional way of determining texture features is to first create the GSCOM, and then to calculate the desired features using the formulaes in 3.2. This is not always necessary, especially in the case of the contrast feature. It can be calculated directly from the source image by using a single pass through the image. The squared difference between neighbouring pixels at each location are totalled and normalised against the size of the image.

Figure 8: The mask corresponding to the image in Figure 5.

6. 2nd Stage Watershed One cannot simply create two watersheds (with different parameters) for a single image and combine the outputs. This is mainly due to the fact that there is no guarantee that the boundaries will lie on top of each other. In order to overcome this problem, the input image to the second watershed function can be modified by the output of the first in order to guarantee that the outlines of the identified blobs are properly aligned. The algorithm for merging the two watershed outputs is given below. The process flowsheet can be seen in Figure 11. The first watershed is run on the input image with a large amount of low pass filtering. This results in the large bubbles being well segmented and groups of clusters of tiny bubbles that are under-segmented. An example of this is shown in Figure 2. Each blob that has been identified is then classified as either a single bubble or a collection of tiny bubbles using the GSCOM contrast feature. An example of such a classification is given in Figure 5. From this classification, a mask is created which indicates which blobs are large bubbles. The mask also contains the boundary information for each of these blobs. An example of such a mask is shown in Figure 8. The second stage of low pass filtering is applied to the original image (less than was initially used). The lowpass filtered image is then multiplied by the mask, resulting in the new input image for the 2nd stage watershed algorithm. This is shown in Figure 9. Modifying the input to the second watershed such that the blobs that have been identified as bubbles have a maximal value (are peaks), and the edges around them have a minimal value (valleys), ensures that the watershed algorithm will result in a segmentation that will follow these specified edges. The new watershed output can then be merged with the original watershed output to generate a

Figure 9: The mask after it has been applied to the input image.

final segmentation which contains well segmented large and tiny bubbles. An example of such a segmentation is shown in Figure 10.

Figure 10: Final watershed output.

7. Discussion Although the feature selection techniques result in 100% separability for the training data, there is no guarantee that all subsequent classifications will be 100% accurate.

A further modification to the algorithm which could result in an decrease in computation time under certain conditions is to not perform the second watershed stage if the original image is made up of more than a certain level of large bubbles. This would be the case when an image consists of large bubbles only. Under such conditions the second watershed stage would not detect many tiny bubbles anyway. It is possible that the use of a two stage approach can bias the output bubble size distribution towards a bimodal distribution. This might erroneously occur when there are medium sized bubbles present in the froth as well as large and tiny bubbles. It is expected that the multi-stage extension of this work will handle this situation, at the expense of extra processing power. If the low-pass filtering is handled by successive filtering with a small kernel, then it will be possible to get all of the required low-pass filtered images on the creation of the low-pass filtered image for the first stage of watershedding.

Figure 11: Process flowsheet.

This is because the training data is hand classified, and consists of examples of both bubbles and collections of tiny bubbles that clearly fall into one of the two categories. This allows the classifier to generalise well, but can result in the misclassifications of some blobs when a whole image is analysed. Furthermore, it is very important to note that the algorithm is entirely constrained by the watershed algorithm as it is run in its first stage. If the blobs are oversegmented at this stage the system will fail to produce suitable results. For this reason it is necessary to use appropriate parameters (low-pass filtering, h-dome and thresholding values) for both watershed stages. It is also important to test the algorithm on the two other extreme cases. Firstly, when the froth image consists only of tiny bubbles, and secondly, when the froth image consists only of large bubbles. This is important because the froths are dynamic and can change between a variety of states, all of which should be processed in an optimal way. These cases have both been tested, with the algorithm performing well.

One of the disadvantages of the algorithm is the increased number of parameters that are available for the user to adjust in order to obtain an optimal segmentation. These parameters fall into two categories, parameters associated with the watershed, and parameters associated with classification. Currently, the watershed parameters are kept constant, except for the amount of low-pass filtering that is performed. The low-pass filtering parameter for the second stage must be smaller than the value used in the first stage of watershedding. This places a limit on the possible values it could have. The selection of a threshold value for the classification of blobs as either single bubbles of collections of tiny bubbles could be automated by hand segmenting a large number of blobs into either single bubbles or collections of tiny bubbles. This dataset could then be used to automatically determine the optimal value for the thresholding level for a given froth. This algorithm has shown promising results on numerous froths from a variety of ore bodies, ranging from copper to platinum. This ability to generalise makes the algorithm particularly powerful.

8. Conclusions A new two-stage watershed algorithm that makes use of a texture based classifier can greatly improve the segmentation of images of froth when large and tiny bubbles are both present. The new algorithm has been successfully implemented on numerous froth types.

9. Acknowledgements The authors would like to thank the following for their financial support: the NRF, the Department of Labour, Rio Tinto and UCT Department of Chemical Engineering.

10. References [1] Benedict Wright, “The Development of a VisionBased Flotation Froth Analysis System,” M.S. thesis, University of Cape Town, September 1999. [2] Jerome Francis, Machine vision for froth flotation, Ph.D. thesis, University of Cape Town, June 2001. [3] Craig Sweet, “The application of a machine vision system to relate to froth surface characteristics to the metallurgical performance of a pgm flotation process,” M.S. thesis, University of Cape Town, 2000. [4] Pauli Sipari, “The Characterization of Flotation Froth Structure and Colour by Machine Vision ChaCo,” Tech. Rep., Helsinki University of Technology, 2002. [5] D. He and L. Wang, “Texture unit, texture spectrum, and texture analysis,” in IEEE Transactions on Geoscience and Remote Sensing, 1990, vol. 28, pp. 509–512. [6] R. Haralick, “Statistical and structural approaches to texture,” in Proceedings of the IEEE, May 1979. [7] M. Tuceryan and A.K Jain, The Handbook of Pattern Recognition and Computer Vision, chapter Texture Analysis, pp. 207–248, World Scientific Publishing, 1998. [8] J. M. Coggins and A. K. Jain, “A spatial filtering approach to texture analysis,” in Pattern Recognition Letters, 1985, pp. 195 – 203. [9] K.I. Laws, “Rapid texture identification,” in Proc. SPIE Image Processing for Missile Guidance, 1980. [10] Chris Thornton, “Separability is a learner’s best friend,” in Proceedings of the Fourth Neural Computation and Psychology Workshop: Connectionist Representations, 1997, pp. 40–47.

Texture Measures for Improved Watershed Segmentation of Froth ...

ore type changes) to each float cell. Typically, changes to the input variables are made by an experienced operator, based on a visual inspection of the froth. These operators look at features such as: bubble size, froth velocity, froth colour and froth texture. 2. Watershed for Bubble Segmentation. The watershed algorithm has ...

567KB Sizes 0 Downloads 201 Views

Recommend Documents

Texture Detection for Segmentation of Iris Images - CiteSeerX
Asheer Kasar Bachoo, School of Computer Science, University of Kwa-Zulu Natal, ..... than 1 (called the fuzzification factor). uij is the degree of membership of xi.

Texture based segmentation of remotely sensed ...
The exact purpose of image segmentation is either to extract the outlines of different regions in the ...... Simplicity of these metrics may in some cases cause mis-.

2015 State of the Watershed Report - Cienega Watershed Partnership
Should consider how best to display information so that it is accessible to the general ... Consider using ecosystem services as a way of including social aspect .... Mass mortality events (e.g. oak die-‐offs) -‐-‐ Core measurements needed ...

CLUSTERING of TEXTURE FEATURES for CONTENT ... - CiteSeerX
storage devices, scanning, networking, image compression, and desktop ... The typical application areas of such systems are medical image databases, photo ...

2015 State of the Watershed Report - Cienega Watershed Partnership
Indicator categories: Ecological, fire costs, jobs/economics, leveraged funds, ... LCNCA Data and Gaps Analysis November 2013 workshop results (Tahnee ...

Big Thompson Watershed Forum's 2013 Watershed ... -
SURFACE WATER ISSUES ~ 2013, to be held in Greeley, Colorado, on Thursday, February 28, 2013. We will welcome 12 speakers, with Patty Limerick as our ...

measures for displacement of permutations used for ...
Abstract : In speech scrambling systems, the signal is encrypted by rearyanging the speech data using permutations. Effective scrambling as measured by residual intelligibility (Rl) is dependent on rearrangement. Two parameters can be used for measur

Supplementary Material for ”Production-Based Measures of Risk for ...
Measures of Risk for Asset Pricing”. Frederico Belo. ∗. November 3, 2009. Appendix A Producer's Maximization Problem. Define the vector of state variables as xit-1 = (Kit-1,ϵit-1,Pit-1,Zit-1), where Kit-1 is the current period stock of capital,

Integrated watershed management.pdf
Integrated watershed management.pdf. Integrated watershed management.pdf. Open. Extract. Open with. Sign In. Main menu. Displaying Integrated watershed ...

Supplementary Material for ”Production-Based Measures of Risk for ...
Nov 3, 2009 - [4] Campbell, John Y., and Robert J. Shiller, 1988, Stock prices, earnings, and expected dividends, Journal of Finance 43,661 − 676. [5] Campbell, J., 2003, Consumption-Based Asset Pricing, in George Constantinides, Milton. Harris, an

Endogenous Market Segmentation for Lemons
Sellers may send some messages to buyers (explicit). Or, they .... Stango (2004) for an online used computer market. 5Although many ... economy where the informational free-riding problem is so severe that a socially efficient technology .... Sellers

Color Textons for Texture Recognition
illumination effects as local intensity, shading and shadow. But, the learning of representatives of the spatial structure and colors of textures may be ham- pered by the wide variety of apparent structure-color combinations. There- fore, our second

Big Thompson Watershed Coalition
erosion and sediment deposition, extensive damage to property and critical infrastructure, and loss of significant economic, riparian, aquatic, and scenic resources. Nearly all of the highly used federal, state, county, and city recreation facilities

Windows on the Watershed
wasteful of water than sprinklers). • Mulching (helps retain moisture in soil, and can be a way to recycle organic waste material). • Integrated Pest Management.

Big Thompson Watershed Coalition
Larimer County and the City of Loveland are undertaking an assessment of recreation and conservation opportunities along the Big Thompson. River, including ...

Improved Method for Individualization of Head-Related ...
one can see obviously the advantage of PCA in reducing significantly the ..... nication Laboratory and of the Wireless and Signal Processing Re- search Group of ...

Measures of Diversity for Populations and Distances ...
sity that will be defined apply also to simpler kinds of genomes, such as ..... on the same theme (Morrison and De Jong, 2002; Wineberg and Oppacher, 2003b).

Evaluation of Vision-based Real-Time Measures for ...
Analysis: The State of the Art. Technical Report. College of. Computing, Georgia Institute of Technology. [6] Cootes, T.F., Edwards, G. J., and Taylor, C. J. 2001.

Truncation Approximations of Invariant Measures for ...
Sep 14, 2007 - R. L. TWEEDIE,* Colorado State University ... Postal address: Department of Statistics, Colorado State University, Fort Collins CO 80523, USA.