scieee AI-readable full text Open interactive document viewer

Graph learning techniques using structured data for IoT air pollution monitoring platforms

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

Abstract

Existing air pollution monitoring networks use reference stations as the main nodes. The addition of low-cost sensors calibrated in-situ with machine learning techniques allows the creation of heterogeneous air pollution monitoring networks. However, current monitoring networks or calibration techniques have limitations in estimating missing data, adding virtual sensors or recalibrating sensors. The use of graphs to represent structured data is an emerging area of research that allows the use of powerful techniques to process and analyze data for air pollution monitoring networks. In this paper, we compare two techniques that rely on structured data, one based on statistical methods and the other on signal smoothness, with a baseline technique based on the distance between nodes and that does not rely on the measured signal data. To compare these techniques, the sensor signal is reconstructed with a supervised method based on linear regression and a semi-supervised method based on Laplacian interpolation, which allows reconstruction even when data is missing. The results, on data sets measuring O3, NO2 and PM10, show that the signal smoothness-based technique behaves better than the other two, and used together with the Laplacian interpolation is near-optimal with respect to the linear regression method. Moreover, in the case of heterogeneous networks, the results show a reconstruction accuracy similar to the in-situ calibrated sensors. Thus, the use of the network data increases the robustness of the network against possible sensor failures.

Full text

