Next Article in Journal
A Sensor Network Data Compression Algorithm Based on Suboptimal Clustering and Virtual Landmark Routing Within Clusters
Previous Article in Journal
Experimental Method for Characterizing Electrical Steel Sheets in the Normal Direction
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Data Compression Algorithm for Wireless Sensor Networks Based on an Optimal Order Estimation Model and Distributed Coding

Institute of Information and Control, School of Automation, Hangzhou Dianzi University, Hangzhou 310018, China
*
Author to whom correspondence should be addressed.
Sensors 2010, 10(10), 9065-9083; https://doi.org/10.3390/s101009065
Submission received: 23 July 2010 / Revised: 10 September 2010 / Accepted: 16 September 2010 / Published: 11 October 2010
(This article belongs to the Section Chemical Sensors)

Abstract

:
In many wireless sensor network applications, the possibility of exceptions occurring is relatively small, so in a normal situation, data obtained at sequential time points by the same node are time correlated, while, spatial correlation may exist in data obtained at the same time by adjacent nodes. A great deal of node energy will be wasted if data which include time and space correlation is transmitted. Therefore, this paper proposes a data compression algorithm for wireless sensor networks based on optimal order estimation and distributed coding. Sinks can obtain correlation parameters based on optimal order estimation by exploring time and space redundancy included in data which is obtained by sensors. Then the sink restores all data based on time and space correlation parameters and only a little necessary data needs to be transmitted by nodes. Because of the decrease of redundancy, the average energy cost per node will be reduced and the life of the wireless sensor network will obviously be extended as a result.

1. Introduction

Wireless sensor networks can be broadly applied in various areas such as environmental monitoring, medical care, intelligent homes, transportation, military fields, etc. Data compression algorithms for wireless sensor networks aim to find an efficient way to compress data for reducing node energy costs and improving the synthesized ability of the whole system. Meanwhile, the accuracy must be guaranteed when data is being decoded.
Many new algorithms have been proposed recently, such as the self-based regression algorithm proposed by Deligiannakis, which first splits the recorded series into intervals of variable length [1]. Then these intervals will be encoded based on an artificially constructed base signal, so the base signal and the extent of the piece-wise linear recorded series are critical factors of the algorithm. A multidimensional sequential pattern mining over data streams algorithm as proposed by Rassi and Plantevit in [2] scans the temporal series record and realizes data coding based on pattern frequency. Meanwhile, multidimensional sequential patterns extracted from data can be used to compress data. Because the data need to be scanned, the memory and energy cost of nodes must be larger and the real time ability of the network will be affected. A data compression algorithm based on route choosing proposed by Pattem and Krishnamachari combines routing and data compression [3]. The algorithm reduces data space redundancy by balancing the data relativity of adjacent nodes and the size of clusters. Then the average energy cost of node will be decreased and the longevity of system will be extended. However, the algorithm needs to set accurate positions for nodes and the distance between nodes should be same, which is hard to realize in practice. Meanwhile, the relativity of data decides the performance of the algorithm and getting relativity parameters is hard in actual applications. The Group-Independent Spanning Tree algorithm proposed by Lujun Jia and Guevara also aims to reduce the space redundancy of data [4], by contructing a complete data transmission structure, but their discussion of algorithm parameters and eliminating redundancy within clusters is insufficient.
Zhou and Lin have proposed a distributed spatial-temporal data compression algorithm based on a ring topology wavelet transformation [5], which supports a broad scope of wavelet transformations and is able to efficiently decrease spatial-temporal redundancy, but the algorithm may be too complex for nodes because of the wavelet transformations. Lin and Vana proposed an online information compression algorithm [6], which first divides data obtained by nodes into different lengths of shorter data, then a dictionary can be composed according to the shorter data and updated with the increased data obtained by nodes. The algorithm can reduce the average energy cost per node and improve the accuracy of the restored data, however, the course of updating the dictionary makes the algorithm more complex than the self-based regression algorithm discussed above. The distributed structure tree depression algorithm (abbr. DSTD) proposed by Chou and Petrovic in [7] explores the spatial-temporal relativity that exists in data and computes the relativity parameters in the sink. Then the sink restores data according to relativity parameters and part of the original data transmitted from the nodes, so the nodes’ energy cost can be reduced to some extent. However, the number of data groups transmitted from nodes to sink is not defined when estimating relativity parameters. If a node transmits too much data for estimating relativity, some redundant parameters will be imported, then the node energy will be wasted and accuracy will be affected. On the other hand, if data transmitted for estimating relativity is not enough, the accuracy of data restored in the sink will be seriously affected.
This paper proposes a cluster optimal order estimation distributed structure tree depression algorithm (abbr. COOE-DSTD). The main idea of the algorithm is injecting the theory of optimal order estimation model into the field of data compression for wireless sensor networks, which has not been tried by others before. The simulation results demonstrate that the combination of optimal order estimation and distributed coding is effective for improving the data compression algorithm of wireless sensor networks. According to optimal order estimation we define the number of groups of data transmitted by nodes for obtaining relativity parameters, so redundant parameters can be prevented. At the same time, the wireless sensor network is divided into clusters, which not only improves the efficiency of the sink to deal with data, but also strengthens the ability of the sink to locate the position of exceptions, so the monitoring ability of the whole system will be greatly improved. The second part will introduce distributed coding theory and the optimal order estimation model imported by COOE-DSTD. The basic structure and flow chart of the DSTD algorithm and the COOE-DSTD algorithm will be given in the third section. The fourth part demonstrates the performance of the COOE-DSTD algorithm through comparison with DSTD from the point of view of average energy cost per node, signal to noise ratio and the ratio of the above two factors. Meanwhile, relative simulations are shown and analyzed. Conclusions of the paper and prospects for future work are offered in the last section.

