Unsupervised Image Segmentation with Neural Networks

Similar documents
Classification. Vladimir Curic. Centre for Image Analysis Swedish University of Agricultural Sciences Uppsala University

Classification. Vladimir Curic. Centre for Image Analysis Swedish University of Agricultural Sciences Uppsala University

Outlier Detection Using Unsupervised and Semi-Supervised Technique on High Dimensional Data

Supervised Learning in Neural Networks (Part 2)

CLASSIFICATION WITH RADIAL BASIS AND PROBABILISTIC NEURAL NETWORKS

Unsupervised learning in Vision

2. Neural network basics

Image Compression: An Artificial Neural Network Approach

A Review on Plant Disease Detection using Image Processing

Machine Learning : Clustering, Self-Organizing Maps

Outlier detection using autoencoders

International Journal of Scientific Research & Engineering Trends Volume 4, Issue 6, Nov-Dec-2018, ISSN (Online): X

Rough Set Approach to Unsupervised Neural Network based Pattern Classifier

Histogram and watershed based segmentation of color images

In this assignment, we investigated the use of neural networks for supervised classification

Machine Learning in Biology

Neural Networks. By Laurence Squires

Review on Methods of Selecting Number of Hidden Nodes in Artificial Neural Network

Opening the Black Box Data Driven Visualizaion of Neural N

Introduction to digital image classification

Machine Learning and Pervasive Computing

Network Traffic Measurements and Analysis

More on Learning. Neural Nets Support Vectors Machines Unsupervised Learning (Clustering) K-Means Expectation-Maximization

CHAPTER 6 COUNTER PROPAGATION NEURAL NETWORK FOR IMAGE RESTORATION

Neural Networks. CE-725: Statistical Pattern Recognition Sharif University of Technology Spring Soleymani

Final Report - Smart and Fast Sorting

A Systematic Overview of Data Mining Algorithms. Sargur Srihari University at Buffalo The State University of New York

Dr. Qadri Hamarsheh Supervised Learning in Neural Networks (Part 1) learning algorithm Δwkj wkj Theoretically practically

Dynamic Clustering of Data with Modified K-Means Algorithm

Prototype Selection for Handwritten Connected Digits Classification

Accelerating Unique Strategy for Centroid Priming in K-Means Clustering

Using PageRank in Feature Selection

Lecture 2 Notes. Outline. Neural Networks. The Big Idea. Architecture. Instructors: Parth Shah, Riju Pahwa

Data Mining. Part 2. Data Understanding and Preparation. 2.4 Data Transformation. Spring Instructor: Dr. Masoud Yaghini. Data Transformation

Machine Learning Classifiers and Boosting

Learning a Manifold as an Atlas Supplementary Material

Lecture 11: Classification

Clustering algorithms and autoencoders for anomaly detection

Learning. Learning agents Inductive learning. Neural Networks. Different Learning Scenarios Evaluation

ECG782: Multidimensional Digital Signal Processing

Using the Kolmogorov-Smirnov Test for Image Segmentation

Enhanced Hemisphere Concept for Color Pixel Classification

4. Feedforward neural networks. 4.1 Feedforward neural network structure

Visual object classification by sparse convolutional neural networks

ECM A Novel On-line, Evolving Clustering Method and Its Applications

INCREASING CLASSIFICATION QUALITY BY USING FUZZY LOGIC

6. NEURAL NETWORK BASED PATH PLANNING ALGORITHM 6.1 INTRODUCTION

Neural Networks (Overview) Prof. Richard Zanibbi

CHAPTER-23 MINING COMPLEX TYPES OF DATA

A new predictive image compression scheme using histogram analysis and pattern matching

COMBINING NEURAL NETWORKS FOR SKIN DETECTION

Gauss-Sigmoid Neural Network

6. Dicretization methods 6.1 The purpose of discretization

4.12 Generalization. In back-propagation learning, as many training examples as possible are typically used.

Image Mining: frameworks and techniques

Yuki Osada Andrew Cannon

Performance Analysis of Data Mining Classification Techniques

Chapter 5: Summary and Conclusion CHAPTER 5 SUMMARY AND CONCLUSION. Chapter 1: Introduction

Datasets Size: Effect on Clustering Results

Pattern Recognition. Kjell Elenius. Speech, Music and Hearing KTH. March 29, 2007 Speech recognition

