# Adaptive Compressive Sensing and Data Recovery for Periodical Monitoring Wireless Sensor Networks

^{1}

^{2}

^{3}

^{4}

^{*}

Previous Article in Journal

Previous Article in Special Issue

Previous Article in Special Issue

Computer Science and Engineering, Northeastern University, Shenyang 110819, China

Research Center of Safety Engineering Technology in Industrial Control of Liaoning Province, Neusoft Group Research, Shenyang 110179, China

Key Laboratory of Computer Network and Information Integration (Southeast University), Ministry of Education, Nanjing 211189, China

Department of Informatics, King’s College London, London WC2R 2LS, UK

Author to whom correspondence should be addressed.

Received: 20 August 2018 / Revised: 29 September 2018 / Accepted: 30 September 2018 / Published: 9 October 2018

(This article belongs to the Special Issue Low Energy Wireless Sensor Networks: Protocols, Architectures and Solutions)

The development of compressive sensing (CS) technology has inspired data gathering in wireless sensor networks to move from traditional raw data gathering towards compression based gathering using data correlations. While extensive efforts have been made to improve the data gathering efficiency, little has been done for data that is gathered and recovered data with unknown and dynamic sparsity. In this work, we present an adaptive compressive sensing data gathering scheme to capture the dynamic nature of signal sparsity. By only re-sampling a few measurements, the current sparsity as well as the new sampling rate can be accurately determined, thus guaranteeing recovery performance and saving energy. In order to recover a signal with unknown sparsity, we further propose an adaptive step size variation integrated with a sparsity adaptive matching pursuit algorithm to improve the recovery performance and convergence speed. Our simulation results show that the proposed algorithm can capture the variation in the sparsities of the original signal and obtain a much longer network lifetime than traditional raw data gathering algorithms.

Wireless Sensor Networks (WSNs), which are capable of sensing, computing, and wireless communication, can be applied to a wide range of applications, such as scientific observation, emergence detection, climate detection, ecosystem surveillance, and physical hazard prevention [1]. In many of these applications, sensor nodes are powered by battery and deployed in an unattended hostile environment with high density. Once deployed, these nodes should send their sensing results to the sink node periodically. Due to the constraints of application environments, it is crucial to prolong the network lifetime of WSN. According to the energy consumption model presented in [2], the energy consumed in a sensor node is exponentially increased with the communication distance. As a result, sensor nodes usually follow the routine to the sink node via multihop transmission, thus saving energy. Besides that, multihop communication is essential for large-scale WSNs for cases where the transmission range of sensor nodes is much smaller than the size of the target area.

Since all the sensor nodes forward their data to only one sink node, the routing tree in WSNs usually exhibits a many-to-one structure, which is often called convergecast [3,4]. The main drawback of the convergecast structure is the energy hole problem, chiefly because the sensor nodes close to the sink node have to relay more packets and tend to run out of energy sooner. As a result, the entire network is subject to premature death because it is separated by the energy hole. In order to avoid uneven energy depletion and to extend the network’s lifetime, several advanced hardware and software solutions have been recently proposed. As for the design of hardware, wireless energy charging technologies are applied to harvest energy from ambient sources [5,6]. However, recharging is impossible or not worth it in many applications [7]. As for the design of software, data gathering solutions have been proposed to reduce the traffic load. Since the physical phenomena collected by sensor nodes often possesses strong temporal and spatial correlations, it is inefficient to deliver raw data to the sink node. Many solutions have incorporated data correlations into data gathering, such as distributed source coding [8] and the distributed compression algorithm [9]. However, conventional data compression techniques, which are usually associated with the design of routing, require heavy computation and communication loads on sensor nodes [10]. Source coding techniques are also incompatible with WSNs, since they work with the assumption that the statistical structure of the underlaying data distribution should be known prior [11].

The emerging technology of compressive sensing (CS) opens up a new perspective for data gathering in WSNs. The basic idea of CS is that if the signal is sparse or compressible at a certain level , it can be reconstructed from a small number of linear measurements lower than the Shannon–Nyquist limit [12]. The application of CS for data gathering in multi-hop WSNs has drawn much attention recently. [13] investigated how to apply CS theory for data gathering. They also designed a simple but efficient measurement matrix that satisfies the restricted isometry property (RIP). CS based techniques can substantially reduce the amount of data transmission and balance the traffic load throughout the entire network with a very low level of complexity. In order to further reduce the energy consumption and improve the energy efficiency, a novel measurement matrix generation incorporating a transmission design was proposed in [14]. In [15], the CS principle was used as a compression and forwarding scheme to minimize the transmission data. In Ref. [16], CS based data aggregation combined with routing was designed to reduce the entire energy consumption. In Ref. [17], a CS method of cluster-based WSNs was designed, and centralized and distributed clustering methods were proposed to reduce the number of transmissions. Considering the spatial correlations between sensor nodes, the compressive sleeping strategy was designed in Refs. [18,19] for high density WSNs, where only a subset of sensor nodes were active and all the other sensor nodes were turned off to save the energy and extend the network’s lifetime. By utilizing the spatial correlations of the data in densely deployed WSNs, a distributed compressive sensing scheme for data gathering was proposed in Ref. [20], where the belief propagation algorithm was employed for signal recovery. In Ref. [21], the spatial interpolation method was proposed to transform a predetermined sparsifying measurement matrix for WSNs with only local communications, avoiding the complete position knowledge of the entire network being obtained. In Ref. [22], the CS based signal and data acquisition for WSNs as well as the Internet of Things (IoT) was proposed, and a cluster-sparse reconstruction algorithm was proposed for in-network compression to achieve accurate signal recovery and energy efficiency. By exploiting a similar sparsity structure of acoustic signals from nodes in the same array, a collaborative reconstruction method was proposed for data gathering in wireless sensor array networks [23].