2. Distributed Coding and Optimal Order Estimation

Data obtained by nodes in wireless sensor networks includes spatial-temporal relativity, which is the basis to introduce distributed coding in the DSTD and COOE-DSTD algorithms. Meanwhile, optimal order estimation is introduced in COOE-DSTD. Now a necessary explanation of distributed coding and optimal order estimation is given.
Distributed coding is one kind of asymmetric coding. First let us take the situation of two nodes as an example, as Figure 1 shows. Node A transmits original data or code which is coded according to data already obtained by A. So does node B. In the sink, if original data from A is obtained, the current data from A can be restored by code from A.
In the same way, current data from B can be restored according to code from B and data already restored from A. If data obtained by nodes are discrete independent identically distributed sequence, both nodes A and B can restore their original data as better as they don’t know the relativity parameters between A and B. When extending two nodes to N nodes, the sink obtains partial original data and code from nodes and computes relativity parameters. Then combined with these relativity parameters, the sink can restore all original data. Distributed coding derives from the sympatric data source coding theory which was proposed by Slepian and Wolf [8].This theory demonstrates that if correlated random variables X, Y obey arbitrary possibility distribution p(x,y), no matter whether the relativity between X and Y is known by the coder or not, the compression performance will be equal. When the relativity between X and Y is unknown, X can be coded with H(x|y) bits. And H(x|y) can be demonstrated as:
H ( x | y ) = y P Y ( y ) x P X ( x | y ) log P X ( x | y )
In Equation (1), H(x|y) stands for the uncertainty of variable X when Y is given. Now let us take an example to explain the theory in detail. Suppose variables X, Y are distributed with equal possibility in a data set whose elements consist of three bits. Variables X, Y obey dH(X, Y) ≤ 1. That is to say, X, Y with equal possibility distribute in set {000, 101, 011, 110} and {001, 010, 100, 111} respectively. The term dH(m,n) stands for the Hamming distance function. When Y is known by both coder and decoder, X can be coded by two bits, which stands for the uncertain information of X. However, supposing only the decoder knows Y, X still can be coded by two bits. This can be achieved by dividing the set into four cosets. They are coset1 = (000,111); coset2 = (001,110); coset3 = (010,101); coset4 = (011,100). Only two bits are needed to code four cosets. If the coset including X is known together with Y, and X will be decoded lossless. According to the above illustration, some nodes need to transmit three bits while other nodes only need to transmit two bits, so the coding mode is asymmetric and the energy cost of nodes may be different. We introduce the time period rotation method to balance the energy cost of all nodes when applying coding theory to decrease data redundancy. Besides, the way of coding described above can’t support variable compression ratios and sinks will construct a special structure tree to solve the problem, which will be illustrated in detail in the following section.
The course of getting data through nodes in wireless sensor networks is considered a stationary stochastic process in this paper. The optimal order estimation can be explained as follows: as known to all, the performance of a given autoregressive model is up to the practical process, the number of samples, the estimation algorithm and the order selection criterion. The finite sample criterion has given an empirical estimation based on the residual energy statistical average and an autoregressive estimation algorithm of predicted variance, which makes the performance of the finite sample criterion dependent on the adopted estimation method. As two important criteria, both special the finite sample information criterion (abbr. FSIC) and the combined information criterion (abbr. CIC) have considered the increasing residual energy with the increase of model order [9], which is ignored by other criteria, so compared with FSIC and CIC, other criteria often get over fit order because they only take the expectation of the logarithm of the residual energy as the function of the order model.
Now we first illustrate FSIC and CIC in detail. For a practical stochastic process AR(R) [10]:
y n + a 1 y n 1 + a R y n R = ɛ n
We set the model of AR(R) as AR(g) as follows:
y n + a ^ 1 y n 1 + a ^ g y n g = ɛ ^ n
In Equation (3) εn stands for stationary stochastic process whose mean and variance are 0 and δ ɛ 2, respectively. The last parameter g is called the reflection coefficient. The variance coefficient V (d, •) is the basic part of the finite sample criterion for the AR model. The term d stands for model order while “•” stands for estimation method in V (d, •). This paper has adopted the estimation method of Burg, which is a correlation estimation method. V (d, •) is an approximate estimation of the empirical variance of the reflection coefficient when order d > R. Meanwhile, V (d, •) is also an approximate estimation of the empirical variance of parameter g when fitting model AR (g) by the least squares method. If the estimation model order is larger than the practical stochastic process, the variance of the reflection coefficient will be set as 1/N, where N stands for sample capacity. If we adopt the above estimation method for the AR (g) model, we will get a d order empirical variance estimation equation as follows [10]:
V ( d , Burg ) = 1 / ( N + 1 d )
If the d order empirical expectation of AR(d) model is negative or zero, we will get V(0,•) = 1/N. The above estimation will be accurate for practical stochastic process under the condition that d > R.
As the variance of ɛ̂n, δ ɛ ^ 2 is called residual variance RES(g) when data yn in Equation (3) is used to estimate parameter d. δ ɛ ^ 2 is defined as the predicted error PE(g) when parameters d and yn are mutually independent. If model order g is larger than or equal to the practical random order R and the Burg estimation method is adopted to estimate AR(g), we will get approximate expressions of the residual variance RES(g) and predicted variance PE(g) as follows [10]:
E { RES ( g ) } δ ɛ 2 d = 0 g { 1 V ( d , ) }         g R
E { PE ( g ) } δ ɛ 2 d = 0 g { 1 + V ( d , ) }        g R
Replacing V (d, •) in (5), (6) with the definite value of V (d, •) in (4) we can get an approximate expectation of RES (g) and PE (g). So, both (5) and (6) can be fitted by the least squares method and relative proof can be found in [9]. The expectation of the ratio of PE (g) and RES (g) is introduced in the finite sample information criterion. We can get Equation (7) for order estimation [10]:
FSIC ( g ) = l n { RES ( g ) } + d = 0 g 1 + V ( d , ) 1 V ( d , ) 1
Compared with other criteria which just modify ln {RES (g)}, FSIC can reflect the main fluctuation of g/N under the condition of g/N > 0.1. That is to say, FSIC can obtain an optimal order better than other criteria under the situation of g/N > 0.1. However, if the optimal model order is small, it will be hard for FISC to give a good estimation. CIC can solve the above problem very well. Because the punishment factors and merits of FISC are adopted by CIC at the same time. Punishment factor is suitable for a low order optimal estimation while FISC is appropriate for a low order optimal estimation. No matter whether the optimal order of the model is high or low, CIC can obtain suitable order estimation. The definition of CIC is as follows [10]:
CIC ( g ) = ln { RES ( g ) } + d = 0 g 1 + V ( d , ) 1 V ( d , ) min { 1 , 3 d = 0 g V ( d , ) }
If the optimal order of model is low, the CIC can avoid optimal order being estimated too low through a punishment factor 3 d = 0 g V ( d , ). The CIC can switch to the form of FSIC automatically to avoid the optimal order being estimated too high when the optimal order of model is high, so the combined information criterion is used to estimate the optimal order in the following algorithm proposed in this paper.