Clustering and Visualisation of Data

[7.3, EA], [9.1, CMB]

Associative Cellular Learning Automata and its Applications

A Systematic Overview of Data Mining Algorithms

CMPT 882 Week 3 Summary

An Efficient Approach for Color Pattern Matching Using Image Mining

Deep Learning. Deep Learning provided breakthrough results in speech recognition and image classification. Why?

Segmenting an Image Assigning labels to pixels (cat, ball, floor) Point processing: Lecture 3: Region Based Vision. Overview

Space Filling Curves and Hierarchical Basis. Klaus Speer

A SURVEY OF IMAGE MINING TECHNIQUES AND APPLICATIONS

Image Analysis - Lecture 5

Segmentation of Images

LECTURE NOTES Professor Anita Wasilewska NEURAL NETWORKS

DECONFLICTION AND SURFACE GENERATION FROM BATHYMETRY DATA USING LR B- SPLINES

3. Multidimensional Information Visualization II Concepts for visualizing univariate to hypervariate data

Climate Precipitation Prediction by Neural Network

Discovery of Agricultural Patterns Using Parallel Hybrid Clustering Paradigm

CHAPTER VII INDEXED K TWIN NEIGHBOUR CLUSTERING ALGORITHM 7.1 INTRODUCTION

Using PageRank in Feature Selection

Improving the Efficiency of Fast Using Semantic Similarity Algorithm

Supervised vs. Unsupervised Learning

Binary Decision Tree Using K-Means and Genetic Algorithm for Recognizing Defect Patterns of Cold Mill Strip

Traffic Signs Recognition using HP and HOG Descriptors Combined to MLP and SVM Classifiers

Bipartite Graph Partitioning and Content-based Image Clustering

Exploratory data analysis for microarrays

Neural Networks. Single-layer neural network. CSE 446: Machine Learning Emily Fox University of Washington March 10, /10/2017

Ch.5 Classification and Clustering. In machine learning, there are two main types of learning problems, supervised and unsupervised learning.

Radial Basis Function Networks: Algorithms

Texture Classification by Combining Local Binary Pattern Features and a Self-Organizing Map

CSC321: Neural Networks. Lecture 13: Learning without a teacher: Autoencoders and Principal Components Analysis. Geoffrey Hinton

COMPUTATIONAL INTELLIGENCE

A Learning Algorithm for Piecewise Linear Regression

Recognizing Handwritten Digits Using the LLE Algorithm with Back Propagation

Pattern Classification Algorithms for Face Recognition

(Refer Slide Time: 0:51)

Unsupervised Learning : Clustering

Unsupervised Learning

Features: representation, normalization, selection. Chapter e-9

1 Case study of SVM (Rob)

Vocabulary. 5-number summary Rule. Area principle. Bar chart. Boxplot. Categorical data condition. Categorical variable.

Transcription:

