Performance Comparison of Optimization Algorithms for Clustering in Wireless Sensor Networks N. M. Abdul Latiff C. C. Tsimenidis B. S. Sharif School of Electrical, Electronic and Computer Engineering, Newcastle University, United Kingdom. [email protected] Abstract Clustering in wireless sensor networks (WSNs) is one of the techniques that can expand the lifetime of the whole network through data aggregation at the cluster head. This paper presents performance comparison between Particle Swarm Optimization (PSO) and Genetic Algorithms (GA) with a new cost function that has the objective of simultaneously minimizing the intra-cluster distance and optimizing the energy consumption of the network. Furthermore, a comparison is made with the well known cluster-based protocols developed for WSNs, LEACH (Low-Energy Adaptive Clustering Hierarchy) and LEACH-C, the later being an improved version of LEACH, as well as the traditional K-means clustering algorithm. Simulation results demonstrate that the proposed protocol using PSO algorithm has higher efficiency and can achieve better network lifetime and data delivery at the base station over its comparatives.

1. Introduction Wireless sensor networks generally consist of a large number of low-cost, low-power sensors that are small in size and able to be deployed in applications such as in the military and environmental monitoring fields. Since the energy supply of a sensor node is limited, energy optimization should be considered as the key objective when studying the overall network design problem. Clustering is one of the methods used to manage network energy consumption efficiently. In this approach, each group of sensors has a cluster head node that aggregates data from its respective cluster and sends it towards the base station (BS) as a representative sample of its cluster. The optimal selection of the cluster heads with high energy that scattered evenly in the area can be seen as an NP-hard problem (nondeterministic polynomial time) [1].

1-4244-1455-5/07/$25.00 ©2007 IEEE

Hence, evolutionary algorithms such as PSO and GA are generally more suitable to solve these difficult problems because they are population-based stochastic approaches that can avoid being trapped in a local optimum and can often find a global optimum solution. Several cluster-based protocols have been proposed in the literature, with the objective of maximizing the sensor network lifetime. The LEACH protocol presented in [2] is a distributed cluster-based protocol in which the cluster heads are selected with some probability. However, LEACH does not guarantee that the desired number of cluster heads is selected and cluster heads are not evenly positioned across the network. In a centralized version of this protocol called LEACH-C [3], a better overall performance of the network is achieved due to improved cluster formation performed by the BS. In [4], the authors used PSO to equalize the number of nodes and candidate cluster heads in each cluster in order to minimize the energy expended by the nodes while maximizing the data transmission. In [5], a protocol that has the objective of minimizing the total sum of the distance squared of all clusters in the network using PSO has been proposed. Nonetheless, the key difference between the proposed work in this paper, the algorithm in [4] and that of [5], is in the application of PSO to choose the optimal nodes as cluster heads to extend the network lifetime. In this paper, we develop a centralized cluster-based protocol to extend the sensor network lifetime by using PSO and GA algorithms. The main idea in the proposed method is the selection of a cluster head that can minimize the maximum intra-cluster distance between itself and the cluster member, and the optimization of energy management of the network. In next section, we give a brief description of PSO, GA and K-means algorithms. The proposed cluster formation protocol using the optimization algorithms is described in section 3. We present the simulation study of the proposed protocol in section 4, before concluding the paper in section 5.

2. Overview of PSO, GA and K-Means

3. Cluster formation

2.1. Particle Swarm Optimization (PSO)

The operation of the proposed protocol is based on a centralized control algorithm that is implemented at the BS, which is a node with a large amount of energy supply. The proposed protocol operates in rounds, where each round begins with a setup phase at which clusters are formed and followed by a steady state. At the starting of each setup phase, all nodes send information about their current energy status and locations to the BS. Based on this information, the BS computes the average energy level of all nodes. To ensure that only nodes with a sufficient energy are selected as cluster heads, the nodes with an energy level above the average are eligible to be a cluster head candidate for this round. Next, the BS runs the optimization algorithm to determine the best K cluster heads that can minimize the cost function, as defined by: cos t = β × f1 + (1 − β ) × f 2 (2)

PSO [6] is an evolutionary computing technique that is based on the principle such as bird flocking. In PSO, a set of potential solutions are called particles that are initialized randomly. During each generation, each particle evaluates its fitness repeatedly until the fitness satisfies the given threshold. The candidate solution in each generation is updated using the following equations:

(

)

vid (t ) = w × vid (t − 1) + c1ϕ1 ( pid − xid (t − 1)) + c2ϕ 2 pgd − xid (t − 1) xid (t ) = xid (t −1) + vid (t )

(1)