3. Descriptions and Flow Chart of the Algorithm

A simple description of the basic theory referred in the proposed algorithm is given above. Now we will illustrate the algorithm in detail. Based on distributed coding theory, DSTD first let nodes transmit N/3 groups’ original data to the sink, then the sink constructs the structure tree and computes prediction relativity parameters and number i based on original data. N stands for the number of data groups sensed by nodes in a complete cycle of the algorithm and i stands for the number of bits which is needed for nodes to compress the original data. By contrast, in the COOE-DSTD algorithm proposed in this paper all nodes transmit the obtained data to the sink and then the sink will judge whether it is getting the optimal order or not through the combined information criteria once the one time data transmission is finished by every node. If the order is not optimal and the number of transmission times is smaller than N/3, nodes will continue to transmit original data, or the sink will compute the initial predictive coefficients and construct the structure tree. The distributed coding method is also used in the COOE-DSTD algorithm, so the sink needs to appoint a node to transmit its original data. The node which transmits the original data expends more energy than those transmitting compressed code, therefore the sink will allocate a node in turn to transmit its original data to balance the energy consumption of all nodes. When a node receives the compression instruction i, a modulo operation of the original data (analog to digital conversed) by 2i will be made in the node, then the original data is compressed into i bits code, which will be received by the sink. The code will map a little data sequence in the structure tree built in the sink. With original data sensed by the allocated node and the predicted parameters computed above, we can restore different original data mapped by different i bits code. If all nodes’ original data of the same cycle are restored, combining with new original data, the sink will update the predicted parameters and compute the value of i for next cycle. The cycle continues and new data will be restored cycle by cycle.
Both the DSTD algorithm and COOE-DSTD algorithm adopt the same theory to get predicted correlation coefficients and the same way to establish the structure tree for getting the coding instruction i. Now it is necessary to give some explanation about the structure tree, predicted correlation coefficients and the coding instruction i referred above. In the DSTD algorithm we start with the average value of N/3 groups of original data for building the structure tree and extend the average original data from both sides by the interrupt of Δ, which can affect the accuracy of the algorithm. The range of extension is up to the practical application. Correspondingly, in the COOE-DSTD algorithm the establishment of the structure tree begins from the average value of the first group of original data. If we split the sequence into odd and even, then we will get two sub-sequences, which are interrupted by 2Δ. The sub-sequences can be split in the same way. After i times splitting, we can get some sub-sequences. Every sub-sequence maps to a code, which includes i bits. Let us use an example to explain the above process. Suppose all nodes monitor temperature and the average of the first N/3 groups data is 25 cent degrees. We set Δ = 0.5 and the range of extension is from 21 cent degrees to 28.5 cent degrees. If the range is exceeded, we will get an exception signal, which will be transmitted to the sink immediately. According to the above description, we can construct a structure tree as follows:
The i bits code mapped to the last row sub-sequence in Figure 2 is 00,01,10,11. If the sink gets an i bits code, it will map a sub-sequence. Combining with an estimation value based on prediction parameters, the sink can ascertain a value nearest to the corresponding original data in the sub-sequence. Then we can estimate original data.
Because of the existence of spatial-temporal relativity in the original data, we can construct a predictive model in the sink. That is to say, we can estimate the original data for the next moment based on the obtained data. It is necessary to declare that the node clustering operation is used after getting the optimal order of the estimation model in the COOE-DSTD algorithm. Both spatial relativity and temporal relativity of the original data obtained from nodes are relative to the optimal order, so the sink can divide all nodes into some clusters based on the value of the optimal order in the COOE-DSTD algorithm. For the first step, every node broadcasts its residual energy to nearby nodes. Secondly, every node compares its own residual energy with the received energy messages from nearby nodes. Thirdly, if one node detects that its energy is larger than that of a certain number of nodes (the number is determined by the value of optimal order), it will broadcast to those nearby nodes (those nodes’ remain energy are lower than that of the broadcaster) that it is their cluster head node. Many border nodes may be found after clustering, and these nodes can join a nearby cluster randomly. In this way, those nodes that have spatial relativity can be clustered together naturally. Then the Compression instruction will be computed by the sink for every node within a cluster. By contrast, in the DSTD algorithm the sink will compute predicted correlation coefficients and compression instructions within the whole sensor network, which will be more complex and more time and energy will be spent.
Supposing node j obtains some original data X T j at moment T. We can get Y T j through linearly fitting X T j as follows [7]:
Y T j = k = 1 W α k X T k j + t = 1 S β t X T t
In Equation (9), k = 1 W X T k j stands for W continuous original data obtained by node j before moment T and t = 1 S X T t stands for S original data obtained by different nodes nearby node j at the moment T. W, S stand for the number of values obtained by the same node in different moments and different nodes in the same moment, respectively. So how to obtain proper predictive parameters αk (k = 1,2 ⋯ W) and βt (t = 1,2 ⋯ S) is the critical problem for obtaining Y T j with certain accuracy in order to make Y T j approach X T j as much as possible. Here we take E[(Nj)2] as the difference of Y T j and X T j. Then we can obtain Equation (10) as follows [7]:
E [ ( N j ) 2 ] = E [ ( ( k = 1 W α k X T k j + p = 1 S β p X T p ) X T j ) 2 ] = E [ ( X T j ) 2 ] 2 k = 1 W α k E [ X T j X T k j ] 2 p = 1 S β p E [ X T j X T p ] + 2 k = 1 W p = 1 S α k β p E [ X T k j X T p ] + k = 1 , q = 1 W α k α q E [ X T k j X T q j ] + p = 1 , q = 1 S β p β q E [ X T p X T q ]
Suppose discrete data X T h and X T t (h, t = 1,2 ⋯ S) obtained by different nodes at the same time are paired jointly wide sense stationary and set [7]:
Φ i = [ α 1 α 2 α W β 1 β 2 β S ] T
c x j x t ( k ) = E [ X T j X T + k t ]
P j = [ c x j x j ( 1 ) c x j x j ( 2 ) c x j x j ( W ) c x j x 1 ( 0 ) c x j x 2 ( 0 ) c x j x S ( 0 ) ]
C rr j = C x j x j C x j x t C x j x t T C x t x t
In Equation (14):
C x j x j = c x j x j ( 0 ) c x j x j ( 1 ) c x j x j ( W 1 ) c x j x j ( 1 ) c x j x j ( 0 ) c x j x j ( W 2 ) c x j x j ( W 1 ) c x j x j ( W 1 ) c x j x j ( 0 )
C x j x t = c x j x 1 ( 1 ) c x j x 2 ( 1 ) c x j x S ( 1 ) c x j x 1 ( 2 ) c x j x 2 ( 2 ) c x j x S ( 2 ) c x j x 1 ( M ) c x j x 2 ( M ) c x j x S ( M )
C x t x t = c x 1 x 1 ( 0 ) c x 1 x 2 ( 0 ) c x 1 x S ( 0 ) c x 2 x 1 ( 0 ) c x 2 x 2 ( 0 ) c x 2 x S ( 0 ) c x S x 1 ( 0 ) c x S x 2 ( 0 ) c x S x S ( 0 )
We can get:
E [ ( N j ) 2 ] = c x j x j ( 0 ) 2 P j T Φ j + Φ j T C rr j Φ j
In order to get predictive coefficients Φj when minimizing E[(Nj)2], we can differentiate E[(Nj)2] with respect to Φj, and thus get Equation (19):
E [ ( N j ) 2 ] Φ j = 2 P j + 2 C rr j Φ j = 0
Φ j = ( C rr j ) 1 P j
According to the above analysis, if we get certain groups of original data (for example N/3 discussed in DSTD), we can get predictive coefficients Φj through Equation (20). Then we can predict the original data obtained by the node at the next moment in the sink. However, data obtained by nodes are time-variant and we must regulate Φj in time. Here we let Φj move along the opposite direction of the gradient function of E[(Nj)2] to realize the adjustment of Φj in time [7], as follows:
Φ j ( n + 1 ) = Φ j n μ j n
We can obtain j n through Equation (19), n stands for certain moment and μ stands for the parameter of the opposite direction of the gradient. Because the objective function is convex, we can obtain the minimum value. When we choose μ appropriately, we can get the optimal value through Equation (21). The deduction for updating Φj goes as follows [7]:
Φ j n + 1 = Φ j n 1 2 μ ( 2 P j + 2 C rr j Φ j n )
Set:
U n , j = [ X n 1 j X n 2 j X n M j X n 1 X n 2 X n S ] T
We get:
P j = X n j U n , j
C rr j = U t , j U t , j T
Combining with the following two equations [7]:
Y n j = ( U n , j ) T Φ j n
N n , j = X n j Y n j
We can get:
Φ j n + 1 = Φ j n μ U n , j ( X n j + ( U n , j ) T Φ j n ) = Φ j n + μ U n , j N n , j
So the updating formula of Φj can be expressed as follows [7]:
Y n j = ( Φ j n ) T U n , j
N n , j = X n j Y n j
Φ j n + 1 = Φ j n + μ U n , j N n , j
Up to now, we can estimate Y n j by updating coefficient Φj. In order to get original data in structure tree, we need the compression code transmitted from the nodes. Now let’s explain how the sink can compute the value of i, which is needed by the nodes to compress original data. We can estimate X n j through Y n j under the condition that the distance of neighbor nodes in sub-sequence 2i−1 Δ is larger than Nn,j. The mean and variance of Nn,j are 0 and δ N j 2 respectively. If 2i−1 Δ is larger than Nn,j under the probability P, according to the Chebyshev inequality, we can get the value of i through the following formula:
P { | N n , j | < 2 i 1 Δ } 1 δ N j 2 ( 2 i 1 Δ ) 2 = P
Then we can get:
i = 1 2 log 2 δ N j 2 ( 1 P ) Δ 2 + 1
For a given probability P, the sink can compute the value of i according to equation (33) and δ N j 2 can be initialized by Equation (34) [7]:
δ N j 2 = 1 N 1 n = 1 N N n , j 2
According to the above analysis, we can describe the DSTD algorithm as follows:
  • The sink obtains N/3 groups of original data transmitted from all nodes and then computes the initial predicted coefficient Φj and constructs the structure tree based on the obtained original data (N represents the number of original data groups sensed by node in a complete algorithm cycle)
  • The sink allocates a node in turn to transmit original data and computes the value of i for other nodes.
  • The node allocated in (2) transmits original data to the sink. Other nodes get compression order i from the sink and compute the compression code through the modulo operator. Then compression codes are transmitted to the sink from the nodes.
  • Combining the predictive coefficient Φj in Step (2) with the original data transmitted in Step (3), the sink can get Y n j (corresponding to the estimated value of the original data obtained by node j at the moment n). Meanwhile, the compression code obtained from the node can locate a sub-sequence. Together with Y n j, the sink can get X n j in the sub-sequence as the optimal estimation of the original data. Then X n j becomes an already known condition for the next node to estimate original data at the same moment. That is to say, the new estimated data should be considered when regulating Φj.
  • If original data of all nodes are estimated, the sink will compute and transmit compression order to nodes for the next moment. If the number of groups of original data obtained by nodes is up to N, the algorithm will turn to Step (1) or turn to Step (2).
