## MuSA: Multivariate Sampling Algorithm for Wireless Sensor Networks

Andre L. L. Aquino, Orlando S. Junior, Alejandro C. Frery, ´ Edler Lins de Albuquerque, and Raquel A. F. Mini

Abstract -Awireless sensor network can be used to collect and process environmental data, which is often of multivariate nature. This work proposes a multivariate sampling algorithm based on component analysis techniques in wireless sensor networks. To improve the sampling, the algorithm uses component analysis techniques to rank the data. Once ranked, the most representative data is retained. Simulation results show that our technique reduces the data keeping its representativeness. In addition, the energy consumption and delay to deliver the data on the network are reduced.

Index Terms -Wireless sensor network, multivariate sampling, component analysis.

✦

## 1 INTRODUCTION

T scribed by variables such as temperature, pressure, HE world around us has a variety of phenomena deand humidity, which can be monitored by devices able of sensing, processing, and communicating. Such devices, working cooperatively, are termed wireless sensor networks (WSNs) [1]. A characteristic that distinguishes WSNs from other networks is that nodes have very limited resources. The nodes that comprise the network are equipped with batteries and, in many applications, they will be placed in remote areas, preventing access to those elements for maintenance. In this scenario, the lifetime of the network depends on the amount of energy available to the nodes and, therefore, this limited resource must be carefully managed in order to increase the network lifetime.

The sensed data could be distinguished as univariate or multivariate. Univariate data represent samples of the same scalar phenomenon, e.g., a node that monitors only the temperature. Samples of different phenomena can be described by multivariate data. These samples are originated from different sensors in the same node. For example, a node may have sensors that monitor temperature, pressure, and humidity simultaneously.

The sampling process in WSNs can be performed in two ways, either by the sensor, or by the software after the sensing task. Direct sensor sampling, generally, cannot be reconfigured on-line and it is regular, i.e., the

- · A. Aquino and A. Frery are with the Computer Institute, Federal University of Alagoas, Brazil.

E-mail: alla@ic.ufal.br, acfrery@gmail.com

- · O. Junior and R. Mini are with the Department of Computer Science, Pontifical Catholic University of Minas Gerais, Brazil. E-mail: orlandosj@gmail.com, raquelmini@pucminas.br
- · E. Albuquerque is with the Department of Administration and Industrial Chemical Processes, Federal Institute of Bahia, Brazil. E-mail: edler@ifba.edu.br

device is configured to take samples in regular times. Sampling by the software is more flexible, and may be tailored to meet the application requirements. For instance, when the node has not enough energy to send data, the software could reduce the amount of data to be sent to a minimum. In this paper we consider software sampling of multivariate data under energy constraints.

Based on these aspects, this work presents a Mu ltivariate S ampling A lgorithm (MuSA) for WSNs. MuSA uses component analysis to rank the multivariate data sensed considering only the first component scores. Based on this ranking, the sampling is performed, alleviating redundancies and maintaining the data representativeness. Two hypotheses are considered: (i) the use of component analysis techniques to classify the multivariate data can assist the sampling maintaining its representativeness; and (ii) the energy consumption and messages delay on the network can be reduced throughout this sampling strategy. We show evidence that these hypotheses are valid.

MuSA can be used in applications where the sensed data is multivariate. Different component analysis techniques are available, allowing a fine tuning aiming to achieve better representativeness. The proposal's only requirement is that the data are stationary within the observation window, but they are allowed to change their distribution among disjoint observation epochs. Even if this assumption is not verified, the only impact on the procedure may be reducing its efficiency.

MuSA is based on a previous short conference paper by Junior et al. [2]. The main improvements with respect to that publication are: (i) the use of different component analysis (PCA, ICA, and robust PCA), since the previous version considered only PCA; (ii) the proposition of a general sensor system model considering multivariate data; (iii) the use of pseudo-real data in order to make a quantitative assessment in situations with and without departures from the underlying distribution; (iv) three

distributions were used to simulate the data, namely, the Gaussian, the Skew Gaussian and the Student t laws; and (v) the network behaviour is assessed in different scenarios. The analysis of similar proposals with MuSA is also enhanced in this article.

This paper is organized as follows. Section 2 comments related work. Section 3 discusses multivariate sampling characterization in WSNs. Section 4 presents the multivariate sampling algorithm (MuSA). Section 5 analyses simulation results regarding data representativeness. Section 6 shows how a network behaves using MuSA. Section 7 discuss the evaluations remarks. Finally, Section 8 concludes with future research directions.

## 2 RELATED WORK

Adaptive sampling, which considers general models for sampling or uses algorithms that perform adaptive prediction not based on models of prior knowledge [3], [4], has been used for univariate data. A similar approach, used for data reduction in WSNs, is the aggregation: each node decides whether or not to summarize the data, considering its energy level and the time for information delivery [5], [6]. Another technique is the data stream based reduction, in which the data is characterized as a stream of information, and specific sampling strategies are applied [7], [8]. Other similar strategies in WSNs are data fusion [9], data compression [10] and collaborative processing [11]. The use of these strategies is motivated by the interest in efficient data gathering in WSNs [12], [13]. It is important to highlight that, differently from our approach, none of these proposals considers multivariate data nor their correlation. In addition, these proposals are used in specific scenarios and they are not based on a general sensor system formulation.

Few techniques consider multivariate data. Seo et al. [14], compare different methods:

- · Discrete Wavelet Transformation: it uses a hierarchical decomposition to process signals.
- · Hierarchical Clustering: it partitions objects in groups according to their similarity.
- · Sampling: it reduces the volume of data keeping a few samples and discarding the rest.
- · Singular Value Decomposition: it performs a linear transformation of the data.

Regarding component analysis techniques, the most frequently employed methods to process multivariate data in WSNs are the Principal Component Analysis (PCA) and Independent Component Analysis (ICA). Cvejic et al. [15] present an ICA-based algorithm to improve the fusion of surveillance images. The method combines PCA and ICA to reduce the data. Li and Zhang [16] propose a PCA-based algorithm to reduce multivariate data in WSNs. The main goal is to improve transmission and management of large-size vibration sensor in structural health monitoring systems. Roy and Vetterli [17] use PCA to reduce data in audio applications. Specific applications of multivariate processing consider, for instance, satellite remote sensing images [18], [19] or preprocessing data [20]. Notice that our work, differently from previous ones, proposes an algorithm to perform multivariate data sampling in Wireless Sensor Networks. Additionally, our work allows choosing different component analysis techniques, so the algorithm can be easily tailored to obtain the desired performance according to the application. Such fine tuning will allow sending only the most relevant data to the sink.

## 3 MULTIVARIATE SAMPLING CHARACTERIZATION IN WSNS

A general sensor system can be modelled according to the diagram presented in Fig. 1.

/d47

/d47

/d47

/d47

/d47

/d47

/d47

/d47

/d15

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0501v1-figure-c78b248d-3616-4bd0-94b5-8c2718c28aa5.jpg)

