Next Article in Journal
Towards the Development of an Affordable and Practical Light Attenuation Turbidity Sensor for Remote Near Real-Time Aquatic Monitoring
Previous Article in Journal
Deep Generative Models-Based Anomaly Detection for Spacecraft Control Systems
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Integrated Fuzzy C-Means Method for Missing Data Imputation Using Taxi GPS Data

1
School of Traffic and Transportation, Beijing Jiaotong University, Beijing 100044, China
2
Key Laboratory of Transport Industry of Big Data Application Technologies for Comprehensive Transport, Beijing Jiaotong University, Beijing 100044, China
3
Integrated Transportation Research Centre of China, Beijing Jiaotong University, Beijing 100044, China
4
Signal & Communication Research Institute, China Academy of Railway Sciences Corporation Limited, Beijing 100081, China
*
Author to whom correspondence should be addressed.
Sensors 2020, 20(7), 1992; https://doi.org/10.3390/s20071992
Submission received: 17 March 2020 / Revised: 28 March 2020 / Accepted: 30 March 2020 / Published: 2 April 2020
(This article belongs to the Section Remote Sensors)

Abstract

:
Various traffic-sensing technologies have been employed to facilitate traffic control. Due to certain factors, e.g., malfunctioning devices and artificial mistakes, missing values typically occur in the Intelligent Transportation System (ITS) sensing datasets, resulting in a decrease in the data quality. In this study, an integrated imputation algorithm based on fuzzy C-means (FCM) and the genetic algorithm (GA) is proposed to improve the accuracy of the estimated values. The GA is applied to optimize the parameter of the membership degree and the number of cluster centroids in the FCM model. An experimental test of the taxi global positioning system (GPS) data in Manhattan, New York City, is employed to demonstrate the effectiveness of the integrated imputation approach. Three evaluation criteria, the root mean squared error (RMSE), correlation coefficient (R), and relative accuracy (RA), are used to verify the experimental results. Under the ±5% and ±10% thresholds, the average RAs obtained by the integrated imputation method are 0.576 and 0.785, which remain the highest among different methods, indicating that the integrated imputation method outperforms the history imputation method and the conventional FCM method. On the other hand, the clustering imputation performance with the Euclidean distance is better than that with the Manhattan distance. Thus, our proposed integrated imputation method can be employed to estimate the missing values in the daily traffic management.

1. Introduction

With the advent of the intelligent transportation era, various traffic sensors, including loop detectors, cameras, and GPS receivers, have been widely adopted to facilitate traffic control and management. Taking GPS as an example, as seen in Figure 1, it consists of three parts, including the space segment, the user segment, and the control segment. The user segment consists of GPS receivers and the user community. Currently, almost all taxis are required to be equipped with GPS receivers for location recording. Hence, a substantial amount of taxi mobile data from taxis is accurately recorded in the taxi GPS datasets. As seen in Table 1, the passengers’ pick-up and drop-off locations, dates, etc., are easily obtained as they are recorded in the taxi GPS datasets.
Currently, many applications have been made by analyzing taxi GPS data. For example, by utilizing taxi trajectory data, passengers’ daily travel characteristics are mined [1]. Meanwhile, the real-time status of urban roads can be predicted as well [2]. Typically, the passengers’ mobile data generated by the GPS reflect the dynamic states of the transportation network. Specifically, the dynamic states are the outcomes of different demands of commuters and travelers. Thus, another interesting topic focuses on taxi demand distribution learning [3]. By analyzing taxi demand, intelligent taxi dispatch can be achieved as well [4].
However, due to the malfunctions of hardware or software, the issue of missing data arises frequently. Consequently, it poses a challenge to transportation planning and management [5], passenger behavior analysis, and demand forecasting [6,7]. Thus, it is crucial to deal with the missing data issue.
In general, there are various approaches that can be used to address the missing data. Ignoring, deleting, and zeroing are unsophisticated methods [8]. The common drawback of these methods is that valid information in the missing data is ignored. Furthermore, the lack of complete data would reduce the data quality and restrict data applications. Therefore, in order to obtain high-quality data, missing data should be generated by estimating effectively and efficiently [9].
In general, the imputation method mainly involves two types of approaches [10]. First, missing data are predicted by using the statistical method [11]. Specifically, some statistical features, including the mean and various indicators, are utilized to replace the missing values. Second, the missing values are estimated by machine learning techniques [12]. In particular, these techniques include fuzzy C-means (FCM) [13], support vector machine (SVM) [14], and random forest [15]. The core procedure is to generate several candidate values by using more than one model. Then, the missing data are replaced by the best candidate values, which are determined by some evaluation criteria.
Motivated by recent works in the literature [16], this paper aims to establish a novel imputation method integrating the matrix-based method, the fuzzy C-means (FCM) method, and the genetic algorithm (GA). (1) It should be noted that taxi demand volume data on weekdays or weekends in the taxi GPS datasets share periodic similarity spatiotemporally. Taking this into consideration, the matrix-based method is utilized to visualize this data pattern instead of the conventional vector-based method. (2) For the FCM method, it is widely used to deal with the clustering problem with incomplete data [17,18]. Specifically, the FCM method is capable of generating satisfactory estimation results by analyzing multiple dimensional datasets. However, these clustering results are sensitive to the parameter of the membership degree and the number of cluster centroids. Therefore, in our study, a GA is incorporated into the FCM to optimize the above two critical parameters.
The rest of this paper is organized as follows: Section 2 reviews the related studies in recent years. Section 3 presents the integrated methods for estimating missing data. Section 4 demonstrates an experimental test of taxi GPS data in Manhattan, New York City, in 2013, and provides comparisons and analyses of the results. Finally, Section 5 summarizes some findings and proposes future works.

2. Literature Review

