Next Article in Journal
Systematic Review on the Applicability of Principal Component Analysis for the Study of Movement in the Older Adult Population
Previous Article in Journal
End-to-End Model-Based Detection of Infants with Autism Spectrum Disorder Using a Pretrained Model
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Missing Traffic Data Imputation with a Linear Generative Model Based on Probabilistic Principal Component Analysis

School of Electrical and Electronic Engineering, Nanyang Technological University, Singapore 639798, Singapore
*
Authors to whom correspondence should be addressed.
Sensors 2023, 23(1), 204; https://doi.org/10.3390/s23010204
Submission received: 28 November 2022 / Revised: 21 December 2022 / Accepted: 23 December 2022 / Published: 25 December 2022
(This article belongs to the Section Vehicular Sensing)

Abstract

:
Even with the ubiquitous sensing data in intelligent transportation systems, such as the mobile sensing of vehicle trajectories, traffic estimation is still faced with the data missing problem due to the detector faults or limited number of probe vehicles as mobile sensors. Such data missing issue poses an obstacle for many further explorations, e.g., the link-based traffic status modeling. Although many studies have focused on tackling this kind of problem, existing studies mainly focus on the situation in which data are missing at random and ignore the distinction between links of missing data. In the practical scenario, traffic speed data are always missing not at random (MNAR). The distinction for recovering missing data on different links has not been studied yet. In this paper, we propose a general linear model based on probabilistic principal component analysis (PPCA) for solving MNAR traffic speed data imputation. Furthermore, we propose a metric, i.e., Pearson score (p-score), for distinguishing links and investigate how the model performs on links with different p-score values. Experimental results show that the new model outperforms the typically used PPCA model, and missing data on links with higher p-score values can be better recovered.

1. Introduction

Traffic data generated by loop detectors or floating cars in urban road networks serve as the foundation for various data-driven applications in intelligent transportation systems, including traffic forecasting and traffic control [1,2,3]. However, even with ubiquitous sensing data, the missing data problem is almost inevitable due to either detector faults or a limited number of probe vehicles operating as mobile sensors in road networks, which means not each road in the network is covered by a detector or traveled by a probe vehicle in each minute [4,5,6]. Such an issue of missing traffic data poses obstacles for many further data-driven explorations in both academic and industrial fields, e.g., the link-based traffic status modeling, and network-wise traffic dynamics capturing [7,8]. Hence, accurate and reliable imputation is a basic need for such kind of incomplete data for the downstream explorations.
Many efforts have been made for estimating the missing traffic data on multiple traffic datasets, resulting the generative probabilistic model [9], the matrix decomposition and tensor factorization models [10,11,12], the autoencoder model [13], the fusion models [14]. Some basic mathematical models are also adopted, including the autoregressive integrated moving average (ARIMA) model, the Bayesian networks (BNs) method, the Markov chain Monte Carlo (MCMC) method, and the K-nearest neighbors (KNN) model, which are all tested in [15] for traffic missing data imputation.
The studies in [16] have validated that the matrix decomposition-based method is not capable for recovering missing data when the missing percentage large. The tensor models are based on the global structure capturing, and it is faced with challenging to permutation in the spatial and temporal dimension [17]. The probabilistic principal component analysis (PPCA) model [18] also plays a major role in missing data completion due to its generative feature [19]. Observations are assumed to be generated from a low dimensional space, with which the missing data can be recovered by optimizing the generative parameters using the observations [20].
Although many studies have focused on tackling this kind of problem, existing studies focus on the situation that the data are missing at random. Specifically, missing data can be classified into missing at random, missing completely at random, and missing not at random (MNAR) [16]. MNAR data always exist in the practical scenarios, and it is more challenging to estimate the missing values, which is the target of this paper.
The studies in [15] demonstrate that the PPCA model yields best performance among ARIMA, BNs, MCMC, and the KNN models, and in the research in [21], it has been certified that the PPCA model outperforms the basic tensor decomposition method. Hence, in this study, we set the PPCA model as a basis and further improve the PPCA model for tackling the MNAR traffic data. Additionally, the missing data on different links or sensors may be of different levels of challenges for data completion. Hence, there is also a need to distinguish different scenarios that missing data are on different links or sensors. Instead of the centrality of a sensor in the network, we utilize the time series correlations to define a metric for distinguishing the role of a link in the traffic network. Such a metric is adaptive to the scenario that sensors or links are anonymous. Contributions of this work are summarized as below:
  • We design a metric, p-score to denote the relative importance of links in terms of time series observations, which is used to distinguish the links with missing values.
  • We propose a linear model for the MNAR traffic data imputation, which is based on the probabilistic principal component analysis.
  • We conduct experiments on a real-world traffic dataset using the model and the proposed metric. Experimental results show missing data on links with higher p-score values can be better recovered. Moreover, testing on the real-world dataset, the results of the proposed model on links with the lowest p-score value also outperforms the typically used PPCA model.