The flow chart of the DSTD algorithm is shown in Figure 3a. According to the theory introduced above, this paper has proposed the COOE-DSTD algorithm, which is illustrated as follows (the flow chart of the COOE-DSTD algorithm is shown in Figure 3b):
  • All nodes transmit original data to the sink and then the sink will judge whether the order is optimal or not by CIC when every cycle transmission is finished. If the order is not optimal and the number of rounds is smaller than N/3, nodes will continue to transmit original data, or the sink will compute the initial predictive coefficient Φm and construct the structure tree.
  • The value of the optimal order is related with the predicted estimation coefficients which are associated with the space relativity of the original data obtained from nodes, so the sink divides all nodes into some clusters based on the value of the optimal order. Then the sink allocates a cluster head for every cluster and computes the compression instruction for every node in the cluster.
  • Nodes within a cluster apply the mod operation to the original data based on the compression order for getting the compression code. Then the cluster transmits all compression codes and its own original data to the sink.
  • Within a cluster, the sink combines the predictive coefficient Φm in Step (2) with the original data transmitted by the cluster head, and the sink can get Y r m (corresponding to the estimated value of the original data obtained by node m at the moment r). The compression code obtained from the node can locate a sub-sequence. Together with Y r m, the sink can ascertain the value X r m in the sub-sequence as the optimal estimation of the original data. Then X r m becomes an available condition for the next node to estimate original data at the same moment. Namely, new estimated data should be considered when regulating Φm.
  • If the original data of all nodes are estimated, the ink will compute and transmit the compression order to clusters for the next moment. If the number of groups of original data obtained by the nodes is up to N, the algorithm will turn to Step (1), or, turn to Step (2).
