Research Article Energy-Efficient Node Selection Algorithms with Correlation Optimization in Wireless Sensor Networks Hongju Cheng,1Zhihuang Su,1Daqiang Zhang,2Jaime Lloret,3and Zhiyong Yu1 1College of Mathematics and Computer Science, Fuzhou University, Fuzhou, Fujian 350108, China 2School of Software Engineering, Tongji University, Shanghai 201804, China 3Department of Communications, Polytechnic University of Valencia, Valencia, Camino de Vera 46022, Spain Correspondence should be addressed to Hongju Cheng;
[email protected] Received 21 December 2013; Accepted 27 January 2014; Published 27 March 2014 Academic Editor: Joel J. P. C. Rodrigues Copyright © 2014 Hongju Cheng et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. The sensing data of nodes is generally correlated in dense wireless sensor networks, and the active node selection problem aims at selecting a minimum number of nodes to provide required data services within error threshold so as to efficiently extend the network lifetime. In this paper, we firstly propose a new Cover Sets Balance (CSB) algorithm to choose a set of active nodes with the partially ordered tuple (data coverage range, residual energy). Then, we introduce a new Correlated Node Set Computing (CNSC) algorithm to find the correlated node set for a given node. Finally, we propose a High Residual Energy First (HREF) node selection algorithm to further reduce the number of active nodes. Extensive experiments demonstrate that HREF significantly reduces the number of active nodes, and CSB and HREF effectively increase the lifetime of wireless sensor networks compared with related works. 1. Introduction A wireless sensor network consists of spatially sensor nodes which are generally self-organized and connected by wireless communications [1]. Today such networks are used in many industrial and consumer applications, such as traffic data collection, vehicular monitoring and control, security surveillance, and smart homes. Each sensor node is equipped with a sensing device which can detect the environmental condition. The nodes are also powered by limited batteries and it is difficult or impossible to replace them in some special environments. It is why energy efficiency is always the most important criterion for such networks. One important approach to extend the network lifetime is to reduce the number of required packet transmissions in the network [2– 5], such as clustering [6–11], in-network data aggregation [12–18], and approximate data collection [19,20]. In these scenarios, all nodes in the network are considered active and the data are gathered from all nodes during the collecting process. However,itisnotanefficientwaytocollectallrawdata from each node in some special applications which aim to collect information originated from the environment, such as temperature, humidity, and pressure. In these applications, it is fully tolerant if the final collected information is just within error threshold. The sensing data of each node is generally a noise version of the observed phenomenon and there is a deviation among them due to distance, location, or node sensitivity. Nodes are generally correlated if they are observing the same physical phenomena. Correlations between nodes are described in some simple ways such as the maximum or minimum value between nodes [21]. In this paper, correlation occurs if the sensing data of simple node can be obtained from the other nodes. Accordingly, a subset of active nodes can be selected to provide the required sensing service within error threshold, and the rest nodes can go to sleep and preserve energy. In this way, the active node selection strategy with correlation optimization not only prolongs the network lifetime, but also helps to solve other issues in dense wireless sensor networks [22], such as lower network throughput, serious node conflict, and excessive packet transmissions. How to describe the correlation among the sensing data quantitatively is the key issue when achieving an efficient Hindawi Publishing Corporation International Journal of Distributed Sensor Networks Volume 2014, Article ID 576573, 14 pages http://dx.doi.org/10.1155/2014/576573
2 International Journal of Distributed Sensor Networks active node selection strategy. The distance function is generally considered as an important model to formulate the data similarity between nodes because the sensitivity is sometime related to the distance between the source and sensing device. Here we adopt Manhattan distance between sensing data as error metric [22]. Based on the observation that the sensing data are similar to each other if they are close enough, Kotidis [23] proposes Snapshot query in which only selected active nodes report their sensing data, and sensing data of one-hop nodes is computed by active nodes. Liu et al. [24]propose an EEDC algorithm which divides the nodes into disjoint cliques based on spatial correlation so that the nodes in the same clique have similar sensing data and can communicate directly with each other. Hung et al. [22] propose a DCglobal algorithm to determine a set of active nodes with high energy levels and wide data coverage ranges. Figures 1(a) and 1(b) show the selected nodes with EEDC and DCglobal for a given wireless sensor network, where each circle denotes one node (the sensing data value is marked above the circle). The edge between a pair of nodes denotes that they can communicate directly with each other. Here we assume that Manhattan distance is used as the similarity function and the error threshold is 0.5. The selected active nodes are marked with black solid circle. The selected active node set with EEDC is {𝑠1,𝑠2,𝑠5,𝑠6,𝑠8,𝑠9,𝑠12},andit is {𝑠1,𝑠5,𝑠10,𝑠13}with DCglobal. According to Figure 1,the number of selected nodes with DCglobal is smaller than EEDC in this example. The concept of data coverage range is firstly introduced to describe the correlation among nodes and defined as a node set in which the distance between each element and the given node is within the error threshold [22]. In fact, it is a simple extension of one-hop data coverage [23]. Another issue of [22] is the efficiency of proposed node selection algorithm. The partially ordered tuple (residual energy, data coverage range) is used to select an active node set, which ensures that the selected nodes always have high reserved energy, but the number of selected active nodes is not minimized. To address these problems, we introduce several new concepts, that is, cover set, active node, and covered node, and propose a new Cover Sets Balance algorithm (CSB) to choose a set of active nodes with wide data coverage range and high energy level by using the partially ordered tuple (data coverage range, residual energy) and build the corresponding cover set in sequence to ensure the selected active nodes have high residual energy. In this way, the set of final selection nodes generally owns larger residual energy and smaller size, which helps to extend the network lifetime. Figure 1(b) demonstrates the set {𝑠1,𝑠5,𝑠10,𝑠13}generated by DCglobal assuming that reserved energy is identical to all nodes in the network, which is similar to the partially ordered tuple (data coverage range, residual energy). Figure 1(c) demonstrates the result as {𝑠3,𝑠5,𝑠10,𝑠13}with the proposed CSB algorithm in this paper. {𝑠1,𝑠7,𝑠8}is a cover set for node 𝑠3and each node inthesetisafeasiblecandidateregarding𝑠3. In the following we show some nodes can be further removed from the selected active node set with CSB. As showninFigure1(c),thesensingdataof𝑠3,𝑠5,𝑠10 is 35.5, 36.1, and 34.5, respectively, the average value of 𝑠5and 𝑠10 is 35.3. The Manhattan distances between 35.3 and sensing data 𝑠1,𝑠3,𝑠7,and𝑠8are0.1,0.2,0.1,and0.3accordingly (they are all less than the error threshold 0.5). It means that the sensing data of CS3+{𝑠 3}is computed by 𝑠5and 𝑠10. Accordingly, 𝑠3is removed and then we have a smaller active node set {𝑠5,𝑠10,𝑠13},asshowninFigure1(d).Followingthis observation, we introduce a novel concept Correlated Node Set (CNS) and then we propose a High Residual Energy First (HREF) node selection algorithm to reduce the number of activenodes.Themaincontributionsofthispaperareas follows. (i) We propose a Cover Sets Balance algorithm (CSB) to select a set of active nodes with wide data coverage ranges and high energy levels. In each active node selection step, we use the partially ordered tuple (data coverage range, residual energy) to find an initial active node set and then balance the size of the cover sets in order to replace low-energy nodes. (ii) We propose a Correlated Node Set Computing algorithm (CNSC) to calculate the correlated node set with minimum set size and maximum geometric mean of residual energy of each node in the sensor network by following the observation that some nodes selected by CSB can be further removed. (iii) We propose a High Residual Energy First algorithm (HREF) to reduce the number of active nodes selected with CSB by removing nodes which can be computed by correlated node sets. The rest of this paper is organized as follows. In Section 2, we describe the system model. Section 3introduces CSB and HREF algorithms. The theoretical analysis of the algorithms is proposed in Section 4.InSection5, we describe the simulation results and performance analysis. Section 6presents the related works and Section 7is conclusion. 2. System Model A wireless sensor network generally consists of a set of stationary nodes 𝑉={𝑠 1,𝑠2,...,𝑠𝑛}, and each node in the network has identical transmission radius 𝑟.Thenetworkis formulated as an undirected graph 𝐺 = (𝑉,𝐸) with 𝑉as the set of nodes and 𝐸as the set of links. Without loss of generality, both 𝑠𝑖and 𝑖areusedtorepresentonesinglenode in the network. There is a link (𝑖,𝑗)between node 𝑖and 𝑗if they communicate with each other directly. The nodes are equipped with unreplaceable or unrechargeable batteries. The reserved energy for node 𝑖at time 𝑡is denoted by 𝑒𝑖(𝑡). The collected data from one single node is a noise version of the practical phenomena. In these applications, the collected information from the sensor networkistolerantincasethatitiswithinagivenerror threshold 𝜀. The notations used in this work are listed as the following: 𝑉: Set of nodes in the network 𝑛: Number of nodes in the network 𝜀:Onegivenerrorthreshold
International Journal of Distributed Sensor Networks 3 35.2 35.5 35.8 36.4 36.1 34.7 35.2 35.6 37.3 34.5 34.5 36.6 36.9 s1s2 s3s4s5 s6s7s8s9 s10 s11 s12 s13 (a) 35.2 35.5 35.8 36.4 36.1 34.7 35.2 35.6 37.3 34.5 34.5 36.6 36.9 s 1 s 2 s 3 s 4 s 5 s 6 s 7 s 8 s 9 s 10 s 11 s 12 s 13 (b) 35.2 35.5 35.8 36.4 36.1 34.7 35.2 35.6 37.3 34.5 34.5 36.6 36.9 s1s2 s3s4s5 s6s7s8s9 s10 s11 s12 s13 (c) 35.2 35.5 35.8 36.4 36.1 34.7 35.2 35.6 37.3 34.5 34.5 36.6 36.9 s1s2 s3s4s5 s6s7s8s9 s10 s11 s12 s13 (d) Figure 1: An example to demonstrate different algorithms. (a) EEDC, (b) DCglobal, (c) CSB, and (d) HREF. 𝑥𝑖(𝑡):Sensingdataof𝑖at time 𝑡 𝑑(𝑥𝑖(𝑡),𝑥𝑗(𝑡)): Distance between the sensing data of 𝑖 and 𝑗 Energy𝑖(𝑡):Residualenergyof𝑖at time 𝑡 DCR𝑖:Datacoveragerangeof𝑖 CS𝑖:Coversetof𝑖 CNS𝑖: Correlated node set of 𝑖 ANS: Active node set 𝑟: Transmission radius 𝑚𝑎𝑥𝑑: Maximal number of nodes in a correlated node set Event𝑗(𝑡):Valueofevent𝑗at time 𝑡 Interval: Interval to reselect a new active node set. The correlation among sensing data especially in a dense wireless sensor network is helpful to extend the network lifetime. Some researchers studied the correlation between nodes and provided some models [25]. Among all these models, it is common to adopt distance function, such as Manhattan distance 𝑑(𝑥𝑖(𝑡),𝑥𝑗(𝑡)) to represent the correlation between sensing data 𝑥𝑖(𝑡)and 𝑥𝑗(𝑡)at time 𝑡[22], which is represented as 𝑑(𝑥𝑖(𝑡),𝑥𝑗(𝑡))=|𝑥𝑖(𝑡)−𝑥𝑗(𝑡)|.Withoutloss of generality, we follow this correlation model in this paper. Note that our algorithms are adapted to any other correlation models with minor modification.
4 International Journal of Distributed Sensor Networks The sensing data of 𝑠𝑗is called to be computed with the sensing data of 𝑠𝑖if the sensing data has a high correlation level; that is, 𝑑(𝑥𝑖(𝑡),𝑥𝑗(𝑡)) ≤ 𝜀,where𝜀is the given error threshold. 𝑆𝑗is also in the data coverage range of 𝑠𝑖.The definitions are given as follows. Definition 1 (data coverage range (DCR)). Given an error threshold 𝜀in the sensor network, the data coverage range DCR𝑖of 𝑖is a subset of 𝑉, in which Manhattan distance from each node to 𝑖is no more than 𝜀,and𝑖∉DCR𝑖. For the example in Figure 1(b),𝜀 = 0.5,DCR 1={𝑠 3,𝑠6, 𝑠7,𝑠8},DCR 3={𝑠1,𝑠4,𝑠7,𝑠8},andsoon. Definition 2 (active node set (ANS) and active node). Given a sensor network 𝐺 = (𝑉,𝐸),anactivenodeset(ANS)isa subset of 𝑉, in which each 𝑖∈𝑉either belongs to ANS or one data coverage range DCR𝑗,where𝑗∈ANS. Any node in ANS is named as an active node. For the example in Figure 1(c),ANS={𝑠3,𝑠5,𝑠10,𝑠13}and each node in the set is an active node. Definition 3 (cover set (CS) and covered node). Given a sensor network 𝐺 = (𝑉,𝐸) and according ANS, the cover set CS𝑖for any given 𝑖∈ANS is a subset of DCR𝑖,and CS𝑖∩CS𝑗=0in case 𝑖 =𝑗.AnynodeinCS 𝑖is named as a covered node. For the example in Figure 1(c),CS 3={𝑠1,𝑠7,𝑠8},𝑠3is the active node, and 𝑠1,𝑠7,and𝑠8are covered nodes. Sensor data is affected by the events in monitored region, and the influence of each event on a sensor is inversely proportional to their distance. Here we assume that correlation occurs among all active nodes in the sensor network. Definition 4 (correlated node set (CNS)). Given a sensor network 𝐺 = (𝑉,𝐸) and its corresponding ANS, the correlatednodesetCNS 𝑖for 𝑖∈ANS is a subset of ANS, and the arithmetic mean 𝑠for sensing data of nodes in CNS𝑖 satisfies the error threshold condition; that is, 𝑑(𝑥𝑗(𝑡),𝑠)≤𝜀, 𝑗∈CS𝑖+{𝑖}.ThesensingdataofCS 𝑖+{𝑖}is said to be computed by CNS𝑖. For the example in Figure 1(d),CNS 3={𝑠5,𝑠10},𝑠=35.3, 𝑑(𝑥1,𝑠) = 0.2 ≤ 𝜀,𝑑(𝑥7,𝑠) = 0.1 ≤ 𝜀,𝑑(𝑥8,𝑠)=0.3≤𝜀, 𝑑(𝑥3,𝑠)=0.2≤𝜀. Definition 5 (CNS computing problem). Given a sensor network 𝐺 = (𝑉,𝐸), ANS, sensing data 𝑋={𝑥 1,𝑥2,...,𝑥𝑛), cover sets CS =(CS1,CS2,...,CS𝑛), and reserved energy Energy ={𝑒 1,𝑒2,...,𝑒𝑛}, the CNS computing problem is to find a correlated node set CNS𝑖for node 𝑖∈ANS, and the size of |CNS𝑖|is minimized while the geometric mean of residual energy 𝑒is maximized, where 𝑒=𝑛 √𝑒1𝑒2⋅⋅⋅𝑒𝑛. Note that we adopt the geometric average of the residual energyinthecorrelatednodesetbyfollowingtheobservation that the average geometric averaging gives higher results for lower variations in the data values for a given data set with a fixed arithmetic [26]. Definition 6 (active node selection problem). Given a sensor network 𝐺 = (𝑉,𝐸),thesensingdata𝑋={𝑥 1(𝑡), 𝑥2(𝑡),...,𝑥𝑛(𝑡)}, reserved energy levels Energy(𝑡) = {𝑒1(𝑡),𝑒2(𝑡),...,𝑒𝑛(𝑡)} at time 𝑡and given threshold 𝜀,the active node selection problem is to select a set of active nodes ANS(𝑡)at time 𝑡, where all sensing data in the network can be computed by their corresponding active nodes, and the network lifetime is maximized, that is, max{𝑡}. The active node selection problem is to find the active node set during each epoch and aim at maximizing the network lifetime. The problem is proven to be NP-hard bymappingittothesetcoveringproblemorminimum dominating set problem [26–28]. In this paper, we design two heuristic algorithms, namely, CSB and HREF for this problem. 3. Heuristic Algorithms 3.1. CSB Algorithm. Most related works use the concept of data coverage range combined with energy to solve the active node selection problem. In this section we illustrate the Cover Sets Balance algorithm (CSB) based on the idea of data coverage range. In data collection process, only active nodes are required to provide perception service, and the rest nodes are closed to preserve energy. An intuitive approach for the node selection process is to use the partially ordered tuple (data coverage range, residual energy) [23]. Another approach is to use partially ordered tuple (residual energy, data coverage range) to select active nodes with higher residual energy [22].However,thenumberofselectednodesisgenerally larger than the former approach, which means that more energy consumption is necessary when providing perception service during the given epoch. Obviously, we need a balance between the two metrics, that is, the data coverage range and residual energy. The basic idea of Cover Sets Balance (CSB) algorithm is describedasthefollowing:(1)generateaninitialactivenode set and the corresponding cover sets through the previous data coverage range priority strategy; (2) replace active nodes with high-energy candidates. Note that the candidates must cover all nodes within the same cover set. For example, in Figure 1(b),CS 1={𝑠 3,𝑠6,𝑠7,𝑠8},CS 5={𝑠 2,𝑠4},CS 10 ={𝑠 11}, and CS13 ={𝑠 9,𝑠12}.Itisseenthat𝑠1covers four nodes, namely, 𝑠3,𝑠 6,𝑠 7,and𝑠8, and thus the candidate node for 𝑠1 must cover the above four nodes too. However, if the cover set is too large, it is possible to find no candidate nodes. The case is similar when the cover set is too small. Obviously we need a new method to provide more candidate nodes so that the network lifetime is extended in an efficient way. We adopt a cover set balance strategy to balance the set size by moving nodes from larger cover sets to smaller ones. The initial cover sets are sequenced in descending order of the set size, and then we check nodes in one cover set and try to move them to another with smaller size. This
International Journal of Distributed Sensor Networks 5 process continues until all sets are checked and finally they are balanced. This strategy is helpful to increase the number of candidate nodes with higher residual energy by cutting down the maximal deviation of each cover set in the balance progress. The final step of the CSB algorithm is to replace the selected active nodes with candidates by order of reserved energy. In this way, we finally build an active node set with the same size as its initial version but higher residual energy, which is helpful to extend the network lifetime. The CSB algorithm can be divided into three processes and pseudocodes are shown in Algorithm 1. The Initialization Process is used to build a primary active node set and corresponding cover sets. The basic steps are described as follows. There are two different states for each node in the network, namely, Primary-Covered and Un- Covered,whichareusedtomarkwhetheritiswithinthecover set of one node in the active node set. The states for all nodes are initialized as Un-Covered (Line 3). Then we sort nodes with partially ordered tuple (data coverage range, residual energy) and initialize the active node set as empty set (Line 4-5). Finally, we check nodes in sequence with state as Un- Covered, and add them into the active node set if the required conditions are satisfied (Line 6–11). The Cover Set Balance Process aims at balancing the size of cover sets generated with the Initialization Process. Firstly, the cover sets are ordered and checked accordingly to their set size (Line 13). Secondarily, nodes in a given cover set CS𝑖 are sorted into a sequence with descending order of their deviation to 𝑖(Line 15), and they are moved to another cover set with smaller size (Line 16–19). This process continues until all nodes in the cover set are checked (Line 14–20). The Node Replace Process focuses on nodes exchange by replacing the low-energy active nodes with high-residual- energy candidates. All feasible candidate nodes of 𝑖are checked (Line 23–25), and we select the one (marked as 𝑚) with maximal residual energy among all these candidates (Line 26). Finally, the active node set is updated as well as the cover set for node 𝑚(Line 27). The CSB algorithm follows the idea of replacing the active nodes with candidates with higher residual energy. However, it has the same number of active nodes compared with the approach which only uses the partially ordered tuple (data coverage range, residual energy). In the following we introduce a new HREF algorithm to further reduce the number of active nodes based on CNSC algorithm. 3.2. HREF Algorithm. We first introduce an algorithm for the CNS computing problem and then propose a High Residual Energy First node selection algorithm (HREF) for the active node selection problem. 3.2.1. CNSC Algorithm. The CNS computing problem is to find one subset CNS𝑖for 𝑖∈ANS and aim at minimizing CNS𝑖as well as maximizing the geometric mean of residual energy 𝑒=𝑛 √𝑒1𝑒2⋅⋅⋅𝑒𝑛. To find out the optimal CNS𝑖,an intuitive way is to calculate the average value of sensing data for each subset ANS stored in a sequenced list 𝐿.Then, pick out the average values whose deviation is no more than 𝜀andthecorrespondingcorrelatednodesetinthe list. Finally, select the CNS𝑖with minimized node set and maximum geometric mean of residual energy as the final correlated node set for 𝑖.Obviously,theabovesolutionisto find the optimal result but has exponential time complexity (𝑂(2|ANS|)). Toreducethetimecomplexity,weassumeeachCNS 𝑖has at most 𝑚𝑎𝑥𝑑nodes, where 𝑚𝑎𝑥𝑑is a given value depending on the network environment. The CNS computing problem is then converted to the problem of selecting at most 𝑚𝑎𝑥𝑑 number of nodes in ANS within the error threshold. Then, calculate each subset combined with the selected 𝑚𝑎𝑥𝑑nodes and add its average value into 𝐿with the following iteration process: in the 𝑖th iteration, the average value for each subset of {𝑥1,𝑥2,...,𝑥𝑖}iscalculatedbasedontheaveragevalueof subset of {𝑥1,𝑥2,...,𝑥𝑖−1}. There are two basic operations in the iteration process, namely, (𝐿+𝑥)and merge 𝐿[𝐿,𝐿+𝑥]. (𝐿+𝑥)represents the new list by adding 𝑥into each element in the initial sequence 𝐿,asshowninForm.(1); and merge 𝐿[𝐿,𝐿+𝑥]represents the ordered list for the combined result of 𝐿and (𝐿+𝑥): 𝐿+𝑥={𝐿(𝑖)×𝐿count (𝑖)+𝑥 𝐿count (𝑖)+1 :𝑖∈𝐿}, (1) where 𝐿(𝑖)denotes the 𝑖th data in 𝐿,and𝐿count(𝑖)denotes number of nodes from which the average value is calculated. Here we demonstrate an example to illustrate the two basic operations. Let 𝐿 = {0,36.1,34.5,35.3},and𝐿count = {0,1,1,2}.Then,𝐿+36.9 = {(0×0+36.9)/(0+1),(36.1× 1 + 36.9)/(1 + 1),(34.5 × 1 + 36.9)/(1 + 1),(35.3 × 2 + 36.9)/(2 + 1)} = {36.9,36.5,35.7,35.83}. And merge 𝐿[𝐿, 𝐿+36.9] = {0,36.1,34.5,35.3}+{36.9,36.5,35.7,35.83} = {0,34.5,36.1,35.3,36.9,36.5,35.7,35.83},𝐿count ={0,1, 1,2}+{1,2,2,3}={0,1,1,2,1,2,2,3}. In the following we illustrate the CNS computing process for 𝑠3in Figure 1(c) by assuming that the residual energy is identicaltoall.TheinputfortheCNScomputingproblemis described as CS3={𝑠 1,𝑠3,𝑠7,𝑠8},ANS−{𝑠3}={𝑠 5,𝑠10,𝑠13}, and 𝑋 = {36.1,34.5,36.9}.Initially,𝐿={0},𝐿count ={0}, and the corresponding set list as {{0}}. (1) Consider the sensing data 36.5 of 𝑠5: 𝐿 = {0,36.1}, 𝐿count = {0,1}, and the corresponding set list as {{0},{𝑠5}}; (2) consider the sensing data 34.5 of 𝑠10 : 𝐿={0,36.1}+ {34.5,35.3} = {0,36.1,34.5,35.3},𝐿count ={0,1, 1,2}, and the corresponding set list as {{0},{𝑠5}, {𝑠10},{𝑠5,𝑠10}}; (3) consider the sensing data 36.9 of 𝑠13 :𝐿={0, 36.1,34.5,35.3}+{36.9,36.5,35.7,35.83} = {0,34.5, 36.1,35.3,36.9,36.5,35.7,35.83},𝐿count = {0,1,1, 2,1,2,2,3},andthesetlistas{{0},{𝑠5},{𝑠10},{𝑠5, 𝑠10},{𝑠13},{𝑠5,𝑠13},{𝑠10,𝑠13},{𝑠5,𝑠10,𝑠13}}.
6 International Journal of Distributed Sensor Networks Input: G=(V,E), 𝜀,X={𝑥1,𝑥2,...,𝑥𝑛},Energy={𝑒1,𝑒2,...,𝑒𝑛}; Output: ANS, CS. (1) //Initialization Process ( ) (2) Calculate DCR = {DCR1,DCR 2,...,DCR 𝑛} (3) Set the state of all nodes as Un-Covered; (4) Sort nodes into sequence with partially ordered tuple ⟨data coverage range, residual energy⟩; (5) ANS ←0,CS←0; (6) for one maximal iin the sequnce with state as Un-Covered (7) ANS ←{𝑖}+ ANS, and set ias Primary-Covered; (8) for each j∈DCR𝑖−ANS with state as Un-Covered (9) CS𝑖←{𝑗}+CS𝑖,andsetjas Primary-Covered; (10) end for (11) end for (12) //Cover Set Balance Process ( ) (13) Sort CS into a sequence with decreasing order of the set size; (14) for each CS𝑖in the sequence (15) Sort nodes in CS𝑖with decreasing order of their deviation to i; (16) for each jin the sequence (17) find out all kwhich satisfies 𝑗∈CS𝑘and CS𝑘<CS𝑖,selectkwith minimal cover set size; (18) CS𝑖←CS𝑖−{𝑗},CS 𝑘←CS𝑘+{𝑗}; (19) end for (20) end for (21) //Node Replace Process ( ) (22) for each i∈ANS (23) for each j∈CS𝑖 (24) if 𝑑(𝑥𝑗,𝑥𝑘)≤𝜀for any 𝑘∈CS𝑖+{𝑖}−{𝑗},thenmarkjas a candidate of i; (25) end for (26) select a node mfrom all candidates of iwith maximal residual energy 𝑒𝑖; (27) ANS ←ANS + {𝑚}−{𝑖};CS 𝑚=CS𝑖+{𝑖}−{𝑚}; (28) end for Algorithm 1: Pseudocodes for Cover Set Balance (CSB) algorithm. The deviation between 35.3 and the sensing data of nodes in set CS3+{𝑠 3}is no more than 0.5, and it is similar to 35.7. Accordingly, the corresponding correlated node sets are {𝑠5,𝑠10}and {𝑠5,𝑠10,𝑠13}located at the 4th and 7th positions in 𝐿.Finally,CNS 3={𝑠 5,𝑠10}followed by |{𝑠5,𝑠10}| < |{𝑠5,𝑠10,𝑠13}|. Algorithm 2provides the pseudocodes for CNSC algorithm. 3.2.2. HREF Algorithm. For a given 𝑖∈ANS, its sensing data is computed with the nodes in CNS𝑖,whichmakesitpossible to shut off to preserve energy. The basic idea of the HREF algorithm is described as follows: (1) build the active node set ANS with CSB algorithm; (2) for each 𝑖∈ANS, calculate its correlated node set CNS𝑖; (3) remove certain active nodes from ANS. The pseudocodes are shown in Algorithm 3. In Line 3, an active node set is generated with respect to the concept of data coverage range and corresponding correlated node set in ANS. Then we mark all active nodes as Un-Completed. There are two different states for each node in theactivenodeset,namely,Completed and Un-Completed.In Line 4, we sort CNS with ascending order of their set size. In Line 5–10, we check whether if an active node can be removed from ANS and mark each node in CNS𝑗as Completed. 4. Theoretical Analysis Theorem 7. The CSB and HREF algorithms correctly generate an active node set for a given wireless sensor network even in case that there are message losses. Proof. The cases with CSB and HREF are described as follows. (1) Firstly, we prove that the sink node obtains all sensing data of the nodes in Closed state through the selected active node set. At the beginning of CSB and HREF, all nodes are active nodes. The state that whether one node is closed or not depending on the condition whether the sensing data can be fused by the corresponding correlated node set. In these algorithms, the node is removed from the active node set only in case the condition is satisfied. Thus it is sure that all sensing data can be obtained from nodes in ANS calculated via CSB and HREF. (2) Secondly, we prove that CSB and HREF correctly generate an active node set even in case that there are message losses. Note that our algorithms aim at shutting down certain nodes if they can be fused by other active nodes, which means that these nodes keep active if the above condition is not satisfied. It is obvious that the message losses never reduce the
International Journal of Distributed Sensor Networks 7 Input: ANS, 𝜀,CS={CS1,CS2,...,CS𝑛},𝑋={𝑥1,𝑥2,...,𝑥𝑛},Energy={𝑒1,𝑒2,...,𝑒𝑛}; Output: ANS. (1) for each iin ANS (2) CNS𝑖=0; (3) for each maxd nodes in ANS (4) placed them in node vector; (5) 𝐿[0]={0}; (6) for j=1to|𝑛𝑜𝑑𝑒 V𝑒𝑐𝑡𝑜𝑟|,L=mergeL (𝐿,𝐿+𝑥𝑛𝑜𝑑𝑒 V𝑒𝑐𝑡𝑜𝑟(𝑗)); (7) for each lin 𝐿[𝑖] (8) for each𝑘∈CS𝑖+{𝑖}if 𝑙−𝑥𝑘≤𝜀then temp =Lpos(l); (9) fork=|𝑛𝑜𝑑𝑒 V𝑒𝑐𝑡𝑜𝑟|−1to0 (10) if temp >2𝑘and temp ≤2(𝑘+1) (11) Dset =Dset +{the kth node in node vector},temp =temp –2𝑘; (12) end if (13) end for (14) if (|𝐷𝑠𝑒𝑡|<CNS𝑖)or( |𝐷𝑠𝑒𝑡|=CNS𝑖and ˆ e(|𝐷𝑠𝑒𝑡|)>ˆ e(|𝐷𝑠𝑒𝑡|), then CNS𝑖←Dset; (15) end for (16) end for (17) end for Algorithm 2: Pseudocodes for CNSC algorithm. Input: G=(V,E), 𝜀,𝑋={𝑥1,𝑥2,...,𝑥𝑛},Energy={𝑒1,𝑒2,...,𝑒𝑛}; Output: ANS. (1) Run CSB algorithm to obtain the initial ANS and CS; (2) Run CNSC algorithm to obtain CNS; (3) Mark all nodes in ANS as Un-Completed; (4) Sort CNS with increasing order of their set size; (5) for one minimal CNS𝑖in the sequence with CNS𝑖⊆ANS (6) if CNS𝑖=0, and the state of iis Un-Completed,then (7) ANS ←ANS −{𝑖}; (8) for each j∈CNS𝑖,markjas Completed; (9) end if (10) end for Algorithm 3: Pseudocodes for HREF algorithm. number of active nodes, and thus CSB and HREF correctly generate an active node set correctly in case of message losses. Theorem 8. TheactivenodesetsizewithCSBisatmost(1+ log 𝑛)× |𝑂𝑃𝑇1|,where𝑂𝑃𝑇1 is the optimal active node set with respect to the concept of data coverage range and 𝑛is the number of nodes in sensor network. Proof. The active node selection problem with respect to the concept of data coverage range is essentially a set covering problems [27]. We regard the problem of selecting a smallest sizeofactivenodesetastheproblemofselectingthe minimumsizeofsubsetinset-coveringissue[22]. Similar to the greedy approximation algorithm of set covering problem, CSB also takes the greedy strategy to maximize the size of data coverage range for each new added active node. Let 𝛿bethesizeofselectedactivenodesetwithnumberof nodes |OPT1|, and let {DCR𝛿1,DCR𝛿2,...,DCR𝛿|OPT1|}be the corresponding data coverage ranges of each active node. For each data coverage range DCR𝛿𝑖, the maximal number of selected active nodes is at most (1 + log(|DCR𝛿𝑖|)) with the above greedy strategy. The total number of selected active nodes is 𝑁1≤|OPT1| ∑ 1(1+log (CR𝛿𝑖)) ≤|OPT1|×(1+log (max CR)), (2) where max DCR =max{|DCR𝛿𝑖||𝑖∈𝑉}. Due to max DCR ≤𝑛,thesizeoftheactivenodesetwith CSB is at most (1+log 𝑛)×|OPT1|.
8 International Journal of Distributed Sensor Networks Theorem 9. The time complexity of CSB is 𝑂(𝑛2). Proof. The CSB algorithm is divided into three processes as mentioned. In the Initialization Process, it is easy to know that the time complexity of obtaining all node’s data coverage range is 𝑂(𝑛2). The time complexity of sorting nodes with the partially ordered tuple is 𝑂(𝑛log 𝑛).Thetimecomplexityofselecting a node with maximal data coverage range in the sequence is 𝑂(𝑛)and the process runs 𝑂(𝑛)times. So the time complexity of Initialization Process is 𝑂(𝑛2). In the Cover Set Balance Process, the time complexity for each covered node to find the active node is (𝑛−|ANS|)× (|ANS|−1),where(𝑛−|ANS|)denotes the number of covered nodes and |ANS|denotes the number of active nodes. So the time complexity of the process is 𝑂(𝑛2). In the Node Replace Process, the progress of selecting the optimized candidate active node and replacing the lowenergy node is carried out simultaneously, and the time complexity is 𝑂(𝑛). So the time complexity of CSB is 𝑂(𝑛2). Theorem 10. The size of the active node set with HREF is at most (1+log((1+log 𝑛)×|𝑂𝑃𝑇1|))×|𝑂𝑃𝑇2|,where𝑂𝑃𝑇2is the optimal active node set and n is the number of nodes in the network. Proof. WeadoptagreedystrategyHREFtosolvetheactive node selection problem. The HREF is divided into two phrases: the first step is the CSB algorithm and the second phrase is to further reduce the number of active nodes selected by CSB. AssumethatthesizeofactivenodesetwithCSBis𝑚. According to [28], the optimized number of active nodes has upper bound as (1 + log 𝑚) × |OPT2|, where OPT2 is the optimal node set with respect to the concept of correlated node set and depends on OPT1. According to Theorem 8, the maximal number of active nodes selected by CSB is 𝑚≤ (1+log 𝑛)×|OPT1|. Then the upper bound for the number of active nodes selected by HREF is (1 + log((1 + log 𝑛) × |OPT1|))×|OPT2|. Theorem 11. The time complexity of HREF is 𝑂(𝑛2+𝑚× (𝑚 𝑚𝑎𝑥𝑑 )×2𝑚𝑎𝑥𝑑 +𝑚2),where𝑚 = (1+log 𝑛)×|𝑂𝑃𝑇1| is the maximal number of active nodes selected by CSB. Proof. The time complexity of HREF includes three different phases: the first step runs the CSB algorithm, the second step runs the CNSC algorithm, and the third step shuts down certain nodes. The time complexity for the first step is discussed above as 𝑂(𝑛2).Inthesecondstep,eachnode𝑖∈ ANS spends time 𝑂(( 𝑚 𝑚𝑎𝑥𝑑 )×2𝑚𝑎𝑥𝑑)to compute an optimized correlated node set from all its correlated node sets, where (𝑚 𝑚𝑎𝑥𝑑 )denotes the number of subsets and 2𝑚𝑎𝑥𝑑 denotes thetimecomplexityofthesequence𝐿. So all nodes totally cost 𝑂(𝑚×( 𝑚 𝑚𝑎𝑥𝑑 )×2𝑚𝑎𝑥𝑑)to calculate their corresponding correlated node set. In the third step, the process of shutting down redundant active nodes runs 𝑂(𝑚2)times. Thus, the total time complexity of HREF is 𝑂(𝑛2+𝑚×( 𝑚 𝑚𝑎𝑥𝑑 )×2𝑚𝑎𝑥𝑑 + 𝑚2). 5. Simulation Results and Analysis In this section, we demonstrate detailed simulation experiments to evaluate the actual performance of the above algorithms.Notethatthispaperfocusesontheactivenode selection problem by exploiting correlations among nodes but has no concern with the aggregation operators or probabilistic models. We compare the proposed CSB and HREF algorithms with the DClocal, DCglobal [22], EEDC [24], and Snapshot [28] by running them in the same networks as well as the same parameters for the environment. Here we adopt two main metrics for the algorithm performance, namely, the number of active nodes and the network lifetime. The number of active nodes is an important measurement since data coverage basically aims at minimizing the number of active nodes. We compare the related algorithms via this metric for a given data collection epoch.Meanwhile,theactivenodeselectionproblemaimsat maximizing the network lifetime, and thus network lifetime is adopted as the other metric for the performance comparison. In this section, we first introduce the simulation environment, then compare the algorithms via the number of active nodes with different parameters, such as network size, error threshold, and number of events, and finally we compare them by the metric of network lifetime with different parameters as well as interval for each epoch. 5.1. Simulation Environment Setup. We adopt MATLAB as the platform tool which is popularly used in the simulation of wireless sensor networks. The network is set up by placing |𝑉| nodes in a random manner. The events are randomly deployed in the monitored region. The cost of information collection is assumed 0.1 units during each epoch. We adopt the approach of generating synthetic sensor data on the monitored region. In the synthetic data set, ℎevents are randomly generated as Event ={Event1(𝑡), Event2(𝑡),...,Eventℎ(𝑡)} and they are also randomly deployed in the monitored region. The sensing data for a given node is affected by these events which is inversely proportional to their distance. The initial data of each event is randomly selected from [20, 40]. The value of an event Event𝑖 at time 𝑡is formulated as Event𝑖(𝑡)=Event𝑖(𝑡−𝑖𝑛𝑡𝑒𝑟V𝑎𝑙)+𝑍 where 𝑍is a random variable that follows the normal distribution with mean 0 and variance 0.1, while Event𝑖(0)is the initial value of the 𝑖th event. The data of node 𝑠at time 𝑡 is computed by Formula (3): 𝑥𝑠(𝑡)=𝑚 ∑ 𝑖=1 1/(dist (𝑠,Event𝑖)) ∑𝑚 𝑗=1 (1/(dist (𝑠,Event𝑗))) ×Event𝑖(𝑡),(3) where dist(𝑠,Event𝑖)denotes the square of the distance between node 𝑠and event Event𝑖and ℎdenotes the number of events.
International Journal of Distributed Sensor Networks 9 Table 1: Default values for the simulation parameters. Parameter description Default value Target area size 100 m ×100 m Network size 200 The location of sink (50, 50) Transmission radius 20 m Number of events 10 Error threshold 0.5 maxd 8 Initialenergyofeachnode 100units Energy cost for sensing during each epoch 0.02 units Energy cost for transmission during each epoch 0.03 units Fraction of alive nodes 75% Interval for reselecting a new active node set 80 epochs In this paper we focus on the node selection process and its impact on the network lifetime, while the routing/path selection are both ignored. Readers are guided to other works for details about these issues [29–31]. The default values for the simulation parameters are listed in Table 1. 5.2. Comparison of Number of Active Nodes. In this part, we compare the performance of our algorithms with related works by various parameters, including network size, error threshold, and the number of events. 5.2.1. Impact of Network Size. The network size is set from 100 to 500 with increment as 100, and the simulation result is demonstrated in Figure 2. It shows that the number of the selected active nodes ascends with the network size when the network size is smaller than 400. However, this trend is not obvious when the network size is large enough (𝑛 = 500).A certain number of active nodes are selected to perform the data collection process especially when the network is dense enough. This trend demonstrates the importance of active node selection with correlative optimization during the data collection process. HREF always has better performance compared with CSB, as we can see from Figure 2. For example, the number of active nodes selected by HREF is only 80.91% of that by CSBincasethatthenetworksizeis300.Itdemonstrates that HREF is rather significant to reduce the active nodes by removing nodes which can be computed by the corresponding correlated node set with the help of CNSC algorithm. In all cases, HREF and CSB have better performance compared with related algorithms, that is, EEDC, DCglobal, Snapshot, and DClocal. When 𝑛 = 300,thenumberof selected node is 15.05, 18.6, 20.75, 30.15, 28.35, and 34.65 with HREF, CSB, DCglobal, EEDC, Snapshot, and DClocal. 5.2.2. Impact of Error Threshold. The error threshold varies from 0.1 to 1.15 with increment as 0.15 in the simulations. As shown in Figure 3, the number of active nodes selected by 100 150 200 250 300 350 400 450 500 10 15 20 25 30 35 40 45 Network size Number of active nodes DClocal EEDC Snapshot DCglobal CSB HREF Figure 2: The impact of network size on the number of active nodes. 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 1.1 10 20 30 40 50 60 70 80 90 Error threshold Number of active nodes DClocal Snapshot EEDC CSB D-HREF HREF Figure 3: The impact of error threshold on the number of active nodes. HREF is lower than other algorithms in all cases. As the error threshold increases in the range of [0.1, 0.55], the number of active nodes decreases significantly. However, it is not obvious in the case that the error threshold is larger than 0.7. Hence,itishelpfultoreducethenumberofactivenodesifa larger error threshold is tolerant in some applications. 5.2.3. Impact of the Number of Events. The number of events varies from 5 to 40 with increment as 5 and the simulation result is demonstrated in Figure 4. It shows that the number of selected active nodes is independent of the number of events by using the data computing Formula (2). It can be seen that HREF and CSB have better performance compared with related algorithms regardless of the number of events. 5.3. Comparison of Network Lifetime. There are variations of measurement for network lifetime [27], such as the first node to die, the number of alive nodes, and the fraction ofalivenodes.Themeasurementwiththefirstnodeto die is not a good measure metric in practical applications, especially in the dense-deployed wireless sensor networks.