In recent years, during the process of analyzing traffic data from various datasets, one problem that has caused extensive concern is the missing traffic value. Tian et al. [19] found that missing traffic flow data occurred frequently when they dealt with long short-term predictions of the traffic flow. Specifically, Chen et al. [20] pointed out that the missing data problem was common in floating sensing and crowdsourcing systems. Similarly, Ni et al. [21] found that raw traffic flow data accumulated by the Intelligent Transportation Systems (ITSs) were typically incomplete, which might render some datasets useless. Thus, to obtain missing values, different imputation methods should be proposed.

2.1. Deletion Method

Before presenting various imputation methods, one conventional method should be firstly reviewed. The deletion method is a time-saving and common choice when the cardinality of missing data is relatively small. As the name implies, the deletion method means missing data or missing variables are substituted by other data or variables. Due to its simplicity, this deletion method is extensively utilized in data preprocessing [22].
When the cardinality of missing data becomes larger, other methods that provide estimations of the missing data should be strongly recommended. Currently, with the aim to ensure that the estimated data are closer to the real data, other imputation methods that are based on the correlation between the missing data and the other existing data are being developed. In particular, these imputation methods include the regression imputation method [23,24,25,26], the k-nearest neighbor imputation (KNNI) method [27,28,29], the expectation maximization imputation (EMI) method [30], the knowledge-based method [31,32], and the fuzzy C-means method [33,34,35].

2.2. Regression Imputation Method

Regression imputation is a simple and common way of dealing with missing values. Chen et al. [36] firstly investigated how pairs of neighboring detectors behave, and then established a linear regression model to estimate the missing values. Boyles et al. [37] compared the performances of eleven approaches based on three types of missing data. The eleven approaches included a simple linear regression model, multiple linear regression, local and global regression, and historical imputation. The three types of missing data consisted of random losses data, continuous losses data, and systematic losses data. The imputation results indicated that the regression model was highly sensitive to the input data, and the estimated results obtained by the historical method were less accurate. Although the regression methods are easy to apply, traffic conditions vary constantly, and the estimation performance might be unreliable.

2.3. KNNI Method

Another imputation method is k-nearest neighbor imputation (KNNI). It should be noted that the k value in the KNNI means that the number of neighbors near each value is k. Batista et al. [38] utilized the Euclidean distance to find the predefined k value of records from the total dataset. They replaced the missing value with the mean value of its neighbors. Troyanskaya et al. [39] proposed the weight k-nearest neighbor imputation (WKNNI) to estimate the missing values, and the estimation results showed that the imputation performance of the WKNNI was more robust than that of the original KNNI. In general, if the dataset was insufficient, the KNNI could perform well. However, as the dataset became larger, the KNNI could be exceedingly time consuming because this method would find the k value of similar records from the whole dataset for each missing value.

2.4. EMI Method

Malan et al. [30] pointed out that the critical step in the expectation maximization imputation (EMI) was to develop the maximum likelihood estimation (MLE) [40,41]. Then, missing data were predicted by a known probability distribution of the MLE, and the iteration was terminated when the estimated data stopped changing. Therefore, this method is only applicable to data missing at random. Evidently, the main drawback of the EMI is the estimation of parameters through the MLE, and how to provide a reasonable assumption of the estimated parameters through the MLE is another interesting topic.

2.5. Knowledge-Based Method

Qi et al. [31] pointed out that existing imputation methods lack extra knowledge. In addition, the knowledge-based model was capable of capturing missing values with a public knowledge base [42]. Although the knowledge-based method can fill missing values with the help of human intelligence, several drawbacks also exist. One drawback is that the type of missing data is mismatched. Mismatching data would affect the accuracy of the estimated results. Another drawback is the absence of the potential knowledge of the missing values. This problem would also result in low accuracy in the imputation procedure.

2.6. Fuzzy C-Means Method

In addition, the clustering method is another type of imputation method. The common clustering method typically is comprised of K-means and fuzzy K-means. Amiri et al. [10] pointed out that the central problem in the K-means was the determination of the centroid positions of clusters. These centroid positions were iterated to update them according to the calculated distance and judgment conditions. Then, the missing value was replaced by the nearest neighbor based on its newest cluster [10]. Li et al. [43] utilized the fuzzy K-means method to estimate the missing values. The fuzziness meant that each instance did not belong to a cluster completely. The estimation results showed that a more robust clustering was obtained after numerical tests [43]. Theoretically, the main obstacle of applying the fuzzy K-means is how to determine the cluster number and the membership degree [44,45,46]. It should be noted that the selection of the cluster number and the determination of the membership degree cannot follow an artificial method. Thus, fuzzy K-means based on the hybrid algorithm merits further investigation.

3. Methodology

3.1. Research Framework

Before introducing the proposed methodology, the overall research framework is depicted as follows:
It can be seen from Figure 2 that the research framework contained three steps. In Step 1, the raw taxi GPS data are processed based on different passengers’ pick-up locations, in which taxi demands are generated. Then, taxi demands of specific zones on each weekday are input into the matrix-based structure. In Step 2, the values in the matrix-based structure are randomly deleted according to the specific missing pattern. Then, an imputation method is proposed to generate the estimated values, and several performance evaluation criteria are selected. In Step 3, the imputation results and comparison results are illustrated, respectively.

3.2. Matrix-Based Missing Data Description

From Qu et al. [47], three kinds of missing data are classified according to the missing data characteristics.
(1) Missing completely at random (MCR): missing values are independent of any other values;
(2) Missing partially at random (MPR): missing values have a relationship with other existing values, and the missing values could be estimated by other existing values;
(3) Missing not at random (MNR) or missing due to systematical errors [12]: missing data have a relationship not only with other missing values, but with other existing values, and cannot be estimated just by using other existing values.
Thanks to the GPS technique, firstly, we calculated the number of pick-ups by taxi in the region of Manhattan, New York City, to represent the taxi demand volume. Secondly, due to the limitation of the taxi GPS datasets, we assumed that the type of missing data belonged to the MPR. Moreover, the observed taxi demand volume data from the taxi GPS datasets and missing data at a 25% missing ratio are shown in Table 2 and Figure 3.
The “question marks” in Table 2 represent the missing values. Specifically, the data filled in each column denote the same days of one week. We can see that if the collection interval was set as 5 min, the length of each column would be 288.
Schematically, as shown in Figure 3, the taxi demand volume data collected on each weekday usually had two peaks. Meanwhile, the height and the position of each peak shared similarities to some extent. These patterns fell into the category of data similarity. Theoretically, one of the mathematical methods to include the data similarity is the matrix-based structure. The advantage of the matrix-based method is that explicit topological information around the missing data is utilized; therefore, the data imputation accuracy is improved. The general form is represented by Equation (1).