1 Graph Learning Techniques Using Structured Data for IoT Air Pollution Monitoring Platforms Pau Ferrer-Cid, Jose M. Barcelo-Ordinas, Jorge Garcia-Vidal Abstract—Existing air pollution monitoring networks use reference stations as the main nodes. The addition of low-cost sensors calibrated in-situ with machine learning techniques allows the creation of heterogeneous air pollution monitoring networks. However, current monitoring networks or calibration techniques have limitations in estimating missing data, adding virtual sensors or recalibrating sensors. The use of graphs to represent structured data is an emerging area of research that allows the use of powerful techniques to process and analyze data for air pollution monitoring networks. In this paper, we compare two techniques that rely on structured data, one based on statistical methods and the other on signal smoothness, with a baseline technique based on the distance between nodes and that does not rely on the measured signal data. To compare these techniques, the sensor signal is reconstructed with a supervised method based on linear regression and a semi-supervised method based on Laplacian interpolation, which allows reconstruction even when data is missing. The results, on data sets measuring O3, NO2and PM10, show that the signal smoothness-based technique behaves better than the other two, and used together with the Laplacian interpolation is near-optimal with respect to the linear regression method. Moreover, in the case of heterogeneous networks, the results show a reconstruction accuracy similar to the in-situ calibrated sensors. Thus, the use of the network data increases the robustness of the network against possible sensor failures. Index Terms—IoT platform, Air pollution monitoring networks, Low-cost sensors, Graph Signal Processing, Signal reconstruction. I. INTRODUCTION AIR pollution is becoming a major concern for most political leaders and people around the globe. Studies from well-known organizations such as the World Health Organization (WHO) inform about the increasing number of deaths per year due to the exposure to air pollution. Because of this problem, in recent years there has been a growing interest in deploying IoT platforms with applications in fields such as agriculture [1] and air quality monitoring [2]. In the latter case, the use of low-cost sensors to deploy IoT platforms is being studied and analyzed nowadays. The greatest benefit from using these low-cost sensors is their reduced cost compared to reference stations used by government organizations to monitor pollution levels. However, the major problem of these sensors is that they are not calibrated by the manufacturer Pau Ferrer-Cid ([email protected]), Jose M. Barcelo-Ordinas ([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 dUniversitats i Recerca de la Generalitat de Catalunya i del Fons Social Europeu. or they have been calibrated in controlled chambers. Thus, they are not guaranteed to perform well or accurate enough at deployment locations. During the last few years, the studies have focused on the process of in-situ calibration of low-cost sensors for air pollution [3], [4]. Most of them proceeded to place a sensor beside a reference station, which gives accurate information, and then calibrate the low-cost sensor with a supervised machine learning algorithm. Once calibrated, the low-cost sensors reconstruct the signal of the measured pollutant. The limitation of these techniques is that the error obtained in the estimation of the contaminant, e.g. root mean square error (RMSE), depends on the accuracy of each of the machine learning methods used in the calibration process [5], [6], [7]. In addition, these methods are not able to avoid the bias of pollutant measurements due to changing environmental conditions [6]. Moreover, when data is missing, which is often the case even for reference stations and low-cost sensors, the supervised methods cannot estimate the value of the signal at that time. One way to reconstruct the signal when there is missing data, when a bias occurs in a sensor, or when a virtual sensor is introduced to increase the spatial resolution is to build a graph and use the knowledge of neighboring sensors that measure the same signal, and reconstruct the signal by adding that knowledge, including not only the values of neighboring lowcost sensors, but also the values of nearby reference stations. The following are examples of applications where these cases may occur: (i) a reference station or sensor fails to report data due to hardware malfunction, loss of power supply/batteries or maintenance situation, (ii) a virtual sensor is placed where a physical sensor is difficult to deploy, or (iii) to recalibrate a sensor that is drifting or aging. Hence, this network-based approach provides robustness to the monitoring network, being able to provide estimates in the cases mentioned above. For these reasons, it is interesting to investigate methods of reconstructing the signal produced by a heterogeneous sensor network that incorporates the knowledge of the neighbors when estimating the value of the pollutant concentration. The construction of graphs for the representation, analysis, processing and visualization of signals on structured data such as those found in a heterogeneous sensor network has had a boost in recent years [8], [9], [10], [11], [12]. The classic method proposed in the literature [8], [13] for this kind of sensor networks is to create the edges that join the nodes of the graph following a function that depends on the distance between the nodes. This method has the disadvantage of not taking into account the similarity of the measurements taken © 2021 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.2021.3067717 2 by the sensors. Thus, one of the challenges and key points for the representation of a sensor network using graphs is to estimate the structure of the graph that underlies the measured data [8], [9], [13]. As Dong et al. [9] mention, there are several ways to build the graph from the data depending on whether you use i) statistical methods based on graphical probabilistic models such as Markov random fields (MRFs) or Bayesian networks, ii) methods based on graph signal processing (GSP), or iii) methods based on physically motivated models. From the statistical point of view, there are several methods for finding the most similar nodes in a graph, but the most important one is Graphical Lasso [14]. Using this method, the connectivity of a graph can be found (i.e. which sensors are dependent), assuming that the data collected from the different sensors form a Gaussian Markov random field (GMRF). On the other hand, a field of growing interest called graph signal processing (GSP), translates the idea of a signal (i.e. sensor signal) to an irregular domain like graphs [8], [10]. A key problem tackled by the GSP community is finding the graph connectivity, by means of the Laplacian matrix L, using a set of observed signals over the graph [11]. The purpose of this paper is to present some well-known and novel graphical tools for finding a good representation for sensor networks using structured data for air pollution monitoring, and consequently improving their robustness given the limitations of in-situ calibration. Since the relationships between nodes in a low-cost heterogeneous network may not be well described by the physical distances between nodes, we compare the statistical and GSP methods to air pollution data obtained from reference stations and real low-cost sensor data with the method based on distances between nodes. To make this comparison we apply two reconstruction techniques, based on the use of the measurements of the nodes neighboring the node where we want to reconstruct the signal, with different properties. The first reconstruction method is a supervised technique based on the use of a multiple linear regression in which the independent variables are the neighboring nodes. The second method of reconstruction is based on the use of a semi-supervised technique called Laplacian interpolation that has the advantage of not needing previous training, and that allows to reconstruct the signal even when there is missing data in the neighboring sensors. We call the resulting graphbased framework graph sensing. This inferred graph topology provides a baseline for applying a wide range of graph-based tools; community detection, clustering, filtering, etc. More specifically, in this paper we: •introduce three well-known techniques such as Graphical Lasso, a distance-based graph and a smoothness-based graph to describe the topology of an air pollution monitoring network, •compare the characteristics of the three topologies obtained with the real data obtained from reference stations in the Barcelona area, and with the real data obtained from the low-cost IoT platform H2020 CAPTOR deployed in Spain in 2017, •compare the performance of signal reconstruction using a supervised method (multiple linear regression) and a semi-supervised method (Laplacian interpolation), •show the estimation accuracy using neighboring information in homogeneous and heterogeneous air pollution monitoring networks, even when sensing nodes present missing data. The paper is organized as follows: section II covers the related work. Section III outlines the different approaches for inferring the graph topology. Section IV describes the data sets used in the analysis. Section V explains the methodology for learning the graph topology and signal reconstruction. Section VI describes the results and discusses the performance of the models. Finally, section VII presents the conclusions. II. RELATED WORK The study of the use of low-cost sensors for the estimation of pollution concentrations is an important field of research [2], [5], [15], [16]. The main challenge lies in the calibration and accuracy of these low-cost sensors [17]. Since the lowcost sensors have been calibrated on specific chambers or have not been directly calibrated by the manufacturer, they have to be calibrated in-situ with reference stations in the deployment field [3], [4]. In the process of calibrating low-cost sensors in uncontrolled environments, sensors are calibrated by positioning the sensor in a reference station and comparing both data using machine learning techniques such as multiple linear regression (MLR) [5], [18], [19], [20], k-nearest neighbors (KNN) [6], [19], support vector regression (SVR) [6], [15], [21], random forest (RF) [6], [15] or artificial neural networks (ANN) [5]. De Vito et al. [22] discuss the problems of robustness in multi-sensor air quality deployments by pointing out the importance of changes in operating conditions over time and space such as the relocation of calibrated multi-sensor platforms and sensor drift. For example, De Vito et al. point out that if the learning algorithm is fed with a low number of samples, the model will be incomplete and will not survive seasonal changes or changing human activities. Miskell et al. [23] show that reference stations can correct the drift of nearby sensor nodes. Miskell et al. propose a hierarchical network of sensor nodes and reference stations in which the reference stations provide regulatory quality data at selected sites, establish appropriate criteria for the choice of proxies, and provide proxy data that verify the reliability of the low-cost network that aims to expand the spatial scale. Fishbain et al. [24] propose wireless distributed environmental sensory networks (WDESN), an efficient method for aggregating measurements acquired by an uncalibrated WDESN, and producing accurate estimates of the observed environmental variable’s true levels. Other distributed calibration methods in wireless sensor networks are discussed in the survey [4], including multihop calibration or the use of consensus algorithms and gossip algorithms. Thus, the next step in the study of pollutant concentration measurements is the estimation, representation and analysis of the pollutant concentrations using the data measured by a sensor network. In this sense, graph-based techniques that adjust their topology to the measured data seem to be a good candidate to improve the estimates of the values measured by 3 the sensors [9]. The emerging field of graph signal processing (GSP) places emphasis on signal analysis on graphs. Many of the surveys [8], [10] in GSP applied to sensors propose simple methods such as using the distances between the nodes to build the graph, that is, to decide which nodes are connected in a undirected graph and to obtain the weights assigned to the edges. Once the network is created, the researchers [8], [10], [11] focus on the Fourier analysis of the graph from the Laplacian obtained from the weight matrix, such as the representation of the vertex domain and the graph spectral domain, the study of generalized operators for signals on graphs such as filtering, convolution, modulation, or studies related to graph coarsening or downsampling. Ribeiro et al. [13] analyze, using GSP, data coming from taxis in Manhattan and pluviometry in Brazilian cities. Jablonski [25] analyzes a network of one hundred reference stations monitoring tropospheric ozone (O3) in Poland. In this first work applying GSP to air pollution, Jablonski uses a smoothness-based model to construct the topology of the graph and obtain the weights of the edges and thus the Laplacian matrix. The application that Jablonski shows is the identification of clustering patterns between nodes. There is a rich literature on obtaining an optimal Laplacian from structured data. Looking for the application to the content of this paper, [8], [10], [11], [12], [13] give an overview of how Laplacian is used in the calculation of various properties in GSP and [9] gives an overview of how various techniques and algorithms are used to obtain a weight matrix or an optimal Laplacian from the data. Among the most widely used methods, in addition to using a distance-based kernel, is the use of statistical methods and the use of methods based on signal smoothness. In the case of using statistical models and specifically GMRF, the problem is to find the joint distribution of the graph vertex-indexed variables as a zero-mean Gaussian with precision matrix Θ(inverse covariance matrix) of dimension the number of nodes in the graph. The problem, then, is to find such a precision matrix that guarantees conditional independence between the nodes. Meinshausen et al. [26] propose a neighborhood selection algorithm to estimate Θ. However, the most popular approach is to define an optimization problem called Graphical Lasso [14] where the precision matrix is forced to be sparse, and encodes the network topology as well as the conditional independence of the variables. GMRF have also been compared with Gaussian geostatistical models to model PM2.5concentrations [27]. In the case of tackling the problem from a GSP perspective, emphasis is placed on criteria where the Laplacian assumes smoothness in the data and that the Laplacian matrix is sparse. The property of a signal being smooth is that it varies slowly in the graph. Dong et al. [28] and V. Kalofolias [29] propose optimization frameworks to obtain an optimal Laplacian that fits to the data measured with smooth signals and in which the Laplacian matrix is sparse. In this paper, we propose to construct the graph topology of air pollution monitoring networks using the data provided by the nodes instead of using distance-based functions. In the following, we will compare the classical distance-kernel method [8], [10], [11] with two graph inference methods, the Graphical Lasso [14] that obtains the adjacency matrix by estimating the precision matrix, and a graph signal processing technique that obtains the Laplacian optimally using the smoothness of the signal [28]. The latter two methods use the signal measurements to construct the graph topology in a more efficient way than the distance methods. The graph adjacency will be used to obtain the neighbors that will participate in the signal reconstruction, adding robustness and resilience to air pollution monitoring networks. TABLE I LIST OF SYMBOLS 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 λGraphical Lasso hyperparameter τ|TH Distance-based method hyperparameters α|βSmoothness-based method hyperparameters SKSet of observed nodes at time step K PMatrix of Partial Least Squares loadings 0|1Vector of zeros |Vector of ones III. NETWORK TOPOLOGY INFERENCE This section provides a self-contained introduction to the approaches used in the paper for estimating the structure of the graph given a set of observations, X∈RP×N, where N corresponds to the number of nodes and Pto the number of measurements per node. Each node i∈N, then, is represented as xiand the data at node ias xi∈RP. We denote matrices and vectors by bold letters. The notation used throughout the paper is listed in Table I. An undirected graph G=(V, E, W) is a triplet consisting of a collection of nodes V={1,2,. . . ,N} connected by a set of edges E, where edge eij connects node i with node j, and a symmetric matrix of non-negative weights Wwhere weight Wij is assigned to edge eij. A. Statistical-based approach We consider a Gaussian Markov random field (GMRF) where each node, xi, in the network can be seen as a random variable over the graph G,{xi:vi∈V}which satisfies the Markov property, and where the joint distribution of the vertexindexed variables follows a zero-mean Gaussian distribution with precision matrix Θ(the inverse covariance matrix Σ−1). The pairwise Markov property states that two vertices that are not connected in the graph (eij /∈Eor Wij=0) are conditionally independent given all other vertices in the graph. The main focus of the statistical inference of the topology is the estimation of the precision matrix Θwhose entries encode the conditional independencies of each vertex. In fact, there is a direct relationship between the entries of the precision matrix and the partial correlations of each variable. 4 The first attempt to estimate the entries of the precision matrix was named covariance selection, Dempster [30]. It solves a recursive likelihood-based thresholding procedure using the empirical covariance matrix. However, problems may appear when dealing with larger scale graphs. Friedman et al. [14] introduced an algorithm to estimate a sparse precision matrix, the Graphical Lasso. The proposed optimization problem solves a l1-regularized maximum likelihood where the regularization term promotes the sparsity of the precision matrix: arg max Θlog det(Θ)−tr(ˆ ΣΘ) | {z } log-likelihood GMRF −λkΘk1 | {z } sparsity (1) Specifically, (1) shows the two main terms in the optimization problem; the log-likelihood of the data under the GMRF assumption and the term that promotes sparsity. The matrix ˆ Σis the empirical covariance matrix and tr(·) is the trace of a matrix. The λhyperparameter controls the l1-norm of the precision matrix, the higher the λthe more entries of the precision matrix will be set to zero. Once the precision matrix Θis obtained, an adjacency matrix Acan be built. Entries with values greater than zero in the precision matrix indicate an adjacency between nodes with weight equal to one, while those entries with values equal to zero in the precision matrix indicate that two nodes are not connected. B. Graph signal processing-based approach The emerging field of graph signal processing (GSP) extrapolates the idea behind the classical signal processing to signals defined over graphs. A signal [8] x:V→RNdefined on the vertices of the graph may be represented as a vector x∈RN, where the ith component of the vector xrepresents the function value at the ith vertex in V. The Laplacian matrix of the graph, L, is the object of study of the GSP. Indeed, its eigendecomposition provides a Fourier-like interpretation of the signals defined over a graph. The most used Laplacian matrix is the combinatorial Laplacian which has properties like symmetry and positive-semidefiniteness and can be obtained as: L=D−W(2) where Dis the degree matrix (Dii =PjWij). There are several methods of finding the Laplacian matrix. Some are based on defining a matrix of weights Wusing a distance or similarity function that adjusts to the physical phenomenon to then obtain the Laplacian matrix, while others try to define an optimization problem that directly obtains the optimal values of the Laplacian matrix, and that fit some criteria of the problem. 1) Distance-based approach: A way to define the weight matrix Wis to use prior information. The most commonly employed information in these cases is the physical distance between nodes. The concentration of some pollutants exhibits spatial variability, i.e. concentrations vary in space and it is likely that the closest sensors will have similar measurements. Therefore, one way to construct the weight matrix, W, specifying the connectivity of the graph Gis to use a similarity function and a threshold (TH) to set the weight proportionally to the distance and set some entries to zero. A common choice of the weight of an edge eij is via a thresholded Gaussian kernel weighting function [8], [13]: Wij =(e−dij 2τif dij ≤TH 0if dij > TH (3) for some τand TH parameters, and where dij is the Haversine distance between node iand node j. The rationale behind this assumption is that the value of the signal measured at a vertex iis similar to the value of the signal measured at the nodes in its neighborhood. 2) Smoothness-based approach: A graph signal xis smooth if the signal values associated with the two end vertices of edges with large weights in the graph tend to be similar, or in other words, the signal changes smoothly between connected nodes. It is easy to quantify the smoothness on an undirected weighted graph for the nodes that are connected [8], [13], Wij>0, using the following term: 1 2X ij Wij kxi−xjk2=tr(XTL X)(4) Then, a signal is smooth if the signal values for strong connected vertices are similar, and therefore tr(XTLX) is small. In GSP, the Laplacian matrix is used in a variety of applications, including clustering, outlier detection and signal reconstruction among others. In fact, the entries of the Laplacian describe the connectivity of the graph and the strength of the connections. Because of that, a major challenge has been to find the best Laplacian given the set of observations X∈RN×P. Dong et al. [28] propose a not jointly convex optimization problem to find the best Laplacian given that the observations Xare smooth: min L,Y kX−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. (5) Where the first term of the objective function penalizes the differences between the observations Xand their filtered version Y. Moreover, the tr(·) and k·kFdenote the trace and Frobenius norm of a matrix, respectively. The two hyperparameters, α and βare positive scalars that control the smoothness of the learned representation, Y, over the Laplacian and the Laplacian sparsity. The first constraint forces the trace of the learned Laplacian to be some scalar nin order to avoid trivial solutions. The second and third constraints ensure that the resulting Laplacian is symmetric and with non-positive offdiagonal elements, leading to a positive-semidefinite matrix. This optimization problem is not jointly convex in Land Y. This is why the problem is split into an alternating minimization procedure where the minimization of Land Y alternates iteratively. IV. DATA SETS To perform the experiments, accurate data on the pollution levels at different points in the measured area are required. 5 Fig. 1. Data flow showing the graph learning and signal reconstruction process for the different methods. Therefore, data from reference stations in the metropolitan area of Barcelona, Spain, and data taken from a real deployment of low-cost sensors in Spain are used. The data obtained by the reference stations are very precise and these data are available on-line by a government agency1. The measurements used for the research are hourly and are taken between January 1, 2019 and May 30, 2019, and these include three different pollutants: tropospheric ozone (O3), nitrogen dioxide (NO2) and particulate matter 10 micrometers (PM10). These data sets are labeled as data sets 1, 2 and 3, and are listed in Table II. TABLE II DATA SETS 1, 2 AND 3USE REFERENCE STATIONS IN BARCELONA, SPAIN, AND DATA SET 4USES THREE REFERENCE STATIONS AND FIVE LOW-COST SENSORS DEPLOYED IN THE H2020 CAPTOR PROJECT IN SPAIN. Data set ID Pollutant # Nodes # Samples Period 1 O315 2775 01/01/2019 - 30/05/2019 2 NO220 2526 01/01/2019 - 30/05/2019 3 PM10 13 2595 01/01/2019 - 30/05/2019 4 O38 2831 18/06/2017 - 16/09/2017 The fourth data set is made up of data collected from a network of low-cost sensors, deployed in the H2020 CAPTOR project in the summer of 2017. The data set consists of three reference stations and five SGX Sensortech MICS 2614 O3 metal oxide sensors distributed in a rural area of Spain. The different low-cost sensors were mounted in devices called Captor’s that contained an Arduino Yun for data collection and data transmission through 3G modem to a central server, a power supply, four ozone sensors, a relative humidity sensor and a temperature sensor [2]. The sensors of the Captor nodes were calibrated during few weeks using a multiple linear regression placing the nodes in close reference stations (Tona, Vic and Manlleu). Once calibrated, the Captor nodes were deployed to volunteer houses during the summer of 2017. 1https://analisi.transparenciacatalunya.cat/en/Medi-Ambient/ Qualitat-de-l-aire-als-punts-de-mesurament-autom-t/tasf-thgu V. METHODOLOGY In this section, we apply the graph learning techniques, explained in section III, to obtain the network topology, and then we apply two different signal reconstruction techniques; one based on training a linear model (supervised method) and another one that minimizes the smoothness of the graph signal (semi-supervised method), provided that we have learned a Laplacian matrix. A. Graph inference The first step is to split the data Xinto training and testing, Xtr and Xts, then the training data along with a graph learning model and its hyperparameters are used to learn the graph. Figure 1 summarizes the different graph estimation processes evaluated and Table III shows the hyperparameters of the different methods along with their role on the graph learning process and their range of values. First, we learn the network topology with one of the different algorithms, the training set Xtr and its corresponding hyperparameters. A 5-fold cross-validation (CV) procedure is applied to the training to find the optimal hyperparameters leading to a graph which together with the reconstruction method obtain a minimum average cross-validation RMSE. The result is a precision matrix Θfor the graphical Lasso method, a weight matrix Wfor the distance-based method and a Laplacian L for the smoothness-based method. Since these three matrices are related, we can obtain for each method a matrix of adjacencies, weights and a Laplacian that can be used in the signal reconstruction methods. B. Signal reconstruction methods We now apply a signal reconstruction method to compare how the three graph inference models behave in an air pollution monitoring network. We consider a supervised and semisupervised method to reconstruct the signal. The supervised method is based on a linear regression and is optimal, but has 6 TABLE III DIFFERENT METHOD’S HYPERPARAMETERS,THEIR ROLE AND RANGE OF VALUES TRIED IN THE CROSS-VALIDATION TO LEARN THE NETWORK TOPOLOGY. Method Parameters Role Range of values Graphical Lasso λControls the precision matrix sparsity [0.0001, 1.0] Distance-based graph τGaussian kernel parameter [0.01, 15000] Threshold (TH) Radius (in meters) in which edges are taken into account, controls sparsity [0, max(distance)] Smoothness-based graph αSmoothness penalization constant. Controls sparsity of the Laplacian and smoothness. [0.0001, 0.0025] βL-1 norm Laplacian penalization constant. Controls sparsity of the Laplacian [0.001, 1.0] the disadvantage that it needs all the neighboring measurements at each time step. The semi-supervised method is based on Laplacian interpolation and even without being optimal has the advantage of being used with missing data. 1) Signal reconstruction using linear regression with partial least squares: We use the weight or adjacency matrix, and call the neighborhood of the ith node N(i), that is, the nodes that are connected to the ith node. Now, the signal reconstructed in the ivertex, ˆxi, is a linear combination of the signal measured in the N(i)neighborhood: ˆxi=X k∈N(i) akxk(6) Since the signal measured at the nodes is highly correlated, the problem of multicollinearity may arise. To avoid multicollinearity, we use the partial least squares (PLS) method to obtain components that are orthogonal to each other and make a dimensional reduction to avoid ill-posed conditioned matrix problems. In a first phase, the training data of the neighbors of the ith vertex, Xtr,N(i), are used together with the data of vertex ito obtain the PLS components and the loading matrix P∈RN×N. The loading matrix Pis now used to project the training regressors, Xtr,N(i), onto the PLS components XP LS tr,N(i). The goal is to keep only a few components until the condition number of the moment matrix XTXis small enough. To obtain the coefficients akof the linear regression, we train the linear model with the projections of Xtr,N(i) as regressors (XP LS tr,N(i)) and with xtr,i as the dependent variable. Finally, by taking new data from the test data set and projecting it to the PLS components, we can reconstruct the ˆ xts,i signal from neighboring node signals. The disadvantage of this method is that to reconstruct the signal in the ivertex, we need all the values of the signals in its neighborhood. If there is missing data from any neighboring node for a given instant, then it is not possible to reconstruct the signal at that instant. So, if we are interested in reconstructing M nodes of the network, using the same constructed graph we will create M linear regression models to be able to reconstruct the signal in those nodes. Another clear disadvantage is that for the calculation of the loading matrix Pthe values of the neighboring nodes Xtr,N(i) and the training values of the target node Xtr,i are needed, that’s why as with the regression model we have to obtain a loadings matrix for each different node signal reconstruction model. 2) Signal reconstruction using Laplacian interpolation: This method can be applied when data are missing from one or more nodes and can be addressed from the graph semisupervised learning framework, where the data are assumed to be in or near a manifold represented by a graph. Then, the global quantity represented by the smoothness is optimized to find the remaining values. We assume that we know the structure of the graph through the Laplacian, we know the value of the signal in k<N vertices, and we have gaps, missing or corrupted values in the other N-kvertices. Let’s call ythe signal to be estimated since we know xand the set of nodes SKwhere the values are known. The aim of the interpolation process is to estimate y such that yi=xifor those vertices where xiis known (i∈SK). This method is a semi-supervised transductive method, which means that at each time step given the observed values, the unobserved ones are calculated. This method does not need a training phase and can be applied directly to reconstruct the signal when values are missing in time step K, given the set of observed nodes SK, or when we want to include a virtual sensor, a case that represents a sensor where all values are missing. This problem, in which the observed values remain unaltered, is called graph interpolated regularization and can be formulated as [31]2. min yyTLy s.t. yi=xi,∀i∈SK, (7) VI. RESULTS AND DISCUSSION This section presents the results of the different methods for topology inference and signal reconstruction applied to the different data sets presented in section IV. A. Reference station testbeds Firstly, we apply the different methodologies to the data sets of the reference stations in the Barcelona area (data sets 1, 2 and 3), which correspond to the concentrations of O3, NO2 and PM10. As an illustration, we select the results from the O3 (data set 1). Figure 2 shows at the same time the performance of the three methods in obtaining the network topology, and the performance of the two signal reconstruction methods. Figures 2.a) and .d) show the optimal parameters for choosing the best topology using graphical Lasso and reconstructing the signal using linear regression and Laplacian interpolation 2This problem had also been formulated within the GSP community where the matrix used for regularization is the graph shift or a modified version of the graph shift [32]. 7 (a) Validation metrics for O3reference stations with Graphical Lasso and linear regression procedure. (b) Validation metrics for O3reference stations with the distance-based graph and linear regression procedure. (c) Validation metrics for O3reference stations with the smoothness-based method and linear regression procedure. (d) Validation metrics for O3reference stations with Graphical Lasso and Laplacian interpolation procedure. (e) Validation metrics for O3reference stations with the distance-based graph and Laplacian interpolation procedure. (f) Validation metrics for O3reference stations with the smoothness-based method and Laplacian interpolation procedure. Fig. 2. Average cross-validation RMSE and average number of edges of the different techniques applied to data set 1. Shaded area correspond to hyperparameter values that produce ill-posed problems (condition number of the initial guess greater than 30). respectively. Figures 2.b) and .e) and 2.c) and .f) show the optimal parameters for the choice of the best topology using the distance method and the smoothness method with both linear regression and Laplacian interpolation respectively. First, we will analyze the relationship between the hyperparameters of each model with the final number of edges in the resulting graph and with the root mean square error (RMSE) value obtained by each signal reconstruction method. Then, we will compare the performance of the models, discussing their advantages and disadvantages. The RMSE used to select the best hyperparameters is the average of the cross-validation RMSE of all the nodes participating in the network. 1) Graphical Lasso with signal reconstruction: Figures 2.a) and d), orange curve, show the lambda hyperparameter as a function of the number of edges for the graphical Lasso method. It can be seen that as λapproaches one the number of edges decreases, becoming the precision matrix more and more sparse while if λapproaches 0.5 the number of edges increases. We can also observe that λvalues between 10−4and 0.35 produce an increase in the number of edges (hump effect) and then in the 10−4value (there is almost no regularization of the matrix) produce a totally connected graph. This effect of having λbetween 10−4and 0.35 is produced by a poor conditioning of the covariance matrix when solving the graphical Lasso method and has already been reported in other studies [33]. This is due to the presence of multicollinearity, indeed, Heinvaara et al. [33] explain how this problem can lead to a bad conditioning of the covariance matrix and to the instability of the results. A condition number above thirty indicates that the regression may have severe multicollinearity [34]. For all this, only values of λfor which the initial guess of the covariance matrix has a condition number less than thirty are taken into account, thus obtaining a stable solution. This, together with the PLS procedure, reduces the effects of multicollinearity. The minimum average RMSE value with graphical Lasso and the linear regression method is 11.957 µgr/m3, and is produced with a λvalue of 0.375 and an average number of edges in the graph of 89.4 edges, while with Laplacian interpolation, the minimum RMSE is produced with λof 0.792 and RMSE of 13.264 µgr/m3and 57.2 edges in average, Table IV. We can see that the signal reconstruction method with linear regression produces less RMSE but with a higher number of edges than the Laplacian interpolation method. The same behavior is observed for the other two pollutants (NO2and PM10), Table IV. Regarding the R2, O3gives better values than NO2, which in turn is better than the PM10 values. Figure 3.a) shows the empirical distribution of the RMSEs of the reference stations for the best Graphical Lasso configurations. As can be seen from the three contaminants and the two reconstruction methods, the distributions are positive skewed with some reference stations with a large RMSE compared to the mean. These ones are the less correlated which produce worst estimations. The Graphical Lasso method is less accurate than the smoothness graph method and more accurate than the distance-based method. 8 TABLE IV VALIDATION METRICS FOR DATA SETS 1, 2, AND 3RESPECTIVELY. O3NO2PM10 RMSE # Edges R2RMSE # Edges R2RMSE # Edges R2 Graphical Lasso LR 11.957 89.4 0.701 11.387 109.0 0.659 9.114 61.2 0.459 Lap.Int 13.264 57.2 0.541 12.747 53.2 0.571 9.503 60.2 0.448 Distance Graph LR 11.902 101.0 0.705 11.225 190.0 0.673 9.019 76.0 0.479 Lap.Int 13.937 103.0 0.623 12.893 140.0 0.556 9.495 77.0 0.446 Smoothness Graph LR 11.835 102.2 0.709 11.225 190.0 0.673 8.996 40.4 0.489 Lap.Int 12.082 71.2 0.708 11.805 56.0 0.632 9.040 70.2 0.500 (a) RMSE distribution obtained with the Graphical Lasso. (b) RMSE distribution obtained with the distance-based graph. (c) RMSE distribution obtained with the smoothness-based graph. Fig. 3. Empirical RMSE distributions for the best configurations for the different graph learning and signal reconstruction methods. The continuous lines draw the linear regression while the dotted lines draw the Laplacian interpolation. The black, orange and red lines represent O3, NO2and PM10 respectively. 2) Distance-based method with signal reconstruction: The distance method uses two hyperparameters, Table III: τis a Gaussian kernel normalization parameter, and the threshold of the distance TH that controls the sparsity of the resulting weight matrix. The units of τand TH are in meters. Figure 2.b) and e), orange and gray curves with crosses, show the growth of the number of edges as the TH parameter grows. The orange curve is for a high τwhile the gray curve is for a smaller τ. The first thing is to indicate that considering an increasing TH distance threshold we are increasing the number of neighbors a node has, and therefore the number of edges of a node increases. Secondly, for those neighboring nodes which are within the radius TH meters, a large τvalue will assign a small weight, while a small τvalue will assign a large weight. This makes large values of τproduce more connected networks with more edges than smaller values of τ. The lowest RMSE value with linear regression is 11.902 µgr/m3with 101 edges, and TH of 33710 meters and τof 1580 meters. The lowest RMSE value with Laplacian interpolation is 13.937 µgr/m3with 103 edges, and TH of 35817 meters and τof 2360 meters. We can see that the signal reconstruction method with linear regression produces less RMSE than the Laplacian interpolation method with similar values in the number of edges for O3and PM10. For NO2, the RMSE value is also lower for linear regression, but in this case with a higher number of edges. Again, in general, R2gives better values for O3than NO2, which in turn is better than the PM10 values. The empirical distributions in Figure 3.b) show the same trend as with the Graphical Lasso, some stations cannot be predicted too well with the others, showing low efficiency in capturing the correlations between nodes, since there are nodes that are far away from others or nodes whose correlation is not proportional to their distance. 3) Smoothness-based method with signal reconstruction: The method based on the smoothness of the signal has two hyperparameters. The parameter αfavors the smoothness of the signal and also controls the sparsity of the Laplacian matrix, while the parameter βis a penalty constant that only governs the sparsity of the Laplacian matrix. Low values of β promote a low number of edges, and large values of α, orange curves with crosses in 2.c) and f), produce a low number of edges and the smoothness of the signal. This is because the Frobenius norm of Ltends to be small when βincreases, and decreasing βhas the opposite effect. Moreover, when α increases the trace of the quadratic term YTLY is small, which promotes both sparsity and smoothness. The lowest RMSE value with linear regression is 11.835 µgr/m3with 102 edges, and αof 10−4and βof 0.15. The lowest RMSE value with Laplacian interpolation is 12.082 µgr/m3with 71 edges, and αof 10−4and βof 0.05, being the most accurate of the three graph infering techniques. Again, we can see that the signal reconstruction method with linear regression produces less RMSE than the Laplacian interpolation method with lower values in the number of edges for O3and NO2. For PM10, the RMSE value is also lower for linear regression, but in this case with a higher number of edges. And again, in general, R2gives better values for O3than NO2, which in turn is better than the PM10 values. Finally, Figure 3.c) shows the distributions of the RMSEs obtained with the smoothnessbased graph. The same trend is observed for all methods and 9 contaminants, a positive skewed distribution, showing some stations that cannot be reconstructed with less error. 4) Comparison and discussion of the signal reconstruction methods with graph topology inference: The first point to comment is that the amount of edges and therefore the connectivity produced by each method depends on the hyperparameters of each model. The choice of optimal hyperparameters depends then on the target application. In our case, we want the average cross-validation RMSE to be the minimum possible, but there may be other applications where it is interesting to achieve a maximum number of edges. For example, Figure 4.a) shows the connectivity map with an 57-edge target, with graphical Lasso using data set 1. As mentioned above, graphical Lasso suffers from instability in the case of multicollinearity between the data captured by the network nodes, so we have to obtain the condition number to find out in which region the method is unstable. Also in the example shown, there is a sharp edge drop for a small interval, [0.75, 0.85] of λ, which makes the sparsity in graphical Lasso very sensitive to this parameter. In contrast, the distance-based method is very sensitive to the TH parameter, the radius below which we accept a neighbor. This method does not take into account the correlation of the neighboring data, and we can find a node whose data is very little correlated with a neighbor, but its proximity to the neighbor makes the weight assigned to the edge very large. Finally, the smoothness-based method is the one that achieves best results when reconstructing the signal with Laplacian interpolation, although it is quite sensitive to variations in its hyperparameters. In Figure 2.c) and f), it can be seen that the optimal RMSE is produced with a low αparameter value, when for higher values of αthe model gets a more sparse matrix and higher smoothness. To see the potential reduction of the number of edges of each model, we obtain the number of edges if we allow an increase of 0.5 in the RMSE. The graphical Lasso model with linear regression goes from 11.957 with 89 edges to 12.451 with 57 edges, and with Laplacian interpolation it is not able to lower the number of edges. The distance-based model with linear regression goes from 11.902 µgr/m3with 101 edges to 12.422 µgr/m3with 74 edges, and with Laplacian interpolation goes from 13.937 µgr/m3with 103 edges to 14.358 µgr/m3 with 65 edges. Finally, the smoothness-based model with linear regression goes from 11.835 µgr/m3with 102 edges to 12.440 µgr/m3with 31 edges, and with Laplacian interpolation goes from 12.082 µgr/m3with 71 edges to 12.428 µgr/m3with 33 edges. It can be seen how the smoothness-based model obtains very close to optimal RMSE values with very high edge number reductions. Therefore, by relaxing the restriction of achieving the optimal RMSE and aiming at reducing the number of edges, a good trade-off can be achieved between having a low RMSE and a sparse connectivity matrix that implies a lower complex network. Let’s now compare the two methods of signal reconstruction combined with the three methods of network construction. Signal reconstruction using linear regression, as can be seen in Figure 2 and Table IV, is always more effective than the method based on Laplacian interpolation. This is because the conditional expectation of the predicted value in the ith node given the neighbors represents the minimum mean square error (MMSE) of the prediction xiusing the random variables x [35]. In other words, once we have fixed the graph structure, linear regression is the best method using a linear combination of the neighbors defined by that structure. What we can see is that we have found that a large number of edges minimizes the RMSE if we use a linear regression. However, if we want a more sparse graph, it will be at the cost of increasing the RMSE. This can be seen in Figures 2.a), b) and c) where decreasing the number of edges, with respect to the optimum, increases the RMSE. On the other hand, the method of reconstruction with Laplacian interpolation, in almost all cases, has a higher RMSE than the reconstruction with linear regression but with a much lower number of edges or similar. Although it seems that the signal reconstruction method with linear regression is better than the Laplacian interpolation, it has a disadvantage from the engineering point of view. To reconstruct the signal at a given instant with the linear regression method, it is necessary that all the neighbors have a sample, that is, there are no gaps in the data. This fact reduces the robustness of supervised methods compared to semi-supervised methods. This is not a problem for Laplacian interpolation, which can predict values even if there are gaps in a node’s neighbors’ data, providing robustness and resilience to the network. TABLE V REFERENCE STATIONS WITH INCOMPLETE OBSERVATIONS Avg. % missings per station % incomplete samples graph with ∼50% edges % incomplete samples Data set 1 1.66 10.73 21.88 Data set 2 1.90 15.87 28.87 Data set 3 2.60 12.00 26.94 TABLE VI RMSE WITH 5% OF MISSING DATA AT EACH NODE USING SMOOTHNESS-BASED METHOD AND LAPLACIAN INTERPOLATION. Mean RMSE Std RMSE Max RMSE Min RMSE 12.154 2.702 19.277 8.069 To prove the importance of this assessment, in Table V we show the percentage of samples that do not appear (”missings”) in the data obtained from the reference stations, something that is normal both in official data and in data obtained with low-cost sensors. Although the number of missing samples per station is small, approximately 2% on average, to analyze the network or reconstruct the signal with a machine learning method, it is necessary that there are no missing samples in any of the neighboring nodes at any given time. That is, if a node is missing a sample at a given instant, it is not possible to reconstruct the signal in the network with a supervised machine learning method. Table V also shows the percentage of samples with at least one missing. About 21-28% of the samples contain at least one node missing in the period, so the entire row of data should be eliminated if a linear regression is used. In the case of a more intelligent data cleansing where only the data is deleted in