Compared with the DSTD algorithm, optimal order estimation and the operation of clustering are introduced in the COOE-DSTD algorithm, which can decrease the dimension of the data disposed in the sink. The reason is that DSTD algorithm takes all nodes as relative nodes of the node waiting for estimating. If the size of the wireless sensor networks is big enough, some remote nodes which have little relativity with the node waiting for estimating will be considered impertinently, which not only increases the complexity of computation, but also decreases the accuracy of the algorithm.
Contrarily, the COOE-DSTD algorithm only considers those nodes which have spatial-temporal relativity with the node waiting for estimating through the judgment of optimal order estimation, which not only decreases the complexity of computation and the time delay, but also increases the accuracy of the restored data. Meanwhile, the average energy of node can be reduced because the actual data transmitted from nodes to sink is deceased. The method of dividing nodes into clusters is introduced in the COOE-DSTD algorithm, so the sink can locate the place where exceptions have taken place through the cluster structure. Because the predicted coefficients are constructed based on clusters and the data obtained by nodes in the same cluster naturally have spatial-temporal relativity, so the real-time ability and expandability of the whole monitoring system are obviously improved when the COOE-DSTD algorithm is used.

4. Simulation Results and Analysis

Presented above is the theoretical analysis of the performance and basic principles of the proposed algorithm. Here we will verify the above analysis through simulation examples. From the flow chart, we know that optimal order estimation and the clustering operation are introduced in the proposed algorithm. Compared with the DSTD algorithm, the main merits of the COOE-DSTD algorithm are shown as follows:
  • As known to all, most node energy is spent on transmitting original data. The number of groups of original data which must be sent to the sink can be reduced through the optimal order estimation, so the average energy cost per node can evidently be reduced.
  • The computing is concentrated on those nodes which have some extent relativity with the node which waits for estimating, and some nodes which have little relativity are ignored, so the data computation dimension is decreased, and then the accuracy of the data can be improved.
  • If the size of wireless sensor networks is very large, after the operation of clustering, sinks can locate the place where exceptions have taken place throughout the cluster structure. Compared with the one by one searching way, the clustering operation can reduce time delays and efficiently improve the real-time ability of the system.