3.3. Conventional Fuzzy C-Means Imputation Algorithm

The fuzzy C-means clustering algorithm is one of the most efficient clustering techniques [13]. Meanwhile, this technique is also capable of estimating missing values in the incomplete datasets. Before utilizing the FCM, several notations definition should be clearly given. Note that there are 288 rows in the matrix of Table 2, and each row has five columns. Let X represent the raw data matrix, and X = { x 1 ; x 2 ; ; x k ; ; x n } is easily derived, where n is 288 in Table 2. Due to the p attributes in each row, x k = { x 1 k , x 2 k , x j k , x p k } is also derived, where p is 5 in Table 2. The matrix-based structure is of the following form:
X = [ x 11 x p 1 x j k x 1 n x p n ]
Moreover, c denotes the number of clusters. Specifically, with respect to each cluster, 1 i c , and let y i denote each cluster. Different from Tang et al. [12], in order to increase the estimation accuracy, each cluster y i also is comprised of p attributes, and each attribute denotes the cluster centroid. Thus, it is easily obtained that y i = { y 1 i , y 2 i , y j i , y p i } .
Different from the K-means clustering algorithm, one of the features of the fuzzy C-means algorithm is the membership degree u ( x k , y j i ) , which represents how close it is between x k and cluster centroid y j i . The indicator used to distinguish the membership degree is the distance d ( x k , y j i ) . Note that when t in the Formula (3) is 1, the distance is the Manhattan distance; when t is 2, the distance is the Euclidean distance.
Due to the membership degree and the distance, the objective function of the FCM should be comprised of both simultaneously, which is shown in Formula (2). The distance between any point and the cluster centroid is calculated by Formula (3). The membership degree is calculated by Formula (4). The sum of the membership degree of each x k should be equal to one, which is shown in Formula (5). When the difference between the new membership degree u ( x k , y j i ) * and the old membership degree u ( x k , y j i ) is larger than the threshold ε , the new cluster centroid should be updated by Formula (6). When the optimal cluster centroids are finally obtained, the missing values can be obtained by Formula (7).
min   J = k = 1 n i = 1 c j = 1 p u ( x k , y j i ) m d ( x k , y j i )
d ( x k , y j i ) = g = 1 p ( x g k y j i ) 1 / t
u ( x k , y j i ) = 1 / [ a = 1 c ( d ( x k , y j i ) d ( x k , y j a ) ) 1 / ( m 1 ) ]
j = 1 p u ( x k , y j i ) = 1
y j i = k = 1 n [ u ( x k , y j i ) m x j k ] k = 1 n u ( x k , y j i ) m
x j k * = i = 1 c u ( x k , y j i ) y j i
It should be noted that although the terminating condition of the conventional FCM is met, the final estimation result may not be optimal, because the number of the cluster centroids c and the parameter of the membership degree m are predetermined. Moreover, the clustering performance of the FCM is sensitive to both. Thus, this is the main drawback of the FCM. The way to overcome this shortcoming is to optimize c and m in each condition.

3.4. Integrated FCM Imputation Algorithm with GA

The procedure for determining c and m falls into the category of the combinatorial optimization problem. To address this type of problem, the stochastic search algorithm has been proven to be an efficient way [17]. Motivated by the artificial intelligence technique, the genetic algorithm (GA) is effective in solving the combinatorial optimization problem and providing an excellent interface with other algorithms. Thus, in our study, the GA was implemented in the FCM to optimize the membership degree m and the number of cluster centroids c . In particular, the specific procedure of the integrated imputation algorithm combining the FCM and the GA is put forward as follows:
Step 1: (Initialization) Set the upper bound and the lower bound of both the parameter of the membership degree and the number of the cluster centroids, respectively. Set the threshold ε as 0.1. Initialize the number of the cluster centroids and then calculate the membership degree according to Formulas (3) and (4). Determine the parameters of the GA, including the population size, N = 20 , the number of generations, T = 100 , the probability of crossover, P c = 0.9 , and the probability of mutation P m = 0.1 .
Step 2: (FCM) Calculate each membership degree in the FCM. Update the new cluster centroid according to Formula (6), and when the optimal results are obtained, estimate the missing values according to Formula (7).
Step 3: (Evaluation) Evaluate the root mean squared errors (RMSEs) between the estimated values and the actual values using Formula (8). I j k is the binary indicator; when it is equal to 1, then this means the value in the jth column and the kth row of the matrix is missing, and x j k * is the estimated value, while x j k is the actual value; otherwise, when it is equal to 0, this means the value in the jth column and the kth row of the matrix exists.
R M S E = k = 1 n j = 1 p [ I j k ( x j k x j k * ) ] 2 k = 1 n j = 1 p I j k
Step 4: (Fitness calculation) Define the fitness function used in the GA to achieve the selection procedure. The specified fitness is calculated as follows:
f = 1 / R M S E
Step 5: (GA procedure) Complete the procedures of selection, crossover, and mutation, and then output the new population including c and m .
Step 6: (Termination or not) Judge whether the number of iterations reaches the threshold T or not; if not, then return to Step 2; otherwise, output the missing values.
In summary, the detail of the integrated imputation algorithm is illustrated in Figure 4.
The taxi GPS data in Manhattan, New York City, were utilized to examine the performance of the integrated imputation algorithm. The 24-h taxi GPS data were collected from 14 January to 18 January 2013 (these resources are available in the Supplementary Materials). Moreover, different missing ratios in the datasets were set to evaluate its performance in depth. The detailed results comparisons are put forward in the next section.