Even though various applications of CS for data gathering have been extensively studied, they all assume that the sparsity of the signal is static or changing sufficiently slowly over time. However, such an assumption is too restrictive for many monitoring applications, where the sparsity of the signal changes rapidly with time or conditions. For example, for an anti-fire forest monitoring WSN, due to the fact that the number of measurements is linearly related to the underlying signal sparsity level, the signal sparsity with and without fire is apparently different. When the sparsity of the signal is changed, ignoring the rapid change of signal sparsity will result in performance degradation in signal recovery. Therefore, it becomes important to design an adaptive compressive sensing in accordance with the variation of the signal sparsity.

After gathering the data with compressive sensing, another challenge is how to design a signal recovery algorithm with fast reconstruction and reliable accuracy. Recently, the signal recovery algorithm applied in WSNs was classified into two categories: (1) the basis pursuit (BP) which was proposed to find the ${l}_{1}$ minimization using linear programming, and (2) the iterative greedy pursuit, for example, the orthogonal matching pursuit (OMP), the stagewise OMP (StOMP) [24] and the compressive sampling matching pursuit (CoSaMP) [25]. Among them, BP requires the least number of measurements; however, its high computational complexity prevents it from being used for large scale applications. OMP and StOMP adopt a bottom-up approach in signal recovery, and their complexity levels are much lower than that of BP. However, they require more measurements and have a lack of recovery guarantee. CoSaMP adopts a top-down approach and can offer an acceptable recovery performance, similar to that of the BP method, but with a much lower recovery complexity. However, all these algorithms discussed above assume that the sparsity of the signal is known prior. These algorithms cannot be directly applied to the construction of a signal with unknown sparsity. For blind signal recovery with unknown sparsity, the most commonly applied algorithm is the sparsity adaptive matching pursuit (SAMP) [26], where the sparsity of signal and the true support of the signal is estimated stage by stage with the “divide and conquer” method. SAMP can also be viewed as a generalization of existing algorithms, such as OMP or CoSaMP. However, the design of an appropriate step variation to guarantee fast convergence and accuracy is still an open problem.

Different from aforementioned works, the aim of this work was to design an adaptive compressive sensing framework for periodical monitoring of WSNs. As we know, the most related work to this research is the intelligent compressive sensing scheme proposed in Refs. [27,28]. The main difference between our work and their works is the sparsity determination. In Ref. [27], sparsity was obtained with local correlations, and the signal was recovered by successive reconstruction applied at the sink node. In Ref. [28], the compressive sampling was applied in a single-hop IoT system, and a learning phase was designed at the central smart object to select the sparsity level. However, in our work, compressive sampling is applied in multi-hop wireless sensor networks, and the variation in the sparsity is determined by very few re-sampling iterations . Additionally, we present an improved SAMP to recover signal with unknown sparsity. The main contributions of this paper are summarized as follows:

- We propose an adaptive compressive sensing framework for periodical monitoring of WSNs, where a reconstruction error estimation module is designed to check whether the current sampling rate is still sufficient for signal reconstruction, and a sparsity determination module is designed to estimate the sparsity and calculate the required sampling rate at the next monitoring period.
- We propose an efficient sparsity variation determination algorithm, which can determine the current sparsity as well as the new sampling rate by only re-sampling a few measurements to save the energy cost and guarantee the recovery performance.
- We propose an improved SAMP algorithm to recover the signal with unknown sparsity, where both the linear and non-linear step size variation are designed to guarantee fast convergence and reliable accuracy.
- We evaluate the proposed algorithms with extensive simulations and study the impacts of multiple environmental factors, including the number of sensors and the different sampling rates. The simulation results show that our proposed algorithm could achieve substantial improvements compared with existing algorithms in terms of sparsity matching and signal recovery.

The remainder of this paper is organized as follows. Section II presents the mathematical details for the CS and data gathering. We propose our adaptive signal sampling method with unknown sparsity in Section III. The signal recovery algorithm is presented in Section IV. Section V presents the numerical results, and Section VI concludes the paper.

We consider a monitoring WSN consisting of N sensor nodes and a sink node, where the set of sensor nodes is denoted as $\mathcal{N}=\{1,...,N\}$, and the only sink node is denoted as S. We denote the monitoring period as P. Sensor nodes are distributed in the target area to sense the physical conditions and report the sensory reading to the sink node in each period ($p\in P$).

It is assumed that the sensed data for sensor node i ($i\in \mathcal{N}$) in time period p is ${x}_{i,p}$, and the signal of all the sensor nodes in time period p can be represented by an N-dimensional vector, ${\mathit{x}}_{p}={({x}_{1,p},\cdots ,{x}_{N,p})}^{T}$. It is said that ${\mathit{x}}_{p}$ is a k-sparse signal in domain ${\mathsf{\Psi}}_{p}$ if ${\mathit{x}}_{p}$ can be represented by a k-sparse vector, ${\mathit{d}}_{p}$, in domain ${\mathsf{\Psi}}_{p}$, and is given by
where ${\mathsf{\Psi}}_{p}=[{\psi}_{1,p};\cdots ;{\psi}_{N,p}]$ (${\psi}_{i,p}\in {\mathbb{R}}^{N}$) is the orthonormal basis, and ${\mathit{d}}_{p}$ represents the transform coefficients with only k non-zero values.

$${\mathit{x}}_{p}=\sum _{i=1}^{N}{d}_{i,p}{\psi}_{i,p}={\mathsf{\Psi}}_{p}{\mathit{d}}_{p}$$

