• No results found

A New Image Segmentation Algorithm Based on Particle Swarm Optimization and Rough Set

N/A
N/A
Protected

Academic year: 2020

Share "A New Image Segmentation Algorithm Based on Particle Swarm Optimization and Rough Set"

Copied!
9
0
0

Loading.... (view fulltext now)

Full text

(1)

A New Image Segmentation Algorithm Based on Particle

Swarm Optimization and Rough Set

Wafaa Ghonaim

1*

, Shereen A. Taie

2

1 Faculty of Science, Al-Azhar University, Cairo, Egypt.

2 Computer Science Department, Faculty of Computers and Information, Fayoum University, Egypt.

* Corresponding author. Email: [email protected] Manuscript submitted July 28, 2016; accepted January 7, 2017 doi: 10.17706/jcp.13.1.130-138

Abstract: Image segmentation is a basic technique for advanced image analysis. In this paper a new image

segmentation algorithm based on combining particle swarm optimization PSO and rough set is proposed. The algorithm adopts mean roughness measure as evaluation standard, this measure depends on minimization of roughness in both object and background regions; by determining the optimal threshold of partitioning. In this algorithm, threshold estimation is regarded as a search procedure that searches for an optimal value in a continuous gray-scale interval. The results of the PSO based proposed algorithm are compared with Bat-Inspired algorithm under mean roughness measure as the fitness function and simulations show that the PSO seems much superior than Bat algorithm.

Key words: Particle swarm optimization, bat-inspired algorithm, rough set, image segmentation, mean

roughness measure.

1.

Introduction

Image segmentation refers to the process of partitioning a digital image to related homogenous sections or regions, where the homogeneity of a region may be composed based on different criteria such as gray level. The goal of segmentation is to simplify the representation of an image into different disjoint regions that are more meaningful and easier to analyze [1], [2].

Segmentation algorithms are based on two significant criteria: the homogeneity of a region (thresholding) and the discontinuity between adjacent disjoint regions (finding edges). Since the segmented image obtained from the homogeneity criterion has the advantage of smaller storage space, fast processing speed and easy in manipulation, thresholding techniques are considered the most popular. Thresholding techniques can be classified into two categories: bi-level and multi-level. In bi-level, one limit value is chosen to segment an image into two classes: one representing the object and the other one segmenting the background. When distinct objects are depicted within a given scene, multiple threshold values have to be selected for proper segmentation, which is commonly called multi-level thresholding [3], [4].

(2)

texture is preserved. An overview of PSO based approaches in image segmentation is provided in [3], and illustrated that PSO itself is a very powerful technique, but when combined with other computational intelligence techniques results in a more effective approach.

Segmentation in gray scale images results in ill-defined object boundaries [6]. Due to the formidable ability processing information uncertainty, the rough set theory has become a new academic hot spot in the artificial intelligence domain, In machine learning, knowledge acquisition, decision analysis, process control, image processing and many other fields, it has been widely used [7].

In this paper, PSO combined with rough set based on the mean roughness measure as the evaluation standard and use PSO to segment image in order to obtain better results. The advantages of PSO are that, easy to implement and there are few parameters to adjust. PSO has been successfully applied in many areas: function optimization, artificial neural network training, fuzzy system control, and other areas [2]. The rest of this paper is arranged as follows. Section 2, introduces an overview of the particle swarm optimization. Section 3, gives an overview of rough set theory. Section 4 presented the algorithm description. Experimental results are discussed in Section 5. Section 6, shows the comparative results of applying Bat algorithm. Finally, Conclusion is presented in Section 7.

2.

Particle Swarm Optimization

Optimization is the act of obtaining the best result under given circumstances. PSO is an evolutionary optimization technique introduced by Kennedy and Eberhart at 1995. It has been widely used to solve a wide range of optimization problems. The PSO concept is based on social behavior of bird flocking. In the PSO algorithm, the particles move in the multi-dimensional search space [8], [9]. PSO is a population-based optimization technique that exploits a population of individuals to search promising regions of the function space. The population is called swarm and the individuals are called particles, each particle is a solution to the problem and moves through the search space with an adaptable velocity according to a certain rule [10]. Each particle has fitness value which is calculated by using fitness function and searches the point that minimizes the fitness function. In PSO particle's positions and velocities are generated randomly then the velocity and position of a particle are updated at t time according to the following rules represented by equation (1) and (2) respectively.

Xid (t+1) = Xid (t) + Vid (t+1) (1)

Vid (t+1)= w × Vid (t)+ C1r1 (Pbestid - Xid (t)) + C2r2 (gbestd – Xid (t)), (2)

where - Vmin < Vid ≤ Vmax, and i = 1, 2,…… ps. Where ps denotes the population size, w is the inertia weight which has the effect of improving the convergence of search by reducing the speed as time progresses. Pbest is the best previous solution of the ith particle that is recorded, gbest is the best particle among the

whole population, and constants C1 and C2 are weighting factors, which pull each particle towards pbest and gbest positions. Where r1 and r2 are two random values between 0 and 1 [11].

3.

Rough Set Theory

(3)

rough set analysis is to synthesis approximation of concepts from the acquired data. That is rough set theory can be perceived as a new mathematical tool to deal with vagueness and uncertainty [14].

Let the universe U be an image of size (mI × nI) consisting of a collection of pixels, if we partition U into a

collection of non-overlapping M blocks, each block of size m × n, say. Let us consider an object-background separation a two class problem of an mI × nI, L gray level, with gray level intervals (0,1,……T and T+1,

T+2,……,L-1); Let B and prop O represent two properties that characterize background and object regions, respectively. Object and background can be viewed as two sets with their rough representation with respect to gray level T as defined in [6] is given as follows:-

Lower approximations of the object (

O

T):

OT = {

i

Blocki | Pj > T,

j =1… mxn } (3)

Upper approximation of the object (

O

T):

O

T = {

i

Blocki,

j, j =1, …, mxn s.t. Pj > T}, (4)

Lower approximations of the background (

B

T):

B

T = {

i

Blocki | Pj ≤ T,

j = 1, …, mxn }, (5)

Upper approximations of the background (

B

T):

B

T = {

i

Blocki ,

j, j =1, …, mxn, s.t. Pj ≤ T} , (6)

where Pj is a pixel belong to Blocki. In [11], Pawlak defines the roughness of object

T

O

R

and background

T

B

R

as in equation (7) and (8) respectively.

T T T T T O O O O O O 1 R T   

 (7)

T T T T T B B B B B B 1 R T     (8)

where

O

T and

O

T are the cardinality of the sets

O

Tand

O

T respectively. Where

B

T and

B

T are

the cardinality of the sets

B

T and

B

T.

In [15], roughness measure for an image is denotes as the average of roughness of object and background at a certain threshold T and defined in equation (9),

RMT =

2

R

R

T T B O

(9)

The value of RMT determines the roughness of the region determined and lies between 0 and 1.

4.

Algorithm Description

(4)

and background calculate roughness measure. Throughout the process, each particle i monitors three values its current position Xid the best position it reached in previous cycles pbestid; it's flying velocity Vid. In each run (cycle), the position gbestd of the best particle g is calculated as the best fitness of all particles.

Accordingly, each particle updates its velocity Vid to catch up with the best particle g using equations (1,2). Finally realize image segmentation using optimal T according to the minimize roughness. T bigger than or equal to the minimum gray value and less than or equal to maximum gray value. The proposed image segmentation is described in details in algorithm (1) and illustrated in Fig. 1.

Fig. 1. The proposed flow chart.

4.1.

Image Segmentation Algorithm

Input: image with maximum gray value (max) and the minimum value (min)

Initialize PSO variables: Number of variable to be optimized, max iteration the maximum number of iteration to consider, N the number of particles and any other problem dependent variables.

1: divide the input image into M blocks

2: Generate initial population of N particles limited in [min: max] 3: FOR j=1 to max iteration

4: FOR i=1 to N

5: Calculate object lower and upper using equations (3, 4). 6: Calculate background lower and upper using equations (5, 6)

7. Calculate roughness of object and background using equations (7 and 8). 7: End for

8: Calculate the fitness value of each particle RMT using equation (9).

9: Update the position of gbest and pbest

10: if fitness (Xid) <fitness pbestid then pbesti = Xid

11: else if fitness (Xid) <fitness gbestd then gbest i= Xid

12: End if

13: Update velocity and position of each particle according to equations (1) and (2) 14: Update the value of the weight factor

15: Repeat until the optimum threshold T is found or maximum number of iterations have been reached 16: End for

(5)

5.

Experimental Result

In this section experiments and results are presented to demonstrate the practice and the performance of the proposed image segmentation algorithm. The proposed algorithm has been implemented in MATLAB platform considering 50 iterations and 25 particles. The algorithm tested on different images with different minimum and maximum gray levels for different block sizes. For the first image with minimum gray level equal7 and maximum equal 253 which is shown in Fig. 2a, and the segmented images are illustrated in Fig. 2b, Fig. 2c, and Fig. 2d using block size 2×2, 4×4, 8×8 respectively. For the second image with minimum gray level equal 2 and maximum equal 88 which is shown in Fig. 3a, and the segmented images are illustrated in Fig. 3b, Fig. 3c, and Fig. 3d using block size 2×2, 4×4, 8×8 respectively.