Unsupervised Image Segmentation with Neural Networks J. Meuleman and C. van Kaam Wageningen Agricultural University, Department of Agricultural, Environmental and Systems Technology, Bomenweg 4, 6703 HD Wageningen The Netherlands e-mail: Jan.Meuleman@User.AenF.WAU.NL Keywords: Neural networks, unsupervised learning, recursive partitioning, image segmentation Abstract The segmentation of colour images (RGB), distinguishing clusters of image points, representing for example background, leaves and flowers, is performed in a multi-dimensional environment. Considering a two dimensional environment, clusters can be divided by lines. In a three dimensional environment by planes and in an n- dimensional environment by n-1 dimensional structures. Starting with a complete data set the first neural network, represents an n-1 dimensional structure to divide the data set into two subsets. Each subset is once more divided by an additional neural network: recursive partitioning. This results in a tree structure with a neural network in each branching point. Partitioning stops as soon as a partitioning criterium cannot be fulfilled. After the unsupervised training the neural system can be used for the segmentation of images. INTRODUCTION Closely related to the EC-funded AIR-project "Objective Plant Quality Measurement by Digital Image Processing", fundamental research is carried out to develop smart segmentation procedures for plant images. After having reported successful image segmentation of plant images, using supervised trained neural networks (Meuleman, 1996), two approaches are being pursued for the development of unsupervised segmentation procedures: - procedures, focussing on the centres of the clusters to be distinguished; - procedures, focussing on the separation of clusters by discovering areas with a relatively low occupation of image points in a multi-dimensional environment. In earlier research (Meuleman, 1996) the segmentation of colour images of the Saint Paulia, distinguishing leaves, flowers, stamen, pot and background, was performed in an 18 dimensional environment, representing the R, G and B values of each image point together with additional information from the direct environment to achieve separability of the clusters to be distinguished. Compared with segmentation, based on the 3 dimensional RGB values of image points, this segmentation procedure was superior. However, the neural network which performs the segmentation, has to be trained: the quality of the segmentation procedure depends on the quality of the training. Furthermore the composition of a representative training and test set was a difficult task. To eliminate the disadvantages of the supervised neural network and to facilitate the use of neural networks for a good segmentation of plant images, unsupervised methods have been investigated. MATERIALS, METHODS, EXPERIMENTS In the experiments the same data as in the earlier research is used (Meuleman, 1996). From top view images of SaintPaulia 'Heidrun' plants with white flowers, two data sets of image points have been composed: Data set 1 consists of 100 pixels, representing leaves, 100 pixels representing the (white) flowers, 50 pixels representing the stamen, 100 pixels representing stems and 100 pixels representing the blue background. All pixels are selected in such a way that boundary pixels are avoided. Data set 2 consists of data set 1 on to which pixels from the boundaries of the objects are added, resulting in 200 pixels, representing leaves, 200 pixels representing the (white) flowers, 100 pixels representing the stamen, 200 pixels representing stems and 200 pixels representing the blue background. Proc. Sensors in Hort. III Eds. I Shmulevich et al. Acta Hort. 562, ISHS 2001 101

The five clusters, representing leaves, flowers, stamen, stems and background could be distinguished in an 18 dimensional environment. The 18 dimensions are: * r, g and b values of the (central) pixel. * R, G and B values of the (central) pixel. * R, G and B values of 4 additional pixels. These additional pixels are the corner pixels of the 5x5 environment of the central pixel. All colours are measured on 256 levels: r=red/256; g=green/256; b=blue/256. Furthermore: R=r/(r+g+b); G=g/(r+g+b) and B=b/(r+g+b). It means that besides the colour values of the pixel (to classify), relative colour information from the environment is also used. Cluster Building, Based on the Discovery of Centres of Clusters A three layer, fully connected neural network is used with one input layer of 18 neurons, 10 hidden neurons. At both the input and the hidden layer a threshold neuron is added. To activate the network a uni polar sigmoïd function is used. The output layer consists of a variable number of output neurons, corresponding with the number of clusters discovered. At the start of the procedure the first cluster has to be discovered (1 ouput neuron). At random one input pattern is assigned to cluster 1 and the neural network is trained. After training all patterns are propagated through the network and the pixel with the best similarity is added to the group of input patterns belonging to cluster 1. The system is trained again and the next most similar input pattern is added. When all similar pixels are added to cluster 1, the network is enlarged with one output neuron, representing the next cluster to discover. After this enlargement the iterative procedure restarts with two pixels: one per cluster. The selected pixels are the pixels with the highest similarity and the highest dissimilarity with cluster 1. After adjacent training sessions of the network one pixel (with the highest similarity with cluster 1 or 2) is added, and so on, until all clusters are discovered. The error function consists of two components: a similarity and a dissimilarity contribution. Similarity and dissimilarity are defined as: S n,m = (1 - x n,m ) 2 D n,m = x n,m 2 with: S n,m = degree of similarity of input pattern n with cluster m; D n,m = degree of dissimilarity of input pattern n with cluster m; x n,m = score of input pattern n on output neuron m. If a pixels is classified as belonging to cluster n, the similarity error with cluster n is taken into account, together with the sum of the dissimilarity errors with all other clusters: Σ m (S n,m + D n,m ). Unclassified pixels do not have a similarity contribution. Total similarity error = Σ S n,m of all patterns n belonging to cluster m; Total dissimilarity error= Σ D n,m of all patterns n not belonging to cluster m. As error function for non-linear minimisation is used: Total error = Σ n1 Σ m (S n1,m + D n1,m )/n 1 + Σ n2 Σ m D n2,m /n 2, with: n 1 = number of classified patterns; n 2 = number of not classified pixels. During the procedure the ratio between the mean similarity contribution of the classified group of pixels and the mean dissimilarity contribution of the unclassified pixels is administrated and a typical example of the course of this ratio is shown in figure 1. It can be seen that after adding a total group of 100 pixels, all belonging to for example leaves, the ratio increases. It means that also pixels, not belonging to the cluster "leaves" are included. After adding some pixels the ratio decreases sometimes. It means that a group of pixels, not belonging to leaves, but positioned close to each other in the n-dimensional space, are being incorporated in the cluster "leaves". By setting a threshold for the ratio, the first pixels of the next cluster are discovered. After adding one output neuron to the neural system and the assignment of one input pattern per cluster, as described above, the total procedure restarts until all pixels are classified without the need to add clusters. 102