/d15

/d15

/d15

Fig. 1. Representation of a WSN system.

̂

In this diagram, which is based on the one presented by Frery et al. [21], N represents the environment and the process to be measured. The study is restricted to (denoted as ' ') | E , the time-space domain and topological characteristics of the monitored area. The phenomenon of interest is P , and V is its domain, i.e., V is the set of all possible phenomena. An example of this model is a forest ( N ), with our attention restricted to a critical area E where the occurrence of fire is not acceptable. The phenomenon of interest could be the pair 'temperaturehumidity', with infinite precision in space, time and the measures.

If noise-free observations were available without loss of information, a set of ideal rules ( R ) leading to ideal decisions ( D ) would be devised. Fully dependable and precise measures of temperature and humidity would lead to such decision rules, for instance when to send forest rangers. Due to the complexity of the systems in which the WSNs operate, this is unachievable.

The following sections present the more realistic model we will discuss.

## 3.1 Sensory behaviour

Instead of the ideal situation, a set of o observer nodes, S = ( S , . . . , S 1 o ) is deployed to perform a sampling over V . Each node S i is aware of its position ( h i ), and the operations it can perform are described by a characteristic function k i . In Fig. 1, h denotes the collection of all positions, and k denotes the set of all characteristic functions.

One of such operations is sensing. If the phenomenon of interest can be described by the function f , say

humidity (in mg /m 3 ) and temperature (in Celsius degrees) at instant t , i.e., f ( ) t = ( f , f 1 2 )( ) t , a node will record instantaneous values proportional to the integral of f ( ) t within a nearby area. Another operation the node can perform is the local computation of the Angstrom in-˚ dex [22] which is a simple fire-danger rating system given by

$$f _ { 3 } ( t ) = \frac { f _ { 1 } ( t ) } { 2 0 } + \frac { 2 7 - f _ { 2 } ( t ) } { 1 0 }.$$

With this, the data available to node S i depends on its location h i , and can be denoted as

