Abstract:Spatio-temporal trajectory data are an important component of multimodal data and provides essential support for applications such as location-based services, traffic management, and smart cities. Due to the characteristics of continuous generation, frequent writes, and large-scale data volumes, efficient storage and real-time query processing of spatio-temporal data face significant challenges. Existing spatio-temporal data storage and query architectures can be mainly classified into centralized architectures and distributed architectures. However, these architectures have difficulty meeting the requirements of high-frequency data ingestion and low-latency queries in edge environments. Moreover, they suffer from issues including complex deployment, high resource consumption, and insufficient integration of query optimization with underlying storage structures and device states. To address these challenges, this paper proposes an end-edge-cloud collaborative spatio-temporal data storage and query method based on a resource-aware hierarchical LSM-tree. First, to efficiently store and index spatio-temporal data in heterogeneous end-edge-cloud architectures, an LSM-tree-based spatio-temporal data storage method is proposed. Furthermore, a spatio-temporal data query framework across the end-edge-cloud architecture is designed to support various spatio-temporal query operations. Second, to reduce the overhead of read, write, and query operations in resource-constrained environments, a resource-aware dynamic Compaction strategy is introduced. Finally, extensive experiments are conducted on both real-world and synthetic datasets under various parameter settings. Experimental results demonstrate that the proposed method significantly improves spatio-temporal data query efficiency while achieving good stability and scalability.