Next Article in Journal
A Dynamic Addressing Hybrid Routing Mechanism Based on Static Configuration in Urban Rail Transit Ad Hoc Network
Next Article in Special Issue
Learning Analytics on YouTube Educational Videos: Exploring Sentiment Analysis Methods and Topic Clustering
Previous Article in Journal
Design of a Crossed Dielectric Resonator-Loaded, Dual-Band Dual-Polarized Differential Patch Antenna with Improved Port Isolation and Gain
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Efficient Large-Scale GPS Trajectory Compression on Spark: A Pipeline-Based Approach

1
School of Information, Yunnan Normal University, Kunming 650500, China
2
Engineering Research Center of Computer Vision and Intelligent Control Technology, Yunnan Provincial Department of Education, Kunming 650500, China
*
Author to whom correspondence should be addressed.
Electronics 2023, 12(17), 3569; https://doi.org/10.3390/electronics12173569
Submission received: 17 July 2023 / Revised: 12 August 2023 / Accepted: 20 August 2023 / Published: 24 August 2023
(This article belongs to the Special Issue Big Data and Large-Scale Data Processing Applications)

Abstract

Every day, hundreds of thousands of vehicles, including buses, taxis, and ride-hailing cars, continuously generate GPS positioning records. Simultaneously, the traffic big data platform of urban transportation systems has already collected a large amount of GPS trajectory datasets. These incremental and historical GPS datasets require more and more storage space, placing unprecedented cost pressure on the big data platform. Therefore, it is imperative to efficiently compress these large-scale GPS trajectory datasets, saving storage cost and subsequent computing cost. However, a set of classical trajectory compression algorithms can only be executed in a single-threaded manner and are limited to running in a single-node environment. Therefore, these trajectory compression algorithms are insufficient to compress this incremental data, which often amounts to hundreds of gigabytes, within an acceptable time frame. This paper utilizes Spark, a popular big data processing engine, to parallelize a set of classical trajectory compression algorithms. These algorithms consist of the DP (Douglas–Peucker), the TD-TR (Top-Down Time-Ratio), the SW (Sliding Window), SQUISH (Spatial Quality Simplification Heuristic), and the V-DP (Velocity-Aware Douglas–Peucker). We systematically evaluate these parallelized algorithms on a very large GPS trajectory dataset, which contains 117.5 GB of data produced by 20,000 taxis. The experimental results show that: (1) It takes only 438 s to compress this dataset in a Spark cluster with 14 nodes; (2) These parallelized algorithms can save an average of 26% on storage cost, and up to 40%. In addition, we design and implement a pipeline-based solution that automatically performs preprocessing and compression for continuous GPS trajectories on the Spark platform.
Keywords: trajectory compression; big data; spark; parallelized algorithm trajectory compression; big data; spark; parallelized algorithm

Share and Cite

MDPI and ACS Style

Xiong, W.; Wang, X.; Li, H. Efficient Large-Scale GPS Trajectory Compression on Spark: A Pipeline-Based Approach. Electronics 2023, 12, 3569. https://doi.org/10.3390/electronics12173569

AMA Style

Xiong W, Wang X, Li H. Efficient Large-Scale GPS Trajectory Compression on Spark: A Pipeline-Based Approach. Electronics. 2023; 12(17):3569. https://doi.org/10.3390/electronics12173569

Chicago/Turabian Style

Xiong, Wen, Xiaoxuan Wang, and Hao Li. 2023. "Efficient Large-Scale GPS Trajectory Compression on Spark: A Pipeline-Based Approach" Electronics 12, no. 17: 3569. https://doi.org/10.3390/electronics12173569

APA Style

Xiong, W., Wang, X., & Li, H. (2023). Efficient Large-Scale GPS Trajectory Compression on Spark: A Pipeline-Based Approach. Electronics, 12(17), 3569. https://doi.org/10.3390/electronics12173569

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