$$\text{s} _ { i } ( f ( t ) ) = k _ { i } ( f _ { 1 }, f _ { 2 } ) ( t ) = \left ( f _ { 1 } ( h _ { i } ), f _ { 2 } ( h _ { i } ), f _ { 3 } ( h _ { i } ) \right ) ( t ). \quad \text{$\text{$\text{$bot$}$}$} \\ \text{Each component represents, respectively, the ideal (point} \quad \text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text	$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text
$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text#$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text}$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text'$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text`$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text.$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text<$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\textf$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\texts$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text1$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text $\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\textc$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text51$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$\text{$$$

Each component represents, respectively, the ideal (point wise) temperature, the ideal humidity, and the ideal ˚ ngstrom A index at instant t as recorded in h i . Node localization is a important issue in wireless sensor networks [23]. However, its study is outside the scope of this work. We consider that the best solution for node localization could be used without compromising the multivariate reduction performed. This occurs because all nodes will execute the same localization algorithm, so the energy consumption and processing will increase proportionally in all nodes.

Another node S j that monitors the same quantities could have its operation characterized by

$$s _ { j } & ( f ( t ) ) = k _ { j } ( f _ { 1 }, f _ { 2 } ) ( t ) & \quad \text{W} \\ & = \left ( \int _ { d _ { 1, j } } f _ { 1 }, \int _ { d _ { 2, j } } f _ { 2 }, \frac { \int _ { d _ { 1, j } } f _ { 1 } } { 2 0 } + \frac { 2 7 - \int _ { d _ { 2, j } } f _ { 2 } } { 1 0 } \right ) ( t ), \quad \text{Med} \\ \dots \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \ dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots \, \Delta \, \dots.$$

where the domains of integration are d 1 ,j ∈ R and d 2 ,j ∈ R + . Differently from the previous sensor, this last one performs records of the resulting values which are found by integrating the signal in a nearby region of capturing. Notice that different domains of integration are considered for each the temperature and the humidity, namely d 1 ,j and d 2 ,j . Thus, more realistic measures of the temperature, humidity, and Angstrom index where ˚ found.

Assuming that all nodes record these three values, namely humidity, temperature, and Angstrom index, in ˚ a synchronized fashion, the collection of o nodes samples the phenomenon f at o positions, and each position yields a multivariate observation. Each observation belongs to R + × R × R .

The collection of all multivariate observations is of the form ( s 1 , . . . , s o )( ) t , where each s j is given by previous equation, so the network records a point in ( R + × R × R ) o at each instant.

If n instants are recorded, namely, t 1 , . . . , t n , the information captured by the network is

$$\text{red by the network is} \\ \left ( \begin{array} { c } ( s _ { 1 }, \dots, s _ { o } ) ( t _ { 1 } ) \\ ( s _ { 1 }, \dots, s _ { o } ) ( t _ { 2 } ) \\ \vdots \\ ( s _ { 1 }, \dots, s _ { o } ) ( t _ { n } ) \end{array} \right ),$$

which is a 3 × o × n -fold real-valued vector. We assume that the data is stationary in each temporal window of size n . The technique we propose allows changes in distribution (mean, variance and covariance structure etc.) among windows, since all procedures are built from scratch for each n -tuple dataset.

This is a highly redundant set of data with values in V ′ = ( ( R + × × R R ) o ) n . The redundancy is spatial (nearby observations are likely similar), temporal (measures in t i and t i +1 are likely similar) and local (in our example, the triplet in each node can be reduced to a pair of values without loss of information). Data reduction is, therefore, both feasible and desirable in order to prevent power depletion and, with it, the death of the network.

More generally, instead of three, we will consider p real variables available in each node, having, thus, a p × o × n data set.

## 3.2 Data reduction

Using the whole V ′ may be infeasible, so some data reduction should be applied. As discussed earlier, sending large amounts of data can be very costly in terms of energy and bandwidth. Besides that, messages delivery time may suffer from excessive delay, rapidly degrading the network lifetime.

We propose sampling techniques for reducing the delay and energy consumption. As outlined in Fig. 1, multivariate data sampling strategy is a transformation of the form

$$\Psi \colon \mathbb { R } ^ { p \times o \times n } \rightarrow \mathbb { R } ^ { p \times o \times n ^ { \prime } },$$

where n ′ &lt; n is the number of samples over V ′ , so we keep the number of variables p and the number of nodes o , but reduce the number of observations.

For the sake of simplicity, we will describe this sampling strategy nodewise, i.e., the whole transformation Ψ is the result of applying operations on each node 1 ≤ i ≤ o : Ψ = (Ψ 1 , . . . , Ψ ) o . Each nodewise transformation produces a transformation Ψ : i R p × n → R p × n ′ .

In our proposal, the sampling Ψ i is the composition of three functions, namely, a components transformation ( Ψ C ), followed by a ranking ( Ψ O ) and then the sampling ( Ψ A ):

$$\Psi _ { i } = \psi _ { A } \circ \psi _ { O } \circ \psi _ { C }.$$

Three components transformations will be considered: principal components, robust principal components and independent component analysis. The ranking we will employ consists in choosing the most important component. The sampling will consist in choosing the original observation indexed by the result of the previous stage. In the following we will formalize these steps.

The components transformation ( ψ C ) denotes any operation on the data space yielding the same number of

dimensions.

where s i is the collection of observations gathered by node i along t 1 , . . . , t n .

$$\text{dimensions.} \\ C _ { n, p } = \psi _ { C } ( s _ { i } ) \ = \ \psi _ { C } \begin{pmatrix} ( s _ { i 1 }, \dots, s _ { i p } ) ( t _ { 1 } ) \\ \vdots \\ ( s _ { i 1 }, \dots, s _ { i p } ) ( t _ { n } ) \end{pmatrix} \\ \ = \ \begin{pmatrix} C _ { 1 } & \cdots & C _ { 1 p } \\ \vdots & & \vdots \\ C _ { n } & \cdots & C _ { n p } \end{pmatrix} \\ \ = \ \begin{pmatrix} C _ { 1 } \\ \vdots \\ C _ { n } \end{pmatrix}, \\ \text{where} \ s _ { i } \text{ is the collection of observations gathered by} \\ \text{node} \ i \, \text{along} \ t _ { 1 }, \dots, t _ { n }.$$

Different ψ C transformations can be applied as, for instance,

- · Principal component analysis (PCA) : It is a linear transformation in the data set which produces a new uncorrelated data set [24], [25] which can be conveniently reduced with little loss of information, due to the way the new data are formed. Considering s i ∈ V i ′ as input data, calculate C j = [ s i -s i ] E , where E is the matrix whose columns are the eigenvectors of the (possibly standardized) covariance matrix of the data s i .
- · Robust principal component analysis (robustPCA) : This class of techniques was proposed as a means to tackle possible shortcomings of traditional PCA in the presence of outliers. The main difference is the way the eigenvalues are obtained: each element of the covariance matrix is computed robustly [26], [27], or, alternatively, robust eigenvalues satisfying certain properties are sought [28].
- · Independent component analysis (ICA) : It also performs a linear transformation in the data, looking for statistically independent new components. It can reduce, increase or maintain the original data dimensions [29], [30]. Among the many alternatives available, we applied a nonlinear PCA algorithm based on approximations to neg-entropy which is more robust than kurtosis based measures and fast to compute as provided by R [31].

To perform the ranking ( ψ O ), consider ∆ the operator that sorts the indexes of the first column of C in descending order:

$$\text{descending order} & \quad ; \\ \Delta \left ( \begin{array} { c } C _ { 1 1 } \\ \vdots \\ C _ { n 1 } \end{array} \right ) = \Delta ( 1, 2, \dots, n ) = ( \delta _ { 1 }, \delta _ { 2 }, \dots, \delta _ { n } ), & \vdots \\ \text{such that} \ C _ { \delta _ { 1 }, 1 } \leq C _ { \delta _ { 2 }, 1 } \leq C _ { \delta _ { n }, 1 }. \text{ Therefore, $\psi_{O}$ consists} \\ \mathcal { E } \, \stackrel { \sim } { \sim } \, \text{the same as the $2$} \, \stackrel { \sim } { \sim } \, \text{the same as the $2$} \, \stackrel { \sim } { \sim } \, \text{the same as the $2$} \, \stackrel { \sim } { \sim } \, \text{the same as the $2$} \, \stackrel { \sim } { \sim } \, \text{the same as the $2$} \, \stackrel { \sim } { \sim } \, \text{the same as the $2$} \, \stackrel { \sim } { \sim } \, \text{the same as the $2$} \, \stackrel { \sim } { \sim } \, \text{the same as the $2$} \, \stackrel { \sim } { \sim } \, \text {the same as the $2$} \, \stackrel { \sim } { \sim } \, \text{the same as the $2$} \, \stackrel { \sim } { \sim } \, \text{the same as the $2$} \, \stackrel { \sim } { \sim } \, \text{the same as the $2$} \, \stackrel { \sim } { \sim } \, \text{the same as the $2$} \, \stackrel { \sim } { \sim } \, \text{the same as the $2$} \, \stackrel { \sim } { \sim } \, \text{the same as the $2$} \, \stackrel { \sim } { \sim } \, \text{the same as the $2$} \, \stackrel { \sim } \, \text{the same as the $2$} \, \stackrel { \sim } { \sim } \, \text{the same as the $2$} \, \stackrel { \sim } { \sim } \, \text{the same as the $2$} \, \stackrel { \sim } { \sim } \, \text{the same as the $2$} \, \stackrel { \sim } { \sim } \, \text{the same as the $2$} \, \stackrel { \sim } { \sim } \, \text{the same as the $2$} \, \stackrel { \sim } { \sim } \, \text{the same as the $2$} \, \stackrel { \sim } { \sim } \, \text{the same as the $2$} } \, \stackrel { \sim } { \sim } \, \text{the same as the $2$} \, \stackrel { \sim } { \sim } \, \text{the same as the $2$} \, \stackrel { \sim } { \sim } \, \text{the same as the $2$} \, \stackrel { \sim } { \sim } \, \text{the same as the $2$} \, \stackrel { \sim } { \sim } \, \text{the same as the $2$} \, \stackrel { \sim } { \sim } \, \text{the same as the $2$} \, \stackrel { \sim } { \sim } \, \text{the same as the $2$} \, \stackrel { \sim } { \sim } \, \right )$$

such that C δ 1 , 1 ≤ C δ 2 , 1 ≤ C δ n , 1 . Therefore, ψ O consists of sorting the first component values in C .

Finally, the sampling process ( ψ A ) consists of choosing the elements in s i whose ranks in ∆ are neither the smallest nor the biggest. These n ′ &lt; n (assumed even for simplicity) elements are defined by the observations with indexes ( δ n ′ 2 , . . . , δ n -n ′ 2 ) . Denote such sample s ′ i .

This procedure is illustrated in Fig. 2, where the gray area contains the indexes to be sampled.

Fig. 2. Determination of sample: T and U original variables, C , C 1 2 principal components, L , L 1 2 lower and upper bounds in the transformed space.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0501v1-figure-7d782471-8ff9-4ca0-a935-5cae0a243c6f.jpg)

This strategy differs, in general, from criteria based on the Euclidean and on the Mahalanobis distances to the center of mass, which form the core of the k-means strategy. The set of possible values of the sampled data is V ′′ i ⊂ V ′ i .

## 3.3 Reconstruction, measures of quality, and decisions

After sampling, some kind of reconstruction must be performed by the sink node in order to take decisions about the phenomena under study. In Fig. 1 the reconstruction is represented by ̂ P that uses the whole network localization information, represented by h = { h i : 1 ≤ i ≤ } o , where h i is the position of sensor S i in R 2 or R 3 .