4. Results and Discussions

4.1. Evaluation Criteria of Imputation Performance

Before presenting the comparisons of the results, some optimal parameters obtained by the integrated imputation algorithm are shown in Table 3. In particular, the data were aggregated at four different levels, namely 5, 10, 15, and 20 min, respectively. Correspondingly, the number of time interval was 288, 144, 96, and 72, respectively. Moreover, five kinds of missing ratios, 5%, 10%, 15%, 20%, and 25% are respectively given, and the data were randomly deleted according to the missing ratio.
In this line of research, three evaluation criteria were presented to evaluate the estimation accuracy, which included the root mean squared error (RMSE), the correlation coefficient (R), and the relative accuracy (RA). Specifically, the RMSE represented the error between the actual values x j k and the estimated values x j k * , and the RMSE was calculated by Formula (8). In addition to the error estimation, the R is typically utilized to present the approximation degree between the actual values and the estimated values, and the R was obtained by Formula (10). It should be noted that x * ¯ is the average value of all missing values, and x ¯ is the average value of all actual values corresponding to missing values. Meanwhile, the RA reflects the number of estimated results falling within a specified tolerance level, and it was calculated by Formulas (11) and (12). In this study, the specified tolerance level was set as 5% and 10%, respectively. The exact formulas are illustrated as follows:
R = k = 1 n j = 1 p I j k ( x * ¯ x j k * ) ( x ¯ x j k ) { k = 1 n j = 1 p [ I j k ( x * ¯ x j k * ) ] 2 } { k = 1 n j = 1 p [ I j k ( x ¯ x j k ) ] 2 }
A P E j k = | I j k ( x j k x j k * ) | x j k
R A = n A P E k = 1 n j = 1 p I j k
APE is the absolute percentage error, and n A P E represents the number of A P E j k in the ±5% and ±10% error range.
Moreover, based on the condition of 25% missing loss and the five minutes aggregation interval, the actual values of the missing points and the estimated points obtained by the integrated imputation method with the Euclidean distance are shown in Figure 5 to represent their differences.

4.2. Comparisons and Analyses of the Results

With the aim of evaluating the integrated imputation algorithm, five imputation methods were compared to demonstrate the effectiveness of the proposed integrated imputation method. The detailed information is proposed as follows:
  • The history imputation method. Considering the similarity in data obtained at the same time among different weekdays, in particular, the missing value was replaced by the mean value of the existing values on the same row in the matrix of Table 2 (History). This method also belongs to one of the regression imputation methods.
  • The conventional FCM using the Manhattan distance (MDFCM).
  • The conventional FCM using the Euclidean distance (EDFCM).
  • The integrated FCM–GA using the Manhattan distance (MDFCMGA).
  • The integrated FCM–GA using the Euclidean distance (EDFCMGA).