Where v is the particle velocity; x is the particle position; t is the number of iterations (generations); c1, and c2 are two positive constants, called the cognitive and social acceleration factors respectively; ϕ1 and ϕ 2 are random numbers within the range [0,1] and w is the inertia weight. Particle’s best position is denoted as pid while pgd is the global best.

2.2 Genetic Algorithm (GA) GA can be viewed as an optimization method based loosely on the Darwinian principles of biological evolution, reproduction and “the survival of the fittest” [7]. In GA, a population consists of a collection of strings called chromosomes, where a chromosome represents different points in the search space. The representation of each chromosome in GA can be in the form of binary strings or real numbers. A fitness or objective function is used to reflect the goodness of each chromosome in the population. GA maintains this population and repeatedly modifies those using methods such as selection, crossover and mutation to produce a new generation of chromosomes. This procedure is repeated until convergence is reached or until a maximum number of generations are achieved.

2.3 K-Means clustering The K-means algorithm is the most widely used clustering approach that attempts to find the centre point of a cluster by minimizing the distance between points assigned to be within a cluster and at the centre of that cluster [8]. This algorithm begins with a randomly initialize K cluster centroid points. Then, for each point, K-means assigns the point to the closest cluster centroid before recalculate the cluster centroid vectors of each cluster.

f1 =

∑ d (n ,CH

max

k =1,2 ,...,K

i

N

f2 =

k

) / Ck

(3)

∀ni ∈C k

K

∑ E(n ) ∑ E(CH i

i =1

k

)

(4)

k =1

Where f1 is the maximum average Euclidean distance of nodes to their associated cluster heads, and Ck is the number of nodes that belong to cluster Ck. Function f2 is the ratio of total initial energy of all nodes ni , i=1,2,…,N in the network with the total current energy of the cluster head candidates in the current round. The constant β is used to weigh the contribution of each of the sub-objectives. The fitness function defined above has the objective of simultaneously minimizing the intra-cluster distance between nodes and their cluster heads, as quantified by f1 and also of optimizing the energy efficiency of the network as quantified by f2. According to the cost function defined above, a small value of f1 and f2 suggests compact clusters with the optimum set of nodes that have sufficient energy to perform the cluster head tasks. Generally, for a sensor network with N nodes and K predetermined number of clusters, the network can be clustered as follows: (1) Initialize S individuals to contain K randomly selected cluster heads among the eligible cluster head candidates. (2) Evaluate the fitness of each individual: i. For each node ni, i = 1,2,…,N • Calculate distance d(ni,CHk) between node ni and all cluster heads CHk. • Assign node ni to cluster head CHk where:

min

∀k =1,2 ,...,K

d (ni ,CH k )

(5)

ii. Calculate the fitness using equation (2) to (4). (3) Perform the position and velocity update for PSO or perform the genetic operations for GA. (4) Repeat steps 2 to 4 until the maximum number of iterations is reached. After the setup phase, the BS transmits the information that contains the cluster head ID for each node back to all nodes in the network. The steady state phase approach is similar to [2] in which the cluster head sets up a Time Division Multiple Access (TDMA) based schedule for its members to avoid collisions among data messages, allowing the radio devices of each member to be turned off at all times, except during their transmission time, to further reduce the energy consumption of the nodes. Once the cluster head finishes receiving data from all of its members at the end of each frame, it performs data fusion and sends the fused data to the BS.

4. Simulations and analysis The proposed protocol is implemented in Network Simulator (ns2) [9]. We ran the simulations for 100 nodes in a 500 m × 500 m network area with 20 percent of the total nodes have 5 J of initial energy, while the remaining 80 percent of the nodes have 2 J of initial energy. The BS location was located at (250,575) and we set the number of clusters K=5. Throughout the simulations, we considered several random network topologies to get the average results. The radio energy model used in this paper is based on the first order radio model as in [2]. It is assumed that all nodes are stationary and have power control capabilities to vary their transmit power. The simulations continued until all the nodes in the network had consumed all their energy. We set β =0.5 in (2) to give an equal contribution of each sub-objective.

4.1. Comparison of PSO and GA In order to ensure a fair comparison between these two algorithms, the size of the swarm for PSO and the population size of GA are set at 30. We employed the Roulette Wheel Selection method [7] in GA that implements the proportional selection strategy. In order to get the best results, we ran several simulations using varied c1, c2 and w for PSO and varied crossover rates and mutation rates for GA. For PSO, the best values of c1, c2 is 2.0 and w is 0.72 while for GA, the best crossover rate and mutation rate are 0.70 and 0.01 respectively. Both algorithms are run for maximum generations of 500.

The convergence rate of cost function in (2) with the number of generations for PSO and GA is shown in Figure 1. It is clear that PSO converges at a much faster rate and achieves a better minimum result, compared to that for GA. This proves that PSO is able to give a better global minimum than GA in the context of clustering in WSNs, and yet it is simpler and easier to implement. However, we do not compare the convergence rate of PSO and GA with K-means algorithm in this work because K-means algorithm does not attempt to optimize the energy efficiency in the network, and the objective of K-means algorithm is only to find the most central node in the network.

59 Convergence of fitness function

d (ni ,CH k ) =

58 57 56 55

GA

54 53

PSO

52 0

100

200 300 Generations

400

500

Figure 1. Convergence of cost function

4.2. Simulation Results We compared the performance of PSO, GA and Kmeans algorithms with the well-known cluster-based protocol developed specifically for WSNs, which are LEACH [2] and LEACH-C [3]. Figure 2 illustrates the system’s lifetime, defined by the number of nodes alive over time of the simulation. It can be clearly seen that clustering using PSO, GA and K-Means algorithms can prolong the network lifetime significantly compared to LEACH and LEACH-C. These three algorithms produce better network partitioning with minimum intra-cluster distance, and also cluster heads that are optimally distributed across the network. Thus, the energy consumed by all nodes for communication can be reduced since the distances between member nodes and their cluster heads are shorter. On the contrary, in LEACH and LEACH-C some nodes have to bridge long distances in order to reach a cluster head due to poor network clustering. As a result, some nodes dissipate a large amount of energy while transmitting their data to a distant cluster head. However, PSO outperforms GA, since PSO obtains a lower value for the fitness function. Besides, K-means does not consider the nodes’ energies in searching for the

cluster centroids, and hence, affects the network lifetime. The total data messages received at the BS is shown in Figure 3. The plot clearly indicates the effectiveness of the PSO in delivering successfully more data messages than its counterparts. Since the cluster heads need to send the aggregated data to the BS located outside the network area, the selection of cluster heads with higher energy is significant in this case. For this reason, more data messages are sent to the BS using PSO algorithm, because it is unlikely that the cluster head will run out of energy before the steady state phase ends. In contrast, both LEACH and LEACH-C do not guarantee the selection of high energy cluster head. As a consequence, some cluster heads may die at random places and hence, the total data received at the BS is decreased.

Number of nodes alive

100 LEACH LEACH-C K-means GA PSO

80

60

20

0

100

200

300 Time (s)

400

500

600

Figure 2. Number of nodes alive over time 4

Number of data items received at BS

x 10 3.5

LEACH LEACH-C K-means GA PSO

3 2.5 2 1.5 1 0.5 0

0

100

200

300 Time (s)

400

500

Figure 3. Number of data received at the BS

In this paper we have presented an energy-aware cluster-based protocol for wireless sensor networks using PSO and GA optimization techniques. We have defined a new cost function that takes into account the maximum distance between the non-cluster head node and its cluster head, and the remaining energy of cluster head candidates in the cluster head selection algorithm. It can be observed from the simulations that PSO can converge faster and achieve better global minimum when compared with GA using the same sized population and the same number of maximum generations. Furthermore, PSO algorithm gives a higher network lifetime and delivers more data to the BS compared to GA, K-means, LEACH and LEACHC. The results also prove that both PSO and GA can give optimal clustering as K-means algorithm, which has been widely used for the clustering problem.

6. References

40

0

5. Conclusions

[1] B. Bollobas, Random Graphs, Academic Press, 1985. [2] W. R Heinzelman, A. P Chandrakasan, and H. Balakrishnan, “Energy-efficient Communication Protocol for Wireless Microsensor Networks,” Proceedings of the 33rd Annual Hawaii International Conference on System Sciences, Hawaii, January 2000. [3] W. B Heinzelman, A. P Chandrakasan, and H. Balakrishnan, “An Application-specific Protocol Architecture for Wireless Microsensor Networks,” IEEE Transactions on Wireless Communications, vol. 1, no. 4, October 2002, pp. 660-70. [4] J. Tillet, R. Rao, and F. Sahin, “Cluster-head Identification in Ad Hoc Sensor Networks using Particle Swarm Optimization,” IEEE International Conference on Personal Wireless Communications, December 2002, pp. 201-205. [5] T-F. Shih, “Particle Swarm Optimization Algorithm for Energy-efficient Cluster-based Sensor Networks,” IEICE Transactions Fundamentals, vol. E89, no. 7, July 2006. [6] J. Kennedy and R. C. Eberhart, “Particle Swarm Optimization,” IEEE International Conference on Neural Networks, Perth, Australia, vol.4, pp. 1942-1948, 1995. [7] D. E. Goldberg, Genetic Algorithms in Search, Optimization and Machine Learning, Addison-Wesley, New York, 1989. [8] D.W. Van der Merwe and A.P. Engelbrecht, “Data Clustering Using Particle Swarm Optimization,” Congress on Evolutionary Computation, Australia, 2003, pp. 215-220. [9] The Network Simulator – ns2, URL: http://www.isi.edu/nsnam/ns/.