̂ Considering the need to perform the sampling Ψ over V ′ , a fundamental aspect to be analysed is the impact of this processing on the decisions. In this work, following Frery et al. [21], we assess this impact analysing the sampled data with respect to the original one, rather than checking changes in decisions. If ideal reconstruction techniques were available, the decisions would be the same. Such assessment is performed with the following measures:

New rules over V are represented by ̂ R and they lead to the set of decisions D .

- · Analysis of variance - ANOVA [32] aims to evaluate whether there are significant differences between the averages of the original data set and the reduced one. The test statistic is

$$T = \lambda _ { B } ^ { 2 } / \lambda _ { W } ^ { 2 },$$

where λ 2 B is the variance between sets s i and s ′ i and λ 2 W the variance within sets. Based on this

calculation, the p-value is used to determine if the null hypothesis H 0 must be rejected. In this case, the null hypothesis models that there are no significant differences between the variances of the two sets. Values of p-value below 0.05 provide sufficient evidence to reject the null hypothesis at the 95% confidence level. By convention, ̂ R ANOVA will be used to indicate the use of this test.

- · Our measure of error is the maximum relative absolute error between averages of original data s i and the reduced one:

$$\widehat { R } _ { E R R O R } = 1 0 0 \max _ { j } \frac { | \overline { s } _ { i j } ( \cdot ) - \overline { s } ^ { \prime } _ { i j } ( \cdot ) | } { | \overline { s } _ { i j } ( \cdot ) | }. \\ \text{LITVARIATE SAMPLING ALGORITHM}$$

## 4 MULTIVARIATE SAMPLING ALGORITHM

Based on the characterization presented in previous section, here, it is presented MuSA Mu ltivariate S ampling A lgorithm, that implements the Ψ processing. The goals of MuSA are: to allow the use of different component analysis techniques; and to diminish redundancies and minor details, getting a subset of the original data with minimal information loss.

To reduce s i , MuSA performs in four steps: step 1, the original set of sensory data s i is used to calculate the components ( ψ C ); step 2, the first component C · 1 is ranked ( ψ O ); step 3, the scores δ 1 , . . . , δ n are used to determine the lines in s i that will compose the reduced data s ′ i . These scores are the intermediate indexes, i.e., the values that represent the samples with similar variance ( ψ A ); and step 4, the reduced data set s ′ i , containing the most relevant data, is obtained. A pseudo-code of MuSA is given in Algorithm 1.

Algorithm 1 Multivariate sampling algorithm ( Ψ processing)

Require: s i - original data, n ′ - reduction size s ′

Ensure: i - reduced data

- 1: C n,p ← ψ C ( s i ) { Component calculation }
- 2: δ ← ∆( C · 1 ) { Sort indexes }
- 3: L ← ( δ n ′ 2 , . . . , δ n -n ′ 2 ) { Get the indexes used in sampling }
- 4: for j ← 1 to n ′ do
- 5: s ′ i j · ← s i Lj · { Sampling action }
- 6: end for
- 7: s ′ i ← Sort ( s ′ i ) { Sort the final sample considering the original order of arrival, 'optional step' }

A line-by-line of Algorithm 1 is the following:

- · In Line 1, we have the calculation of the components through the chosen technique. The complexity of this PCA calculation is O p n ( 2 ) [33], where n represents the number of samples and p the number of variables. The complexity order of computing the first robust-PCA component is O pn ( ) [34]. For the calculation of ICA, considering the FastICA algorithm, the order can be estimated in O pn ( ) [35].
- · In Line 2, the first component ( C 11 , . . . , C n 1 ) is sorted. Its complexity, considering a simple quicksort algorithm, is O n ( log 2 n ) .
- · In Line 3, we discard the extreme values, which is an O (1) operation.
- · In Lines 4 - 6, we build the reduced output data, with complexity order is O n ( ′ ) .
- · In Line 7, the sampling s ′ i is sorted. Its complexity, considering a simple quicksort algorithm, is O n ( ′ log 2 n ′ ) , since only the lines are sorted.

Thus, total time complexity using PCA is

$$O ( p ^ { 2 } n ) + O ( n \log _ { 2 } n ) + O ( n ^ { \prime } ) + O ( n ^ { \prime } \log _ { 2 } n ^ { \prime } ) = O ( p ^ { 2 } n ).$$

Considering ICA or robust-PCA, total time complexity is

$$\underset { \dots } { \sec } ^ { - } \quad O ( p n ) + O ( n \log _ { 2 } n ) + O ( n ^ { \prime } ) + O ( n ^ { \prime } \log _ { 2 } n ^ { \prime } ) = O ( p n ).$$

For the space complexity, consider the matrices s i , s ′ i , C , the mean vector and the (possibly scaled) matrix of eigenvectors used in PCA. Space complexity is thus given by

$$3 O ( p n ) + O ( p ) + O ( p n ^ { \prime } ) = O ( p n ).$$

Since each source node sends s ′ i to sink, communication complexity is

$$O ( p n ^ { \prime } \# \text{hops} ),$$

where ' #hops ' is the largest route in the network.

## 5 DATA REPRESENTATIVENESS

In this section, we evaluate the data representativeness. The goal is to determine if the reconstructed data V represent satisfactorily the environment monitored. In this way, the analyses applied are ̂ R ANOVA and ̂ R ERROR defined in Section 3.3.

## 5.1 Methodology

We use pseudo-real data in order to make a quantitative assessment in situations with and without departures from the underlying distribution.

The real data are 19-dimensional observations of environmental phenomena, among them the concentration of pollutants n-hexane , methylcyclopentane , toluene , p-xylene , and 1,3,5-TMB . The sensed data s i consists of 72 of these observations and, as reported in [36], each data is the result of four hours of measurements. The individual measurements that led to the observations are not available and, thus, will be simulated. The simulation will be made retaining the mean and covariance structures, but assuming three cases: Gaussian, Skew Gaussian and heavy-tailed Student t distributions. We will call these simulated data 'pseudo-real' data.

Figs. 3(a)-3(b) present the densities which characterize the Gaussian, the Skew Gaussian and the Student t distributions with zero mean in linear and semilogarithmic scales. The Skew Gaussian law here depicted

has asymmetry parameter 1 / 2 , while the degrees of freedom of the Student t distribution is 2 . The former describes situations where there is skewness, while the latter models heavy-tailed situations.

(a) Linear scale

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0501v1-figure-01e91455-7753-49e7-8b56-df9a13d8f7da.jpg)

(b) Semilogarithm scale

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0501v1-figure-99d40972-de05-4032-9c89-2d8193dc6037.jpg)

Fig. 3. Densities of distributions

All evaluations are made through simulations, with algorithms implemented in the R platform [31], whose excellent numerical properties were assessed by Almiron et al [37]. The number of necessary replications was calculated, following Jain [38], as

$$\i v w i n g { \, j a u l } { \, \lfloor \rho _ { J }, a s } \\ r o u n d s = \left ( \frac { 1 0 0 \, c \widehat { \sigma } } { x \, \overline { e r r o r } } \right ) ^ { 2 }, \\ 6, \widehat { \sigma } \, & \text{is the sample standard} \, \text{de} \\ \text{from licence of the correct city}.$$