4.1. Performance Evaluation Model of the Algorithm

Now the comparison is made between the DSTD algorithm and the COOE-DSTD algorithm through simulation examples. First we should set the criteria for evaluating the performance of the algorithms. Reducing the average energy cost per node to extend the service life of the whole system is one of the most important goals of the proposed algorithm. Besides, the ratio of peak signal to noise is used to evaluate the quality of the restored data in the field of data compression. The COOE-DSTD algorithm is not only able to reduce the communication load to decrease the energy cost of the nodes, but also can guarantee the accuracy of the restored data, so here we take the average energy cost per node, signal to noise ratio and their ratio as performance evaluation criteria for the algorithms. We can refer to Wang’s description in which Strong ARM SA-1100A is taken as an example to calculate the energy cost of nodes. The total energy cost of a node can be expressed as follows [11]:
E = E lp + E lt + E lr + E rt
In Equation (35), Elp stands for the energy cost for computing in a node, and Elt stands for the energy cost for transmitting data between nodes in the surveillance area, and Elr stands for the energy cost for receiving data from the sink, and Ert stands for the energy cost for transmitting data to the sink. The formula for computing the energy cost for transmitting data is shown as follows [11]:
E lt = E elec * k + ɛ amp * k * D 2
In the above equation, Eelec = 50 nJ/bit, εamp = 100 pJ/b/m2, K stands for the number of transmitted bits, D stands for the transmission distance. The calculation of Ert with Equation (36) is similar. The energy cost equation of receiving data is shown as follows [11]:
E lr = E elec * k
The meaning of the parameters in Equation (37) is the same as referred to above [11]:
E lp = IC * Vdd 2
In (38), parameter I stands for the number of cycles per instruction for the main chip, and C stands for the average capacitance switched per cycle, Vdd stands for voltage, and C approximates 0.67 nf for the Strong ARM SA-1100A.
For an ordinary processor, if the distance from node to sink is vastly larger than the distance from node to node, the energy cost of executing instructions can be ignored, so the formula of the energy cost can be simplified as follows:
E E rt
Both the COOE-DSTD algorithm and the DSTD algorithm need to transmit some groups of original data to the sink in the initialization stage, and then transmit the compression code to the sink, so the energy cost of a node at the beginning of algorithm is larger than later and it is rational to set the average energy cost per node as a performance criterion of the algorithm.
The ratio of peak signal to noise is given by:
SNR = 10 log [ AM x = 0 M 1 ( f ( x ) f ^ ( x ) ) 2 ]
In Equation (40), A stands for the peak value transmitted by node, M stands for the number of group of input data, f(x) stands for input data, and (x) stands for output data.