Performance Comparison of Optimization Algorithms for Clustering ...

Performance Comparison of Optimization Algorithms for Clustering in Wireless Sensor Networks 2.pdf. Performance Comparison of Optimization Algorithms for ...
Missing:

174KB Sizes 2 Downloads 321 Views

Recommend Documents

COMPARISON OF CLUSTERING ... - Research at Google
with 1000 web images, and comparing the exemplars chosen by clustering to the ... surprisingly good, the computational cost of the best cluster- ing approaches ...

A Comparison of Clustering Methods for Writer Identification and ...
a likely list of candidates. This list is ... (ICDAR 2005), IEEE Computer Society, 2005, pp. 1275-1279 ... lected from 250 Dutch subjects, predominantly stu- dents ...

Comparison of Symmetric Key Encryption Algorithms - IJRIT
Today it becomes very essential to protect data and database mostly in .... within today's on-chip cache memory, and typically do so with room to spare. RC6 is a ...

Comparison of Symmetric Key Encryption Algorithms - IJRIT
In this paper we provides a comparison between most common symmetric key cryptography algorithms: DES, AES, RC2, ... Today it becomes very essential to protect data and database mostly in e-transaction. The information has .... For most applications,

A Comparison of Baseline Removal Algorithms for ...
Multiresolution analysis and Curve fitting or polynomial based approaches. ... episodes from the European Society of Cardiology (ESC) ST-T database. Results ...

Comparison of Voice Activity Detection Algorithms for ...
called subscriber is large because of dedicated connection. The current trend is to provide this service on data networks [12]. Data networks work on the best ...

comparison and coupling of algorithms for collisions, contact and ...
Jun 8, 2006 - of the more complex one: the problem have often a large number of ... allow in the case of three-dimensional frictional contact problems to ...

comparison and coupling of algorithms for collisions ...
Jun 8, 2006 - III European Conference on Computational Mechanics ..... Courses and Lectures, volume 302 (Springer-Verlag, Wien, New York), pages 1–82, ...

A Comparison of Baseline Removal Algorithms for ...
A Comparison of Baseline Removal Algorithms for. Electrocardiogram (ECG) based Automated. Diagnosis of Coronory Heart Disease. Fayyaz A. Afsar1, M. S. ...

Comparison of Voice Activity Detection Algorithms for ...
circuit-switched networks is considerably less. However, these networks do not guarantee faithful voice transmission. Voice over packet or Voice over IP (VoIP).

A High Performance Algorithm for Clustering of Large ...
Oct 5, 2013 - A High Performance Algorithm for Clustering of Large-Scale. Protein Mass Spectrometry Data using Multi-Core Architectures. Fahad Saeed∗ ...

A Comparison of Scalability on Subspace Clustering ...
IJRIT International Journal of Research in Information Technology, Volume 2, Issue 3, March ... 2Associate Professor, PSNA College of Engineering & Technology, Dindigul, Tamilnadu, India, .... choosing the best non-redundant clustering.

Evolutionary algorithms for the optimization of ...
composed of two phases. Firstly, a general production ... mined in each year, while the second phase is to determine the ore amount to be ... cash flow-in at year t. Ot cash flow-out at year t r discount rate. T life of the mine. Cash flow-in at year

Particle Swarm Optimization for Clustering Short-Text ... | Google Sites
Text Mining (Question Answering etc.) ... clustering of short-text corpora problems? Which are .... Data Sets. We select 3 short-text collection to test our approach:.

Modeling, Optimization and Performance Benchmarking of ...
Modeling, Optimization and Performance Benchmarking of Multilayer (1).pdf. Modeling, Optimization and Performance Benchmarking of Multilayer (1).pdf. Open.

Comparison of Algorithms to Enhance Spicules of ...
breast, computer-aided diagnosis (CAD), algorithms, mammography ... Computer-aided detection ..... study. Finally, we appreciate the technical support in the.

Performance evaluation of QoS routing algorithms - Computer ...
led researchers, service providers and network operators to seriously consider quality of service policies. Several models were proposed to provide QoS in IP ...

Performance comparison of a novel configuration of beta-type ...
Performance comparison of a novel configuration of beta-type Stirling engines with rhombic drive engine.pdf. Performance comparison of a novel configuration ...

A Comparison of Engine Performance and Emissions of Fusel Oil ...
A Comparison of Engine Performance and Emissions of F ... d Gasoline Mixtures at Different Ignition Timings.pdf. A Comparison of Engine Performance and ...