The compressive sensing theory states that an N-dimensional signal with k-sparsity can be represented by M$(M<N)$ linearly projected measurements. Let $\Phi $ ($M\times N$) be the measurement matrix, ${\mathit{x}}_{p}$ can be given as

$${\mathit{y}}_{p}=\Phi {\mathit{x}}_{p}=\Phi {\mathsf{\Psi}}_{p}{\mathit{d}}_{p}.$$

According to Ref. [29], the exact recovery of ${\mathit{x}}_{p}$ can be achieved through solving the following combinatorial optimization problem:

$${\mathrm{min}}_{\mathit{x}\in {\mathbb{R}}^{N}}\left|\right|{\mathit{X}}_{p}{\left|\right|}_{{l}_{0}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\mathrm{s}.\mathrm{t}.\phantom{\rule{0.277778em}{0ex}}{\mathit{y}}_{p}=\Phi {\mathit{x}}_{p}.$$

This is an NP-hard problem, and it is hard to obtain the optimal solution. However, it is equivalent to the following ${l}_{1}$ optimization problem if the incoherence property between $\Phi $ and $\mathsf{\Psi}$ or the restricted isometry property (RIP) [30] of matrix $\Phi \mathsf{\Psi}$ satisfies

$${\mathrm{min}}_{\mathit{d}\in {\mathbb{R}}^{N}}\left|\right|{\mathit{d}}_{p}{\left|\right|}_{{l}_{1}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\mathrm{s}.\mathrm{t}.\phantom{\rule{0.277778em}{0ex}}{\mathit{y}}_{p}=\Phi \mathsf{\Psi}{\mathit{d}}_{p},{\mathit{x}}_{p}={\mathsf{\Psi}}_{p}{\mathit{d}}_{p}.$$

The above 1-minimization problem is more tractable and can be solved with linear programming (LP) techniques [31]. We can further obtain the recovered signal, $\widehat{{\mathit{x}}_{p}}$, with the known orthonormal basis, ${\mathsf{\Psi}}_{p}$.

With the above discussion, it is clear that applying CS to WSNs relies greatly on two important issues: First, how to choose or find an efficient orthonormal basis to represent the original signal. Generally, sensor readings are spatially smooth and sparse in the frequency domain; thus, we can use the wavelet transform or the discrete cosine transform can be applied to add sparsity to the original signal [14]. However, for signals with abnormal reading or transmission errors, it is hard to add sparsity in the frequency domain. To cope with this, sparse representation based on overcomplete dictionaries has been proposed [32]. With an overcomplete dictionary that contains prototype signal-atoms, signals are described by sparse linear combinations of these atoms. Various dictionary learning methods have been proposed in the literature. For example, the original (synthesis) K-SVD is one such method which allows the construction of an overcomplete dictionary that is suitable for sparse synthesis by learning the dictionary from the data itself [32]. After find a sparsity method, another problem in designing compressive sensing is how to design a measurement matrix ($\Phi $) such that a good RIP is attained. It has been shown that a random matrix with Gaussian variables complying to $N(1,\frac{1}{M})$ has a good RIP [33]. Algorithm 1 illustrates the process of compressed sampling with sampling rate M in detail. In this algorithm, each time a sensor (i) in period p has a value ${x}_{i,p}$ to transmit to the sink node, it first calculates a new value (${y}_{i,p}^{m}$) by multiplying value ${x}_{i,p}$ with a Gaussian variable, ${\varphi}_{i,p}^{m}$ ($1\le m\le M$). Then, this new value (${y}_{i,p}^{m}={\varphi}_{i,p}^{m}{x}_{i,p}$) is aggregated and transmitted along the path to the parent node (j). In this way, the transmitted data of sensor node j is the summation of ${y}_{j,p}^{m}$ and the value from all its children (${\sum}_{i\in {c}_{j}}{y}_{i,p}^{m}$), where ${c}_{j}$ is the set of children of sensor node i. Finally, the sink node receives the value as ${\sum}_{n}{\varphi}_{i,p}^{m}{x}_{i,p}$. This process is repeated until M linearly projected measurements are obtained, as shown in Figure 1. Similarly to Refs. [14,17,34], we assume the measurement coefficient ${\varphi}_{i,p}^{m}$ is generated using a pseudorandom number generator seeded with the identifier of node i, which means that the measurement matrix can be easily constructed locally at the node itself.

Algorithm 1: Compressive sampling with sampling rate M |

According to the CS theory in Ref. [33], when the number of measurements (M) satisfies $M\propto ck$ with a constant (c), the original signal with k-sparsity can be recovered with high probability. Due to the fact that the sparsity of a signal usually satisfies $k<<N$, it is clear that the amount of data transmission in CS-based data gathering is much smaller than that in these traditional methods; thus, reducing the communication costs and achieving energy efficiency during data gathering.

From the description of the CS based data gathering, it can be known that for a signal with k-sparsity, the optimal sampling rate should be at least $ck$ to guarantee the recovery accuracy and to save communication energy. However, for a signal with unknown sparsity, it is very challenging to select the optimal sampling rate to match the sparsity. In this section, we therefore propose an adaptive sampling mechanism for signals with variable sparsity. In our approach, we assume that the sparsity of the signal in period p, denoted as ${k}_{p}$, remains fixed during the entire period, as shown in Figure 2. However, at the starting time of the next period, its sparsity is re-examined, and the new sampling rate is determined corresponding to its new sparsity.

It should be noted that at the starting time of period $p+1$, it is hard to decide whether the previous sampling (${\alpha}_{p}$) still matches the sparsity of the signal at period $p+1$. A straightforward solution is to conduct raw data gathering with all active sensor nodes. This approach, however, results in the decrease of the network’s lifetime and is inefficient for networks with larger numbers of sensor nodes. Therefore, in order to determine the minimum sampling rate required to recover a signal with unknown sparsity, a compressive sampling method based on sequential observations is proposed.

${\widehat{\mathbf{x}}}^{M}$ is denoted as the recovered signal with sampling rate M. When noiseless measurements are taken using the random Gaussian ensemble, we have the following lemma [35].

For a Gaussian measurement ensemble, if ${\widehat{\mathbf{x}}}^{M+\alpha}={\widehat{\mathbf{x}}}^{M}$, then we can conclude that ${\widehat{\mathbf{x}}}^{M}=\widehat{\mathbf{x}}$ with a probability of 1.

According to Lemma 1, the recovered signals with M samples and $M+\alpha $ samples are first compared. If the samples match, we declare that these signals are correctly recovered. In a practical setting, most of the coefficients after orthogonal transformations are relatively small, rather than being exactly zero, which means only approximate sparseness is obtained. Thus, the recovery error between the original signal and the recovery with M sequential samples is given by [35]
where $\theta $ is the angle between vectors $\widehat{\mathbf{x}}$ and ${\widehat{\mathbf{x}}}^{M}$, and has the following approximation

$$\left|\right|\widehat{\mathbf{x}}-{\widehat{\mathbf{x}}}^{M}{\left|\right|}_{2}<\frac{\left|\right|{\widehat{\mathbf{x}}}^{M}-{\widehat{\mathbf{x}}}^{M+\alpha}{\left|\right|}_{2}}{sin\theta}$$

$$E\left(\frac{1}{sin\theta}\right)\ge \left|\right|{\widehat{\mathbf{x}}}^{M}-{\widehat{\mathbf{x}}}^{M+\alpha}{\left|\right|}_{2}\sqrt[]{\frac{N-M}{\alpha}}.$$

The recovery error can be further approximated as

$$\left|\right|\widehat{\mathbf{x}}-{\widehat{\mathbf{x}}}^{M}{\left|\right|}_{2}\approx \left|\right|{\widehat{\mathbf{x}}}^{M}-{\widehat{\mathbf{x}}}^{M+\alpha}{\left|\right|}_{2}\sqrt[]{\frac{N-M}{\alpha}}.$$

In our paper, the recovery error between ${\widehat{\mathbf{x}}}^{M}$ and ${\widehat{\mathbf{x}}}^{M+\alpha}$ is applied to determine the variation of the sparsity, and an adaptive sampling approach is proposed for the periodical monitoring of sensor networks.

In Algorithm 2, the process of the adaptive sampling is illustrated in detail. In this algorithm, ${M}_{p}$ is denoted as the sampling rate at period p. Initially, raw data gathering is applied, to obtain accurate sparsity of the entire signal. After that, at the starting time of period p, the sampled data obtained at period ${p}_{1}$, denoted as ${\mathbf{y}}_{\mathbf{p}-\mathbf{1}}^{{\mathbf{M}}_{\mathbf{p}}}$, is recovered as ${\widehat{\mathbf{x}}}^{M}$. Meanwhile, a data re-sampling operation is executed to get re-sampled data (${\mathbf{y}}_{\mathbf{p}}^{\mathbf{ff}}$) with a fixed number of sampling points as $\alpha $. After re-sampling, ${\mathbf{y}}_{\mathbf{p}}^{\mathbf{ff}}$ and ${\mathbf{y}}_{\mathbf{p}-\mathbf{1}}^{{\mathbf{M}}_{\mathbf{p}}}$ are further combined as ${\mathbf{y}}^{\mathbf{M}+\mathbf{ff}}$ and recovered as ${\mathbf{y}}^{\mathbf{M}+\mathbf{ff}}$ at the sink node. Therefore, the performances of ${\mathbf{y}}_{\mathbf{p}+\mathbf{ff}}$ and ${\mathbf{y}}_{\mathbf{ff}}$ are compared to decide whether the gap between them is larger than the predefined threshold (${T}_{th}$). If it is detected that the recovery gap is smaller than ${T}_{th}$, it is concluded that the sparsity is the same as that in period ${p}_{1}$, and the sampling rate in period p is set as ${M}_{p}={M}_{p-1}$. If it is detected that the recovery gap is larger than ${T}_{th}$, the novel sparsity is calculated. Due to fact that re-sampling with a fixed sampling rate ($\alpha $) may be unable to recover the original signal, extra sampling with sampling rate ${\alpha}_{s}$ is executed, where ${\alpha}_{s}=\beta \left|\right|{\widehat{\mathbf{x}}}^{M}-{\widehat{\mathbf{x}}}^{M+\alpha}{\left|\right|}_{2}-\alpha $, and $\beta $ is a scale coefficient related to the recovery gap. From the expression of ${\alpha}_{s}$, it is known that the larger the gap is, the more re-sampling iterations needed to obtain its new sparsity level. After that, the sampling rate for period p is determined and broadcast to all the sensor nodes. Similar to Refs. [14,17], it is assumed that the signal recovery and sparsity estimation are conducted at the sink node, and only the determined sparsity is sent back to each sensor node, thus reducing the energy consumption of each sensor node. It should be noted that our algorithm adopts the same data gathering procedure (shown in Algorithm 1) as that of traditional compressive based methods. The only difference lies in the degree to which the sampling rate corresponds with the signal variation, which means that the data transmission delay is almost the same. Compared with raw data gathering, the time consumed in compressive data transmission is much longer, which is mainly because compressive based data gathering needs to occur on the same date M times. However, it should be noted that compressive based data gathering obtains balanced energy consumption among all sensor nodes, and has a much longer network lifetime than raw data gathering. For clarity, Figure 3 illustrates the detailed process of how to decide the sparsity at period p.

Algorithm 2: Adaptive compressive sampling |

In sequential-based data gathering, signal recovery requires the use of non-linear algorithms to find the sparsest signal from the measurements. One challenging question in CS research is the design of a fast reconstruction algorithm with reliable accuracy and (nearly) optimal theoretical performance. The existing signal recovery algorithms always require the signal sparsity first. For signals with unknown sparsity, the sparsity adaptive matching pursuit (SAMP) has already been widely used to recover many blind signals with unknown sparsity.

In contrast to other state-of-the-art greedy algorithms, SAMP takes advantage of both the “bottom-up” approach and the “top-down” approach, where the “bottom-up” method is applied to estimate the sparsity of the signal, step-by-step, and the “top-down” method is applied to identify the true support of the signal by backtracking strategy. Figure 4 shows the conceptual diagram of SAMP, and it can be observed that the sizes of the candidate set ($|{C}_{k}|$) and finalist ($|{F}_{k}|$) are adaptive. However, the recovery accuracy and speed of SAMP highly relies on the step size (s). In order to avoid overestimation, the safest choice is to set s as 1 for an unknown k, but many more iterations are needed for convergence. How to provide a recovery accuracy with fast convergence speed has become a major challenge.

In this paper, we propose an adaptive step decision that corresponds with the number of iterations. The step size at iteration t is denoted as ${s}_{t}$, which is given by
where ${\omega}_{t}$ is the weight factor employed to regulate the trade-off between the speed and accuracy, and ${\Delta}_{t}$ is the fixed step difference between any two adjacent iterations.

$${s}_{t}={s}_{t}+{\omega}_{t}{\Delta}_{t}$$

In our paper, two step variation approaches are proposed: the linear decrement weight factor and the non-linear decrement weight factor. For the linear weight factor decrement approach, the weight factor is given by
where ${\omega}_{max}$ and ${\omega}_{min}$ are the maximum and minimum weight factors, and ${T}_{max}$ is the maximum number of iterations. For the non-linear weight factor decrement approach, the weight factor is given by
where the parameter $\lambda $ is applied to control the convergence speed, and ${\omega}_{t}$ decreases with an increase in $\lambda $. In constrast to the linear weight factor decrement, the decrease in the step size is much smaller than that with the linear method, reducing the possibility of getting the local optimal solution.

$${\omega}_{t}={\omega}_{max}-\frac{{\omega}_{max}-{\omega}_{min}}{{T}_{max}}t$$

$${\omega}_{t}={\omega}_{max}-{\left(\frac{t-1}{{T}_{max}-1}\right)}^{\lambda}({\omega}_{max}-{\omega}_{min})$$

Algorithm 3 presents the detailed pseudo code of the proposed recovery algorithm with an adaptive step. Here, ${\Phi}^{*}$ represents the transpose of matrix $\Phi $, ${\Phi}^{\u2020}$ represents the Moore–Penrose inverse of matrix $\Phi $, s represents the step size of the finalist, and the function $Max(\mathcal{F},s)$ returns s elements corresponding to the largest absolute value of vector $\mathcal{F}$. Additionally, for a set $\Lambda =\{1,2,\cdots ,N\}$, ${\Phi}_{\Lambda}$ is the sub-matrix of $\Phi $ with indices ($i\in \Lambda $). At the s-th iteration, ${S}_{t}$, ${C}_{t}$, ${F}_{t}$, and ${r}_{t}$ denote the shortlist, the candidate list, the finalist, and the observation residual. In this paper, the maximum iteration time (${T}_{max}$) is set as the stopping rule, and the recovering threshold ($\u03f5$) is applied as the halting condition.

Algorithm 3: Adaptive compressive sampling |

In this section, we provide numerical results to illustrate the performance of our proposed algorithm. We consider a WSN with a fixed sink node and no more than 400 sensor nodes randomly deployed in a square area of size 500 × 500. It is assumed that the sink node is located in the center of the area. The initial energy of each sensor node was set to 10,800 J. The corresponding simulations were implemented in Matlab R2009a using a laptop with an Intel (i5-4300) CPU. All the results were obtained by averaging over 100 simulations.

First, we took the raw signals from the real ocean temperature monitored by the National Oceanic and Atmospheric Administration (NOAA) for the sparsity analysis. For instance, Figure 5a shows the sea temperature monitoring data collected at half past 6, February 23, 2012 in the location of 5 N, 95 W. This data contains 1040 temperature measurements at different depths. From Figure 5a, it can be observed that the signal in the time domain is not sparse. We therefore used the Discrete Wavelet Transform (DWT) to find its sparsity. As shown in Figure 5b, it can be observed that the raw data has good sparsity in the DWT domain—it only has 76 non-zero values. We thus conclude that it is a 76-sparse signal in DWT domain. We further took a raw RSSI measurement of an access point (AP) from a smartphone detected in a real environment [36]. Due to the channel-path fading and interference from nearby equipment, it was hard to find an orthonormal basis from the DWT domain, as shown in Figure 6a. We thus applied the K-SVD algorithm based on an overcomplete dictionary to sparse it. Figure 6b shows that the raw data has good sparsity with the K-SVD algorithm. It has 13 non-zero zones, which also showcase that the RSSI value is concentrated on 13 parts.

Considering that signal sampling rate greatly relies on signal sparsity, and the number of sampling times M should satisfy $M\propto ck$, we compared the signal recovery performance with different c values. The measurement matrix $\Phi $ was constructed by creating an $M\times N$ matrix with i.i.d. draws of a Gaussian distribution ($N(0,1)$). The recovered signals with different sampling rates are shown in Figure 7, Figure 8 and Figure 9, where Figure 7 illustrates the signal recovery with a sparsity of $k=76$ in the DWT domain, Figure 8 illustrates the signal recovery with a sparsity of $k=122$ in the DWT domain, and Figure 9 illustrates the signal recovery of the RSSI data with an unknown sparsity in the DWT domain, but it can be sparsed with an overcomplete dictionary with a sparsity of $k=13$. From these figures, it can be observed that as the signal recovery performance increases, the sampling rate c increases . This can be explained by the fact that a larger sampling rate c results in a larger measurement matrix ($\Phi $), and thus, more energy is consumed in data gathering. Besides that, it was observed that for signals sparsed at the frequency domain, the recovered signal is almost the same as the raw data when the sampling rate is larger than $2k$. However, for signals with an unknown sparsity at the frequency domain, the sampling rate should be set larger than $4k$. Therefore, in this paper, when a signal could be sparsed at the frequency domain, and its sparsity was k, we set the sampling rate as $2k$, whereas for signals that could not be sparsed at the frequency domain and for which the sparsity (k) was detected at the overcomplete dictionary, we set the sampling rate as $4k$. With this scheme, for the signals shown in Figure 7 and Figure 8, the sampling rates were set as $2\times 76$ and $2\times 122$, which means the size of the measurement matrices ($\Phi $) were $152\times 1024$ and $244\times 1024$. For the signals shown in Figure 9, the sampling rate was set as $4\times 13$, and the size of its corresponding measurement matrix ($\Phi $) was $52\times 132$, respectively.

In this simulation, we tested the performance of our algorithm for signals with dynamic sparsities. We considered a 200-node wireless sensor network, and applied Dijkstra as the routing algorithm. We compared our algorithm with the fixed sampling algorithm proposed in Ref. [13]. Figure 10 plots the sparsity estimation in the first 30 monitoring periods. Figure 11 plots the recovery performance in the first 30 monitoring periods. From Figure 10, it can be observed that during the time between the 10th and 15th periods, the sparsity of the signal changed. However, the fixed sampling method still uses a sampling rate settled at the initial state and cannot guarantee the required recovery performance. Compared with the fixed sampling algorithm, our algorithm always captured the variation in the sparsity; the estimated sparsity was almost the same as the real sparsity. Our algorithm obtained a much lower recovery error rate despite the changes in the environment, which shows that it is important to apply an adaptive sampling rate for the periodical monitoring of sensor networks.

Considering that $\alpha $ extra data sampling is needed to estimate the sparsity in each period, we further tested the energy consumption and network lifetime performances and compared them with other algorithms. Here, the intelligent sampling represents the algorithm proposed in Ref. [27]. Figure 12 plots the energy consumption of each node in the 200-node sensor network in one working period. It can be observed that our algorithm obtained more balanced energy consumption compared with raw data gathering algorithm. Figure 13 plots the network lifetime comparison versus the number of sensor nodes. It can be observed that our algorithm achieved nearly the same network lifetime as that of fixed sampling or intelligent sampling. This can be explained by the fact that although adaptive sensing requires extra data gathering at the start time of each monitoring period, its sampling rate may be lower than the other two algorithms during the following sampling period. It can also be observed that our algorithm obtained a much longer network lifetime than that of raw data gathering, which shows that compressive sensing is an efficient data gathering method in wireless sensor networks.

This simulation presents the signal recovery performance with unknown sparsities in a 200-node sensor network. Our algorithm was compared with the regularized orthogonal matching pursuit (ROMP), SAMP, and regularized adaptive matching pursuit (RAMP) [37]. We evaluated the reconstruction performance by using the averaged relative error (Re) and signal-to-noise ratio (SNR), where the relative error was defined as the average of $\mathrm{Re}=\frac{{\left|\right|\mathbf{x}\left|\right|}_{\mathbf{2}}}{\left|\right|\widehat{\mathbf{x}}-\mathbf{x}{\left|\right|}_{\mathbf{2}}}$ over 100 trials, and SNR was defined as $\mathrm{SNR}=10{log}_{10}Re$. Figure 14 and Figure 15 plot the signal recovery performance with different algorithms. It was observed that the signal recovery performance can be substantially improved with an increase in sampling rate. It was also observed that our algorithm obtained a similar performance with linear or non-linear factors. Table 1 further shows a comparison of the convergence times. From this table, it can be observed that our algorithm took no more than 0.5 s to converge for the optimal solutions, while the traditional SAMP with step = 1 (denoted as SAMP-1 in Table 1) needed nearly 0.5 s and the SAMP with step = 3 (denoted as SAMP-3 in Table 1) needed about 0.1 s. This shows that our algorithm not only improves the recovery performance, but also converges much faster than the traditional SAMP method.

We further tested the recovery performance with different sensor deployment densities and compared it with different sampling algorithms. Figure 16 plots the SNR versus the number of sensor nodes. Combined with the results shown in Figure 13 and Figure 16, it can be concluded that although our algorithm obtained a lower network lifetime compared with other compressive sampling methods, it obtained the best recovery performance. In addition, the SNR value was almost the same as that of raw data gathering. However, our algorithm was much more energy efficient than that of raw data gathering.

In this paper, we presented an adaptive sampling data gathering scheme for the periodical monitoring of wireless sensor networks. We developed a sequential observation based scheme to observe the variation in sparsity with fewer re-sampling measurements. We designed an adaptive construction step determination to improve the performance of SAMP in which both linear and non-linear step variation were designed to guarantee fast convergence and accuracy. Our simulation results demonstrate that our algorithm can efficiently capture the sparsity variation, and obtain greater recovery performance compared with existing compressive sensing methods with fixed sampling or intelligent sampling. It also obtains a much longer network lifetime than the traditional data gathering algorithm.

Conceptualization, J.C. Methodology, J.C., J.J., and Y.D. Project administration, J.J., and X.W., Supervision, A-H.A. Writing, original draft, J.C.

This work is supported by the National Natural Science Foundation of China under Grants No. 61772126, 61402096, 61173153, and 61572123, and in part by the National Key R&D program of China under Grant 2018YFC0830600, in part by the Natural Science Foundation of Liaoning Province under Grant 20180520012, in part by the Fundamental Research Funds for the Central Universities under Grants N171804002 and N171613012.

The authors declare no conflict of interest.

- Yao, Y.; Cao, Q.; Vasilakos, A.V. EDAL: An energy-efficient, delay-aware, and lifetime-balancing data collection protocol for heterogeneous wireless sensor networks. IEEE ACM Trans. Netw.
**2015**, 23, 810–823. [Google Scholar] [CrossRef] - Ren, J.; Zhang, Y.; Zhang, K.; Liu, A.; Chen, J.; Shen, X.S. Lifetime and Energy Hole Evolution Analysis in Data-Gathering Wireless Sensor Networks. IEEE Trans. Ind. Inform.
**2016**, 12, 788–800. [Google Scholar] [CrossRef] - Azam, I.; Javaid, N.; Ahmad, A.; Abdul, W.; Almogren, A.; Alamri, A. Balanced Load Distribution With Energy Hole Avoidance in Underwater WSNs. IEEE Access
**2017**, 5, 15206–15221. [Google Scholar] [CrossRef] - Jia, J.; Wu, X.; Chen, J.; Wang, X. Exploiting sensor redistribution for eliminating the energy hole problem in mobile sensor networks. Eur. J. Wireless Commun. Netw.
**2012**, 2012, 68. [Google Scholar] [CrossRef][Green Version] - Deng, Y.; Wang, L.; Elkashlan, M.; Renzo, M.D.; Yuan, J. Modeling and Analysis of Wireless Power Transfer in Heterogeneous Cellular Networks. IEEE Trans. Commun.
**2016**, 64, 5290–5303. [Google Scholar] [CrossRef] - Jia, J.; Chen, J.; Deng, Y.; Wang, X.; Aghvami, A.H. Joint Power Charging and Routing in Wireless Rechargeable Sensor Networks. Sensors
**2017**, 17, 2290. [Google Scholar] [CrossRef] [PubMed] - Liu, X.Y.; Zhu, Y.; Kong, L.; Liu, C.; Gu, Y.; Vasilakos, A.V.; Wu, M. CDC: Compressive Data Collection for Wireless Sensor Networks. IEEE Trans. Parallel Distrib. Syst.
**2015**, 26, 2188–2197. [Google Scholar] [CrossRef] - Yuen, K.; Liang, B.; Baochun, L. A Distributed Framework for Correlated Data Gathering in Sensor Networks. IEEE Trans. Veh. Technol.
**2008**, 57, 578–593. [Google Scholar] [CrossRef][Green Version] - Ciancio, A.G.; Pattem, S.; Ortega, A.; Krishnamachari, B. Energy-Efficient Data Representation and Routing for Wireless Sensor Networks Based on a Distributed Wavelet Compression Algorithm. In Proceedings of the 5th International Conference on Information Processing in Sensor Networks, Nashville, TN, USA, 19–21 April 2006; pp. 309–316. [Google Scholar]
- Zheng, H.; Yang, F.; Tian, X.; Gan, X.; Wang, X.; Xiao, S. Data Gathering with Compressive Sensing in Wireless Sensor Networks: A Random Walk Based Approach. IEEE Trans. Parallel Distrib. Syst.
**2015**, 26, 35–44. [Google Scholar] [CrossRef] - Hwang, S.; Ran, R.; Yang, J.; Kim, D.K. Multivariated Bayesian Compressive Sensing in Wireless Sensor Networks. IEEE Sens. J.
**2016**, 16, 2196–2206. [Google Scholar] [CrossRef] - Eldar, Y.; Kutyniok, G. Compressed Sensing: Theory and Applications; Cambridge University Press: Cambridge, UK, 2012; pp. 1289–1306. [Google Scholar]
- Luo, C.; Wu, F.; Sun, J.; Chen, C.W. Compressive data gathering for large-scale wireless sensor networks. In Proceedings of the International Conference on Mobile Computing and NETWORKING, Beijing, China, 20–25 September 2009; pp. 145–156. [Google Scholar]
- Luo, C.; Wu, F.; Sun, J.; Chen, C.W. Efficient Measurement Generation and Pervasive Sparsity for Compressive Data Gathering. IEEE Trans. Wirel. Commun.
**2010**, 9, 3728–3738. [Google Scholar] [CrossRef][Green Version] - Caione, C.; Brunelli, D.; Benini, L. Distributed Compressive Sampling for Lifetime Optimization in Dense Wireless Sensor Networks. IEEE Trans. Ind. Inform.
**2012**, 8, 30–40. [Google Scholar] [CrossRef] - Xiang, L.; Luo, J.; Vasilakos, A. Compressed Data Aggregation for Energy Efficient Wireless Sensor Networks. In Proceedings of the 8th Annual IEEE Communications Society Conference on Sensor, Mesh and Ad Hoc Communications and Networks, Salt Lake City, UT, USA, 27–30 June 2011; pp. 46–54. [Google Scholar]
- Xie, R.; Jia, X. Transmission-Efficient Clustering Method for Wireless Sensor Networks Using Compressive Sensing. IEEE Trans. Parallel Distrib. Syst.
**2014**, 25, 806–815. [Google Scholar] - Xue, T.; Dong, X.; Shi, Y. Multiple Access and Data Reconstruction in Wireless Sensor Networks Based on Compressed Sensing. IEEE Trans. Wirel. Commun.
**2013**, 12, 3399–3411. [Google Scholar] [CrossRef] - Chen, W.; Wassell, I.J. Optimized Node Selection for Compressive Sleeping Wireless Sensor Networks. IEEE Trans. Veh. Technol.
**2016**, 65, 827–836. [Google Scholar] [CrossRef] - Masoum, A.; Meratnia, N.; Havinga, P.J.M. A Distributed Compressive Sensing Technique for Data Gathering in Wireless Sensor Networks. Proc. Comput. Sci.
**2013**, 21, 207–216. [Google Scholar] [CrossRef][Green Version] - Lindberg, C.; Amat, A.G.I.; Wymeersch, H. Compressed Sensing in Wireless Sensor Networks without Explicit Position Information. IEEE Trans. Signal Inform. Proc. Over Netw.
**2017**, 3, 404–415. [Google Scholar] [CrossRef] - Li, S.; Xu, L.D.; Wang, X. Compressed Sensing Signal and Data Acquisition in Wireless Sensor Networks and Internet of Things. IEEE Trans. Industr. Inform.
**2013**, 9, 2177–2186. [Google Scholar] [CrossRef][Green Version] - Yin, M.; Yu, K.; Wang, Z. Compressive Sensing Based Sampling and Reconstruction for Wireless Sensor Array Network. Math. Prob. Eng.
**2016**. [Google Scholar] [CrossRef] - Donoho, D.L.; Tsaig, Y.; Drori, I.; Starck, J. Sparse Solution of Underdetermined Systems of Linear Equations by Stagewise Orthogonal Matching Pursuit. IEEE Trans. Inf. Theory
**2012**, 58, 1094–1121. [Google Scholar] [CrossRef] - Needell, D.; Tropp, J.A. CoSaMP: Iterative Signal Recovery From Incomplete and Inaccurate Samples. Appl. Comput. Harmonic Anal.
**2008**, 26, 301–321. [Google Scholar] [CrossRef] - Do, T.T.; Gan, L.; Nguyen, N.P.; Tran, T.D. In Proceedings of the Sparsity Adaptive Matching Pursuit Algorithm for Practical Compressed Sensing, Pacific Grove, CA, USA, 26–29 October 2008; pp. 581–587.
- Wang, J.; Tang, S.; Yin, B.; Li, X.Y. Data gathering in wireless sensor networks through intelligent compressive sensing. Proc. IEEE Infocom.
**2012**, 131, 603–611. [Google Scholar] - Fragkiadakis, A.; Charalampidis, P.; Tragos, E. Adaptive compressive sensing for energy efficient smart objects in IoT applications. In Proceedings of the International Conference on Wireless Communications, Vehicular Technology, Information Theory and Aerospace & Electronic Systems, Aalborg, Denmark, 11–14 May 2014. [Google Scholar] [CrossRef]
- Candes, E.J.; Romberg, J.K.; Tao, T. Robust uncertainty principles: Exact signal reconstruction from highly incomplete frequency information. IEEE Trans. Inf. Theory
**2006**, 52, 489–509. [Google Scholar] [CrossRef] - Candes, E.J.; Tao, T. Decoding by linear programming. IEEE Trans. Inf. Theory
**2005**, 51, 4203–4215. [Google Scholar] [CrossRef][Green Version] - Donoho, D.L. Compressed sensing. IEEE Trans. Inf. Theory
**2006**, 52, 1289–1306. [Google Scholar] [CrossRef] - Aharon, M.; Elad, M.; Bruckstein, A. K-SVD: An Algorithm for Designing Overcomplete Dictionaries for Sparse Representation. IEEE Trans. Signal Process.
**2006**, 54, 4311–4322. [Google Scholar] [CrossRef] - Candes, E.J.; Tao, T. Near-Optimal Signal Recovery From Random Projections: Universal Encoding Strategies? IEEE Trans. Inf. Theory
**2006**, 52, 5406–5425. [Google Scholar] [CrossRef][Green Version] - Haupt, J.; Bajwa, W.U.; Rabbat, M.; Nowak, R. Compressed Sensing for Networked Data. IEEE Signal Process. Mag.
**2008**, 25, 92–101. [Google Scholar] [CrossRef][Green Version] - Malioutov, D.M.; Sanghavi, S.; Willsky, A.S. Compressed Sensing With Sequential Observations. Las Vegas, NV, USA, 31 March–4 April 2008; pp. 3357–3360. [Google Scholar]
- Zhang, M.; Wen, Y.; Chen, J.; Yang, X.; Gao, R.; Zhao, H. Pedestrian Dead-Reckoning Indoor Localization Based on OS-ELM. IEEE Access
**2018**, 6, 6116–6129. [Google Scholar] [CrossRef] - Davenport, M.A.; Wakin, M.B. Analysis of Orthogonal Matching Pursuit Using the Restricted Isometry Property. IEEE Trans. Inf. Theory
**2010**, 56, 4395–4401. [Google Scholar] [CrossRef][Green Version]

Algorithm | ROMP | SAMP-1 | SAMP-3 | RAMP | LA-SAMP | nLA-SAMP |
---|---|---|---|---|---|---|

Time(s) | 0.344 | 1.622 | 0.542 | 0.453 | 0.437 | 0.438 |

© 2018 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).