where c = 1 96 . , ̂ σ is the sample standard deviation found in the five first replications of the worst situation, error is the average value and x is the percentage of the average that we want to get as deviation, i.e., the precision, that in this case was 5% . Each scenario was, thus, executed with 1000 independent data sets.

In order to explore the level of reduction supported by the applications, so that sampling will not compromise the decisions ̂ D , we use two levels of reduction to compose s ′ i , n ′ = n/ 2 and n ′ = log 2 n . The former is usually acceptable in practice, while the latter can be considered a hardcore data reduction only intended for providing a reference and not intended to be used in practice. Applications have different needs and characteristics, so different levels of reduction between these two extremes can be applied.

Our data representativeness evaluation considers the PCA, robust-PCA, and ICA components analysis techniques.

The number of pseudo data generated in each interval varies in { 10 20 30 40 50 , , , , } , i.e. the reading n is { 720 1440 2160 2880 3600 , , , , } . In data representativeness we do not consider a specific network topology, because the main objective is show the fidelity of the data reduced when compared to the sensed one.

5.2 Analysis of variance -̂ R ANOVA Table 1 presents the results considering the robust-PCA. As expected, the n/ 2 data reduction leads to smaller differences between observed and sampled data than the log 2 n strategy; in fact, the former produces data which is indistinguishable from the original information. It is also not surprising that Gaussian data are best dealt with by the reduction, while the worst scenario is provided by the Skew Gaussian model.

The results indicate that the proposed sampling does not introduce identifiable distortions in the original data. The PCA and ICA results provide even stronger support for not rejecting the hypothesis of same distribution.

The reduced data set s ′ i could, thus, represents the original data set s i satisfactorily. Therefore, decisions ̂ D taken based on ̂ R ANOVA are the same using the original and the reduced data.

5.3 Analysis of relative absolute error -̂ R ERROR The second analysis considers ̂ R ERROR , the absolute relative error. The mean value and 95% asymptotic symmetric confidence intervals are shown in Figs. 4 - 6. The error of strategies that retain log 2 n of the data is always above than those than employ n/ 2 reduction.

Considering the n/ 2 sampling strategy, the results obtained with the three techniques were very satisfactory and are practically equal in terms of relative absolute error: close to 5% . The R ERROR decreases whenever the amount of sensed data s i increases, regardless the technique. This occurs because a higher amount of data is generated for each phenomenon.

Considering the sampling log 2 n , the worst result is close to 30% , and it is consistently observed under the Student t distribution regardless the technique. This occurs because this distribution is more sparse, i.e., heavytailed. The best results, which are consistently close to 10% , are observed under the Skew Gaussian model, regardless the technique. This is probably due to the fact that the distribution is more concentrated and, then, the MuSa data retains are excellent representatives of the whole sample.

TABLE 1 Analysis of variance ( p-value )

| Evaluated distribution   | ( n = 720)   | ( n = 720)   | ( n = 1440)   | ( n = 1440)   | ( n = 2160)   | ( n = 2160)   | ( n = 2880)   | ( n = 2880)   | ( n = 3600)   | ( n = 3600)   |
|--------------------------|--------------|--------------|---------------|---------------|---------------|---------------|---------------|---------------|---------------|---------------|
| Evaluated distribution   | n/ 2         | log 2 n      | n/ 2          | log 2 n       | n/ 2          | log 2 n       | n/ 2          | log 2 n       | n/ 2          | log 2 n       |
| Gaussian                 | 0.0          | 6.21e-09     | 0.0           | 1.59e-09      | 0.0           | 9.49e-11      | 0.0           | 1.21e-10      | 0.0           | 9.89e-11      |
| Skew Gaussian            | 0.0          | 3.72e-03     | 0.0           | 9.73e-04      | 0.0           | 4.80e-05      | 0.0           | 4.27e-05      | 0.0           | 1.13e-04      |
| Student t                | 0.0          | 5.88e-04     | 0.0           | 5.19e-10      | 0.0           | 1.55e-12      | 0.0           | 3.33e-08      | 0.0           | 1.40e-07      |

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0501v1-figure-3a32f2d8-6c1e-4017-874b-7e9064037a62.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0501v1-figure-aaecd236-778c-4530-a0da-1b85d2d1bcb3.jpg)

Fig. 4. Analyses of MuSA - PCA results

Fig. 5. Analyses of MuSA - ICA results

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0501v1-figure-cb112f68-5a07-4541-a0c4-f2db750087a7.jpg)

Albeit the differences are small among techniques, the smallest errors are consistently produced by robust-PCA, while the biggest ones are related to ICA, regardless the sample size. This occurs, according to Hyv¨ arinen [30], because the first independent component may not have the highest percentage of data variance, making the sampling process less efficient.

The scalability of the proposed algorithm in terms of the amount of sensored data is confirmed, since with all used techniques, when we increase s i , ̂ R ERROR is diminished or kept practically the same.

Fig. 6. Analyses of MuSA - PCA-robust results

## 6 NETWORK BEHAVIOUR EVALUATION

This section employs network behaviour parameters as a means for evaluating the MuSA algorithm.

Since communication is the task that consumes most energy in WSNs, reducing the amount of transmitted data will reduce the amount of consumed energy. Henceforth, network behaviour will be evaluated to show the benefits of multivariate sampling in terms of energy consumption and delay to deliver data to sink.

The simulations are performed using the bulk of data s ′ i . Sampling does not affect the network performance since the amount of energy required for processing is negligible when compared with that of transmission.

## 6.1 Methodology

Network evaluation is made through Network Simulator 2 (NS-2) version 2.33 [39]. The number of necessary simulations was calculated in the same fashion as above, yielding 30 topologies. We consider a flat network with a shortest path tree routing and nodes with the same hardware. The network density is kept constant and the source nodes are uniformly and independently distributed (random deployment) in the sensory area. The parameters used in the simulations are presented in Table 2.

In order to evaluate only the performance of sampling, the trees are built just once before the traffic starts. Considering the main objective of this evaluation, namely network behavior with sampling, rebuild the tree could interfere the assessment. However, if the tree has to be

TABLE 2 Network simulation parameters

| Parameter           | Values              |
|---------------------|---------------------|
| Network size        | Varies with density |
| Sink location       | 0 , 0               |
| Simulation time (s) | 1100                |
| Radio range (m)     | 50                  |
| Bandwidth (kbps)    | 250                 |
| Source location     | Random              |
| Traffic start (s)   | 500                 |
| Traffic end (s)     | 600                 |
| Data rate (s)       | 60                  |
| Initial energy (J)  | 100                 |

rebuilt all nodes will execute the same algorithm, so the energy consumption and processing will increase proportionally in all nodes. In addition, sampling is performed after the data is sensed and routed to the sink. Currently, we do not consider the use of new sampling during routing [40] in different nodes. Therefore, the use of different routing strategies will not affect the MuSA data quality neither the network behaviour.