4.2. Simulation Experiment

Here we suppose nodes are distributed evenly in a surveillance area. The distance from node to neighbor node is 1 meter, and the distance from node to sink is 1,000 meters. Figure 4 shows the SNR performance of the COOE-DSTD algorithm and the DSTD algorithm. From Figure 4, we know that if the number of nodes is constant, the SNR will descend in the DSTD algorithm while it will increase at first and then fluctuate at a value in the COOE-DSTD algorithm as the data obtained by the node in one algorithm cycle increases. According to Figure 4, we know that the accuracy of the restored data is improved in the COOE-DSTD algorithm. The reason for the decrease of the SNR in the DSTD algorithm is that as the obtained data increases in one algorithm cycle, more and more data which have little temporal relativity are imported to estimate the new node value. The problem can be avoided in the COOE-DSTD algorithm through the estimation of optimal order. Data which have little temporal relativity are discarded in the COOE-DSTD algorithm, so the computational complexity is reduced and the accuracy of restored data is improved efficiently.
From Figure 5, we know that the SNR has slight fluctuations both in the DSTD algorithm and the COOE-DSTD algorithm, but the latter are always larger than the former.
The reason is similar with the factors analyzed above. More and more data which have little spatial relativity are imported to estimate a new node value in the DSTD algorithm as the number of nodes increases. Similarly, through the optimal order estimation, data which have little spatial relativity are discarded in the COOE-DSTD algorithm, so the SNR of the COOE-DSTD algorithm is always larger than that of DSTD algorithm.
Figure 6 shows that the average energy cost has slight fluctuations both in the DSTD algorithm and the COOE-DSTD algorithm as the data obtained by a node increases in one algorithm cycle, but the latter is always lower than the former. The reason is that through the optimal order estimation, the original data transmitted by a node in the COOE-DSTD algorithm is less than that in the DSTD algorithm.
From Figure 7, we know that the average energy cost of node in the COOE-DSTD algorithm is less than that in the DSTD algorithm as the nodes increase.
The reason is that all other nodes are taken as relative nodes in the DSTD algorithm when computing the compression order in the sink, so the compression code in the DSTD algorithm is longer than that in the COOE-DSTD algorithm, which leads to the energy cost per node in the DSTD algorithm being larger than that in the COOE-DSTD algorithm. Besides, we can find that the average energy cost per node shows a local minimum when the number of nodes of a sensor network is 120. That is to say, when the size of sensor networks is close to 120 in an application, we can obtain a local optimum by setting the number of nodes at 120 in applying the COOE-DSTD algorithm.
From Figure 8 and Figure 9, we can get similar results with the above simulations when we take AEC/SNR as the performance criteria (AEC means average energy cost). Slight fluctuations can be found in both the DSTD algorithm and the COOE-DSTD algorithm and the former is always larger than the latter as the data obtained by nodes in one algorithm cycle increases.
The simulation result of the situation of increasing the number of nodes is similar with the situation in Figure 8. The actual computational cost is reduced by introducing optimal order estimation and the operation of clustering, so the average energy cost is decreased and the accuracy of restored data is evidently improved.

5. Conclusions

With the features of wireless sensor networks in mind, we have proposed the COOE-DSTD algorithm through implementation of optimal order estimation and the operation of clustering. Compared with the DSTD algorithm, the actual amount of computing is reduced because the optimal order is obtained, so the accuracy of the restored data can be greatly improved and the average energy cost can be reduced efficiently. The operation of clustering enables the sink to locate nodes which have detected exceptions quickly, therefore the time delay of the system can be greatly reduced and the scalability of the system will evidently be improved. However, the algorithm proposed in this paper mainly aims to deal with one-dimensional data. In future work we will try to extend the algorithm to deal with two-dimensional data.

Acknowledgments

This paper is supported by the National Natural Science Foundation of China (NSFC60974012), the Natural Science Foundation of ZheJiang Province (Y1100054), the Key Science and Technology Plan Program of Science and Technology Department of ZheJiang Province (2008C23097), the Science and Technology Plan Program of Science and Technology Department of Hangzhou (20091133B03).

