Literature DB >> 24201318

Multi-matrices factorization with application to missing sensor data imputation.

Xiao-Yu Huang1, Wubin Li, Kang Chen, Xian-Hong Xiang, Rong Pan, Lei Li, Wen-Xue Cai.   

Abstract

We formulate a multi-matrices factorization model (MMF) for the missing sensor data estimation problem. The estimation problem is adequately transformed into a matrix completion one. With MMF, an n-by-t real matrix, R, is adopted to represent the data collected by mobile sensors from n areas at the time, T1, T2, ..., Tt, where the entry, Rij, is the aggregate value of the data collected in the ith area at Tj. We propose to approximate R by seeking a family of d-by-n probabilistic spatial feature matrices, U(1), U(2), ..., U(t), and a probabilistic temporal feature matrix, [formula in text]. We also present a solution algorithm to the proposed model. We evaluate MMF with synthetic data and a real-world sensor dataset extensively. Experimental results demonstrate that our approach outperforms the state-of-the-art comparison algorithms.

Entities:  

Year:  2013        PMID: 24201318      PMCID: PMC3871111          DOI: 10.3390/s131115172

Source DB:  PubMed          Journal:  Sensors (Basel)        ISSN: 1424-8220            Impact factor:   3.576


Introduction

In this work, we study the following missing sensor data imputation problem: Let the matrix, R ∈ ℝ×, consist of the data collected by a set of mobile sensors in spacial areas S1, S2, … S at time points T1 < T2 < … < T, where the entry, R, is the aggregate value collected by the sensors in S at T. In particular, if there is no sensor in S at time T, we denote the value of R as “ ⊥ ”, which indicates that it is missing. Our focus is to find the suitable estimations for the missing values in a given incomplete matrix, R. Results of this research could be helpful in recovering missing values in statistical analyses. For example, to predict floods, people usually place geographically distributed sensors in the water to continuously monitor the rising water levels. However, some data in a critical period of time might be corrupted, due to, e.g., sensor hardware failures. Such a kind of data needs be recovered to guarantee the prediction accuracy. Many efforts have been devoted to the missing sensor data imputation problem. Typical examples include k nearest neighbor-based imputation [1], multiple imputation [2], hot/cold imputation [3], maximum likelihood and Bayesian estimation [4] and expectation maximization [5]. However, despite the various implementations of these methods, their main essence is based on the local consistency of the sensor data, i.e., the data collected at adjacent time points within the same spacial area should be close to each other, as well as the data collected at the same time from neighboring areas. We refer to them as local models. As is well known, these local models suffer from the cumulative error problem in scenarios where the missing ratio is high. Matrix factorization (MF), as a global model, has caught substantial attention in recent years. Typically, in the Netflix rating matrix completion competition [6], some variations of the MF model, e.g., [7,8], achieved state-of-the-art performances, showing their potential to recover the missing data from highly incomplete matrices. On the other side, many well-studied MF models, such as non-negative matrix factorization [9], max margin matrix factorization [10,11], and probabilistic matrix factorization [7], are based on the i.i.d.assumption [12], which, in terms of our problem, implies that the neighborhood information among the data is disregarded and, hence, leaves vast room for improvement. We in this paper, we propose a multi-matrices factorization model (MMF), which can be outlined as follows. For a matrix, X, denote X the jth column of X. Given a sensor data matrix, R, we seek a set of matrices, U(1), U(2), …, U( ∈ ℝ×, and a matrix, V ∈ ℝ ×, such that for i = 1, 2, …,t, . Here, U() is referred to as the spatial feature matrix, in which the jth column, U(), is the feature vector of area S at T. Similarly, V is referred to as the temporal feature matrix, in which the jth column, V, is the temporal feature vector of T. To predict the missing values in R, we first fit the matrices, U(1), U(2), …, U() (single sub-indexes of matrix mean columns) and V, with the non-missing values in R; then, for each R = “ ⊥ ”, we take its estimation as . The remainder of the paper is organized as follows: Section 2 summarizes the notations used in the paper. Section 3 studies the related work on matrix factorization. In Section 4, we present our multi-matrices factorization model. The algorithm to solve the proposed model is outlined in Section 5. Section 6 is devoted to the experimental evaluations. Finally, our conclusions are presented in Section 7, followed by a presentation of future work, acknowledgments and a list of references.

Notations

For a vector V = [v1, v2, …v]′ ∈ ℝ, we use ‖V‖0, ‖V‖1 and ‖V‖2 to denote its 0-Norm, 1-Norm and 2-Norm, respectively, as follows: , i.e., the number of nonzero entries of V; ; . For a matrix, X ∈ ℝ×, we denote its Frobenius norm as .

Matrix Factorization

The essence of the Matrix Factorization problem is to find two factor matrices, U and V, such that their product can approximate the given matrix, R, i.e., R ≈ U. As a fundamental model of machine learning and data mining, the MF method has achieved state-of-the-art performance in various applications, such as collaborative filtering [13], text analysis [14], image analysis [9,15] and biology analysis [16]. In principle, for a given matrix, R, the MF problem can be formulated as the optimization model below: where the lose function, Loss, is used to measure the closeness of the approximation, U, to the target, R. Usually, Loss(U, R) can be decomposed into the sum of the pairwise loss between the entries of U and R; that is, . Some of the most used forms include the square loss (loss(x, y) = (x - y)2) [7,8,17], the 0-1 loss (loss(x, y) = 𝕀(x = y)) [11] and the divergence loss [9]. It is notable that for Equation (1), if {U*, V*} is a solution to it, then for any scalar, κ > 0, is also another solution; hence, problem (1) is ill-posed. To overcome this obstacle, various constraints on U and V are introduced, such as constraints on the entries [15], constraints on the sparseness [18,19], constraints on the norms [7,20] and constraints on the ranks [21,22]. All these constraints, from the perspective of the statistical learning theory, can be regarded as the length of the model to be fitted. According to the minimum description length principle [23,24], a smaller length means a better model; hence, most of them can be incorporated into Model (1) as the additional regularized terms, that is: where the regularization factor, P(U, V), corresponds to the constraints on U and V . As a transductive model, Model (2) has many nice mathematical properties, such as the generalization error bound [10] and the exactness [17,25]. However, as is well known, when compared with the generative model, one of the main restrictions of the transductive model is that it can hardly be used to describe the relations existing in the data. In particular, in terms of our problem, even though Model (2) may work well, it is laborious to express the dynamics of the data over time.

The Proposed Model

In this section, we elaborate on our multi-matrices factorization (MMF) approach. Given the sensor data matrix, R, in which the entry, R (1 ≤ i ≤ n and 1 ≤ j ≤ t), is collected from S at T, our goal is to find the factor matrices, U(1), U(2), …, U() ∈ ℝ× and V ∈ ℝ×, such that: for j = 1, 2, …, t, where U() is regarded to be composed of the spatial features of all areas at T and V is treated as consisting of the temporal features of all time points. We denote the i th column of U as U(),, which corresponds to the spatial feature value of S at T, and denote the j th column of V as V, which corresponds to the temporal feature value of T. Taking advantage of the knowledge of the probability graph model, we assume that the dependent structure of the data in U(1), U(2), …, U(), V and R is as illustrated in Figure 1. More specifically, we have the following assumptions:
Figure 1.

The structure assumptions.

Columns of U() (1 ≤ j ≤ t) are linearly independent, i.e., U(1), (1 ≤ i ≤ n) follows the same Gaussian distribution with a mean of zero and a covariance matrix , i.e., U(), (1 ≤ i ≤ n) are dependent in time order with the pre-specified priors, ζ and σ, i.e., Moreover, for j > 1, we assume U( is a Laplace random vector with location parameter U( and scale parameter ζ, namely: The columns of V are linearly dependent in time order with the pre-specified priors, ζ and σ, i.e., We also assume that, for j > 1: The (i, j)th entry of R (1 ≤ i ≤ n, 1 ≤ j ≤ t) follows Gaussian distribution with a mean of and variance , i.e., Now, given R and the priors, σ, σ, σ, ζ, and ζ, let U = {U(1), U(2), …, U()}; below, we find a solution to the following equation: First, applying Bayes' theorem, we have: Since R is observed and σ, σ, σ, ζ and ζ are pre-specified, the denominator, Pr(R∣σ, σ, σ, ζ, ζ), can be treated as a constant. Therefore: Combing Assumptions (I.) ∼ (V.) and the dependency structure illustrated in Figure 1, we have: Taking the logarithm on both sides and take the missing values into account, then we have: where , , and are the regularization parameters. As a supplement, we have the following comments on Model (6): On the selection of the Gaussian prior: In our model, since no prior information is available for the columns of the matrices, U(1) and V, hence, according to the max entropy principle [26], a reasonable choice for them is the Gaussian prior distribution. On the ability to formalize the dynamics of the sensor data: The ability to characterize the dynamics of the sensor data lies in the terms and . Obviously, for any two adjacent time points, T−1 and T, if the interval is small enough (namely, |T – T−1| → 0), then for any area, S, the values, R−1 and R, should be close to each other (namely, |R – R−1| → 0). This can been enforced by tuning the parameters, γ and λ (see the following elaboration). First of all, since for any x ∈ ℝ, ‖x‖2 ≤ ‖x‖1, we have: Secondly, it is obvious that greater regularization parameters (i.e., α, β, γ and λ) result in smaller corresponding multipliers (i.e., , , and . In particular: and: Hence, combining Equations (7)-(9), when |T – T−1| → 0, we can simply take γ → ∞ and λ → ∞ and achieve ‖R – R−1‖2 → 0. On the other side, when |T – T−1| → ∞, as is well known, the values in R and R−1 are regarded as being independent. In this case, we can take γ → 0 and λ → 0, allowing R to be irrelevant to R. On the ℓ1 norm: It is straightforward to verify that, if we replace the ℓ1 terms in Equation (6) with the ℓ2 terms (equivalently, use the Gaussian distribution instead of the Laplace distribution in Assumptions (III.) and (IV.)), e.g., replacing ‖V – V−1‖1 with , ‖R – R−1‖2 can still be bounded via tuning the regularization parameters, γ and λ. The reason for adopting the ℓ1 norm here is two-fold: Firstly, as shown above, the ℓ1 terms can lead to the bounded difference norm, ‖R – R−1‖2, and hence, the proposed model accommodates the ability to characterize the dynamics of the sensor data; secondly, according to the recent emerging works on compressed sensing [27,28], under some settings, the behavior of the ℓ1 norm is similar to that of the ℓ0 norm. In terms of our model, this result indicates that the ℓ1 terms can restrict not only the magnitudes of the dynamics happening to the features, but also the number of features that changed in adjacent time points. In other words, with ℓ1 norms, our model gains more expressibility.

The Algorithm

Below, we present the algorithm to solve Model (6). We denote: Apparently, W is convex with respect to U(), and V (1 ≤ i ≤ n and 1 ≤ j ≤ t). Therefore, we can obtain the local minimum solution via coordinate descent [29]. First, we introduce the signum function, sgn, for a real variable, x: For X = [x1, x2, …x]′ ∈ ℝ, we denote sgn(X) = [sgn(x1), sgn(x2), …, sgn(x)]′. Then, we calculate the partial subgradient of W with regard to U() (1 ≤ i ≤ n and 1 ≤ j ≤ t) as follows: For j = 2, 3, …, t, define F,,1 = γsgn(U(), – U(−1),). For j = 1, 2, …, t – 1, define F,,2 = –γF+1,,1. Let F1,,1 = F= 0, and we have: For i = 1, 2 …,n: For i = 1,2 …,n and j = 2, 3, …, t: Similarly, we calculate the partial subgradient of W with regard to V (1 ≤ j ≤ t): For 2 ≤ j ≤ t, define G1 = λsgn(V – V−1). For 1 ≤ j ≤ t – 1, denote G,2 = – G. Let G1,1 = G,2 = 0, and we have: and for j > 1: Finally, with the results above, we present the solution algorithm in Algorithm 1.

Applications on Missing Sensor Data Imputation

In this section, we evaluate our approach through two large-sized datasets and compare the results with two state-of-the-art algorithms in terms of parametric sensitivity, convergence and missing data recovery performance. The following paragraphs describe the set-up, evaluation methodology and the results obtained. To simplify the parameter tuning, we set α = β and λ = γ in the algorithm implementation.

Evaluation Methodology

Three state-of-the-art algorithms are selected for comparison to the proposed MMP model. The first one is the k-nearest neighbor-based imputation model [1]. As a local model, for every missing entry, R, the knnmethod takes the estimation, R̂, as the mean of the k nearest neighbors to it. Let (x) be the set consisting of the k non-empty entries to x; then: The second algorithm is the probabilistic principle components analysis model (PPCA) [30,31], which has achieved state-of-the-art performance in the missing traffic flow data imputation problem [31]. Denote the observations of the incomplete matrix, R, as R. Let x ∼ N(0, I); to estimate the missing values, PPCA first fits the parameters μ and C with: where σ is the tunable parameter. Then, with R, μ* and C*, it takes the estimation of the missing values (denoted as R) as: The third algorithm is the probabilistic matrix factorization model (PMF) [7], one of the most popular algorithms targeting the Netflix matrix completion problem. PMF first seeks the low rank matrices, U and V, that: then for the missing entry R, it takes the estimation as These three algorithms, as well as the proposed MMF, are employed to perform missing imputations for the incomplete matrix, R, on the same datasets. The testing protocol adopted here is the Given X (0 < X < 1) protocol [32], i.e., given a matrix, R, only X percent of its observed entries are revealed, while the remaining observations are concealed to evaluate the trained model. For example, a setting with X = 10% means that the algorithm is trained with 10% of the non-missing entries, and the rest of the 90% non-missing ones are held and are to be recovered. In both of the experiments on synthetic and real datasets, the data partition is repeated five times, and the average results, as well as the standard deviations over the five repetitions are recorded. Similar to many other missing imputation problems [1,3-5,7,13,33-35], we employ the root mean square error (RMSE) to depict the distance between the real values and the estimations: Let S = {s1, s2, … s} be the test dataset and Ŝ = {ŝ1, ŝ2, … ŝ} be the estimated set; here, ŝ is the estimation of s. Then, the RMSE of the estimation is given by .

Synthetic Validation

To conduct a synthetic validation of the studied approaches, we randomly draw a 100 × 10, 000 matrix R using the procedure detailed in Algorithm 2. The rows in R correspond to the areas, S1, S2, …, S, and the columns correspond to the time. Thus, R represents the data collected in S at time T. Notably, the parameter, r,, in Algorithm 2 is used to control the magnitude of the variation happening to S from T−1 to T. Combining lines 4 and 5, we have: for i ∈ [1, n] and j ∈ [1, t], . This constraint ensures that the data collected in S does not change too much over time T−1 to T. We first evaluate the sensitivity of the proposed algorithm to the regularization parameters, α and λ. Half of the entries in R are randomly selected as testing data and recovered using the remaining 50% as the training data. Namely, we take X = 50% in the Given X protocol. In the experiments, we first fix α = 0.01, tune λ via λ = 0.01 × 2 (n = 0, 1, … 7) and, then, do the reverse by changing α via α = 0.01 × 2 (n = 0, 1, … 7), but setting λ = 0.01. The average RMSEs with the same parameter settings on different data partitions are summarized in Figure 2.
Figure 2.

Empirical studies on parameter sensitivity.

In Figure 2, the RMSE-1 curve represents the recovery errors obtained by fixing α and changing the value of λ. The RMSE-2 curve corresponds to the errors with different α values and fixed λ. We can see that even when λ is expanded by more than 100 times (27 = 128), the RMSE still remains stable. A similar result also appears in the experiments on the parameter, α, where a significant change of the RMSE only occurs when n is greater than six, i.e., when α is expanded more than 60 times. The second experiment we conduct is to study the prediction ability of the proposed algorithm, as well as that of the comparison algorithms. In the Given X protocol, we set X = 10%, 20%, …, 90% in sequence. Then, for each X value, we perform missing imputations via our algorithm and the comparison algorithms. In the all implementations, we set k = 5 for the knn model. As with the MF-based algorithms, we examine their performance with respect to the latent feature dimension d = 10 and d = 30 respectively. Furthermore, in the implementation of MMF, we fix α = λ = 0.1, η1 = η2 = η3 = η4 = 0.01. All results are summarized in Table 1.
Table 1.

Recovery errors on the synthetic dataset (mean ± std).

10%20%30%40%50%60%70%80%90%
knn13.41 ± 0.626.80 ± 0.194.44 ± 0.063.12 ± 0.052.27 ± 0.021.81 ± 0.091.72 ± 0.011.69 ± 0.051.62 ± 0.06

d = 10PPCA17.09 ± 2.0820.24 ± 1.3022.75 ± 1.3223.96 ± 2.1920.79 ± 1.0016.67 ± 1.3418.68 ± 0.8111.98 ± 0.705.11 ± 3.10
PMF3.23 ± 0.233.33 ± 0.193.29 ± 0.123.34 ± 0.073.29 ± 0.091.69 ± 0.041.83 ± 0.021.81 ± 0.031.85 ± 0.04
MMF3.07 ± 0.072.21 ± 0.102.14 ± 0.091.98 ± 0.061.93 ± 0.061.92 ± 0.041.75 ± 0.031.84 ± 0.021.80 ± 0.03

d = 30PPCA19.65±3.0122.48 ± 0.8624.86 ± 1.5423.99 ± 0.6122.67 ± 0.4920.22 ± 1.4617.53 ± 0.7014.23 ± 1.7011.14 ± 1.72
PMF3.20 ± 0.213.32 ± 0.133.35 ± 0.093.36 ± 0.113.31 ± 0.071.78 ± 0.041.81 ± 0.021.79 ± 0.021.86 ± 0.11
MMF3.06 ± 0.052.17 ± 0.082.07 ± 0.051.94 ± 0.031.74 ± 0.031.62 ± 0.021.64 ± 0.031.65 ± 0.011.69 ± 0.03
As shown in Table 1, when X is large, e.g., X ≥ 50%, knn is competitive with the matrix factorization methods, while in the other situations, the MF methods outperform it significantly. In terms of the MF-based methods, we find that our algorithm outperforms PPCA significantly in all settings. The RMSEs of our algorithm are at most roughly 20% of that of PPCA. Specifically, for X ∈ [30%; 80%], the RMSEs of the proposed algorithm are even only 10% of that of PPCA. We can also observe that the parameter, d, has a different impact on the performances of our algorithm and PPCA: When d changes from 10 to 30, most of the RMSEs of PPCA increase evidently, while for our algorithm, the RMSEs are reduced by roughly 5%. When compared with PMF, our algorithm also performs better in most of the settings: PMF achieves lower RMSEs than MMF only in two cases, in which d = 10, X = 60% and d = 10; X = 80% respectively. Another interesting finding is that the promotion of the feature number, d (from 10 to 30), has little impact on the performance of PMF. We also exam the convergence speed of the proposed algorithm. In the missing recovery experiments conducted above, for each X setting, we record the average RMSE of the recovered results after every 10 iterations of all data partitions. We can see from Figure 3 that, for all X values, the errors drop dramatically in the first 20 iterations and remain stable after the first 100 iterations. We can conclude that the proposed algorithm converges to the local optimization solutions after around 100 iterations.
Figure 3.

Empirical studies on convergence speed.

Application to Impute the Missing Traffic Speed Values

To evaluate the feasibility of the proposed approach on real-world applications, in this section, we conduct another experiment on a traffic speed dataset, which was collected in the urban road network of Zhuhai City [36], China, from April 1, 2011 to April 30, 2011. The data matrix, R, consists of 1,853 rows and 8,729 columns. Each row corresponds to a road, and each column corresponds to a five minute-length time interval. All columns are arranged in ascending order of time. An entry, R (1 ≤ i ≤ 1, 853,1 ≤ j ≤ 8729), in R is the aggregate mean traffic speed of the ith road in the jth interval. Since all the data in R are collected by floating cars [37], the value of R could be missing if there is no car on the i th road in the j th time interval. Our statistics show that in R, there are nearly half of the entries, i.e., eight million entries are missing values. We perform missing imputation on matrix R using the studied algorithms with parameter settings k = 5 and d = 10. In the implementation of MMF, we fix α = 0.25, λ = 0.5, η1 = η2 = η3 = η4 = 0.5. We summarize all results in Table 2, from which both the feasibility and effectiveness of MMF are well verified. In detail, when X is large enough, e.g., X ≥ 80%, knn is competitive, while in the other cases, knn cannot work as well as the MF based algorithms. As for the MF algorithms, we see that the proposed MMF outperforms PPCA and PMF in all X settings. Particularly, when the observations are few (X = 10% and X = 20%), the errors of our algorithm reduce by 33% compared to those of PPCA and by 10% compared to those of PMF, respectively. When X > 20%, the RMSE differences between PPCA and our algorithm tend to be slight, but the overall errors of PPCA are roughly 3% ∼ 5% higher than those of MMF. For PMF, the RMSEs remain about 10% higher than MMF in all settings.
Table 2.

Recovery errors on the transportation dataset (mean ± std).

10%20%30%40%50%60%70%80%90%
knn40.47 ± 0.0231.79 ± 0.0125.41 ± 0.0221.35 ± 0.0018.33 ± 0.0015.89 ± 0.0113.73 ± 0.0111.67 ± 0.009.45 ± 0.02
PPCA17.90 ± 0.0117.36 ± 0.0113.00 ± 0.0212.25 ± 0.0111.47 ± 0.0111.31 ± 0.0311.19 ± 0.0211.14 ± 0.0411.16 ± 0.10
PMF14.41 ± 0.0112.83 ± 0.0312.43 ± 0.0112.33 ± 0.0212.36 ± 0.0112.35 ± 0.0112.13 ± 0.0011.99 ± 0.0311.96 ± 0.02
MMF11.79 ± 0.0211.51 ± 0.0111.43 ± 0.0111.05 ± 0.0211.05 ± 0.0111.01 ± 0.0010.83 ± 0.0110.69 ± 0.0110.70 ± 0.02

Conclusion

Missing estimation is one of the main concerns in current studies on sensor data-based applications. In this work, we formulate the estimation problem as a matrix completion one and present a multi-matrices factorization model to address it. In our model, each column, R, of the target matrix, R, is approximated by the product of a spatial feature matrix, U(), and a temporal feature vector, V. Both U and V are time dependent, and hence, their product accommodates the ability to describe the time variant sensor data. We also present a solution algorithm to the factorization model. Empirical studies on a synthetic dataset and real sensor data show that our approach outperforms the comparison algorithms. Reviewing the present work, it is notable that the proposed model only incorporates the temporal structure information, while the information on the spatial structure is disregarded, e.g., the data collected in two adjacent areas, S and S, should be close to each other. Hence, our next step is to extend our model with more complex structured data.
  2 in total

1.  Learning the parts of objects by non-negative matrix factorization.

Authors:  D D Lee; H S Seung
Journal:  Nature       Date:  1999-10-21       Impact factor: 49.962

2.  Metagenes and molecular pattern discovery using matrix factorization.

Authors:  Jean-Philippe Brunet; Pablo Tamayo; Todd R Golub; Jill P Mesirov
Journal:  Proc Natl Acad Sci U S A       Date:  2004-03-11       Impact factor: 11.205

  2 in total
  3 in total

1.  Spatial Copula Model for Imputing Traffic Flow Data from Remote Microwave Sensors.

Authors:  Xiaolei Ma; Sen Luan; Bowen Du; Bin Yu
Journal:  Sensors (Basel)       Date:  2017-09-21       Impact factor: 3.576

2.  Approach for the Development of a Framework for the Identification of Activities of Daily Living Using Sensors in Mobile Devices.

Authors:  Ivan Miguel Pires; Nuno M Garcia; Nuno Pombo; Francisco Flórez-Revuelta; Susanna Spinsante
Journal:  Sensors (Basel)       Date:  2018-02-21       Impact factor: 3.576

3.  From Data Acquisition to Data Fusion: A Comprehensive Review and a Roadmap for the Identification of Activities of Daily Living Using Mobile Devices.

Authors:  Ivan Miguel Pires; Nuno M Garcia; Nuno Pombo; Francisco Flórez-Revuelta
Journal:  Sensors (Basel)       Date:  2016-02-02       Impact factor: 3.576

  3 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.