With respect to the RMSE, as shown in Figure 6a–d, the overall RMSE increased as the missing ratio increased. The reason for this was that when the missing ratio increased with the fixed time interval, the amount of data that could be used in imputation would decrease as well. Thus, the performance of imputation deteriorated. Analogously, as the aggregation interval increased from 5 min to the larger intervals, the overall RMSE would increase simultaneously. The reason for this was that the taxi demand that aggregated from a longer interval was normally greater than that from a shorter interval. Thus, with the same APE, the absolute error between the missing value and the estimated value was larger as well when the time interval was longer. Thus, with a longer interval, the overall RMSE increased as well. In particular, as for the history imputation method, when the aggregation interval was five minutes and the missing ratio was set as 5% (Figure 6a), the gap of the RMSE among the five methods was narrow. However, when the aggregation interval and the missing ratio became larger in Figure 6a, the conventional FCM and the integrated FCM–GA outperformed the history imputation method greatly. The superiority of the FCM and the FCM–GA is also ascertained from Figure 6b–d. Meanwhile, from Figure 6a–d, the RMSE produced by the history imputation method in each figure varied drastically, which indicated that the history imputation method was sensitive to the historical data. In contrast, as for the FCM and the FCM–GA, the RMSE in each figure varied on a small scale, which indicated that the performance of the FCM and the FCM–GA was stable. From Figure 6a–d, we can also see that no matter what the Manhattan or the Euclidean distance was, the RMSE produced by the integrated FCM–GA was smaller than the conventional FCM. The RMSE calculated for the Euclidean distance was smaller than that of the Manhattan distance.
It can be seen from Figure 7a–d that as the missing ratio increased, the overall correlation coefficient decreased. This phenomenon was similar to the changes in Figure 6. Evidently, with a higher missing ratio, a decrease in the amount of useful data would also result in a lower correlation coefficient. As seen in Figure 7a, when the aggregation interval was five minutes and the missing ratio were 5%, 10%, and 15%, respectively, the correlation coefficients of the MDFCM, the EDFCM, and the history imputation method were similar. However, when the aggregation interval and the missing ratio became larger in Figure 7a, the conventional FCM and the FCM–GA outperformed the history imputation method substantially. The effectiveness of the FCM and the FCM–GA is also shown in Figure 7b–d. Meanwhile, as seen in Figure 7a–d, the correlation coefficient obtained from the FCM and the FCM–GA remained stable from 0.98 to one, which demonstrated the fact that the missing values had a close relationship with the existing values. Moreover, this phenomenon indicated that missing values could be estimated by using the existing values, which was coherent with our proposed assumption. The integrated imputation algorithm based on the FCM and the GA with the Manhattan and the Euclidean distance also resulted in the two highest values in Figure 7a–d.
To reflect the superiority of the integrated imputation method in depth, the RA was calculated according to two scenarios, including ±5% and ±10%. From Figure 8a–d, when the threshold was set strictly as ±5%, the integrated imputation method outperformed the other methods significantly. Meanwhile, the performance of the integrated imputation method in Figure 8a–d was consistently stable. Moreover, the RA obtained by the FCM–GA with the Euclidean distance type had the highest value in Figure 8a–d. As seen in Figure 9a–d, when the threshold was set less strictly as ±10%, the integrated imputation method still outperformed the other methods. On the other hand, although the performance of the conventional FCM in Figure 9b with a 15% missing ratio was remarkably enhanced, its imputation performance was still unstable under other scenarios. In other words, the conventional FCM was sensitive to the time interval and missing ratio. With respect to the integrated imputation method, the integrated imputation method was less sensitive to the time interval and missing ratio. Therefore, although the phenomenon from Figure 9 indicated that the conventional FCM was a possible substitute when the condition was relaxed, and the integrated imputation method was still a stable and reliable choice for estimating missing values.
Another interesting phenomenon was also derived from the results presented in Figure 8 and Figure 9. When the threshold was strictly set as ±5%, the average relative accuracy (RAs) obtained by the EDFCMGA were, respectively, 0.532, 0.535, 0.509, and 0.576 under the 5, 10, 15, and 20 min aggregation time intervals. Thus, the best aggregation time interval should be set as 20 min under this scenario. In addition, when the threshold was less strictly set as ±10%, the average RAs obtained by the EDFCMGA were, respectively, 0.785, 0.742, 0.718, and 0.735 under the 5, 10, 15, and 20 min aggregation time intervals. Thus, the best aggregation time interval should be set as five minutes under this scenario. In general, a longer aggregation time interval would remove randomness, which is typically viewed as a certain smoother filter. However, a longer aggregation time interval may conceal available variation information as well. In fact, the accuracy of imputation is highly associated with the detailed information in a dataset. Thus, how to determine the aggregation time interval in the imputation is another hot topic [47,48].
To reinforce our interpretation of the superiority of the proposed integrated FCM imputation method, an example that covers the time series of observed curve and estimated values is presented in Figure 10. In Figure 10, five scenarios with different missing ratios are respectively given. By comparing the estimated time series with the original time series, we found that the estimated time series under different scenarios was close to the original one. Thus, in terms of different missing ratios, our proposed integrated imputation method could be applicable to estimating missing values in the time series.
In Table 4, the average computation time in seconds is described. It should be noted that all experiments were conducted on a personal computer with an Intel Core i5-6200U (Bayan Lepas, Malaysia) and 12 GB RAM. Meanwhile, ten repeated tests of each scenario were carried out, and the average computation time of each scenario was obtained. From Figure 4, it can be seen that the FCM-GA contained not only a complete FCM computation procedure, but also parameter updates. Theoretically, the computation time of the FCM-GA should be higher than that of the FCM. However, as seen in Table 4, the experimental results were coherent with the theoretical analyses. As a consequence, the better imputation accuracy of the FCM-GA is also inferred from Figure 6, Figure 7, Figure 8 and Figure 9. In other words, we compromised on computation time to achieve better imputation performance. Better imputation accuracy indeed has a higher priority than computation time in dealing with missing value imputation issues [49].
In summary, when the aggregation interval and missing ratio were smaller simultaneously, the history imputation method was an alternative approach to estimate the missing values. The advantage of the history imputation method lay in its simplicity. However, when the aggregation interval and the missing ratio became larger, other complicated imputation methods with better performance should be utilized to replace the history imputation method. The conventional FCM would be another valid candidate choice for estimating missing values. However, the main drawback of the conventional FCM is that its parameters are not determined scientifically. Considering this, the proposed integrated imputation method combining the FCM and the GA could be utilized to replace missing values efficiently. From Figure 6, Figure 7, Figure 8 and Figure 9, the results indicate that the integrated imputation method outperformed the conventional FCM remarkably.

5. Conclusions

Due to sensor or software failures, missing traffic flow data occur typically in Intelligent Transportation System (ITS) datasets. How to handle these missing values has become a fundamental issue to guarantee data quality.
In this study, an integrated FCM imputation method based on the GA was proposed to estimate the missing values in the datasets. Specifically, the GA dealt with two critical parameters utilized in the FCM, and the FCM addressed the missing values based on the clustering technique. Within the specific framework of the integrated imputation method, a matrix-based data structure was utilized to better reflect the data similarity. The effectiveness and the superiority of the integrated imputation method were revealed based on the experimental test with different scenarios.
Although the integrated imputation method used in this paper could be applicable to estimating the missing values efficiently, some limitations existed. Firstly, in our study, only the taxi GPS dataset was utilized to estimate the missing values. In fact, traffic conditions and weather information may also influence the estimation results. Secondly, we assumed that the missing pattern only belonged to the MPR; however, the realistic situation is more complex. Thus, in future work, to estimate missing values more accurately, multiple dimensional datasets will be utilized. Meanwhile, some stochastic processes (e.g., the Dirichlet process) could be utilized to address the independence of the variables. Moreover, based on the estimated values and existing values, an extension of how to achieve the prediction task is another interesting issue that warrants further research.

Supplementary Materials

The taxi GPS data utilized in this paper is also available online at https://www1.nyc.gov/site/tlc/about/tlc-trip-record-data.page.

Author Contributions

Conceptualization, J.H. and B.M.; methodology, J.H., Y.B., and T.Z.; software, J.H., B.M., and Y.B.; validation, J.H. and T.Z.; resources, Y.B.; data curation, C.M.; writing—original draft preparation, J.H.; writing—review and editing, B.M. All authors have read and agreed to the published version of the manuscript.

Funding

This work is supported by the National Natural Science Foundation of China under Grant 71971021 and Grant 71621001.

Acknowledgments