The network size varies but the network density is kept constant in 8 48 . and is obtained through net t = √ πa 2 r | S / | 8 4791 . , where a r is the radio range and S the number of nodes. Package discarding by limited queue size is avoided. The radio range and bandwidth consider the specification of the MicaZ node [41]. The simulation time was set to 1100 s, where the first 500 s are used for building and configuring the network; the final 500 s are used to allow the remaining packages in the network be transmitted. Thus, the actual data traffic on the network employs 100 s. Moreover, the initial energy used was 100 J, so that the network nodes never had their energy depleted.

We consider the following two metrics: energy and packet delay, with varying data size, network size, and number of source nodes. We evaluate s ′ i with two reduction strategies, namely n ′ = { n/ , 2 log 2 n } .

## 6.2 Energy evaluation

The first analysis considers the energy consumption. Data transmission for offline storage, query and data analysis in a central node is an expensive procedure in WSNs, since wireless communication consumes a large amount of energy [42], [43]. The energy consumption of multivariate data processing can be assessed by computing the algorithm time complexity; this is done in Section 4. However, the energy consumption of data processing is irrelevant when compared to data transmission. Therefore, in our energy evaluation we only consider the data transmission energy consumption. Simulation results are presented in Fig. 7.

Fig. 7(a) shows the dependence of energy on the size of s i , which varied in n = { 256 512 1024 2048 , , , } . The number of source nodes was fixed in 5 , and the amount of nodes in the network in 128 . It is possible to observe that energy consumption increases significantly when

Amount of data generated at the source node (a) Varying data size

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0501v1-figure-2294ba46-f898-48b8-90aa-f8ef1dfab961.jpg)

Number of nodes

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0501v1-figure-9d647ff8-ef06-46e7-8d66-f2645f098bdc.jpg)

(b) Varying number of nodes on the network

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0501v1-figure-7b1f4fe7-1586-4e02-aec1-d30c9368ecb4.jpg)

Amount of source nodes

(c) Varying number of source nodes

Fig. 7. Evaluation of energy consumption

we increase the data size, which occurs because the traffic inserted on the network also increases. However, with a sampling log 2 n this variation is not observed, since the amount of traffic on the network is very small.

The MuSa behaviour when the number of nodes in the network varies in { 128 256 512 1024 , , , } is presented in Fig. 7(b), for a fixed amount of data generated n = 256 and 5 source nodes. It can be seen that the energy consumption is almost constant as the number of nodes in the network increases, since the network traffic is also practically the same. However, a small increase in

energy consumption can be observed when sending n data, as the number of nodes in the network increases; this is because more nodes are required to forward the packages to the sink.

Finally, we evaluated the energy consumption varying the number of source nodes, shown in Fig. 7(c). For this, we varied the number of source nodes in { 1 5 10 20 , , , } , keeping constant the amount of data in n = 256 and the number of nodes in 128 . Energy consumption increases considerably with the number of source nodes. This occurs because the amount of traffic on the network also increases considerably with the number of sources. Once more, it is noticeable that energy consumption diminishes as the amount of transmitted data is reduced. Moreover, again, it can be seen that when log 2 n sampling is applied, there is almost no increase in the energy consumption, since the amount of data sent on the network is kept very small.

## 6.3 Packet delay evaluation

As in the energy evaluation, the first analysis is related to packet delay. The results are presented in Fig. 8.

Fig. 8(a), presents the results of varying data size n = { 256 512 1024 2048 , , , } , keeping fixed both the number of source nodes in 5 and the amount of nodes in 128 . As with energy consumption, reducing the amount of data sent by sampling reduces the delay in delivery data to the sink. The same delay variation can be observed when generated data size increases, because more packages are sent. Again, this variation is not observed with the log 2 n sampling, since the amount of traffic on the network is very small.

The second analysis, presented in Fig. 8(b), is performed varying the number of nodes in the network in { 128 256 512 1024 , , , } while keeping constant the amount of generated data in n = 256 and the number of source nodes in 5 . In this case also is perceived the same relation observed for the energy consumption, i.e., that delay varies slightly as the number of nodes in the network is increases, since the network traffic is also almost the same. A small increase can be observed in cases where n data are sent and when n/ 2 sampling was applied.

The dependence of delay on the number of source nodes is presented in Fig. 8(c). More once, we varied the number of source nodes in { 1 5 10 20 , , , } , fixing the amount of data n = 256 and the number of nodes in 128 . The results show the same relation observed in the energy consumption evaluation. In this case, the delay increases considerably as the amount of source node increased, by the same reason mentioned in the previous analysis. It is also noticeable that the delay diminishes as the amount of transmitted data is reduced. In addition, we can also notice that under log 2 n sampling, there is almost no delay variation, since the amount of transmitted packages on the network is very small.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0501v1-figure-b0cb08fe-455d-404d-ac5e-f7d95fabb06c.jpg)

Amount of data generated at the source node (a) Varying data size

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0501v1-figure-32b94d5e-f38a-4277-9ff3-af4fc9299f2d.jpg)

Number of nodes (b) Varying number of nodes on the network

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0501v1-figure-a673caaf-fc09-41c8-990b-9952abe4dabd.jpg)

Amount of source nodes

(c) Varying number of source nodes

Fig. 8. Evaluation of packet delay

## 7 EVALUATION REMARKS

In summary, when we analyse the data quality against the network behaviour, we have the following conclusions:

- · The use of MuSA reduces energy consumption and delay on the network, keeping a satisfactory data representativeness in most cases.
- · The n/ 2 sampling is interesting even when the application requires a high level of accuracy, since both energy consumption and delay are reduced, the data are adequately preserved, and the observed

errors are small even under departures from the basic model, regardless the technique.

- · The log 2 n sampling must be used only in situations where data variation is small. Otherwise, the energy consumption and delay are reduced, but the data representativeness is significantly affected.
- · Regarding the use of PCA, robust-PCA or ICA, in most cases the three techniques presented similar results. However, robust-PCA was consistently better than the other two. In additional, the MuSA using robust-PCA has a linear time complexity O pn ( ) instead quadratic one when MuSA uses PCA.

Finally, considering the scenarios analysed, our solution can be applied in multivariate sampling for WSNs, and the results indicate that MuSA is an efficient strategy regarding the compromise between energy consumption, delay and representativeness of the sampled data.

## 8 CONCLUSION AND FUTURE WORK

WSNs have energy restrictions and the extension of their lifetime is one of most important issues in their design. In this work, we presented an algorithm for multivariate sampling: MuSA. MuSA uses techniques based on component analysis to classify data, making a ranking which allows selecting a subset of the most relevant data for the application. This leads to data traffic reduction, keeping data representativeness, diminishing the energy consumption and delivery delay.

Results shown the efficiency of the proposed method regarding data representativeness. MuSA was efficient in all evaluated scenarios with respect to both ANOVA and relative absolute error, even under departures from the ideal model (skewness and heavy-tailedness). The best technique was consistently robust-PCA, but for a small margin over PCA and ICA.

MuSA also obtained good results with respect to network behaviour. Sampling using MuSA resulted in considerable energy saving and packet delay reduction. This reinforces the viability of using MuSA for performing multivariate sampling in WSNs, even in applications that need a high data precision.

This work presents a problem which arises from nodes that sample many variables concomitantly. The volume of data in this configuration is larger than when one variable is sampled at a time. If the volume of data is still an issue when only one variable is sampled at each epoch, the technique here presented is still valid provided (i) the process is stationary, and (ii) an adequate data storage is available.

As future work, we intend to apply the proposed method to process data along with the routing task. Thus, not only the data from one source can be sampled, but similar data from different sources can be subjected to similar sampling strategies, resulting in even more energy efficiency. Other aspect to be treated is the analysis of the solution in other scenarios, where data losses can affect the quality of the delivered information.

## ACKNOWLEDGMENTS

This work is partially supported by the Brazilian National Council for Scientific and Technological Development (CNPq) and the Research Foundation of the State of Alagoas (FAPEAL).

## REFERENCES

- [1] I. F. Akyildiz, W. Su, Y. Sankarasubramaniam, and E. Cayirci, 'A survey on sensor networks,' IEEE Commununication Magazine , vol. 40, no. 8, pp. 102-114, 2002.
- [2] O. S. Junior, A. L. L. Aquino, R. A. F. Mini, and C. M. S. Figueiredo, 'Multivariate reduction in wireless sensor networks,' in IEEE Symposium On Computers and Communications (ISCC'09) , 2009.
- [3] A. D. Marbini and L. E. Sacks, 'Adaptive sampling mechanisms in sensor networks,' in London Communications Symposium (LCS'03) , 2003.
- [4] S. Santini and K. Romer, 'An adaptive strategy for quality-based data reduction in wireless sensor networks,' in 3rd International Conference on Networked Sensing Systems (INSS'06) , 2006.
- [5] B. Krishnamachari, D. Estrin, and S. Wicker, 'The impact of data aggregation in wireless sensor networks,' in 22nd IEEE International Conference on Distributed Computing Systems (ICDCS'02) , 2002.
- [6] J. Zhu and S. Papavassiliou, 'A resource adaptive information gathering approach in sensor networks,' in IEEE Sarnoff Symposium on Advances in Wired and Wireless Communication (SARNOFF'04) , 2004.
- [7] A. L. L. Aquino, C. M. S. Figueiredo, E. F. Nakamura, L. S. Buriol, A. A. F. Loureiro, A. O. Fernandes, and C. N. C. Junior, 'Data stream based algorithms for wireless sensor network applications,' in 21st IEEE International Conference on Advanced Information Networking and Applications (AINA'07) , 2007.
- [8] --, 'A sampling data stream algorithm for wireless sensor networks,' in IEEE International Conference on Communications (ICC'07) , 2007.
- [9] E. F. Nakamura, A. A. F. Loureiro, and A. C. Frery, 'Information fusion for wireless sensor networks: Methods, models, and classifications,' ACM Computing Surveys , vol. 39, no. 3, pp. 1-55, 2007.
- [10] N. Kimura and S. Latifi, 'A survey on data compression in wireless sensor networks,' in International Conference on Information Technology: Coding and Computing (ITCC 2005) , 2005.
- [11] X. Wang and S. Wang, 'Collaborative signal processing for target tracking in distributed wireless sensor networks,' Journal of Parallel and Distributed Computing , vol. 67, no. 5, pp. 501-515, 2007.
- [12] M. Zhao, M. Ma, and Y. Yang, 'Efficient data gathering with mobile collectors and space-division multiple access technique in wireless sensor networks,' IEEE Transactions on Computers , vol. 60, no. 3, pp. 400-417, 2011.
- [13] X.-Y. Li, Y. Wang, and Y. Wang, 'Complexity of data collection, aggregation, and selection for wireless sensor networks,' IEEE Transactions on Computers , vol. 60, no. 3, pp. 386-399, 2011.
- [14] S. Seo, J. Kang, and K. H. Ryu, 'Multivariate stream data reduction in sensor network applications,' in 2nd International Symposium on Ubiquitous Intelligence and Smart Worlds (UISW'05) , 2005.
- [15] N. Cvejic, D. Bull, and N. Canagarajah, 'Improving fusion of surveillance images in sensor networks using independent component analysis,' IEEE Transactions Consumer Electronics , vol. 53, no. 3, pp. 1029-1035, 2007.
- [16] J. Li and Y. Zhang, 'Interactive sensor network data retrieval and management using principal components analysis transform,' Smart Materials and Structures , vol. 15, no. 11, pp. 1747-1757, 2006.
- [17] O. Roy and M. Vetterli, 'Dimensionality reduction for distributed estimation in the infinite dimensional regime,' IEEE Transactions on Information Theory , vol. 54, no. 4, pp. 1655-1669, 2008.
- [18] E. Quiros, A. M. Felicisimo, and A. Cuartero, 'Testing multivariate adaptive regression splines (MARS) as a method of land cover classification of terra-aster satellite images,' Sensors , vol. 9, no. 11, pp. 9011-9028, 2009.

- [19] Y.-F. Su, J.-J. Liou, J.-C. Hou, W.-C. Hung, S.-M. Hsu, Y.-T. Lien, M.-D. Su, K.-S. Cheng, and Y.-F. Wang, 'A multivariate model for coastal water quality mapping using satellite remote sensing images,' Sensors , vol. 9, no. 10, pp. 6321-6339, 2008.
- [20] V. I. Adamchuk, R. A. V. Rossel, D. B. Marx, and A. K. Samal, 'Using targeted sampling to process multivariate soil sensing data,' Geoderma , vol. 163, no. 1-2, pp. 63-73, 2011.
- [21] A. C. Frery, H. S. Ramos, J. Alencar-Neto, E. Nakamura, and A. A. F. Loureiro, 'Data driven performance evaluation of wireless sensor networks,' Sensors , vol. 10, no. 3, pp. 2150-2168, 2010.
- [22] J. Skvarenina, J. Mindas, J. Holecy, and J. Tucek, 'An analysis of the meteorological conditions during two largest forest fire events in the slovak paradise national park,' Journal of Meteorology , vol. 7, no. 1, pp. 167-171, 2004.
- [23] Z. Yang and Y. Liu, 'Understanding node localizability of wireless ad hoc and sensor networks,' IEEE Transactions on Mobile Computing , vol. 11, no. 8, pp. 1249-1260, 2012.
- [24] W. J. Krzanowski, Principles of Multivariate Analysys: a User's Perspective . Claredon Press, 1988.
- [25] S. Wold, 'Principal component analysis,' Chemometrics and Intelligent Laboratory Systems , vol. 2, no. 1-3, pp. 37-52, 1987.
- [26] F. H. Ruymgaart, 'A robust principal component analysis,' Journal of Multivariate Analysis , vol. 11, no. 4, pp. 485-497, 1981.
- [27] M. Hubert, P. J. Rousseeuw, and K. V. Branden, 'Robpca: A new approach to robust principal component analysis,' Technometrics , vol. 47, no. 1, pp. 64-79, 2005.
- [28] R. A. Maronna, 'Principal component and orthogonal regression based on robust scales,' Technometrics , vol. 47, no. 3, pp. 264-273, 2005.
- [29] P. Comon, 'Independent component analysis, a new concept?' Signal Process. , vol. 36, no. 3, pp. 287-314, 1994.
- [30] A. Hyv¨ arinen, 'Survey on independent component analysis,' Neural Computing Surveys , vol. 2, no. 1, pp. 94-128, 1999.
- [31] R Development Core Team, R: A Language and Environment for Statistical Computing , R Foundation for Statistical Computing, Vienna, Austria, 2010, ISBN 3-900051-07-0.
- [32] N. Thomson, 'Understanding ANOVA the APL way,' in International conference on APL (APL'93) , 1993.
- [33] A. Sharma and K. K. Paliwal, 'Fast principal component analysis using fixed-point algorithm,' Pattern Recognition Letters , vol. 28, no. 10, pp. 1151-1155, 2007.
- [34] F. D. la Torre and M. J. Black, 'Robust principal component analysis for computer vision,' in IEEE International Conference on Computer Vision (ICCV'01) , 2001.
- [35] V. Zarzoso, P. Comon, and M. Kallel, 'How fast is fastICA?' in 14th European Signal Processing Conference (EUSIPCO'06) , 2006.
- [36] E. L. Albuquerque, 'Volatile organic compounds in urban atmosphere of metropolitan area of S˜ ao Paulo (in Portuguese),' Thesi, Faculdade de Engenharia Qu´ ımica, Universidade Estadual de Campinas, Campinas, SP, Brazil, 2007.
- [37] M. Almiron, E. S. Almeida, and M. Miranda, 'The reliability of statistical functions in four software packages freely used in numerical computation,' Brazilian Journal of Probability and Statistics , vol. 23, no. 2, pp. 107-119, 2009.
- [38] R. K. Jain, The art of computer systems performance analysis: techniques for experimental design, measurement, simulation, and modeling , C. P. Association, Ed. John Wiley &amp; Sons, 1991.
- [39] NsNam Sourceforge project, 'The network simulator,' Online: http://nsnam.isi.edu/nsnam/, July 2012.
- [40] A. L. L. Aquino and E. F. Nakamura, 'Data centric sensor stream reduction for real-time applications in wireless sensor networks,' Sensors , vol. 9, no. 1, pp. 1-24, 2009.
- [41] Memsic, 'Powerful sensing solutions for a better life,' Online: http://www.memsic.com/, July 2012.
- [42] Q. Wang, M. Hempstead, and W. Yang, 'A realistic power consumption model for wireless sensor network devices,' in Sensor and Ad Hoc Communications and Networks (SECON'06) , 2006.
- [43] W. S. Wang, R. O'Keeffe, N. Wang, M. Hayes, B. O'Flynn, and S. C. O. Math´na, 'Practical wireless sensor networks power conu sumption metrics for building energy management applications,' in 23rd European Conference Forum Bauinformatik , 2011.

## BIOGRAPHY

- · Andre L. L. Aquino is Professor at Federal University of Alagoas, Brazil. He received his Ph.D.
- in Computer Science from the Federal University of Minas Gerais, Brazil, in 2008. His research interests include data reduction, distributed algorithms, wireless ad hoc and sensor networks, mobile and pervasive computing. In addition, he has published several papers in the area of wireless sensor networks.
- · Orlando S. Junior is B.S. degree in computer science from Fundac ¸˜ ao Pedro Leopoldo, in 2007. He received his M.S. in informatic from Pontif´ ıcia Universidade Cat´ olica de Minas Gerais, in 2009. He is currently a professor at Faculdade Cenecista de Sete Lagoas and Pontif´ ıcia Universidade Cat´ olica de Minas Gerais. His research interests are data reduction in wireless sensor networks and software engineering.
- · Alejandro C. Frery graduated in Electronic and Electrical Engineering from the Universidad de Mendoza, Argentina. His M.Sc. degree was in Applied Mathematics (Statistics) from the Instituto de Matem´ atica Pura e Aplicada (Rio de Janeiro) and his Ph.D. degree was in Applied Computing from the Instituto Nacional de Pesquisas Espaciais (S˜ ao Jos´ e dos Campos, Brazil). He is currently with the Instituto de Computac ¸˜ ao, Universidade Federal de Alagoas, Macei´ o, Brazil. His research interests are statistical computing and stochastic modelling.
- · ´ dler Lins de Albuquerque E is PhD. in Development of Chemical Engineering Processes, State University of Campinas (UNICAMP) - BRAZIL, 2007. Professor at Federal Institute of Education, Science and Technology of Bahia. Leader of Biotechnology and Environment Research Group -BIOMA
- (http://dgp.cnpq.br/buscaoperacional/detalhegrupo.jsp?grup
- · Raquel A. F. Mini holds a B.Sc., M.Sc., and Ph.D. in Computer Science from Federal University of Minas Gerais (UFMG), Brazil. Currently she is an Associate Professor of Computer Science at PUC Minas, Brazil. She has worked for 10 years in the protocol design for wireless sensor networks with more than 30 papers published in this area. Her main research areas are sensor networks, mobile computing, and ubiquitous computing.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0501v1-figure-6318b929-2b23-4e9c-8308-320a94058154.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0501v1-figure-e16bf32a-4a3a-4484-9984-8896031fe5e7.jpg)

x

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0501v1-figure-f125eb6a-a886-4f67-b94b-6702ad0b9097.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0501v1-figure-974dee1d-9ef0-437c-932a-86f2fbcc94c2.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0501v1-figure-e8d52560-3324-4c16-9020-d664caa8e021.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0501v1-figure-2bf4cb68-7f3e-4b34-a34f-d1273addcd73.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0501v1-figure-81f5c973-d03b-426c-b2ec-c294d806fc54.jpg)

Amount of data generated at the source node Number of nodesdes Amount of source no

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0501v1-figure-bdd005b5-073e-4cc1-b9f2-b5e891c63a25.jpg)
André L. L. Aquino Orlando S. Junior Alejandro C. Frery Édler Lins de Albuquerque Raquel A. F. Mini
MuSA: Multivariate Sampling Algorithm for Wireless Sensor Networks
A wireless sensor network can be used to collect and process environmental
data, which is often of multivariate nature. This work proposes a multivariate
sampling algorithm based on component analysis techniques in wireless sensor
networks. To improve the sampling, the algorithm uses component analysis
techniques to rank the data. Once ranked, the most representative data is
retained. Simulation results show that our technique reduces the data keeping
its representativeness. In addition, the energy consumption and delay to
deliver the data on the network are reduced.