a. Cameraman image b. Segmented image using 2×2 block size

c. Segmented image using 4×4 block size d. Segmented image using 8×8 block size

Fig.2. Applying the proposed algorithm on cameraman image.

a. MRI image b. segmented image using2×2 block size

c. Segmented image using d. segmented image using 4×4 block size 8×8 block size

(6)

Table 1 illustrates the experimental results. For the first image the minimum roughness measure is equal to 0.4621 and the optimal threshold equal 103 using block size 2×2. For the second image minimum roughness measure is equal to 0.4897 and the optimal threshold equal 54 also using block size 2×2. The simulation results indicate that our approach produces good results because the segmented regions are uniform and homogeneous and as displayed in Fig. 4 minimizing block size decreasing the roughness measure.

Table 1. PSO Based Experimental Results

block size 2×2 4×4 8×8

cameraman image RM=0.4621

T=103

RM=0.5001

T=22

RM=0.5201

T=16

MRI image RM=0.4897

T=54

RM=0.4943

T=6

RM=0.5000

T=2

Fig. 4. Display the experimental results.

6.

Comparison with Bat Algorithm

Bat algorithm is a recent meta heuristic algorithms introduced by Yang in [16], based on echolocation of the bats. In this algorithm, bats detect prey and avoid the obstacles by using the echolocation. Each bat is associated with a velocity vi(t) and a location yi(t), at iteration t, in a d-dimensional search or solution space. Among all the bats, there exists a current best solution y* Therefore, the above three rules can be translated into the updating equations for yi(t) and velocities vi(t),

f =fmin. + (fmax - fmin)β (10)

vi(t)= vi(t-1)+( yi(t-1)- y*)fi (11)

yi(t)=yi(t-1)+ vi(t) (12)

where β is a random vector generated by a uniform distribution belonging to the closed interval [0, 1]. The additional control parameters fmin and fmax were set to 0 and 2.0, respectively. The initial values for parameters pulse rate and loudness were set to 0.5. Table 2 illustrates Bat based experimental results.

Table 2. Bat Based Experimental Results

block size 2×2 4×4 8×8

cameraman image RM=0.46338

T=76

RM=0.50205

T=15

RM=0.52997

(7)

MRI image RM=0.49022

T=59

RM=0.5000

T=7

RM=0.54545

T=11

Based on the results which are illustrated in Table 1 and Table 2, the values of mean roughness measure in PSO based proposed algorithm is smaller than in Bat for MRI and cameraman image. Fig. 5 displays the comparison results for MRI image, it can be concluded that the of PSO gives the best segmentation result than Bat.

Fig. 5. Display the comparison results.

7.

Conclusion

In this paper, particle swarm optimization has been merged with rough set to produce a new image segmentation algorithm based on roughness measure. Extracting object from an image is described by minimizing roughness measure using optimal threshold. The optimal threshold is optimized by using PSO

together with minimum cross roughness. PSO is widely used due to the strong performance in the optimization. Based on the experimental results as combined PSO with other computational intelligence techniques as rough set the results are more effective and as minimizing block size decreasing the roughness measure thereby providing optimum results for object-background segmentation. PSO based proposed algorithm is observed to be having good performance than Bat.

References

[1] Anita, T., Rohit, R., & Yamini, C. (February 2014). Image segmentation based on particle swarm optimization technique. International Journal of Science, Engineering and Technology Research, 3(2). [2] Behera, H. S. (July 2011). Segmentation and classification using heuristic HRSPSO. International Journal

of Soft Computing and Engineering, 1(3).

[3] Amanpreet, K., & Singh, M. D. (August 2012). An overview of PSO-based approaches in image segmentation. International Journal of Engineering and Technology, 2(8), 1349-1357.

[4] Valentin, O., Erik, C., & Humberto, S. (2013). A comparison of nature inspired algorithmsfor multi-threshold image segmentation. Expert Systems with Applications, 40, 1213-1219.

[5] Miao, M., Jianhui, L., Min, G., Yi, F., & Yilong, Y. (2011). SAR image segmentation based on Arti_cial Bee Colony algorithm. Applied Soft Computing, 11, 5205-5214.

[6] Sankar, K. P., Uma, S. B., & Pabitra, M. (2005). Granular computing, rough entropy andobject extraction.

Pattern Recognition Letters, 26, 2509-2517.

(8)

International Conference on Neural Networks (pp. 1942-1948).

[9] Singiresu, S. R. (1996). Engineering Optimization Theory and Practice. Wiley Eastern, New Delhi.

[10] Fahd, M., Mohiy, H., Kamel, M., & Khalid, A. (September 2012). A new image segmentation method based on partical swarm optimaization. The International Arab Journal of Information Tachnology, 9(5), 487-493.