Thanks to Huanping Huang, Sichuan International Studies University, for providing the help in editing and grammar. The authors would like to thank the anonymous reviewers for their valuable comments.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Cai, H.; Zhan, X.; Zhu, J.; Jia, X.; Chiu, A.S.; Xu, M. Understanding taxi travel patterns. Physica A 2016, 457, 590–597. [Google Scholar] [CrossRef] [Green Version]
  2. Wu, P.; Liu, K.; Hao, S.; Zhang, Q.; Tan, Y. Rapid traffic congestion monitoring based on floating car data. J. Comput. Res. Dev. 2014, 51, 189–198. [Google Scholar]
  3. Hu, X.; An, S.; Wang, J. Taxi driver’s operation behavior and passengers’ demand analysis based on GPS data. J. Adv. Transp. 2018, 2018 Pt 1, 1.1–1.11. [Google Scholar] [CrossRef] [Green Version]
  4. Zhang, J.; Meng, W.; Liu, Q.Q.; Jiang, H.; Feng, Y.; Wang, G. Efficient vehicles path planning algorithm based on taxi GPS big data. Optik 2016, 127, 2579–2585. [Google Scholar] [CrossRef]
  5. Shao, H.; Lam, W.H.K.; Sumalee, A.; Chen, A.; Hazelton, M.L. Estimation of mean and covariance of peak hour origin–destination demands from day-to-day traffic counts. Transp. Res. Part B Methodol. 2014, 68, 52–75. [Google Scholar] [CrossRef]
  6. Pelletier, M.P.; Trépanier, M.; Morency, C. Smart card data use in public transit: A literature review. Transp. Res. Part C Emerg. Technol. 2011, 19, 557–568. [Google Scholar] [CrossRef]
  7. Alsger, A.; Assemi, B.; Mesbah, M.; Ferreira, L. Validating and improving public transport origin–destination estimation algorithm using smart card fare data. Transp. Res. Part C Emerg. Technol. 2016, 68, 490–506. [Google Scholar] [CrossRef]
  8. Aydilek, I.B.; Arslan, A. A hybrid method for imputation of missing values using optimized fuzzy c-means with support vector regression and a genetic algorithm. Inf. Sci. 2013, 223, 25–35. [Google Scholar] [CrossRef]
  9. Duan, Y.J.; Lv, Y.S.; Liu, Y.L.; Wang, F.Y. An efficient realization of deep learning for traffic data imputation. Transp. Res. Part C Emerg. Technol. 2016, 72, 168–181. [Google Scholar] [CrossRef]
  10. Amiri, M.; Jensen, R. Missing data imputation using fuzzy-rough methods. Neurocomputing 2016, 205, 152–164. [Google Scholar] [CrossRef] [Green Version]
  11. Garcia-Laencina, P.J.; Sancho-Gomez, J.L.; Figueiras-Vidal, A.R. Pattern classification with missing data: A review. Neural Comput. Appl. 2010, 19, 263–282. [Google Scholar] [CrossRef]
  12. Tang, J.J.; Zhang, G.H.; Wang, Y.H.; Wang, H.; Liu, F. A hybrid approach to integrate fuzzy C-means based imputation method with genetic algorithm for missing traffic volume data estimation. Transp. Res. Part C Emerg. Technol. 2015, 51, 29–40. [Google Scholar] [CrossRef]
  13. Tang, J.J.; Yu, S.W.; Liu, F.; Chen, X.Q.; Huang, H.L. A hierarchical prediction model for lane-changes based on combination of fuzzy C-means and adaptive neural network. Expert Syst. Appl. 2019, 130, 265–275. [Google Scholar] [CrossRef]
  14. Choi, Y.Y.; Shon, H.; Byon, Y.J.; Kim, D.Y.; Kang, S. Enhanced application of principal component analysis in machine learning for imputation of missing traffic data. Appl. Sci. 2019, 9, 2149. [Google Scholar] [CrossRef] [Green Version]
  15. Qian, C.; Chen, J.; Luo, Y.; Dai, L. Random Forest Based Operational Missing Data Imputation for Highway Tunnel. J. Transp. Syst. Eng. Inf. Technol. 2016, 16, 81–87. [Google Scholar]
  16. Offor, K.J.; Vaci, L.; Mihaylova, L.S. Traffic Estimation for Large Urban Road Network with High Missing Data Ratio. Sensors 2019, 19, 2813. [Google Scholar] [CrossRef] [Green Version]
  17. Li, D.; Gu, H.; Zhang, L.Y. A hybrid genetic algorithm–fuzzy c-means approach for incomplete data clustering based on nearest-neighbor intervals. Soft. Comput. 2013, 17, 1787–1796. [Google Scholar] [CrossRef]
  18. Nuovo, A.G.D. Missing data analysis with fuzzy C-Means: A study of its application in a psychological scenario. Expert Syst. Appl. 2011, 38, 6793–6797. [Google Scholar] [CrossRef]
  19. Tian, Y.; Zhang, K.L.; Li, J.Y.; Lin, X.X.; Yang, B.L. LSTM-based traffic flow prediction with missing data. Neurocomputing 2018, 318, 297–305. [Google Scholar] [CrossRef]
  20. Chen, X.Y.; He, Z.C.; Sun, L.J. A Bayesian tensor decomposition approach for spatiotemporal traffic data imputation. Transp. Res. Part C Emerg. Technol. 2019, 98, 73–84. [Google Scholar] [CrossRef]
  21. Ni, D.; Leonard, J.D.; Guin, A.; Feng, C.X. Multiple Imputation Scheme for Overcoming the Missing Values and Variability Issues in ITS Data. J. Transp. Eng. 2005, 131, 931–938. [Google Scholar] [CrossRef] [Green Version]
  22. Luengo, J.; García, S.; Herrera, F. A study on the use of imputation methods for experimentation with radial basis function network classifiers handling missing attribute values: The good synergy between RBFNs and event covering method. Neural Netw. 2010, 23, 406–418. [Google Scholar] [CrossRef] [PubMed]
  23. Atem, F.D.; Sampene, E.; Greene, T.J. Improved conditional imputation for linear regression with a randomly censored predictor. Stat. Methods Med. Res. 2017, 28, 432–444. [Google Scholar] [CrossRef] [PubMed]
  24. Shahbazi, H.; Karimi, S.; Hosseini, V.; Yazgi, D.; Torbatian, S. A novel regression imputation framework for Tehran air pollution monitoring network using outputs from WRF and CAMX models. Atmos. Environ. 2018, 187, 24–33. [Google Scholar] [CrossRef]
  25. Tutz, G.; Ramzan, S. Improved methods for the imputation of missing data by nearest neighbor methods. Comput. Stat. Data Anal. 2015, 90, 84–99. [Google Scholar] [CrossRef] [Green Version]
  26. Garciarena, U.; Santana, R. An extensive analysis of the interaction be- tween missing data types, imputation methods, and supervised classifiers. Expert Syst. Appl. 2017, 89, 52–65. [Google Scholar] [CrossRef]
  27. Ma, Z.; Tian, H.; Liu, Z.; Zhang, Z. A new incomplete pattern belief classification method with multiple estimations based on KNN. Appl. Soft Comput. 2020, 90, 106175. [Google Scholar] [CrossRef]
  28. Bania, R.K.; Halder, A. R-Ensembler: A greedy rough set based ensemble attribute selection algorithm with kNN imputation for classification of medical data. Comput. Methods Programs Biomed. 2020, 184, 105122. [Google Scholar] [CrossRef]
  29. Zhang, S. Nearest neighbor selection for iteratively kNN imputation. J. Syst. Softw. 2012, 85, 2541–2552. [Google Scholar] [CrossRef]
  30. Malan, L.; Smuts, C.M.; Baumgartner, J.; Ricci, C. Missing data imputation via the expectation-maximization algorithm can improve principal component analysis aimed at deriving biomarker profiles and dietary patterns. Nutr. Res. 2020, 75, 67–76. [Google Scholar] [CrossRef]
  31. Qi, Z.; Wang, H.; Li, J.; Gao, H. FROG: Inference from knowledge base for missing value imputation. Knowl. Based Syst. 2018, 145, 77–90. [Google Scholar] [CrossRef]
  32. Tsai, C.; Li, M.; Lin, W. A class center based approach for missing value imputation. Knowl. Based Syst. 2018, 151, 124–135. [Google Scholar] [CrossRef]
  33. Zhang, L.; Lu, W.; Liu, X.; Pedrycz, W.; Zhong, C. Fuzzy C-Means clustering of incomplete data based on probabilistic information granules of missing values. Knowl. Based Syst. 2016, 99, 51–70. [Google Scholar] [CrossRef]
  34. Ming, L.K.; Kiong, L.C.; Soong, L.W. Autonomous and deterministic supervised fuzzy clustering with data imputation capabilities. Appl. Soft Comput. 2011, 11, 1117–1125. [Google Scholar] [CrossRef]
  35. Sefidian, A.M.; Daneshpour, N. Missing value imputation using a novel grey based fuzzy c-means, mutual information based feature selection, and regression model. Expert Syst. Appl. 2019, 115, 68–94. [Google Scholar] [CrossRef]
  36. Chen, C.; Kwon, J.; Rice, J.; Skabardonis, A.; Varaiya, P. Detecting Errors and Imputing Missing Data for Single-Loop Surveillance Systems. Transp. Res. Record. 2003, 1855, 160–167. [Google Scholar] [CrossRef]
  37. Boyles, S. A comparison of interpolation methods for missing traffic volume data. In Proceedings of the 90th Annual Meeting of the Transportation Research Board, Washington, DC, USA, 23–27 January 2011. [Google Scholar]
  38. Batista, G.; Monard, M.C. An analysis of four missing data treatment methods for supervised learning. Appl. Artif. Intell. 2003, 17, 519–533. [Google Scholar] [CrossRef]
  39. Troyanskaya, O.; Cantor, M.; Sherlock, G.; Brown, P.; Hastie, T.; Tibshirani, R.; Botstein, D.; Altman, R.B. Missing value estimation methods for DNA microarrays. Bioinformatics 2001, 17, 520–525. [Google Scholar] [CrossRef] [Green Version]
  40. Glanz, H.; Carvalho, L. An expectation–maximization algorithm for the matrix normal distribution with an application in remote sensing. J. Multivar. Anal. 2018, 167, 31–48. [Google Scholar] [CrossRef]
  41. Jia, H.; Zhang, Z.; Liu, H.; Dai, F.; Liu, Y.; Leng, J. An approach based on expectation-maximization algorithm for parameter estimation of Lamb wave signals. Mech. Syst. Signal Process. 2019, 120, 341–355. [Google Scholar] [CrossRef]
  42. Razavi-Fav, R.; Cheng, B.; Saif, M.; Ahmadi, M. Similarity-learning information-fusion schemes for missing data imputation. Knowl. Based Syst. 2020, 187, 104805. [Google Scholar] [CrossRef]
  43. Li, D.; Gu, H.; Zhang, L.Y. A fuzzy c-means clustering algorithm based on nearest-neighbor intervals for incomplete data. Expert Syst. Appl. 2010, 37, 6942–6947. [Google Scholar] [CrossRef]
  44. Pantula, P.D.; Miriyala, S.S.; Mitra, K. An Evolutionary Neuro-Fuzzy C-means Clustering Technique. Eng. Appl. Artif. Intell. 2020, 89, 103435. [Google Scholar] [CrossRef]
  45. Jie, L.; Liu, W.; Sun, Z.; Teng, S. Hybrid fuzzy clustering methods based on improved self-adaptive cellular genetic algorithm and optimal-selection-based fuzzy c-means. Neurocomputing 2017, 249, 140–156. [Google Scholar] [CrossRef]
  46. Xiao, F.Y.; Li, P.K.; Yih, T.C. A fuzzy c-means based hybrid evolutionary approach to the clustering of supply chain. Comput. Ind. Eng. 2013, 66, 768–780. [Google Scholar]
  47. Qu, L.; Zhang, Y.; Hu, J.M. PPCA-Based Missing Data Imputation for Traffic Flow Volume: A Systematical Approach. IEEE Trans. Intell. Transp. Syst. 2009, 10, 512–522. [Google Scholar]
  48. Demirhan, H.; Renwick, Z. Missing value imputation for short to mid-term horizontal solar irradiance Data. Appl. Energy 2018, 225, 998–1012. [Google Scholar] [CrossRef]
  49. Deb, R.; Liew, A.W.C. Missing value imputation for the analysis of incomplete traffic accident data. Inf. Sci. 2016, 339, 274–289. [Google Scholar] [CrossRef] [Green Version]
