Abstract
With the explosive growth of ship information data brought by the intellectualization and digitization of waterborne traffic, it has become more and more important to process and apply massive ship data quickly and accurately. In view of the growing maturity and wide application of Spark large data technology in data mining field, this paper, against the characteristics of ship AIS data, chooses a series of large data technologies based on Spark to build the AIS data mining platform. According to the basic process of mining and processing, the overall framework of the platform is divided into three modules: database, Spark computing and mining, visualization. The AIS data of Sunda Strait with high ship density is used to process and mine the actual data to verify the availability of the platform. The results show that the platform works well and the three modules can work normally. And the AIS data of the Strait are processed and mined quickly and accurately. According to different requirements, it can display bar charts, polyline charts, histogram, trajectory charts and thermal charts and other commonly used data analysis graphics to achieve the effect of navigation assistance.
Introduction
Waterborne traffic accounts for approximately 90% of the global transport market, making it the backbone of international trade. As the shipping industry undergoes a digital transformation, the volume of Automatic Identification System (AIS) data—encompassing ship positions, speeds, and identifiers—has grown exponentially. This "data blowout" presents a significant challenge for traditional data processing platforms, which are increasingly overburdened by the sheer scale and velocity of incoming information.
To address this, this paper presents a high-performance maritime data mining platform built on the Apache Spark ecosystem. By integrating distributed storage and advanced visualization tools, the platform provides a scalable architecture capable of processing massive ship trajectory data to improve navigation safety and regional traffic analysis.
Platform Architecture and Methodology
The authors developed a robust three-tier architecture designed for stability and performance. To avoid common virtualization issues like IP conflicts, the system runs on a dual-boot Ubuntu environment.
1. Database Module (HBase & Hadoop)
Real-time AIS data is ingested into HBase. A key innovation of this platform is the implementation of in-database preprocessing. Before data reaches the mining engine, the system filters out erroneous entries, such as impossible speeds (exceeding 35 knots) or coordinates located on land. This ensures that only high-quality data is passed forward, significantly reducing downstream computational overhead.
2. Spark Computing & Mining Module
This module serves as the "brain" of the platform. Developed using Scala, the Spark engine applies specialized algorithms—including the M4 algorithm, Ifouce algorithm, and ant colony algorithm—to process complex trajectories and extract ship-type information.
3. Visualization Module (Echarts)
To translate raw data into actionable insights, the platform utilizes the Echarts JavaScript library. This allows for the generation of interactive heatmaps, "star-shaped" trajectory charts, and complex statistical diagrams that are accessible on both desktop and mobile devices.
Case Study: The Sunda Strait
The platform's capabilities were verified using AIS traffic flow data from the Sunda Strait, a vital waterway between Sumatra and Java. This location was chosen due to its high ship density and its role as a preferred route for deep-draft vessels compared to the Malacca Strait. The study analyzed data from January to June 2018.
Key Results and Analysis
The platform successfully processed data for over 5,000 voyages and 200 million tons of cargo annually. The analysis revealed that the Sunda Strait acts as a central radiation point connecting five continents, with trajectory visualizations forming a distinct "star-shaped" pattern.
The mining results underscore the role of AIS data as a real-time mirror of global trade. Bulk cargo ships were found to dominate the region, accounting for 62.6% of the total tonnage. As shown in the distribution analysis, bulk cargo ships also represent the largest single category by vessel count (33.03%), followed by oil tankers (14.2%) and LPG vessels (12.7%).
Furthermore, the analysis identified China as the top destination country by tonnage (30.00%), followed by Indonesia (25.93%). These findings provide quantitative evidence of the strait's strategic importance to China's energy and trade security.
Conclusion and Future Work
The Spark-based architecture proved capable of handling mining and visualization tasks "quickly and accurately," confirming its readiness for high-density traffic areas. While the current iteration successfully utilizes M4 and ant colony algorithms, the platform is designed to be highly scalable. Future work will focus on integrating more complex machine learning models and stress-testing the visualization module under true real-time streaming conditions with even higher ship densities.
Summary updated