[11] Chih-Chin, L. (January 2006). A novel image segmentation approach based on partical swarm optimaization. IEICE Trans. Fundamentals, 1, 324-328.

[12] Komorowski, J., Pawlak, Z., Polkowski, L., & Skowron, A. (1999). Roughsets: A Tutorial, Rough Fuzzy Hybridization. Springer-Veralg, 3-98.

[13] Wygralak, M. (1991). On the Power of a Rough Set, 521, Springer-Verlag, 183-192.

[14] Pawlak, Z., Grzymala-Busse, J., Slowinski, R., & Ziarko, W. (1995). Rough sets. Communications of the ACM, 38(11).

[15] Gaber, A. S., Neveen, I. G., & Wafaa, A. G. (2008). Object-oriented image segmentation in presence of uncertainty. Advances in Fuzzy Sets and Systems, 3(3), 367-377.

[16] Yang, X. S. (2010). A new metaheuristic bat-inspired algorithm. Studies in Computational Intelligence,

284, 65-74.

Wafaa Ghonaim received her B.Sc. degree with honors in computer science and pure

mathematics from faculty of Science, Al-Azhar University, in 2005. She received her M.Sc. and Ph.D. in computer science from faculty of Science, Al-Azhar University, Cairo, Egypt in 2009, 2013. She is working as a lecture at Faculty of Science, Al-Azhar University. Her current research interest is in the area of computational intelligence based on rough set theory, swarm optimization, image processing, and image retrival. In addition, Dr. Ghonaim is interested in the area of evolutionary computation in cryptanalysis.

Shereen A. Taie is an associate professor in Computer Science Department, Faculty of Computers and Information, Fayoum University, Egypt and Head of Center of Electronic Courses Production, Fayoum University, Egypt. She held an M.S. in 2006 in Computer Science from Computer and Mathematics Department Faculty of Science, Cairo University, Egypt, and a Ph.D. in 2012 in Computer Science from Computer and Mathematics Department Faculty of Science, Cairo University, Egypt. She was awarded a B.Sc. degree in Computer Science by Faculty of Science, Cairo University in 1996.

She was the head of IT Unit in Faculty of Computers and Information, Fayoum University, Egypt, and Director of Quality Assurance Unit in Faculty of Computers and Information, Fayoum University, Egypt. Also, she was a Staff Member, in Jubail College of Education for Girls, Dammam University, Kingdom of Saudi Arabia, and the Head of Computer and data analysis laboratory, Center for Environmental Hazard Mitigation, Faculty of Science, Cairo University, Egypt.

Dr. Taie is the author of "Online Price Recommendation System for Shopping Used Cell Phones", Research Journal of Applied Sciences, Engineering and Technology, "Challenge of Intelligent Transport System", International Journal Of Modern Engineering Research (IJMER), "A Prototype for Breast Cancer Detection and Development Probability Expert System – Towards a Supportive Tool", The 5th IEEE International Conference on E-Health and Bioengineering – EHB-IEEE, Artificial Intelligent E-learning book (Published by Ministry of Higher Education and Scientific Research), A New Model for Automatic Raster-to- Vector Conversion, International Journal of Engineering and Technology, and "A New Parallel Neural Network System for Automatic Change Detection and Classification of Digital Images", Ain Shams University, Faculty of

(9)

Figure

Fig. 1. The proposed flow chart.
Fig. 3b, Fig. 3c, and Fig. 3d using block size 2×2, 4×4, 8×8 respectively.
Table 1. PSO Based Experimental Results
Fig. 5. Display the comparison results.

References

Related documents

Depending on the columns’ wetness or dry- ness ( P and PET), lateral transfer can potentially (a) increase av- erage ET (the points representing Column 1 and Column 2 are pushed

Methods/Design: This pilot randomized controlled trial will investigate the effects of a 6-month, individualized, moderate-intensity cycling intervention (20 to 50 minutes per

ground characteristics of the immigrant traders (sex, age, country of origin, dur- ation in business, type of wares traded) were significant predictors of their livelihood status

Some species are recorded for the first time from the east coast of the Atlantic Ocean, enhancing the biogeographic relations of the Canarian marine flora with that of

Abbreviations: HCC, hepatocellular carcinoma; TCGA, The Cancer Genome Atlas; GEPIA, gene expression pro fi ling interactive analysis; lncRNA; long noncoding RNA; LIHC,

The TSA measurement was aimed at measuring the stress distribution on the reinforcing plate underneath the anti-fretting coating. 3 Calibration of the thermoelastic constant.

floodplain and the uplands varies significantly between the north and the south sides of the river, on the south side of the river upland areas near the river can be as high as