Cluster Building, Based on the Discovery of Areas with Low Occupation of Pixels in Multi Dimensional Environment. Given the total data set A, a neural network (NN1) is being built to divide this set in 2 subsets, B and C. Additional neural networks NN2 and NN3 try to divide respectively B and C in the subsets D, E and F, G, and so on. By means of recursive partitioning the clusters to be distinquished can be built as shown in figure 2. Each neural network in the tree divides a (sub)set into two exact two (other) subsets. This type of partitioning will be dealt with as a number of standardised branching problems: all input variables of the branching neural network are individually scaled by substracting their mean value and divided by their standard deviation. By choosing the configuration of all neural networks identically, the problem is reduced to a standardised partitioning problem with only one difference: the number of patterns. Once the total tree is built, the tree can be used to classify new patterns. Only two questions are not solved yet: How to divide a set of patterns into two subsets and how to to evaluate the partitioning. 1. Partitioning a Set of Input Patterns into Two Subsets A set of input patterns can be represented as points in a multi-dimensional space, built up by the input variables. If the set of input patterns consists of two or more distinguishable clusters, it is expected that each cluster has its own centre in the multi-dimensional space. It is also expected that all input patterns, belonging to a certain cluster, are more or less concentrated around their cluster centre. In that case it is also expected that the point-density in the multi-dimensional space between the clusters is relatively low. This reduces the problem as follows: Is it possible to build a neural network, representing an n-1 dimensional structure, and this structure can be placed in areas with low occupation of patterns and in such a way that at each side of the structure a subset of patterns is located. Given an arbitrarily placed n-1 dimensional structure a suitable error function can be built to move the structure towards the areas with the lowest densities. If the contribution of patterns to this error function is higher when its distance from the structure is shorter than the n-1 dimensional structure will indeed follow areas with low point density. Figure 3 illustrates the error contribution function dependant on the distance of the structure from the error function used: errs p = e -distance p 2 (1) with: errs p = the squared error contribution of pattern p; distance p = the shortest distance between p and the n-1 dimensional structure. Besides an error function a network configuration has to be chosen as well. A very simple configuration is illustrated in figure 4. It consists of a fully connected two layer network. The dimension of the input layer is equal to the number of input variables. The output layer has only one neuron, with threshold and (1) is used as activation function. Figure 4 illustrates the case of 3 input variables. The output of the neural network is the error contribution of the propagated pattern. In general: errs p = e -(Σiαi.xi,p)2 (2) with: errs p = error contribution of pattern p; α i = weights of input signals; x i,p = values of input variables of pattern p For three input variables the distance to the structure of pattern p is: distance p =α 0 +α 1.x 1,p +α 2.x 2,p +α 3.x 3,p (3) Error minimisation results in two effects: The structure will be moved to a place with a lower occupation of patterns, but also the weights (α i ) will be reduced. The move of the structure to a less dense area is described in (4): α ' i = α i + L.dα (4) with: α ' i = new unscaled weight vector; α i = old weight vector; L = stepsize; 103

