Submitted:
31 July 2023
Posted:
01 August 2023
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Related work
- Douglas-Peucker: Performs point simplification accurately in terms of the spatial error metric. By taking a parameter error threshold, it ensures that the error of the simplified trajectory is within the bounds of the target application [35];
- TD-TR: By using the synchronous Euclidean distance for the calculations, this allows you to guarantee both a maximum spatial distance and a maximum temporal error distance;
- Window opening algorithm: Processing time is very low;
- ST-Trace: Uses the velocity and orientation of the trajectory points in the simplification step [36].
- Trajectories may contain outliers;
- The points of a trajectory may have a localization error.
- Douglas-Peucker: Only performs spatial analysis of the data;
- Visvalingam: The compression ratio is reduced and only performs spatial analysis;
- TD-TR: It presents a smaller margin of error in the trajectory simplification process and an acceptable compression ratio. A limitation is the processing time;
- Lang: Its point elimination method is trivial, so it discards points considered significant, increasing its margin of error;
- Window Aperture: Its main disadvantage is the frequent elimination or misrepresentation of important points such as acute angles. A secondary limitation is that straight lines are still over-represented. It requires high hardware performance for proper operation;
- ST-Trace: Processing time is considerable and requires velocity information to characterize the trace.
- None of the analyzed algorithms consider the noise present in the trajectory data, which reduces the possibility of eliminating points that are not significant during the simplification process;
- Only the Squish and Dots algorithms perform a rigorous analysis of the GPS trajectory decoding procedure, but do not consider the analysis of trajectory noise;
- Douglas Peucker, Visvalingam and Window opening only perform spatial analysis of the data. This removes temporal information that provides data of importance to achieve a better compression ratio;
- Visvalingam removes or misrepresents points, such as acute angles, so the resulting trajectory may lack important points for reconstructing a path;
- None of the algorithms consider network information in trajectory simplification, missing the opportunity to perform an analysis that allows more points of little significance to be discarded from the original trajectory.
3. Materials and Methods
3.1. Noise reduction
- Prediction of the next state of the system;
- A priori covariance update;
- Kalman gain calculation;
- Estimation of the current state;
- Update of the a posteriori covariance.
3.1.1. Brief description of kalman filter application for noise reduction
3.2. Road network information
3.3. Simplification of GPS points
3.3.1. Brief description of the application of point simplification with road network analysis
4. Results
4.1. Used data
4.1.1. Geolife
4.1.2. Mobile Century
4.2. Initial diagnostics of batch GPS trajectory simplification algorithms
- The Visvalingam algorithm shows the worst compression ratio rates, being a very unstable algorithm in its behavior before different data sets;
- The TD-TR algorithm is the second algorithm with the best compression ratio rate with an average of 86,01;
- Douglas-Peucker obtains the best results in terms of compression ratio, however the processing time is longer than TD-TR and the margin of error is also higher, being 13,88 km while TD-TR presents 0,80 km;
- The TD-TR algorithm is proposed in the literature as an improvement to the Douglas Peucker algorithm and presents better results in terms of margin of error and processing time.
4.3. Obtained results from the GR Simplification algorithm for GPS trajectory simplification
- Sample 1 (Geolife): three hundred and seventy-six trajectories, each containing between 1 and 18.924 points;
- Sample 2 (Mobile Century): three hundred and forty trajectories, each containing between 17 and 8.067 points.
5. Discussion
5.1. Assumption of normality
5.2. Analysis of results for compression ratio metric
5.3. Analysis of results for the margin of error metric
6. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Muckell, J.; Patil, V.; Ping, F.; Hwang, J.H.; Lawson, C.T.; Ravi, S.S. SQUISH: An online approach for GPS trajectory compression. ACM, 2011, pp. 1–8. [CrossRef]
- Corcoran, P.; Mooney, P.; Huang, G. Unsupervised trajectory compression. 2016, pp. 3126–3132. [CrossRef]
- Rana, R.; Yang, M.; Wark, T.; Chou, C.T.; Hu, W. Simpletrack: Adaptive trajectory compression with deterministic projection matrix for mobile sensor networks. IEEE Sensors Journal 2015, 15, 365–373. [Google Scholar] [CrossRef]
- Trajcevski, G. Compression of Spatio-temporal Data. 2016, pp. 4–7. [CrossRef]
- Chen, Y.; Yu, P.; Chen, W.; Zheng, Z.; Guo, M. Embedding-Based Similarity Computation for Massive Vehicle Trajectory Data. IEEE Internet of Things Journal 2022, 9, 4650–4660. [Google Scholar] [CrossRef]
- Bashir, M.; Ashraf, J.; Habib, A.; Muzammil, M. An intelligent linear time trajectory data compression framework for smart planning of sustainable metropolitan cities. Transactions on Emerging Telecommunications Technologies 2022, 33, e3886. [Google Scholar] [CrossRef]
- Wang, Y.; Zhang, Z.; Liu, D. An optimization model for the transportation network with hierarchical structure: the case of China Post. Journal of Ambient Intelligence and Humanized Computing 2019 12:1 2019, 12, 167–182. [Google Scholar] [CrossRef]
- Richter, K.F.; Schmid, F.; Laube, P. Semantic trajectory compression: Representing urban movement in a nutshell. Journal of Spatial Information Science 2012, 3–10. [Google Scholar] [CrossRef]
- Souza, J.C.S.D.; Assis, T.M.L.; Pal, B.C. Data Compression in Smart Distribution Systems via Singular Value Decomposition. IEEE Transactions on Smart Grid 2017, 8, 275–284. [Google Scholar] [CrossRef]
- Muckell, J.; Olsen, P.W.; Hwang, J.H.; Lawson, C.T.; Ravi, S.S. Compression of trajectory data: A comprehensive evaluation and new approach. GeoInformatica 2014, 18, 435–460. [Google Scholar] [CrossRef]
- Nibali, A.; He, Z. Trajic: An Effective Compression System for Trajectory Data. IEEE Transactions on Knowledge and Data Engineering 2015, 27, 3138–3151. [Google Scholar] [CrossRef]
- Alowayr, A.D.; Alsalooli, L.A.; Alshahrani, A.M.; Akaichi, J. A review of trajectory data mining applications. 2021 International Conference of Women in Data Science at Taif University, WiDSTaif 2021, 2021. [Google Scholar] [CrossRef]
- Mazimpaka, J.D.; Timpf, S. Trajectory data mining: A review of methods and applications. Journal of Spatial Information Science 2016, 61–99. [Google Scholar] [CrossRef]
- Ji, Y.; Liu, H.; Liu, X.; Ding, Y.; Luo, W. A comparison of road-network-constrained trajectory compression methods. 2017, pp. 256–263. [CrossRef]
- Ouyang, Z.; Xue, L.; Ding, F.; Li, D. PSOTSC: A Global-Oriented Trajectory Segmentation and Compression Algorithm Based on Swarm Intelligence. ISPRS International Journal of Geo-Information 2021, 10. [Google Scholar] [CrossRef]
- Chen, H.; Chen, X. A Trajectory Ensemble-Compression Algorithm Based on Finite Element Method. ISPRS International Journal of Geo-Information 2021, 10. [Google Scholar] [CrossRef]
- Song, J.; Miao, R. A Novel Evaluation Approach for Line Simplification Algorithms towards Vector Map Visualization. ISPRS International Journal of Geo-Information 2016, 5. [Google Scholar] [CrossRef]
- Zheng, Y. Trajectory data mining: An overview. ACM Transactions on Intelligent Systems and Technology 2015, 6, 1–41. [Google Scholar] [CrossRef]
- Wang, S.; Zhong, E.; Li, K.; Song, G.; Cai, W. A Novel Dynamic Physical Storage Model for Vehicle Navigation Maps. ISPRS International Journal of Geo-Information 2016, 5. [Google Scholar] [CrossRef]
- Amigo, D.; Pedroche, D.S.; García, J.; Molina, J.M. Review and classification of trajectory summarisation algorithms: From compression to segmentation:. 2021; 17. [Google Scholar] [CrossRef]
- Salomon, D. Data compression: The complete reference, 4 ed.; Springer, 2014; pp. 1–1093. [CrossRef]
- Gudmundsson, J.; Katajainen, J.; Merrick, D.; Ong, C.; Wolle, T. Compressing spatio-temporal trajectories. Computational Geometry: Theory and Applications 2009, 42, 825–841. [Google Scholar] [CrossRef]
- Lv, C.; Chen, F.; Xu, Y.; Song, J.; Lv, P. A trajectory compression algorithm based on non-uniform quantization. IEEE, pp. 2469–2474. [CrossRef]
- Liu, D.; Wang, T.; Li, X.; Ni, Y.; Li, Y.; Jin, Z. A Multiresolution Vector Data Compression Algorithm Based on Space Division. ISPRS International Journal of Geo-Information 2020, 9. [Google Scholar] [CrossRef]
- Meratnia, N.; Rolf, A.; ITC, E. A new perspective on trajectory compression techniques. International Society for Photogrammetry and Remote Sensing, 2003, p. 2–3.
- Zheng, Y.; Zhou, X. Computing with Spatial Trajectories; Springer, 2011; pp. 1–306. [CrossRef]
- Lin, X.; Ma, S.; Zhang, H.; Wo, T.; Huai, J. One-pass error bounded trajectory simplification. ACM, 2017, Vol. 10, pp. 841–852. [CrossRef]
- Feldman, D.; Sugaya, A.; Rus, D. An effective coreset compression algorithm for large scale sensor networks. 2012, pp. 257–268. [CrossRef]
- Wang, Z.; Long, C.; Cong, G.; Zhang, Q. Error-Bounded Online Trajectory Simplification with Multi-Agent Reinforcement Learning. Proceedings of the ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 2021; 1758–1768. [Google Scholar] [CrossRef]
- Li, S.; Zhang, K.; Yin, H.; Yin, D.; Zu, H.; Gao, H. ROPW: An Online Trajectory Compression Algorithm. Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) 2021, 12680 LNCS, 16–28. [Google Scholar]
- Hendawi, A.M.; Khot, A.; Rustum, A.; Basalamah, A.; Teredesai, A.; Ali, M. A Map-Matching Aware Framework for Road Network Compression. 2015, Vol. 1, pp. 307–310. [CrossRef]
- Hussain, S.A.; Hassan, M.U.; Nasar, W.; Ghorashi, S.; Jamjoom, M.M.; Abdel-Aty, A.H.; Parveen, A.; Hameed, I.A. Efficient Trajectory Clustering with Road Network Constraints Based on Spatiotemporal Buffering. ISPRS International Journal of Geo-Information 2023, 12. [Google Scholar] [CrossRef]
- Song, R.; Sun, W.; Zheng, B.; Zheng, Y. A novel framework of trajectory compression in road networks. 2014, pp. 661–672. [CrossRef]
- Hunnik, R.V. Extensive Comparison of Trajectory Simplification Algorithms 2017. pp. 1–22.
- Lin, C.Y.; Hung, C.C.; Lei, P.R. A velocity-preserving trajectory simplification approach. IEEE Xplorer, 2016, pp. 58–65. [CrossRef]
- Kellaris, G.; Pelekis, N.; Theodoridis, Y. Trajectory compression under network constraints. Springer, 2009, pp. 392–398. [CrossRef]
- Gomez-Gil, J.; Ruiz-Gonzalez, R.; Alonso-Garcia, S.; Gomez-Gil, F.J. A Kalman filter implementation for precision improvement in Low-Cost GPS positioning of tractors. Sensors (Switzerland) 2013, 13, 15307–15323. [Google Scholar] [CrossRef]
- Ivanov, R. Real-time GPS track simplification algorithm for outdoor navigation of visually impaired. Journal of Network and Computer Applications 2012, 35, 1559–1567. [Google Scholar] [CrossRef]
- Chen, C.; Ding, Y.; Guo, S.; Wang, Y. DAVT: An Error-Bounded Vehicle Trajectory Data Representation and Compression Framework. IEEE Transactions on Vehicular Technology 2020, 69, 10606–10618. [Google Scholar] [CrossRef]
- Meratnia, N.; By, R.A.D. Spatiotemporal compression techniques for moving point objects. Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) 2004, 2992, 765–782. [Google Scholar] [CrossRef]
- Whyatt, J.D.; Wade, P.R. The Douglas-Peucker line simplification algorithm. Bulletin - Society of University Cartographers 1988, 22, 17–25. [Google Scholar]
- Visvalingam, M.; Whyatt, J.D. Line generalisation by repeated elimination of points. The Cartographic Journal 1993, 30, 46–51. [Google Scholar] [CrossRef]
- Buchin, M.; Driemel, A.; Van Kreveld, M.; Sacristan, V. Segmenting trajectories: A framework and algorithms using spatiotemporal criteria. Journal of Spatial Information Science, 2011; 33–63. [Google Scholar] [CrossRef]
- Bach, T.; Li, T.; Huang, R.; Chen, L.; Jensen, C.S.; Pedersen, T.B. Compression of Uncertain Trajectories in Road Networks. PVLDB 2020, 13, 1050–1063. [Google Scholar] [CrossRef]
- Weiss, R.; Weibel, R. Road network selection for small-scale maps using an improved centrality-based algorithm. Journal of Spatial Information Science 2014, 71–99. [Google Scholar] [CrossRef]
- Koegel, M.; Baselt, D.; Mauve, M.; Scheuermann, B. A comparison of vehicular trajectory encoding techniques. 2011, pp. 87–94. [CrossRef]
- Lawson, C.T. Compression and Mining of GPS Trace Data: New Techniques and Applications. Final Report: Region II University Transportation Research Center, 2011; 1–25. [Google Scholar]
- Reyes, G. Algoritmo de compresión de trayectorias GPS basado en el algoritmo Top Down Time Ratio (TD-TR). 2017, pp. 194–204.
- Reyes, G.; Estrada, V. Comparison Analysis On Noise Reduction In Gps Trajectories Simplification. Latin American and Caribbean Consortium of Engineering Institutions, 2021. [CrossRef]
- Lin, K.; Xu, Z.; Qiu, M.; Wang, X.; Han, T. Noise filtering, trajectory compression and trajectory segmentation on GPS data. 8 2016, pp. 490–495. [CrossRef]
- Reyes, G.; Crespo, C.; León-Granizo, O.; Bazán, W.; Horta, R. Propuesta de método de extracción de ubicaciones georreferenciales de una red de carreteras para el análisis de trayectorias GPS Proposal for a method to extract georeferenced locations from a road network for the analysis of GPS trajectories. Investigación, Tecnología E Innovación 2022, 14, 1–15. [Google Scholar]
- Fenn, R. , 2001; pp. 253–285. https://doi.org/10.1007/978-1-4471-0325-7_8.Geometry. In Geometry; Springer London: London, 2001; pp. 253–285. [Google Scholar] [CrossRef]
- Zheng, Y.; Fu, H.; Xie, X.; Ma, W.Y.; Li, Q. Geolife GPS trajectory dataset - User Guide, geolife gps trajectories 1.1 ed., 2011.
- Berkeley, U. Mobile Century data documentation 2009. pp. 1–6. [CrossRef]
- Reyes, G.; Maquilón, V.; Estrada, V. Relationships of Compression Ratio and Error in Trajectory Simplification Algorithms. Springer International Publishing, 2021, pp. 140–155.
- Muckell, J.; Olsen, P.W.; Hwang, J.H.; Ravi, S.S.; Lawson, C.T. A framework for efficient and convenient evaluation of trajectory compression algorithms. 2013, pp. 24–31. [CrossRef]
- Liu, M.; He, G.; Long, Y. A Semantics-Based Trajectory Segmentation Simplification Method. Journal of Geovisualization and Spatial Analysis 2021, 5. [Google Scholar] [CrossRef]
- Tapia, C.; Flores, K. Pruebas para comprobar la normalidad de datos en procesos productivos: Anderson-Darling, Ryan-Joiner, Shapiro-Wilk y Kologórov-Smirnov. Societas. Revista de Ciencias Sociales y Humanísticas 2021, 23, 83–97. [Google Scholar]
- Saldaña, M.R. Contraste de Hipótesis Comparación de dos medias independientes mediante pruebas no paramétricas: Prueba U de Mann-Whitney - Dialnet. Revista Enfermería del Trabajo 2013, 3, 77–84. [Google Scholar]
- Guillen, A.; a Araiza, L.; Cerna, E.; Valenzuela, J.; Uanl, J.L.; Nicolás, S.; Coah, S. Métodos No-Paramétricos de Uso Común ( Non Parametric Methods of Common Usage ). DAENA: International Journal of Good Conscience 2012, 7, 132–155. [Google Scholar]
| 1 | Source code available at https://github.com/gary-reyes-zambrano/Algoritmo-de-simplificacion-GR
|











| Algorithm | Processing time (s) | Compression ratio (percentage) | Margin of error (km) |
|---|---|---|---|
| Douglas-Peucker | 1.5011,75 | 91,60 | 13,88 |
| Lang | 3.159,65 | 76,19 | 4,75 |
| Visvalingam | 214,70 | 67,07 | 0,09 |
| TD-TR | 13.852,44 | 86,01 | 0,80 |
| Compression ratio (percentage) |
Margin of error (meters) |
|||
|---|---|---|---|---|
| TD-TR | GR | TD-TR | GR | |
| Sample 1 (Geolife) | 85,485 | 90,214 | 14,22 | 6,47 |
| Sample 2 (Mobile Century) | 92,787 | 93,395 | 3,69 | 2,77 |
| Average | 89,136 | 91,804 | 8,955 | 4,62 |
| Tests | GR (Ratio of compression) |
GR (Margin of error) |
TD-TR (Ratio of compression) |
TD-TR (Margin of error) |
|---|---|---|---|---|
| Sample 1 (Geolife) | Rejected Ho | Rejected Ho | Rejected Ho | Rejected Ho |
| Sample 2 (Mobile Century) | Rejected Ho | Rejected Ho | Rejected Ho | Rejected Ho |
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. |
© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).