References

  1. Deligiannakis, A; Kotidis, Y; Vassalos, V; Stoumpos, V; Delis, A. Another Outlier Bites the Dust: Computing Meaningful Aggregates in Sensor Networks. Proceedings of the 2009 IEEE International Conference on Data Engineering, Washington, DC, USA, 30 March–2 April 2009; pp. 988–999.
  2. Chedy, R; Marc, P. Mining Multidimensional Sequential Patterns over Data Streams. Proceedings of 10th International Conference of Data Warehousing and Knowledge Discovery, Turin, Italy, 2–5 September 2008; pp. 263–272.
  3. Sundeep, P; Bhaskar, K; Ramesh, G. The Impact of Spatial Correlation on Routing with Compression in Wireless Sensor Networks. Proceedings of ACM Transactions on Sensor Networks, New York, NY, USA, August 2008; 4. article no. 24.
  4. Jia, LJ; Noubir, G; Rajaraman, R; Ravi, S. GIST: Group-Independent Spanning Tree for Data Aggregation in Dense Sensor Networks. Proceedings of Distributed Computing in Sensor Systems—Second IEEE International Conference, DCOSS, San Francisco, CA, USA, 18–20 June 2006; pp. 282–304.
  5. Zhou, SW; Lin, YP; Zhang, JM; Ouyang, JC; Lu, XG. A wavelet data compression algorithm using ring topology for wireless sensor networks. J. Softw 2007, 18, 669–680. [Google Scholar]
  6. Song, L; Kalogeraki, V; Gunopulos, D; Lonardi, S. Online Information Compression in Sensor Networks. Proceedings of IEEE International Conference on Communications (ICC’06), Istanbul, Turkey, 11–15 June 2006; 7, pp. 3371–3376.
  7. Jim, C; Dragan, P; Kannan, R. A distributed and adaptive signal processing approach to exploiting correlation in sensor networks, Ad hoc Networks. J. Elsevier 2004, 2, 387–403. [Google Scholar]
  8. Slepian, D; Wolf, JK. Noiseless encoding of correlated information sources. IEEE Trans. Inform Theory 1973, IT-19, 471–480. [Google Scholar]
  9. Broersen, PMT. The Quality of lagged products and autoregressive Yule—Walker models as autocorrelation estimates. IEEE Trans. Instrum. Meas 2009, 58, 3867–3873. [Google Scholar]
  10. Broersen, PMT. The removal of spurious spectral peaks from autoregressive models for irregularly sampled data. IEEE Trans. Instrum. Meas 2010, 59, 205–214. [Google Scholar]
  11. Wang, A; Chandraksan, A. Energy-efficient dsps for wireless sensor networks. IEEE Signal Process Mag 2002, 68–78. [Google Scholar]
Figure 1. Distributed coding.
Figure 1. Distributed coding.
Sensors 10 09065f1
Figure 2. Structure tree.
Figure 2. Structure tree.
Sensors 10 09065f2
Figure 3. (a) The flow chart of DSTD; (b) The flow chart of COOE-DSTD.
Figure 3. (a) The flow chart of DSTD; (b) The flow chart of COOE-DSTD.
Sensors 10 09065f3
Figure 4. The change of SNR with the increase of N.
Figure 4. The change of SNR with the increase of N.
Sensors 10 09065f4
Figure 5. The change of SNR as the increase of nodes J.
Figure 5. The change of SNR as the increase of nodes J.
Sensors 10 09065f5
Figure 6. The change of AEC as N increases.
Figure 6. The change of AEC as N increases.
Sensors 10 09065f6
Figure 7. The change of AEC with the increase of nodes J.
Figure 7. The change of AEC with the increase of nodes J.
Sensors 10 09065f7
Figure 8. The change of AEC/SNR with the increase of N.
Figure 8. The change of AEC/SNR with the increase of N.
Sensors 10 09065f8
Figure 9. The change of AEC/SNR with the increase of nodes J.
Figure 9. The change of AEC/SNR with the increase of nodes J.
Sensors 10 09065f9

Share and Cite

MDPI and ACS Style

Jiang, P.; Li, S.-Q. A Data Compression Algorithm for Wireless Sensor Networks Based on an Optimal Order Estimation Model and Distributed Coding. Sensors 2010, 10, 9065-9083. https://doi.org/10.3390/s101009065

AMA Style

Jiang P, Li S-Q. A Data Compression Algorithm for Wireless Sensor Networks Based on an Optimal Order Estimation Model and Distributed Coding. Sensors. 2010; 10(10):9065-9083. https://doi.org/10.3390/s101009065

Chicago/Turabian Style

Jiang, Peng, and Sheng-Qiang Li. 2010. "A Data Compression Algorithm for Wireless Sensor Networks Based on an Optimal Order Estimation Model and Distributed Coding" Sensors 10, no. 10: 9065-9083. https://doi.org/10.3390/s101009065

Article Metrics

Back to TopTop