Figure 1. Working of GPS.
Figure 1. Working of GPS.
Sensors 20 01992 g001
Figure 2. Workflow of the research framework. MPR means missing partially at random; FCM-GA means fuzzy C-means with genetic algorithm.
Figure 2. Workflow of the research framework. MPR means missing partially at random; FCM-GA means fuzzy C-means with genetic algorithm.
Sensors 20 01992 g002
Figure 3. Incomplete data on weekdays based on a 5 min aggregation interval.
Figure 3. Incomplete data on weekdays based on a 5 min aggregation interval.
Sensors 20 01992 g003
Figure 4. Flowchart of the integrated imputation algorithm.
Figure 4. Flowchart of the integrated imputation algorithm.
Sensors 20 01992 g004
Figure 5. Comparisons between the missing values and the estimated values.
Figure 5. Comparisons between the missing values and the estimated values.
Sensors 20 01992 g005
Figure 6. Root mean squared error (RMSE) comparisons under the condition of different data aggregation intervals and different missing ratios.
Figure 6. Root mean squared error (RMSE) comparisons under the condition of different data aggregation intervals and different missing ratios.
Sensors 20 01992 g006
Figure 7. Correlation coefficient comparisons under the condition of different data aggregation intervals and different missing ratios.
Figure 7. Correlation coefficient comparisons under the condition of different data aggregation intervals and different missing ratios.
Sensors 20 01992 g007
Figure 8. Relative accuracy (RA) comparisons under the condition of different data aggregation intervals, different missing ratios, and the ±5% tolerance error range.
Figure 8. Relative accuracy (RA) comparisons under the condition of different data aggregation intervals, different missing ratios, and the ±5% tolerance error range.
Sensors 20 01992 g008
Figure 9. RA comparisons under the condition of different data aggregation intervals, different missing ratios, and the ±10% tolerance error range.
Figure 9. RA comparisons under the condition of different data aggregation intervals, different missing ratios, and the ±10% tolerance error range.
Sensors 20 01992 g009aSensors 20 01992 g009b
Figure 10. Time series comparisons with different missing ratios.
Figure 10. Time series comparisons with different missing ratios.
Sensors 20 01992 g010
Table 1. Samples of taxi GPS data.
Table 1. Samples of taxi GPS data.
PTDTPLOPLADLODLATDTDI
2013-1-13 4:362013-1-13 4:46−73.996940.72006−73.993540.693046003.12
2013-1-13 4:372013-1-13 4:48−74.000340.73007−73.987440.768416603.39
2013-1-13 4:412013-1-13 4:45−73.997340.72098−74.000440.732382401.16
PT means pick-up time; DT means drop-off time; PLO means pick-up longitude; PLA means pick-up latitude; DLO means drop-off longitude; DLA means drop-off latitude; TD means trip duration (seconds); TDI means trip distance (km).
Table 2. Taxi demand volume on weekdays. The “question marks” in Table 2 represent the missing values.
Table 2. Taxi demand volume on weekdays. The “question marks” in Table 2 represent the missing values.
MondayTuesdayWednesdayThursdayFriday
0:00:00–0:05:00158??249341
0:05:00–0:10:00184200254??
0:10:00–0:15:00163200263248341
7:30:00–7:35:00?405421417407
7:35:00–7:40:00399444?455435
7:40:00–7:45:00429???468
23:45:00–23:50:00240?286395549
23:50:00–23:55:00205281284398542
23:55:00–0:00:00??282?509
Table 3. Optimized parameters obtained by the integrated imputation method.
Table 3. Optimized parameters obtained by the integrated imputation method.
Time Interval (min)Manhattan DistanceEuclidean Distance
cmcm
5 min121.1083141.1936
10 min121.1123141.1183
15 min131.1016121.1145
20 min81.142691.1211
Table 4. Average computation time of FCM and FCM-GA (in seconds).
Table 4. Average computation time of FCM and FCM-GA (in seconds).
Time Interval (min)Missing RatioFCMFCMGA
5 min5%32.90258.30
10%32.99259.40
15%33.01260.10
20%33.18262.30
25%34.33264.87
10 min5%12.59221.90
10%12.61224.10
15%14.22224.96
20%14.90225.64
25%17.39228.22
15 min5%9.08168.31
10%9.39169.32
15%9.67170.20
20%11.87171.99
25%11.90172.40
20 min5%8.1489.20
10%8.6691.20
15%8.8091.88
20%9.2292.51
25%9.8093.91

Share and Cite

MDPI and ACS Style

Huang, J.; Mao, B.; Bai, Y.; Zhang, T.; Miao, C. An Integrated Fuzzy C-Means Method for Missing Data Imputation Using Taxi GPS Data. Sensors 2020, 20, 1992. https://doi.org/10.3390/s20071992

AMA Style

Huang J, Mao B, Bai Y, Zhang T, Miao C. An Integrated Fuzzy C-Means Method for Missing Data Imputation Using Taxi GPS Data. Sensors. 2020; 20(7):1992. https://doi.org/10.3390/s20071992

Chicago/Turabian Style

Huang, Junsheng, Baohua Mao, Yun Bai, Tong Zhang, and Changjun Miao. 2020. "An Integrated Fuzzy C-Means Method for Missing Data Imputation Using Taxi GPS Data" Sensors 20, no. 7: 1992. https://doi.org/10.3390/s20071992

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