The remainder of the paper is structured as follows. Section 2 presents the problem statement of the missing traffic data imputation. Section 3 the details of the proposed model. Section 4 shows the outcome of the experimental evaluation results, Section 5 presents a short discussion of the potential application scenarios of the proposed method, and finally, Section 6 gives the conclusions of this paper and the directions for future studies.

2. Problem Statement

Let Y n × p be a traffic data organization matrix with each element Y i j denoting the i observation of a link j .
We assume that the traffic data are missing and links with missing values are organized as Y · m 1 ,   Y · m 2 , , Y · m d , which is indexed by : = { m 1 , m 2 , , m d } { 1 , , p } with d < p are supposed to have missing values. Here, is the link set that has missing values. Other values in Y are observed.
We label the missing status of Y i j with another variable, written as
Ω i j = { 0 ,     Y i j   i s   m i s s i n g   1 ,   o t h e r w i s e  
Traffic sensing in urban road networks is faced with the missing data, or data sparsity problem. We construct the traffic matrix Y with all missing values in columns . The missing data imputation problem is to estimate these missing values, i.e., Y ^ i m ,   m , where Ω i m = 0 .

3. Methodology

3.1. PPCA

Assuming that the target variable is organized as a matrix Y, and it can be drawn from X of a low rank by linear combination, written as
Y = 1 α + X A + ϵ
here, Y n × p , where n is the sample number and p is the number of variables in the determination system. Specifically, in our link-based missing data imputation problem, p is the total number of links.
X = ( X 1 · | | X n · ) T is the latent variable. X n × r , and the row is drawn from a Gaussian distribution with zero mean, i.e., X i · ~ N ( 0 r , I d r × r ) . Here, r < min { n , p } , indicating a lower dimension. A is the loading matrix of rank r ,   A r × p . ϵ = ( ϵ 1 · | | ϵ n · ) T is a model error, and each row ϵ i · ~ N ( 0 p , σ 2 I d p × p ) p , which also has a zero mean. 1 = ( 1 , , 1 ) T n , α = ( α 1 , , α p ) p . Given the linear expression above, the mean value of each sample of Y is α .

3.2. Missing Variables Differentiation Based on Time Series

Assume that we have missing data on two different variables, Y · j , Y · k , with the same percent, the imputation accuracy can be different due to the variable’s role in the whole variable set. In the traffic missing data imputation problem, two links, Y · j , Y · k , may have different correlations to other links. In this section, we prose a metric to differentiate the role of each link.
The observation of each link is also a time series. We first adopt the Pearson correlation coefficient to estimate the correlation between each pair of time series, which is calculated as
ρ ( Y · j , Y · k ) = C o v ( Y · j , Y · k ) σ Y · j σ Y · k
By calculate the Pearson correlation among each pair of variables, we can obtain a correlation matrix, written as
P = [ 1 ρ ( Y · 1 , Y · n ) ρ ( Y · n , Y · 1 ) 1 ]
We define a Pearson score (p-score) for each variable to differentiate the variables in , which is calculated as
P s c o r e ( Y · j ) = k { 1 , , n } P j k
The variable Y · j that obtains a higher p-score value than Y · k denotes it has higher correlation to other links. Such a metric can differentiate the variables in terms of the time series observations. When P s c o r e ( Y · j ) > P s c o r e ( Y · k ) , and the two links have the same missing data percentage, the imputation accuracy for Y · j should be higher than that of Y · k .

3.3. Preliminaries and Assumptions

Assume that we have missing data on two different variables, Y · j , Y · k with the same percent, the imputation accuracy can be different due to the variable’s role in the whole variable set. In the traffic missing data imputation problem, two links Y · j , Y · k may have different correlations to other links. In this section, we prose a metric to differentiate the role of each link.
Assume that we have a D dimensional Gaussian distribution, written as
N ( x | u , Σ ) = 1 ( 2 π ) D / 2 1 | Σ | 1 / 2 exp ( 1 2 ( x u ) T Σ 1 ( x u ) )
where u is a D-dimensional mean vector, Σ is a D × D covariance matrix, | Σ | denotes the determinant of Σ . Then, we partition the D-dimensional vector into two parts, written as
x = ( x a x b )
Correspondingly, the mean vector and the covariance matrix are, respectively partitioned into two parts and four parts, written as below.
u = ( u a u b ) ,   Σ = ( Σ a a Σ a b Σ b a Σ b b )
We further utilize another variable Λ to denote the inverse matrix of the covariance matrix, defined as
Λ Σ 1 = ( Λ a a Λ a b Λ b a Λ b b )
Note that, we have the theory of matrix inverse as
( A B C D ) 1 = ( M M B D 1 D 1 C M D 1 C M B D 1 )
M = ( A B D 1 C ) 1
Hence, for the inverse of the covariance matrix, we have
( Σ a a Σ a b Σ b a Σ b b ) 1 = ( Λ a a Λ a b Λ b a Λ b b )
where we care about the expression of Λ a a and Λ a b , written as
Λ a a = ( Σ a a Σ a b Σ b b 1 Σ b a ) 1
Λ a b = ( Σ a a Σ a b Σ b b 1 Σ b a ) 1 Σ a b Σ b b 1
For the Gaussian distribution, the exponent parts can be expanded as
1 2 ( x u ) T Σ 1 ( x u ) = 1 2 x T Σ 1 x + x T Σ 1 u + c o n s t
when we partition the D-dimensional vector into two parts x = ( x a , x b ) T , then the exponent part of the Gaussian distribution can be expanded into
1 2 ( x u ) T Σ 1 ( x u ) = 1 2 ( x a u a ) T Λ a a ( x a u a ) 1 2 ( x a u a ) T Λ a b ( x b u b ) 1 2 ( x b u b ) T Λ b a ( x a u a ) 1 2 ( x b u b ) T Λ b b ( x b u b )  
We assume that x b is known in advance, so it can be regarded as a constant. Hence, the first order of x a is written as
x a T { Λ a a u a Λ a b ( x b u b ) }
which should have the same expression of the original expression for the first order part written as x T Σ 1 u . For x T Σ 1 u , when we consider the x b is known, then Σ 1 u can be written as Σ a | b 1 u a | b , which should be equal to Λ a a u a Λ a b ( x b u b ) , written as
Λ a a u a Λ a b ( x b u b ) = Σ a | b 1 u a | b  
Hence, we have the expression the estimated value of u a | b written as conditional Gaussian distribution
u a | b = Σ a | b { Λ a a u a Λ a b ( x b u b ) }
where Λ a a and Λ a b are already known as above.
Based on the conditional Gaussian distribution, we replace the x b part with ( ( Y · k ) k ¯ ) , which is assumed to known observations, and replace the x a part as the unknown part Y · m , which is to be estimated because that the data are missing. Then, we have the expectation of the estimation as
E [ Y · m | ( ( Y · k ) k ¯ ) ] = α m + Σ m , ¯ Σ ¯ , ¯ 1 ( Y · ¯ T α ¯ )
Then, the estimation of the missing data is calculated as
Y ^ i m = α ^ m + Σ ^ m , ¯ Σ ^ ¯ , ¯ 1 ( Y · ¯ T α ¯ )
Hence, the missing data estimations depend on the estimations of α ^ m , Σ ^ m , ¯ and Σ ^ ¯ , ¯ 1 . Below are assumptions for estimating the model parameters.
Assumption 1: 
m , j ,   ( A · m   ( A · j ) j j ) is invertible. j = \ { j } .
Assumption 2: 
m , j , Y · j Ω · m | ( ( Y · k ) k { j } ¯ ) .
Assumption 1 denotes that the matrix ( A · m   ( A · j ) j j ) is of full rank. Assumption 2 denotes that, given the values in ( Y · k ) k { j } ¯ , the column Y · j is independent with the column Ω · m .
The missing data imputation for MNAR is to estimate the value of Y i m with m for i such that Ω i m = 0 . Assumption 2 leads to
E [ Y · j | ( ( Y · k ) k { j } ¯ ) ] = E [ Y · j | ( ( Y · k ) k { j } ¯ ) ,   Ω i m = 1 ]

3.4. Estimation of α

We first define the regression coefficients of Y · j on Y · m and Y · k , for k j in the complete case, that will be used to express the mean of a variable with MNAR values.
Considering the model Y = 1 α + X A + ϵ , with an assumption that matrix A r × p is of full rank r . Therefore, the expression of Y · j can be reduced to the following linear system.
( Y · m   ( Y · j ) j j ) = 1 α | r + ( X 1 , , X r ) A | r + ϵ | r
Here, α | r and ϵ | r are the reduced matrix of α and ϵ . A | r r × r denotes the reduced matrix of ( A · m   ( A · j ) j j ) .
Given Assumption 1, the A | r is invertible, and the inverted matrix is denoted as A ´ 1 . The latent matrix of full rank r can be written as
( X 1 , , X r ) = ( ( Y · m   ( Y · j ) j j ) 1 α | r ϵ | r ) A ´ 1 .
Using the original model Y = 1 α + X A + ϵ , the expression of Y · j is then can be written as
Y · j = 1 α j + ( ( Y · m   ( Y · j ) j j ) 1 α | r ϵ | r ) A ´ 1 A j + ϵ · j = k { m } j ( l m j A ´ 1 l k A j l ) Y · k k { m } j ( l m j A ´ 1 l k A j l ) ( 1 α k + ϵ · k ) + 1 α j + ϵ · j  
where we can get the intercept and the coefficients of Y · j on ( Y · m , ( Y · k ) k j ) .
For j ,   k j , let A j m , j [ 0 ] c be the intercept, and A j m , j [ m ] c   A j m , j [ k ] c be the coefficients standing for the effects of Y · j on ( Y · m , ( Y · k ) k j ) in the complete case, i.e., when Ω m = 1 . Then, we have
( Y j ) | Ω m = 1 = A j m , j [ 0 ] c + j j A j m , j [ j ] c Y j + A j m , j [ m ] c Y k + ζ c
where the coefficients are calculated as below equations.
A j m , j [ j ] c = l { m } j A ´ 1 l j A j l ,   j j
A j m , j [ m ] c = l { m } j A ´ 1 l m A j l
A j m , j [ 0 ] c = 1 α j k { m } j ( l { m } j A ´ 1 l k A j l ) 1 α k
ζ c = k { m } j A j m , j [ k ] c ϵ k + ϵ j
Here, the arrow j m , j indicates the regression model of Y j on Y ( m , j ) , and the squared bracket [ k ] indicates the coefficient. Based on the model setting, we have E [ ϵ k ] = 0 , hence E [ ζ c ] = 0 .
Assumption 2 leads to
E [ Y j | ( ( Y k ) k { j } ¯ ) ] = E [ Y j | ( ( Y k ) k { j } ¯ ) ,   Ω i m = 1 ] = E [ A j m , j [ 0 ] c + k { m } j A j m , j [ k ] c Y k + ζ c | ( ( Y · k ) k { j } ¯ ) ] = A j m , j [ 0 ] c + k { m } j A j m , j [ k ] c Y k + E [ ζ c | ( ( Y · k ) k { j } ¯ ) ]
By taking the expectation of the left and right parts of the equality above given E [ ϵ k ] = 0 for k { m } j , we have
L e f t = E [ E [ Y j | ( ( Y k ) k { j } ¯ ) ] ] = E [ Y j ] = α j
R i g h t = E [ A j m , j [ 0 ] c + k { m } j A j m , j [ k ] c Y k + E [ ζ c | ( ( Y · k ) k { j } ¯ ) ] ] = A j m , j [ 0 ] c + j j A j m , j [ j ] c α k + A j m , j [ m ] c α m + E [ ζ c ]
Above two equalities are identical. So, we have
α ^ m = α j A j m , j [ 0 ] c j j A j m , j [ j ] c α k A j m , j [ m ] c

3.5. Estimation of Variance and Covariance

Let Z = ( Y · k )   k {   j   } ¯ , for the variance Σ ¯ , ¯ , we have
Σ ¯ , ¯ = V a r ( Y · j ) = E [ V a r ( Y · j | Z ) ] + V a r ( E [ Y · j | Z ] ) .
Assumption 2 leads to V a r ( Y · j | Z ) = V a r ( Y · j | Z , Ω · m = 1 ) . According to the conditional variance for a Gaussian vector, we have
V a r ( Y · j | Z ) = V a r ( Y · j ) C o v ( Z , Y · j ) V a r ( Z ) 1 C o v ( Z , Y · j ) T .
Then, we have the first term of V a r ( Y · j ) as
E [ V a r ( Y · j | Z ) ] = V a r ( Y · j ) C o v ( Z , Y · j ) V a r ( Z ) 1 C o v ( Z , Y · j ) T | Ω · m = 1
For the second term of V a r ( Y · j ) , we have
V a r ( E [ Y · j | Z ] ) = V a r ( E [ Y · j | Z , Ω · m = 1 ] ) = V a r ( k { m } j A j m , j [ k ] c Y k k { m } j A j m , j [ k ] c E [ ϵ · k | Z ] + A j m , j [ 0 ] c + E [ ϵ · j ] )
where E [ ϵ · k | Z ] = σ 2 ( V a r ( Z ) 1 ) k · ( Z E [ Z ] ) .
For the covariances Σ ^ m , ¯ between Y m ,   Y k , k , let Z = ( Y · l )   l {   k   } ¯ , we have
Σ ^ m , ¯ = C o v ( Y m   Y k ) = E [ Y m   Y k ] E [ Y m ] E [   Y k ] = E [ E [ Y m Y k | Z ] ] E [ Y m ] E [   Y k ] = E [ Y m E [ Y k | Z ] ] E [ Y m ] E [   Y k ] .  
For the first term, we have
E [ Y m E [ Y k | Z ] ] = E [ Y m E [ Y k | Z , Ω · m = 1 ] ] = E [ Y m ( A j m , j [ 0 ] c + j { m } j A j m , j [ j ] c Y j + E ( ζ c | Z ) ) ] = A j m , j [ 0 ] c E [ Y m ] + A j m , j [ m ] c E [ Y · m 2 ] + j j A j m , j [ j ] c E [ Y m Y j ] + E [ Y m E ( ζ c | Z ) ]
According to the derivation in [22], E [ Y m E ( ζ c | Z ) ] is calculated as
σ 2 ( l k s k V a r ( Z ) 1 A j m , j [ l ] c C o v ( Y m Y l ) + A j m , j [ m ] c ) .
Note that for the second term, E [ Y m ] E [   Y k ] , it can be directly calculated.

4. Experiment

4.1. Dataset and Preprocessing

We utilize a road traffic speed dataset published by [23]. Road segments are anonymous, covering the main urban expressways within two months from 1 August to 30 September 2016, (a total of 61 days).
The time interval is 10 min. From the original dataset, we select twenty links whose speed are generated in the morning rush hours (i.e., 7:00 A.M. to 9:00 A.M.) for evaluating the proposed method. The speed of each link is transformed to the congestion index, which is calculated as v i j max ( v · j ) , v i j denotes the i speed value of link j and v · j denotes all observations of link j . For each link j , the time series length of speed observations is 732 (12 observations in two hours 61 days). Hence, the dimension of Y is n = 732 ,   p is the number of links.
The basic assumption of the proposed model is that the observations of each link are drawn from a Gaussian distribution, Hence, we adopt the quantile–quantile plot (QQ Plot) to display the quantiles of the data (after normalizing) versus the theoretical quantile values from a normal distribution. If the distribution of the data is normal, then the data plot is linear. As shown in the Figure 1, the plot closely follows the straight lines, suggesting that the data after normalizing the congestion data have an approximately normal distribution.

4.2. Metrics for Missing Data Imputation Accuracy

For evaluating the performance of missing data imputation, we adopt the below four metrics, including Root Mean Square Error (RMSE), Mean Absolute Error (MAE), Symmetric Mean Absolute Percentage Error (SMAPE), and R2. Note that a higher R2 value denotes better accuracy.
RMSE = 1 n i = 1 n ( y i y ^ i ) 2 MA E = 1 n i = 1 n | y i y ^ i | SMA PE = 1 n i = 1 n | y i y ^ i | ( | y i | + | y ^ i | ) / 2 R 2 = 1 i = 1 n ( y i y ^ i ) 2 i = 1 n ( y i y ¯ i ) 2

4.3. Benchmark and Experiment Settings

We compare the new model with the typically used PPCA model, where σ 2 and A is estimated by an expectation-maximum (EM) algorithm. We name it ppca-em in this section. We further use the estimated σ 2 by EM as the known inputs of the new model in this study. As to the rank r in the model, the best value is determined by cross-validation on the dataset. In this section, we further detail the experiment settings in terms of the MNAR data generation and the settings of link set .

4.3.1. Generating MNAR

Note that the model targets at solving the imputation for MNAR data. We utilize the mechanism of generating MNAR in [22]. Specifically, a logistic regression function is adopted as f ( x ) = 1 / ( a ( x b ) ) , where x is an observation, and ( a , b ) is set for selecting different missing percentage. The function transforms the observation x to a value in ( 0 , 1 ) . The observation x with f ( x ) > μ , is set to be the MNAR data, where μ is a random threshold. We set the parameters ( a , b ) as below Table 1, which is corresponding to a specific missing percentage.

4.3.2. Settings of Link Set

Missing data on different links may obtain different recover accuracy, even with the same missing percentage. For evaluating this proposition, we first test the missing data imputation accuracy with different p-score values of the links. When a link observation Y · j is set to be = { j } , all other links are set to be j = \ { j } , where = { 1 , 2 , , 20 } . Further, we test the missing data imputation accuracy of several select links (or link combination) compared with the ppca-em model, to evaluate the advantage of the new model.

4.4. Results and Analysis

We first examine the relationship between the missing data imputation accuracy and the proposed metric, i.e., p-score value. We select two links with the highest p-score value and the lowest p-score value in the dataset. The p-score values of two selected links, i.e., link 6 and link 18, are shown in Figure 2, where the color map denotes the ρ values between the selected link and all links in link set .
Accordingly, we calculate the absolute errors of the model on these two selected links. Figure 3 shows the results missing data imputation results on these links in terms of different missing data percentages. We can see that missing data on link 18, which is with a higher p-score value than that of link 6, are better recovered regarding all scenarios of missing data percentages (25%, 50%, 75%).
We further examine the relationship between the p-score value and the accuracy metrics on the traffic dataset, which is shown in below Figure 4. The accuracy measured by four metrics presents a positive correlation with the p-score value on different links, meaning that missing data on the links with higher p-score values can be better recovered.
We also compare the new model with the ppca-em model on other links or link combinations in the dataset. The settings and corresponding missing data imputation results measured by the four metrics are shown in Table 2. Except the above four metrics, we further added the accuracy as another metric for directly representing the estimation accuracy results and better understanding the accuracy comparison between the new model and the baseline. Here, the accuracy is calculated as
Accuracy = 1 100 % 1 n i = 1 n | y i y ^ i | | y i | + | y ^ i |
Note that Figure 3 already shows that the new model obtains the worst accuracy on link 6. Hence, we further compare two models on this link to compare the new model with the ppca-em model. The results are shown in Figure 5. It shows that even on link 6, the absolute errors of the new model are still lower than the ppca-em model for three missing ratios.
The experiment results in Table 2 and Figure 5 demonstrate that the new model performs better than the typically used ppca-em model in terms of four accuracy metrics and computing time. The results indicate that the new model is more effective and efficient for the MNAR traffic data imputation problem, which is the target of this study. The typical ppca-em method is usually used for imputation of data missing at random, whereas the new model is more general and is capable of MNAR data imputation.

5. Discussion

Our improved linear probabilistic principal component analysis method can be applied to a variety of missing traffic data imputation applications, such as missing traffic speed estimation, or other traffic indicators. Notably, because the proposed missing data imputation method is a linear and interpretable model, which is naturally of high computing efficiency, it can be utilized in the systems where real-time missing data estimation is required. Additionally, the time-series based metric, p-Score value, is proposed to distinguish variables, e.g., links with missing traffic speed data, for estimating the missing values. Such a method can be applied to the applications of traffic surveillance systems to identify which sensors should be of high priority to maintained in the systems to ensure the full surveillance, or which links should be equipped with sensor for traffic surveillance.

6. Conclusions

In this study, we propose a general linear model based on the PPCA to tackle the MNAR traffic data imputation problem. We also propose a time series-based metric, i.e., the p-score, to distinguish links that are of missing data. Experimental results on a real-world traffic dataset show that the proposed model performs better than the typically used ppca-em model in terms of missing data imputation accuracy and computing time. Furthermore, we test the model on links with different p-score values. The experiment results show that the missing data on links with higher p-score values are better recovered. Such an observation helps us understand the data recovering distinction for different links in the road network, which has not been studied in any research to our best knowledge. In future work, we will further compare the model with other methods on more traffic datasets.

Author Contributions

Conceptualization, L.H. and R.S.; methodology, L.H.; software, Z.L.; validation, R.L.; formal analysis, R.S.; investigation, L.H.; resources, R.S.; data curation, Z.L.; writing—original draft preparation, L.H.; writing—review and editing, L.H. and R.S.; visualization, L.H.; supervision, R.S.; project administration, R.S.; funding acquisition, R.S. All authors have read and agreed to the published version of the manuscript.

Funding

This study is supported under the RIE2020 Industry Alignment Fund—Industry Collaboration Projects (IAF-ICP) Funding Initiative, as well as cash and in-kind contribution from the industry partner(s), and A*STAR under its Industry Alignment Fund (LOA Award I1901E0046).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The dataset used in this paper is published by [23], which can be found at https://doi.org/10.5281/zenodo.1205229, Access on 18 February 2022.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Yuan, H.; Li, G. A survey of traffic prediction: From spatio-temporal data to intelligent transportation. Data Sci. Eng. 2021, 6, 63–85. [Google Scholar] [CrossRef]
  2. Neelakandan, S.; Berlin, M.A.; Tripathi, S.; Devi, V.B.; Bhardwaj, I.; Arulkumar, N. IoT-based traffic prediction and traffic signal control system for smart city. Soft Comput. 2021, 25, 12241–12248. [Google Scholar] [CrossRef]
  3. Tan, H.C.; Wu, Y.K.; Feng, J.S.; Wang, W.H.; Ran, B. Traffic missing data completion with spatial-temporal correlations. In Proceedings of the 93rd Annual Meeting of the Transportation Research Board, Washington, DC, USA, 12–16 January 2014. [Google Scholar]
  4. Li, H.P.; Wang, Y.H.; Li, M. Modified GAN Model for Traffic Missing Data Imputation. In CICTP 2020, Proceedings of the 20th COTA International Conference of Transportation Professionals, Xi’an, China, 14–16 August 2020; American Society of Civil Engineers: Reston, VA, USA, 2020; pp. 3013–3023. [Google Scholar]
  5. Yang, F.; Liu, G.; Huang, L.; Chin, C.S. Tensor Decomposition for Spatial—Temporal Traffic Flow Prediction with Sparse Data. Sensors 2020, 20, 6046. [Google Scholar] [CrossRef] [PubMed]
  6. Huang, L.P.; Zhao, S.D.; Luo, R.K.; Su, R.; Sindhwani, M.; Chan, S.K.; Dhinesh, G.R. An incremental map matching approach with speed estimation constraints for high sampling rate vehicle trajectories. In Proceedings of the IEEE 17th International Conference on Control & Automation (ICCA), Naples, Italy, 27–30 June 2022; pp. 758–765. [Google Scholar]
  7. Huang, L.P.; Yang, Y.J.; Chen, H.C.; Zhang, Y.; Wang, Z.; He, L. Context aware road travel time estimation by coupled tensor decomposition based on trajectory data. KBS 2022, 245, 108596. [Google Scholar] [CrossRef]
  8. Huang, L.; Li, Z.; Zhao, S.; Luo, R.; Su, R.; Guan, Y. Coupling Urban Road Travel Time and Traffic Status from Vehicle Trajectories by Gaussian Distribution. In Proceedings of the IEEE 25th International Conference on Intelligent Transportation Systems (ITSC), Macau, China, 8–12 October 2022; pp. 4056–4061. [Google Scholar]
  9. Huang, L.P.; Yang, Y.J.; Zhao, X.H.; Ma, C.; Gao, H. Sparse data-based urban road travel speed prediction using probabilistic principal component analysis. IEEE Access 2018, 6, 44022–44035. [Google Scholar] [CrossRef]
  10. Asif, M.T.; Mitrovic, N.; Garg, L.; Dauwels, J.; Jaillet, P. Low-dimensional models for missing data imputation in road networks. In Proceedings of the 2013 IEEE International Conference on Acoustics, Speech and Signal Processing, Vancouver, BC, Canada, 26–31 May 2013. [Google Scholar]
  11. Jia, X.; Dong, X.; Chen, M.; Yu, X. Missing data imputation for traffic congestion data based on joint matrix factorization. Knowl.-Based Syst. 2021, 225, 107114. [Google Scholar] [CrossRef]
  12. Asif, M.T.; Mitrovic, N.; Dauwels, J.; Jaillet, P. Matrix and tensor-based methods for missing data estimation in large traffic networks. IEEE Trans. Intell. Transp. Syst. 2016, 17, 1816–1825. [Google Scholar] [CrossRef]
  13. Jiang, B.; Siddiqi, M.D.; Asadi, R.; Regan, A. Imputation of missing traffic flow data using denoising autoencoders. Procedia Comput. Sci. 2021, 184, 84–91. [Google Scholar] [CrossRef]
  14. Shang, Q.; Yang, Z.; Gao, S.; Tan, D. An imputation method for missing traffic data based on FCM optimized by PSO-SVR. J. Adv. Transp. 2018, 2018, 2935248. [Google Scholar] [CrossRef]
  15. Li, Y.B.; Li, Z.H.; Li, L. Missing traffic data: Comparison of imputation methods. IET Intell. Transp. Syst. 2018, 8, 51–57. [Google Scholar] [CrossRef]
  16. Wu, P.; Xu, L.; Huang, Z. Imputation methods used in missing traffic data: A literature review. In Proceedings of the International Symposium on Intelligence Computation and Applications, Guangzhou, China, 20–21 November 2019. [Google Scholar]
  17. Chen, X.; Lei, M.; Saunier, N.; Sun, L. Low-rank autoregressive tensor completion for spatiotemporal traffic data imputation. IEEE Trans. Intell. Transp. Syst. 2022, 23, 12301–12310. [Google Scholar] [CrossRef]
  18. Tipping, M.E.; Bishop, C.M. Probabilistic principal component analysis. J. R. Stat. Soc. Ser. B (Stat. Methodol.) 1999, 61, 611–622. [Google Scholar] [CrossRef] [Green Version]
  19. Ilin, A.; Raiko, T. Practical approaches to principal component analysis in the presence of missing values. J. Mach. Learn. Res. 2010, 11, 1957–2000. [Google Scholar]
  20. Audigier, B.; Husson, F.; Josse, J. Multiple imputation for continuous variables using a Bayesian principal component analysis. J. Stat. Comput. Simul. 2016, 86, 2140–2156. [Google Scholar] [CrossRef] [Green Version]
  21. Qu, L.; Li, L.; Zhang, Y.; Hu, J. PPCA-based missing data imputation for traffic flow volume: A systematical approach. IEEE Trans. Intell. Transp. Syst. 2009, 10, 512–522. [Google Scholar]
  22. Sportisse, A.; Boyer, C.; Josse, J. Estimation and imputation in probabilistic principal component analysis with missing not at random data. Adv. Neural Inf. Process. Syst. 2020, 33, 7067–7077. [Google Scholar]
  23. Chen, X.; Yang, J.; Sun, L. A nonconvex low-rank tensor completion model for spatiotemporal traffic data imputation. Transp. Res. Part C Emerg. Technol. 2020, 117, 102673. [Google Scholar] [CrossRef]
Figure 1. Plot of the Data Quantitles and Standard Normal Quantitles.
Figure 1. Plot of the Data Quantitles and Standard Normal Quantitles.
Sensors 23 00204 g001
Figure 2. ρ Value of Two Links with the Highest and Lowest p-score.
Figure 2. ρ Value of Two Links with the Highest and Lowest p-score.
Sensors 23 00204 g002
Figure 3. Performance of the Algorithm for Links with Highest p-Score and Lowest p-Score.
Figure 3. Performance of the Algorithm for Links with Highest p-Score and Lowest p-Score.
Sensors 23 00204 g003
Figure 4. Scatter Plot between the Accuracy Metrics and the p-score Values.
Figure 4. Scatter Plot between the Accuracy Metrics and the p-score Values.
Sensors 23 00204 g004
Figure 5. Performance of Models on the Link with Lowest p-Score Values.
Figure 5. Performance of Models on the Link with Lowest p-Score Values.
Sensors 23 00204 g005
Table 1. Settings for Generating MNAR Data in the Experiments.
Table 1. Settings for Generating MNAR Data in the Experiments.
a b Missing Percentage
−1−1.325%
3050%
1−1.375%
Table 2. Experiment Setting and performance of the algorithms with different Percent of MNAR Data on Links.
Table 2. Experiment Setting and performance of the algorithms with different Percent of MNAR Data on Links.
Experiment Setting: Missing Rate (%) @
50 @ { 1 } 50 @ { 3 } 75 @ { 1 } 75 @ { 1 , 3 } 75 @ { 3 , 5 }
p-score10.62@ { 1 } 13.26@ { 3 } 10.62@ { 1 } 9.42@ { 5 }
Performance Comparison
Metricsppca-emNewppca-emNewppca-emNewppca-emNewppca-emNew
RMSE0.9920.7460.5590.5951.0690.7460.8350.8710.9420.627
MAE0.8100.5640.4580.4480.7890.5640.5980.6250.6650.468
SMAPE0.3400.2230.2160.1570.2890.2230.2310.2280.2530.201
R20.1500.6880.5950.6810.5450.6880.2080.6770.1150.740
Accuracy83.0%88.9%89.2%92.2%85.5%88.9%88.4%88.6%87.3%89.9%
Computing Time
Sec6.542.036.292.036.732.646.064.0611.324.11
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Huang, L.; Li, Z.; Luo, R.; Su, R. Missing Traffic Data Imputation with a Linear Generative Model Based on Probabilistic Principal Component Analysis. Sensors 2023, 23, 204. https://doi.org/10.3390/s23010204

AMA Style

Huang L, Li Z, Luo R, Su R. Missing Traffic Data Imputation with a Linear Generative Model Based on Probabilistic Principal Component Analysis. Sensors. 2023; 23(1):204. https://doi.org/10.3390/s23010204

Chicago/Turabian Style

Huang, Liping, Zhenghuan Li, Ruikang Luo, and Rong Su. 2023. "Missing Traffic Data Imputation with a Linear Generative Model Based on Probabilistic Principal Component Analysis" Sensors 23, no. 1: 204. https://doi.org/10.3390/s23010204

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop