scieee AI-readable full text Open interactive document viewer

Graph signal reconstruction techniques for IoT air pollution monitoring platforms

Ferrer Cid, Pau,Barceló Ordinas, José María,García Vidal, Jorge

Abstract

Air pollution monitoring platforms play a very important role in preventing and mitigating the effects of pollution. Recent advances in the field of graph signal processing have made it possible to describe and analyze air pollution monitoring networks using graphs. One of the main applications is the reconstruction of the measured signal in a graph using a subset of sensors. Reconstructing the signal using information from neighboring sensors is a key technique for maintaining network data quality, with examples including filling in missing data with correlated neighboring nodes, creating virtual sensors, or correcting a drifting sensor with neighboring sensors that are more accurate. This paper proposes a signal reconstruction framework for air pollution monitoring data where a graph signal reconstruction model is superimposed on a graph learned from the data. Different graph signal reconstruction methods are compared on actual air pollution data sets measuring O3, NO2, and PM10. The ability of the methods to reconstruct the signal of a pollutant is shown, as well as the computational cost of this reconstruction. The results indicate the superiority of methods based on kernel-based graph signal reconstruction, as well as the difficulties of the methods to scale in an air pollution monitoring network with a large number of low-cost sensors. However, we show that the scalability of the framework can be improved with simple methods, such as partitioning the network using a clustering algorithm.

Full text