dα = direction towards minimum error. To avoid the minimisation procedure resulting in infinite ultimate weights (infinite weights produce error contributions equal to zero), the new weight vector is rescaled as follows: α " i = R.α ' i. (Σα 2 i )/ (Σα ' i 2 ) (5) with: R = reduction factor By choosing relatively high values for the initial weights and a reduction factor (R) per iteration, the flatness of the error function can be controlled during the optimisation process. With these two instruments a good global partitioning can be achieved, avoiding local minima. 2. The Evaluation of the Partitioning After placing the structure, whether the partitioned (sub)set consisted of more clusters or just one has to be evaluated. In the latter case the branching process stops for this particular branch. The evaluation is done by means of comparing sums of squares before and after partitioning. Because of the standardisation before partitioning the mean and standard deviation of the set is known: The total sum of squares per input variable is equal to the number of patterns, say n. For the total set, with, for example, v input variables, the total sum of squares is equal to nv. After partitioning the mean value, X 1,i and X 2,i, and the squared differences with regard to the mean value, Σ 1 (x 1,i - X 1,i ) 2 and Σ 2 (x 2,i -X 2,i ) 2, is calculated per variable. If the (sub)set of n patterns is partitioned in subset 1, containing n 1 patterns and subset 2, containing n 2 patterns and the number of input variables is N, than the squared ratio is evaluated: Σ 1 N (n 1.X 1,i 2 + n 2.X 2,i 2 ) ratio = -------------------------------------------------------- (6) Σ i=1 N (Σ j=1 n1 (x 1,i,j -X 1,i ) 2 ) + Σ i=1 N (Σ j=1 n2 (x 2,i,j -X 2,i ) 2 ) Ratio (6) is calculated after each iteration during error minimisation. The best partitioning corresponds with the highest ratio. If the ratio becomes too low, the partitioning proces is stopped. Future Developments The potentiality of both methods for automatic image segmentation needs further investigation. Regarding the centre approach, the research goal was to develop methods. The method described is not optimised with respect to the need of calculation power. Further research should be primarily concentrated on the development of standards for process evaluation and the study of its behaviour during the clustering process. Secundary goal is speeding up the procedure by reducing the need of calculation power. With regard to the partitioning method, further research should be primarily concentrated on the behaviour of the ratio statistic, especially in the case that a set, consisting of more clusters, has to be partitioned in subsets, each containing more than one cluster. RESULTS AND FUTURE RESEARCH PLANS Figure 5 shows the results of the segmentation process, using the clustering approach on the 450 pattern data set: the set without patterns in the transition area's of the distinguishable clusters. Errorfree segmentation would result in: cluster 1: pixel 1-100; cluster 2: pixel 101-200; cluster 3: pixel 201-250; cluster 4: pixel 251-350; cluster 5: pixel 351-450; Only one pixel is placed in a wrong group: a stamen pattern is classified as a leaf. Using the same data set and the partitioning approach this last pattern could also be classified as stamen. It seems that this "problem pattern" is a real stamen pattern and not an error in the data set, as suggested in an earlier research (Meuleman, 1996). More study has to be done if patterns from the transition areas are added to the data set. A reasonable segmentation can be found, but current methods are not stable enough. To test the partitioning approach a huge set of top view images of the Begonia Elatior was available. Figure 6 shows the results of the partitioning of a set of images. The colours are assigned to the clusters in order of discovery of the clusters. 104

ACKNOWLEDGEMENTS The authors thank the EC for the financial support within the scope of the mentioned AIR project. Without granting the research proposal, this fundamental research would have been impossible. A second acknowledgement regards student M. Sanders, who spent a tremendous number of hours at programming, improving and evaluating the clustering method within the scope of his Msc study. Literature Cited Meuleman, J. and Besselink, C.T.M. 1996. Image Segmentation with Neural Networks. Contribution at the EurAgEng congress, Madrid, 23-26 September. Figures Fig. 1. Course of the ratio after 150 additions to a cluster of 100 pixels. A NN1 B NN2 C NN3 D NN4 E NN5 cluster 1 cluster 2 H NN8 F NN6 I NN9 cluster 3 cluster 4 G NN7 cluster 5 Fig. 2. A tree of neural networks for recursive partitioning 105

Fig. 3. The error contribution of e -distance p 2 Fig. 4. The propagation of pattern p by the neural network. 106

Fig. 5. Result of the clustering proces on the 450 pattern data set. 107

Begonia 104 Begonia 1060 Begonia 1075 Begonia 1102 Begonia 1110 Begonia 1138 Begonia 1154 Begonia 1220 Begonia 1225 Begonia 1226 Begonia 1230 Begonia 1240 Fig. 6. A set of 12 Begonia plants after unsupervised segmentation. 108