© 2022 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works. doi:10.1109/JIOT.2022.3196154 Graph Signal Reconstruction Techniques for IoT Air Pollution Monitoring Platforms Pau Ferrer-Cid, Jose M. Barcelo-Ordinas, Jorge Garcia-Vidal Abstract—Air pollution monitoring platforms play a very important role in preventing and mitigating the effects of pollution. Recent advances in the field of graph signal processing have made it possible to describe and analyze air pollution monitoring networks using graphs. One of the main applications is the reconstruction of the measured signal in a graph using a subset of sensors. Reconstructing the signal using information from neighboring sensors is a key technique for maintaining network data quality, with examples including filling in missing data with correlated neighboring nodes, creating virtual sensors, or correcting a drifting sensor with neighboring sensors that are more accurate. This paper proposes a signal reconstruction framework for air pollution monitoring data where a graph signal reconstruction model is superimposed on a graph learned from the data. Different graph signal reconstruction methods are compared on actual air pollution data sets measuring O3, NO2, and PM10. The ability of the methods to reconstruct the signal of a pollutant is shown, as well as the computational cost of this reconstruction. The results indicate the superiority of methods based on kernel-based graph signal reconstruction, as well as the difficulties of the methods to scale in an air pollution monitoring network with a large number of low-cost sensors. However, we show that the scalability of the framework can be improved with simple methods, such as partitioning the network using a clustering algorithm. Index Terms—Air Pollution Monitoring Networks, IoT Platform, Low-cost Sensors, Graph Signal Processing, Signal Reconstruction I. INTRODUCTION OUTDOOR air pollution originates from natural and anthropogenic sources. Air pollution produces adverse health consequences, such as respiratory, neuronal, and cardiovascular problems, among others, as a result of short or longterm exposure. For all these reasons, in recent years much effort has been made to obtain pollution measures for their study and the application of prevention and containment measures. To increase the number of measurement points, the use of low-cost sensors, mounted on Internet of Things (IoT) nodes, has been proposed in conjunction with the values provided by reference stations, forming IoT platforms. Reference stations give much more precise values, but at a much higher price. On the other hand, the greatest difficulty in a deployment with low-cost sensors is the quality of the data it produces. To improve the quality of the low-cost sensors, it is necessary to Pau Ferrer-Cid ([email protected]), Jose M. Barcelo-Ordinas (jose.maria.barce[email protected]) and Jorge Garcia-Vidal ([email protected]) are with the Universitat Politecnica de Catalunya, Barcelona, Spain. This work is supported by the National Spanish funding PID2019- 107910RB-I00, by regional project 2017SGR-990, and with the support of Secretaria d’Universitats i Recerca de la Generalitat de Catalunya i del Fons Social Europeu. calibrate [1], [2] these sensors in the field using supervised machine learning algorithms [3], [4], [5], [6]. Today, as the calibration of sensors seems to be feasible [7], [8], the study of sensor networks for pollution monitoring poses new challenges. Once the sensors are deployed, they suffer from drifts and aging [9], [10], so that the estimates made with the machine learning mechanisms become inaccurate. In addition, both low-cost sensors and reference stations lose data [11], which makes the supervised machine learning mechanisms difficult to estimate values. The study of heterogeneous networks, which contain both reference stations and low-cost sensors, using graphs provides great flexibility, as the graphs can encode complex networks, as is the case when there is a reference station and a sensor in the same geographical location, a situation in which the geostatistical Kriging technique would fail. There is a wide variety of techniques for the estimation of the graph topology based on different methods such as statistical-based methods or graph signal processing (GSP) methods [12], [13]. There are a large number of direct applications of generating a graph with reference stations and low-cost sensors and overlaying a signal reconstruction mechanism in which several of the network nodes participate. The principle behind this technique is to obtain the relationships between the network sensors by means of a graph learned from the data, resulting in a smooth structure with respect to the measured data. Then, the data measured by the different sensor neighborhoods can be used by signal reconstruction methods to obtain estimates and maintain the quality of the network data. An example is the imputation of missing values. It is known that sensors are calibrated with supervised methods using arrays of sensors [3], [4], [5], [6]. If one of the array measurements is missing, the concentration of the pollutant cannot be estimated and a gap in the measurements occurs [11], [14], [15]. This measurement can be estimated using neighbors whose measures are highly correlated with the data from the sensor that has the missing value. Other examples where signal reconstruction methods can be applied overlaid on a graph constructed from the data are sensor drifts [5], [9], [16], the creation of virtual sensors [17] and the creation of proxies [14], [15], [18]. Virtual sensors are nodes in which it is difficult to deploy a physical sensor, and in which the value of the pollutant is estimated from values in the vicinity [19]. Thus, graph signal reconstruction can also help maintain network data quality by obtaining virtual sensor estimates when any of the nodes are under maintenance or have been relocated. Signal reconstruction is therefore a key technique to benefit from similar sensors, including reference stations, which can correct data for multiple applications. 1 2 In this paper, we propose a signal reconstruction framework to maintain air pollution sensor network data quality. Therefore, we study different methods for the reconstruction of the graph signal for several pollutants, studying their reconstruction capabilities when all the nodes have samples, and when various nodes are estimated at the same time. In this way, we demonstrate their ability to estimate air pollution and their scalability for use in IoT air pollution monitoring networks. More precisely, in this study we: •propose a signal reconstruction framework based on graph signal reconstruction superimposed on a graph learned from the data. Thus, we compare the performance of three different graph signal reconstruction models applied to a set of Spanish reference stations that measure O3, NO2and PM10 which could have missing values or be virtual sensors, •analyze the scalability issues of the techniques for air pollution monitoring networks, and propose an application of clustering techniques to reduce these problems, •show a low-cost sensor drift compensation example in a heterogeneous IoT air pollution platform with reference stations and low-cost sensors by using the proposed signal reconstruction framework. The paper is organized as follows: section II covers the related work. Section III describes the graph learning and signal reconstruction techniques used, section IV describes the different Spanish reference station data sets employed. Section V shows the results for a set of experiments as well as the scalability study. Lastly, section VI concludes the paper. II. RELATED WORK In-situ calibration and current monitoring networks: the use and calibration of low-cost sensors for air pollution monitoring have been intensively studied during the last years [1], [2]. The calibration process is carried out in uncontrolled environments, which means [2] that the sensor is calibrated in-situ in the field of deployment under real environmental conditions. Machine learning has been a key technique for sensor in-situ calibration, where studies include multiple linear regression [6], [5], random forest [4], support vector regression [20], [3], and artificial neural networks [3]. Once the sensors have been calibrated, they are deployed forming a network, and the nodes report the estimated data using a machine learning algorithm employed in the in-situ calibration phase. Some authors also make spatial estimates or create air pollution maps from this data. The most common form of spatial estimation of pollution is Kriging, a geostatistical method that extrapolates the known contamination values in some sources to other geographical locations forming a continuous surface [21], [16], [22]. For example, Schneider et al. [21] make use of Kriging to merge values from sensors and reference stations improving this way the estimation, and Barcelo-Ordinas et al. [16] use Kriging estimates to correct average concentrations based on reference stations measures. Graph signal processing in air pollution monitoring networks: the study of these networks has also been carried out from a discrete point of view, modeling these networks as graphs. In [23] it is shown the use of Gaussian Markov random fields (GMRF) for the approximation of Gaussian fields and the extrapolation of environmental measurements. In addition, given the rise of the graph signal processing (GSP) field, which allows the use of classical signal processing techniques on defined signals in irregular structures such as graphs, many kinds of networks are modeled using graphs [13], [24]. The Laplacian matrix is the object of study of the GSP and is required to correctly describe the relationship between the network nodes, so there is a lot of literature available regarding the learning of the Laplacian matrix given a set of observations [13]. In the specific case of environmental monitoring networks, results have already been shown from the use of GSP on such networks. As examples, Jablonski [25] clusters tropospheric ozone measures in Poland using a GSP framework, and Ferrer-Cid et al. [11] compare three graph inferring methods for building a graph. Graph signal reconstruction techniques have also been used to estimate rainfall and temperature measurements [24], [26]. Limitations in current heterogeneous air pollution monitoring networks: in-situ calibration, where the signal from an individual sensor is estimated, has several limitations. One is its inability to estimate values at those moments in time when the sensor fails and is unable to give a reading [11], [14], [15]. Another is that as the sensor ages or the environmental conditions change from the time the calibration process was performed, sensors drift or age and the estimated data loses quality [16], [27], [9], [10]. Reference station data sets also report missing data [11]. The deterioration of the data quality of these sensors can be mitigated if in the estimation phase the signal of a problematic node is reconstructed using other sensors, which are potentially non-problematic, that were highly correlated during the graph learning stage. Thus, graph signal reconstruction for air pollution sensor networks is key to harnessing network information and maintaining data quality, where unobserved nodes (e.g., sensors with missing samples, drifting sensors, etc.) are reconstructed from a subset of observed nodes in the graph, also including places where there are no physical sensors (virtual sensors) [17], [14]. Graph signal reconstruction techniques: there are methods from the field of semi-supervised learning such as the Laplacian interpolation (Laplacian regularization from Belkin et al. [28]) that use the Laplacian of the graph to extrapolate the observed values to those that are not, maximizing the smoothness of the resulting signal. Other techniques, based on signal processing, use the Fourier transform assuming certain properties of the signal to recover the full signal given some measurements [29]. Some works address the question from the point of view of the kernel methods, kernelizing the signal reconstruction and obtaining the kernel ridge regression (KRR) [26]. Matrix completion methods are transductive methods that complete the missing entries of the data matrix assuming that it has a lower rank representation; e.g. the kernelized probabilistic matrix factorization (KPMF) [30] that uses graph kernels to factor the matrix. In addition, another recent field that has benefited from graph signal processing tools is graph neural networks (GNN).Among the networks developed we find ChebyNet [31], which approximates convolution filtering 3 through a Chebyshev polynomial filter, or the inductive graph neural network Kriging (IGNNK) [32], a 2-layer diffusion convolution neural network that allows reconstructing any of the nodes through a subnetwork selection scheme during the training. But the two last techniques need to be further developed, since matrix completion methods do not naturally fit into the problem of signal reconstruction, as for each new sample it needs to be re-trained. Besides, there not exist much literature about graph neural networks architectures for graph signal reconstruction in cases where data is limited. We restrict the comparison of reconstruction methods to linear models, since non-convex models usually require more data, which are often unavailable in low-cost sensor deployment environments. Moreover, non-convex models are more difficult to adapt to environments where any subset of nodes can have missing data. Graph signal reconstruction in air pollution monitoring networks: recently, research has been carried out by applying graph signal reconstruction to PM2.5 data sets [33], [34]. The matrix completion problem has also been tackled using variational graph autoencoders (VGAE) applied to NO2and PM data sets [35]. Graph convolutional recurrent neural networks have also been used for PM data [36]. However, as mentioned above, the matrix completion approach to signal reconstruction, or the need for graph neural networks for large amounts of training data, can make it difficult to use these models in sensor network deployments. In this paper, we opt for the use of linear graph signal reconstruction models on a graph learned from the data, given their low data and computational requirements. This allows extending the use of these techniques to both sensor deployment environments where the data may be scarce, and to environments where any node could fail and the signal reconstruction model would need to be recalculated. Furthermore, in most cases graph signal reconstruction models for air pollution are applied to graphs created from the geodesic distances of the nodes [33], [35], [36]. However, given the effectiveness of graphs learned from data in air pollution sensor networks [11], we chose to learn the graph from the data in our signal reconstruction framework. Our work: we propose a framework composed of graph signal reconstruction superimposed on a graph learned from the data to maintain the data quality of a sensor network. Since the data quality maintenance is proportional to the quality of the signal reconstruction, we compare the accuracy of three graph signal reconstruction methods to reconstruct air pollution monitoring signals with missing values for O3, NO2and PM10; Laplacian interpolation, GSP low-pass reconstruction and kernel-based graph signal reconstruction. We propose a cluster-based methodology to split the problem of graph learning and signal reconstruction in order to overcome scalability issues for large air pollution sensor networks. And finally, we show a case study on data quality maintenance where signal reconstruction is used to correct a drifting lowcost sensor. TABLE I NOTATION SUMMARY. SYMBOL MEANING N|PNumber of nodes |Number of observations G| V | E Graph |Set of nodes |Set of edges A|WGraph adjacency matrix |Graph weight matrix D|LGraph degree matrix |Graph Laplacian matrix xi|N(i)ith vertex |ith vertex neighborhood Σ|ΘCovariance matrix |Precision matrix tr(·)|det(·) Trace of a matrix |Determinant of a matrix k·k1| k·kFl1-norm of a matrix |Frobenius norm of a matrix α|βGraph learning hyperparameters U|KLaplacian eigenvector matrix |Graph kernel matrix M | U Set of observed |unobserved or missing nodes M|U Number of observed nodes |unobserved nodes |M| | U†Cardinality of a set |Matrix pseudoinverse 0|1Vector of zeros |Vector of ones III. GRAPH SIGNAL RECONSTRUCTION FRAMEWORK This section presents the framework to learn the graph topology given a set of observations and introduces the signal reconstruction techniques used in the study. Bold uppercase letters denote matrices, bold lowercase letters denote vectors and lowercase letters denote scalars. Table I summarizes the notation used throughout the paper. Figure 1 represents the proposed signal reconstruction framework where a graph signal reconstruction model is superimposed on a graph learned from the sensor network data. The following sections describe the framework’s two main pieces; graph learning and signal reconstruction. A. Graph learning The graph learning task consists in learning the graph triplet G={V,E,W}given a set of observations X∈RP×N, where Pcorresponds to the number of observations and N corresponds to the number of nodes. Vis a prefixed set of nodes, E={eij:vi, vj∈ V} are the learned edges between nodes and Wis the weight matrix whose entries encode the edges weights. Furthermore, the Laplacian matrix Lalso defines the connectivity of the resulting graph. The Laplacian matrix is defined as L=D-W, where Dis the diagonal degree matrix with values Dmm=PnWmn. For an undirected graph (our case), the Laplacian matrix is symmetric, L=LT. This graph topology can then be used to flow information between similar sensors using signal reconstruction techniques. The nodes that make up the graph are reference stations that provide accurate data, and low-cost sensor array nodes, which provide the estimation of values already calibrated in-situ with supervised machine learning methods. In recent studies, several approaches have been studied to obtain the weight matrix Wor the Laplacian matrix L, from statistical approaches, such as the graphical lasso algorithm, to graph signal processing approaches with distance-based and smoothness-based methods. As most of the reconstruction methods rely on the signal smoothness assumption -vertices connected with large weights tend to have similar values [24], [13]- the smoothness method shown by Dong et al. [37] is used. Dong et al. formulate a jointly non-convex problem 4 Fig. 1. Signal reconstruction framework. Given a set of graph learning and signal reconstruction hyperparameters, the Laplacian can be learned from the data, and network measures can be reconstructed using both the graph and a signal reconstruction model. to find a filtered version Yof the observations Xand the Laplacian matrix L: min L,YkX−Yk2 F |{z } data fidelity +α tr(YTLY) | {z } smoothness +βkLk2 F |{z } sparsity s.t. tr(L) = n, Lij =Lji ≤0, i 6=j, L·1=0. (1) This problem is solved by alternating the minimization on Yand L. Two scalar hyperparameters need to be provided to the algorithm; αand β. Hyperparameter αcontrols the smoothness of the solution, Lsmooth with respect to Y, while hyperparameter βpenalizes the Frobenius norm ||·||2 Fof the Laplacian matrix, so controlling the number of non-zero entries of the matrix. As the authors mention, the computational complexity scales quadratically with the number of vertices in the graph. B. Signal reconstruction Signal reconstruction is key to maintaining the data quality of a sensor network. Estimates can be obtained for a sensor that may present problems (e.g., missing value, malfunction, drift, etc.) using information from its neighboring sensors. In addition, in a worst case, such estimation can also be performed when the information is partial, i.e., there is more than one sensor whose signal needs to be reconstructed or presents missing data. We consider the problem of having a subset of nodes (vertices of the graph) with samples and we would like to estimate the signal of the graph in the other vertices so that the resulting signal is smooth. This can be seen as a signal reconstruction problem that can be solved using methods from various fields. In this paper we consider the following; Laplacian interpolation, GSP low-pass based graph signal reconstruction, and kernel-based graph signal reconstruction1. Laplacian interpolation [28] is a graph-based semisupervised learning algorithm whose goal is regression with graph regularization assuming smoothness with respect to the 1All Python code implementing the methods explained can be downloaded here at the research group http://sans.ac.upc.edu/?q=node/231. Laplacian matrix. This method regresses a function f:V→R over the graph G, assuming partial information, it is to say, information for M nodes. GSP low-pass based graph signal reconstruction [29] is a graph signal processing reconstruction method that considers subsampling low-pass graph signals, thus assuming a sparse Fourier coefficient vector. Finally, kernel-based graph signal reconstruction [26] formulates signal reconstruction as a regression task on reproducing kernel Hilbert spaces of graph signals. In the following, we briefly describe the three methods and their correspondence to a linear model. 1) Laplacian interpolation: Also known as graph interpolated regularization by Belkin et al. [28], this method minimizes the quadratic form of the Laplacian matrix with respect to the graph signal x, which is a measure of signal smoothness, given that the observed measurements {xm:∀m∈M} remain unchanged. This reconstruction results in a linear combination of the observations weighted by the Laplacian matrix entries Lij. Min yyTLy s.t. ym=xm,∀m∈ M, (2) 2) Graph Signal Processing (GSP) low-pass reconstruction: This technique [29] recovers a set of unobserved nodes {xu:∀u∈U} given that the graph discrete Fourier transform of the complete signal is sparse and of low-pass nature, meaning that it has Knonzero components corresponding to the lowest frequencies (smallest eigenvalues λiof the Laplacian matrix). Given that the Laplacian matrix admits the eigendecomposition L=UΛUT, the graph discrete Fourier transform (GDFT) of a graph signal xcan be computed as: X=U−1x(3) Now, a K-sparse GDFT coefficient vector of the following form is to be recovered: X= (X(0),...,X(K−1),0,...,0)T(4) For this purpose a subset of measurements Mare used to recover the sparse coefficient vector by solving the following system: xM=UMKXK(5) 5 Since the system is overdetermined, the solution of the above system in the least squares sense is given by XK=U† MKxM, where U† MK= (UT MKUMK)−1UT MKis the matrix pseudoinverse of UMK; the nonzero coefficients are obtained, and after appending the corresponding zero coefficients, the inverse graph discrete Fourier transform (IGDFT) x=UX is computed to obtain the complete set of measurements xat all vertices. 3) Kernel-based graph signal reconstruction: Romero et al. [26] introduced the kernelized reconstruction of graph signals. Given a set of noisy observations {xm=y0(vm) + ǫm:∀m∈M}, the kernel regression estimates the underlying function y0in a reproducing kernel Hilbert space (RKHS) H, which is a space of functions f:V→R: H:= {f:f(v) = N X n=1 αnk(v, vn), αn∈R}(6) Where k:V×V→Ris a kernel map that defines some similarity between nodes. After some manipulation and the application of the representer theorem, which states that the solution can be expressed as a linear combination of the kernel map values of the observed nodes ˆ f0(v)= Pm∈M ˆ ¯αmk(v, vm), we can define the kernel ridge regression problem: ˆ ¯α:= arg min ˆ ¯α∈RM 1 M||¯y −¯ K¯α||2 |{z } MSE +µ¯αT¯ K¯α |{z } RKHS norm (7) Where the mean squared error (MSE) is used as loss function, the regularization term is the RKHS norm of the solution f0,¯α=Φα,¯ K=ΦKΦTand Φis the sampling matrix. This problem has closed-form solution: ˆ ¯α= ( ¯ K+µMIM)−1¯y (8) The key to the successful application of kernel-based graph signal reconstruction is in the kernel selection. Thus, based on the assumption that the signal evolves smoothly over the graph, graph kernels that capture such prior information can be used, a common choice is the diffusion kernel (KRR-DIFF) where r(λ)= eσ2λ/2: K=r†(L) = Ur†(Λ)UT(9) Vertex-covariance kernel (KRR-COV) can also be used, which is based on the covariance instead of graph structure, which turns out to be the local linear minimum mean squared error (LMMSE) estimator on a Markov random field (MRF) [26]. Since the actual covariance matrix is unknown, the graphical lasso has been used to estimate the covariance matrix ˆ Σ. Given the presence of multicollinearity in air pollution data [11] and that the covariance matrix has to be estimated, the result is suboptimal. 4) Linear models: Given the analytical form of the solution of the methods described above, it can be noticed how the reconstruction of any of the methods corresponds to a linear combination xU=βxMof the observed nodes {xm:∀m∈M}. Thus, Table II shows how the βcoefficients are calculated for the reconstruction. As it can be seen, the main operations correspond to a matrix inversion and multiplication; in the case of Laplacian interpolation the β are calculated by the Laplacian L, in the case of GSP by the Laplacian eigenvector matrix U, in the case of the kernelized ridge regression with diffusion kernel by a pre-computed kernel matrix K, and in the case of the kernelized ridge regression with vertex-covariance kernel by the data covariance matrix ˆ Σ. TABLE II EQUIVALENCE OF THE MODELS TO A LINEAR MODEL. MODEL: xU=βxM Lap.Int β=−L−1 UU LUM GSP β=UUK(UT MKUMK)−1UT MK KRR-DIFF β=KU·ΦT(ΦKΦT+µMIM)−1 KRR-COV β=ˆ ΣU·ΦT(Φˆ ΣΦT+µMIM)−1 IV. DATA SETS This section introduces the data sets used for the comparison of the reconstruction methods described above. Nowadays, there are many open data initiatives to improve transparency and encourage research. The Spanish government carries out the measurement of pollution levels by means of reference stations, which are worth thousands of euros given their high accuracy, and makes such data public. Therefore, data captured by reference stations2in the area of Catalonia, Spain, over an area of 32,108 km2have been selected for three pollutants; tropospheric ozone (O3), nitrogen dioxide (NO2) and particulate matter 10 (PM10). These pollutants exhibit different spatial behavior, which allows studying the signal reconstruction under various spatial conditions. In addition, the use of reference stations over a large area makes it possible to investigate the feasibility of building a large network and the application of these methods. Table III shows the characteristics of the data sets used, and Figure 3 presents the location of the reference stations for the data sets. Moreover, Table III shows the means for the pollutants as well as the pooled standard deviation to better interpret the error measures in the following sections. These three data sets will be used to show the ability to reconstruct signals in an air pollution monitoring network in a regional area such as the metropolitan area of Barcelona, Spain. The fourth data set corresponds to the deployment of a heterogeneous IoT network for the European project H2020 CAPTOR during the summer of 2017 [38]. In this case, we set the data set to two reference stations and six nodes with lowcost sensors. These nodes are composed of Arduino as the processing unit, temperature, humidity, and five SGX Sensortech MICS 2614 metal oxide ozone sensors. The data are sent using a cellular network to a repository for off-line processing. This data set will be used to show a concrete application of signal reconstruction in a heterogeneous network when an sensor drifts. V. RESULTS The methodology used to learn the graph and train the signal reconstruction method is as follows; i) we use 100% of the data 2These data are available at http://mediambient.gencat.cat/ca/05 ambits dactuacio/atmosfera/qualitat de laire/vols-saber-que-respires/descarrega-de-dades/. 6 TABLE III STATISTICS OF THE DATA SETS USED FOR THE SIGNAL RECONSTRUCTION EXPERIMENTS. DATA SET POLLUTANT # NODES # SAMPLES PERIOD MEAN (µgr/m3)POOLED STD. (µgr/m3) 1 O346 1155 2019/01/01 - 2019/05/31 66.84 28.61 2 NO260 983 2019/01/01 - 2019/05/31 23.46 16.52 3 PM10 33 709 2019/01/01 - 2019/05/31 20.11 11.51 4 O38 2612 2017/06/18 - 2017/09/16 64.92 34.84 for cross-validation (CV), ii) given the 2 hyperparameters of the graph learning method and the possible hyperparameters of the signal reconstruction method, we apply a 5-fold CV, iii) in each of the folds we learn the graph using the training data, we reconstruct each one of the nodes in the test and report the average root-mean squared error (RMSE) between all the nodes, and iv) given the hyperparameters corresponding to the lowest CV error we obtain the graph topology and the trained reconstruction method, section V-A. From now on, all performance metrics reported throughout the paper are crossvalidation metrics. Three experiments are carried out for comparing the performance of the graph signal reconstruction methods. The first, section V-B, consists in reconstructing all nodes given that all neighbors are available during the CV, thus obtaining the average CV error to show the reconstruction power of the methods. The second, section V-C, simulates that a variable percentage of nodes need to be estimated simultaneously (e.g. some nodes may have missing data or are faulty nodes), this shows the ability of the methods to reconstruct the signals in a semi-supervised learning setting. The last experiment, section V-D, analyzes the scalability of the framework including both graph learning and signal reconstruction models. Finally, to conclude the results part, section V-E shows a practical example of the signal reconstruction framework when the network compensates for sensor drift. The experiments in sections V-A to V-D use data sets 1, 2 and 3, while the experiment in section V-E uses data set 4. A. Learning an air pollution monitoring graph Figure 1 shows the usual procedure for graph inference and signal reconstruction. First, given a data matrix Xand the graph learning method with its hyperparameters αand β(eq. 1), we get the Laplacian matrix Lthat describes the relationships between the nodes. Then, given a graph signal reconstruction model and its hyperparameters - none for the Laplacian interpolation, Kfor the GSP, µand σ2 for KRR-DIFF and µfor KRR-COV - we can reconstruct a graph signal at any time tgiven a subset of observed nodes M. Actually, this is the methodology performed during the cross-validation, where the graph is learned using the training set of that fold and the nodes in the test set, of the same fold, are reconstructed. The four graph signal reconstruction models are transductive, it is to say, the coefficients for the reconstruction can be calculated given a set of observed nodes to reconstruct the unobserved ones, but if the set of observed nodes changes (e.g. some nodes have missings) the model needs to be recalculated to reconstruct the new set of unobserved nodes. Algorithm 1 gives a detailed description of the signal reconstruction framework process, where f(·) is the graph signal reconstruction model, Cis the number of clusters, and {α,β,hyp}are the hyperparameters for the graph learning and graph signal reconstruction models. Lines 2 to 5 partition the set of nodes Vinto C disjoint clusters, where Ci⊆V are the nodes indexes belonging to the i-th cluster, and learn a separate Laplacian Liper cluster. We elaborate more on this idea in the scalability section V-D, for the moment we assume that we do not partition the set of nodes (i.e., C=1). Algorithm 1 Cluster-wise graph signal reconstruction. Input: {α,β,X,f(·),hyp, C} 1: ¯ X←Standardization(X) 2: C1, ..., CC←Clustering(¯ X, C)⊳↑Scalability 3: for i= 1 to Cdo 4: Li←Graph Learning(αi, βi,¯ XCi) 5: end for 6: while xnew do ⊳New sample collected 7: U ← Get Unobserved Nodes(xnew ) 8: M ← V \ U 9: ¯ xnew ←Standardization(xnew ) 10: for i= 1 to Cdo 11: ¯ xnewCiU←f(¯ xnewCiM ,Li,hypi)⊳Reconstruction 12: end for 13: xnew ←Unstandardization(¯ xnew ) 14: return xnew 15: end while There are then two blocks of hyperparameters; one that corresponds to graph learning and the other to signal reconstruction. Therefore, it is possible that for a given graph, with a certain number of edges, two methods perform in a different way. For this reason, cross-validation (CV) is made with all the hyperparameters, both for the graph learning and for the signal reconstruction, since the performance of the reconstruction method can be associated with the obtained graph. To illustrate this, Figure 2 shows the average CV RMSE for each of the methods given the graph obtained. That is, the average RMSE of CV for each αand βand the hyperparameters of the signal reconstruction method that have obtained the lowest error (the best Kfor GSP, the best µand σ2for KRR-DIFF and the best µfor KRR-COV). The case of the kernelized ridge regression with vertex-covariance kernel is a special case, where the covariance matrix is estimated using the graphical Lasso algorithm with different λhyperparameter values, thus obtaining an adjacency matrix (given the precision matrix Θ=Σ−1) but not a Laplacian matrix. The same trends can be seen in the three plots in Figure 2. Laplacian interpolation gets its best error for a low number of edges, increasing later as the number of edges in the graph grows. The KRR-DIFF finds its lowest RMSE, similar to that of the Laplacian interpolation, but with a larger number of 7 TABLE IV CV PERFORMANCE METRICS FOR THE DATA SETS AND RECONSTRUCTION METHODS. METHOD O3NO2PM10 RMSE MAE R2#EDGES RMSE MAE R2#EDGES RMSE MAE R2#EDGES Lap.Int. 12.41 9.51 0.66 216.80 8.72 6.44 0.42 369.80 8.16 5.66 0.26 297.60 GSP 13.43 10.44 0.56 1035.00 9.03 6.73 0.26 1761.20 8.54 5.99 0.16 528.00 KRR - DIFF 12.02 9.21 0.69 614.40 8.49 6.27 0.46 1514.00 8.10 5.61 0.29 481.80 KRR - COV 11.72 8.98 0.71 328.80 8.23 6.04 0.50 638.40 8.03 5.51 0.30 198.00 (a) O3data set. (b) NO2data set. (c) PM10 data set. Fig. 2. Average CV RMSE obtained for different number of edges and the best signal reconstruction hyperparameters. Line in green corresponds to the Lap.Int., blue line corresponds to GSP, and red and black lines correspond to KRR-DIFF and KRR-COV respectively. edges. The GSP reconstruction shows great instability for very sparse graphs, but its best error is obtained as the density of the graph increases. Finally, the case of KRR-COV shows great instability due to the multicollinearity present in the data, in many cases, it is not possible to obtain the complete graph with the graphical Lasso due to this problem. Also for similar graphs, the error can vary a lot, but the best error seems to be obtained with 50% of the edges. So, for a low number of edges the Laplacian interpolation and KRR-DIFF are the best, the KRR-COV seems to obtain its best error with a relatively small number of edges, and the low-pass based reconstruction needs a large number of edges (around 100%) to obtain its best performance. Although the KRR-COV is the best linear estimator for all three data sets, Figure 2 shows how for sparse graphs (<25% of the edges) the other methods produce a lower error. This is because the smoothness-based graph learning method is able to find a better set of neighbors per node for signal reconstruction than graphical Lasso, so although KRRCOV is optimal given a dense graph, it is not able to obtain the best performance for sparse graphs. In summary, each method behaves differently for a graph, so graph learning must be coupled to the signal reconstruction model in the crossvalidation procedure. B. Signal reconstruction: All nodes available Let us see the result of learning the graph and performing signal reconstruction given that the data of all node neighbors are available. The average CV error of all reference stations is used as performance metric. Table IV shows the minimum average CV RMSE between stations, the average CV mean absolute error (MAE), as well as the corresponding average CV coefficient of determination R2, and the average number of edges for the data sets and signal reconstruction methods. The methods appear to perform similarly, with KRR-COV being the best and GSP the worst. For the O3we can observe how the GSP is the worst method obtaining an R2of 0.56 with a complete graph (1035 edges) and the KRR with vertexcovariance kernel is the best model obtaining R2of 0.71 and 328.8 edges on average, followed by the KRR-DIFF that obtains a similar performance with a denser graph (614.40 edges on average) and the Laplacian interpolation whose best performance is obtained with a sparse graph. The same trend is observed for the NO2where the KRR-COV obtains the best performance with an R2of 0.50 and 638.40 edges on average and followed by the KRR-DIFF and Laplacian interpolation that obtain a denser and a sparser graph respectively. Finally, the reconstruction methods applied to the PM10 data set obtain the worst results with R2s around 0.16-0.3, but this time the KRR-COV performs the best with an average R2of 0.30 and the sparsest graph with 198.0 edges on average. As it has been observed, O3and NO2can be estimated quite well by reconstructing the graph signal, but PM10 can not. The reason is that PM10 is more heterogeneous in the area of study than O3and NO2, which makes it difficult to estimate using neighboring nodes. Among the methods, the KRR-COV obtains the best results as it can be interpreted as the local minimum linear mean squared error (LMMSE) estimator on a Markov random field. Nevertheless, as the covariance matrix is estimated and the data suffer from multicollinearity, the result is suboptimal and the graphical Lasso has not been able to obtain the covariance matrix with all dependencies (100% of the edges). However, the KRR-DIFF performs almost as well as KRR-COV, followed by Laplacian interpolation which also shows good results. The Laplacian interpolation has been able to obtain an error close to the optimal local linear estimator (KRR-COV) since the smoothness of the Laplacian matrix with respect to the training data is a criterion of the graph learning optimization problem. As for the resulting graphs, the GSP method obtains the best performance with 100% of the edges. On the other hand, the Laplacian interpolation obtains its best performance with 21% of the edges (with respect to the complete graph) for O3, 21% of the edges for NO2and 56% of the edges for PM10. This is an interesting result, since these methods allow obtaining a low RMSE with a small number of edges, which makes the graph sparse when the number of nodes is increased. Furthermore, in the previous section V-A, it has been observed that the vertex-covariance method is no longer the best model for sparse graphs, with approximately less than 25% of the edges. Figure 3 shows the graphs obtained by the cross-validation procedure using the Laplacian interpolation method as reconstruction method. The color of the nodes denotes the average 8 Fig. 3. Plots representing the CV result for the data sets using the Laplacian interpolation method. Top figures show the graphs obtained with node color denoting the average cross-validation R2of each station. The nodes highlighted in red denote reference stations with a CV R2below 0.5. Bottom figures show the empirical R2distribution of the graphs above. CV R2of the given stations. As shown in table IV, despite having an average R2of 0.66, many of the stations in areas with a high density of stations (e.g. Barcelona area) have an R2around 0.8. Thus, ozone values in denser areas of similar reference stations can be estimated effectively. The same is observed for NO2, although it presents a lower spatial correlation, some reference stations obtain a coefficient of determination larger than 0.7. Finally, PM10 can not be approximated quite well using similar reference stations as most stations get an R2smaller than 0.6. The results show a good prediction for most of the stations. Figure 3 shows the location of the nodes, some of them are far away from others or far from zones with density of stations. In the same figure, we can observe the reference stations highlighted in red, which are those with a CV R2smaller than 0.5. In the case of O3, these are the most distant stations, and only 10 out of 46. In the case of NO2, they already represent a larger percentage of the network stations with 19 stations out of 60 and are more distributed. Finally, in the case of PM10 the bad reconstructed stations represent the majority, 22 stations out of 33. This represents the idea that O3and NO2are more predictable due to their homogeneity. This result indicates that if we look at the individual RMSE of the stations instead of the global one, those stations that are in a high-density area achieve a high R2and, therefore, a good estimate, while those that are more distant and, therefore, do not have many neighbors, do not take advantage of the nodes of the network as much. As an example, if we considered as outliers the stations with low R2and kept them out of the calculation, the average R2with the KRR-DIFF would improve from 0.69 to 0.78 for O3and from 0.46 to 0.65 in the case of NO2. This shows the existence of a possible grouping of nodes into those that can be predicted well with their neighbors (group of similar nodes), and into other nodes that can not be predicted well (group of not similar nodes). This idea will be examined in more detail in the scalability section V-D, where similar nodes will be grouped using a clustering technique in order to improve the scalability. C. Signal reconstruction: Semi-supervised scenario The previous section V-B showed the CV error of reconstructing the signal of a reference station when the others were available. In this section, we experiment with a semisupervised learning setting, estimating multiple nodes at the same time, since we want to reconstruct several stations at once or we want to reconstruct some nodes that have missing data. This scenario is of special interest in the air pollution monitoring paradigm, since in a network there will always exist malfunctioning nodes, nodes with loss of samples, nodes in maintenance, and even the presence of virtual sensors. That is why the graph signal reconstruction model needs to be flexible to couple with the absence of data in neighboring sensors and estimate the signal in all nodes given a learned graph topology. Given a fixed set of hyperparameters, those found in the previous section, we calculate the CV error selecting a random incremental percentage of nodes to be estimated simultaneously, as if they were virtual sensors during the validation set, and perform ten repetitions. Figure 4 shows the mean CV error with bands indicating its 95% confidence interval for the signal reconstruction methods and data sets. Figure 4.a) shows the results for the O3data set. First of all, we can observe how the GSP low-pass based reconstruction is the method that has the highest error with a 95% of nodes available with 13.45 µgr/m3followed by a large difference by the Laplacian interpolation method with 12.22 µgr/m3. In the previous section (100% of nodes available), the Laplacian interpolation (12.41 µgr/m3) already outperformed the GSP method (13.43 µgr/m3). Moreover, as the percentage of available nodes decreases, the GSP low-pass based method is the reconstruction method whose error increases faster, 9 (a) O3data set. (b) NO2data set. (c) PM10 data set. Fig. 4. Average CV error and its 95% confidence interval for several percentage of available nodes and 10 repetitions. rising from 60% of nodes available. Thus, this method seems to be unable to generalize to the semi-supervised setting. The Laplacian interpolation and the kernelized ridge regressions are performing the best with a large difference. With 95% of the nodes available, the kernelized ridge regression with a diffusion kernel obtains a CV RMSE of 11.91 µgr/m3and the KRR with the vertex-covariance kernel obtains a CV RMSE of 11.50 µgr/m3, clearly the KRR-COV is the lower-bound of KRR-DIFF and Laplacian interpolation, and the three follow the same trend as the percentage of available nodes increases. In these latter cases, the error is slightly smaller than in the previous section probably due to the random selection of subsets of nodes, but it is noticed that with a high percentage of nodes available 95-80% the error increases from 11.91 to 12.34 µgr/m3in the KRR-DIFF case, and from 11.86 to 12.27 µgr/m3in the vertex-covariance case. Finally, the error of all the reconstruction methods seems to grow significantly from 40% of available nodes. In Figure 4.b) the same results can be seen for the NO2data set. The GSP low-pass based method is the worst performing method, 8.66 µgr/m3, with a high percentage of nodes available (95%). The two KRR methods obtain similar errors, 8.03 µgr/m3and 7.75 µgr/m3respectively, in the case of NO2, the difference between the two is even less than in the case of O3. The kernel ridge regressions and the Laplacian interpolation methods show a similar pattern, the error with 95% of the nodes (57 nodes) is less than the average error of all the nodes (subsection V-B) due to the random node subset selection. As the percentage of available nodes decreases the error increases, although the increase is moderate, the GSP low-pass method degrades considerably from 60% nodes available, and in the kernel-based methods the increase is produced from 40 percent to 20 percent, going from 9.57 µgr/m3to 10.19 µgr/m3and 9.33 µgr/m3to 9.98 µgr/m3respectively. In summary, the kernelized ridge regressions and the Laplacian interpolation obtain similar values, the NO2has a smaller average concentrations (see section IV) and these methods get lower average R2for the NO2data, since its concentrations are less smooth in an area than the O3. Finally, figure 4.c) shows the results for the particulate matter data set. Again, the methods follow the same trend, where as the percentage of available nodes increases the error decreases. It is worth remembering that in subsection V-B the PM10 has been observed not to be predictable using neighboring concentrations, achieving a maximum coefficient of determination of 0.3 with the KRR-COV. Thus, the same results are maintained in the semi-supervised case where the worst method is GSP and the best the KRR-COV followed closely by its similar with diffusion kernel and the Laplacian interpolation. With a 20 percent of nodes available the methods get an error of; 13.32 µgr/m3with GSP, 9.17 µgr/m3with Laplacian interpolation, 8.95 µgr/m3with KRR-DIFF and 8.81 µgr/m3with KRR-COV. In summary, we can conclude that Laplacian interpolation and kernel-based methods are robust and efficient in reconstructing the signal when an acceptable percentage (>60%) of nodes are available, and that efficiency decreases as fewer nodes become available. D. Scalability This section studies the scalability of the signal reconstruction framework, distinguishing between the graph learning task and the reconstruction of a graph signal xat a time instant t. Table V shows the costs and the required hyperparameters for the methods. It is important to mention that the learning of the graph is linked to the training of the reconstruction method, since their hyperparameters are selected by means of a 5-fold CV. In this way, the more hyperparameters, the more dimensions the grid search will have and the more cost the cross-validation will have. The graph learning task is solved by iteratively addressing a convex optimization problem that scales quadratically with the number of nodes N, so that, it is the most expensive task in the learning process. On the other hand, learning the graph for signal reconstruction with kernel ridge regression and diffusion kernel will require four hyperparameters (α,β,µand σ2) and, therefore, will be the one that the grid search will take the longest. Once the hyperparameters are selected and thus the graph learned, it is not necessary to use a training set to train the graph signal reconstruction method, since these are transductive methods, where only the values of the set of observed nodes xMare needed to interpolate the unobserved ones xU at instant t. In the test set, the predictions will have the cost shown in the Table V given the reconstruction models seen in section III-B4. Generally, all four reconstruction methods require a matrix inversion or multiplication, whose cost is