Unsupervised Port Berth Localization from Automatic Identification System Data

Andreas Hadjipieris, Neofytos Dimitriou, Ognjen ArandjelovićSensors 2025 · DOI

Introduction

Efficient port operations are the cornerstone of global trade, yet the digital infrastructure supporting these operations is often surprisingly incomplete. Many ports lack accurate, up-to-date digital maps of their berthing sites, with official documentation frequently containing missing berths or incorrect geographic boundaries. While the Automatic Identification System (AIS) provides a continuous stream of real-time vessel movement data, transforming this high-volume, "noisy" data into precise geographic polygons is a significant technical challenge.

This paper introduces a robust, unsupervised spatial modeling framework designed to automatically identify and localize port berths using raw AIS data. By treating ships as physical volumes rather than dimensionless points and employing Gaussian Mixture Models (GMMs), the proposed method achieves a significant leap in accuracy over existing state-of-the-art techniques, even identifying infrastructure missing from official records.

Methodology

The researchers developed a multi-stage unsupervised pipeline to process raw AIS data into actionable berth boundaries:

  1. Preprocessing & Initial Clustering: Raw AIS data is filtered to isolate cargo and tanker ships moving at speeds below 3 knots. The model applies DBSCAN (Density-Based Spatial Clustering of Applications with Noise) to each vessel's trajectory independently to identify "stay points"—locations where a ship remained stationary for a significant duration.
  2. Spatial Data Augmentation: A core innovation of this work is the shift away from treating AIS messages as single GPS points. Instead, the model generates additional points based on the vessel’s reported length, width, and heading. This represents the actual physical footprint occupied by the ship at the berth, leading to more realistic spatial modeling.
  3. Geohash Encoding: To improve computational efficiency and reduce noise, data is grouped into Geohash precision 9 cells (approximately 4.7m × 4.7m squares).
  4. Gaussian Mixture Models (GMMs): The spatial distribution of these augmented points is modeled using GMMs. In this framework, each Gaussian component represents a potential berth.
  5. Hyperparameter Optimization: To ensure the model is entirely data-driven, the researchers used Minimum Description Length (MDL) to determine the optimal number of berths and Bayesian optimization (via Optuna) to tune DBSCAN parameters. Generalization is ensured by using a symmetric KL-divergence score across different data subsets.
  6. Post-processing: Finally, the probabilistic GMM distributions are converted into rotated rectangular polygons, providing clear geographic boundaries for geofencing.

Experimental Setup and Datasets

The study utilized one month of terrestrial AIS data (October 2023) sourced from AISStream and AISHub. The framework was evaluated across 11 diverse global ports to ensure scalability and robustness:

  • Mega-hubs: Singapore, Busan, and Antwerp.
  • Regional/Medium Ports: Los Angeles, Auckland, Cape Town, Limassol, and others.

Performance was validated through qualitative comparisons with Sentinel-2 satellite imagery and official port labels from ShipNext.

Key Insights

The Importance of Physical Dimensions

The transition from point-based clustering to spatial augmentation proved critical. Without accounting for a ship's length and width, clustering algorithms tend to focus on the location of the AIS transponder (typically the bridge), resulting in skewed or incomplete berth definitions. By modeling the ship's volume, the boundaries align more closely with actual pier structures.

Geohashing as a Regularizer

Beyond improving processing speed, Geohash encoding acted as a spatial regularizer. It prevented the model from over-fitting to tiny, unlikely berthing spots, thereby increasing the overall plausibility of the identified infrastructure.

Consistency as a Proxy for Truth

In an unsupervised context where ground-truth labels are scarce, the authors utilized the Bhattacharyya distance to measure consistency. By splitting the data and verifying that the model identifies the same berths across different sets of ships, they demonstrated that the framework captures true underlying infrastructure rather than transient patterns.

Results

The proposed method significantly outperformed the current state-of-the-art (Steenari et al.):

  • Quantitative Performance: The model achieved a mean Bhattacharyya distance of 0.85, indicating high consistency, compared to 13.56 for the leading existing method.
  • Qualitative Accuracy: Visual analysis confirmed that the model correctly identified berths missing from official ShipNext labels and provided more precise boundaries that matched satellite imagery of pier structures.
  • Data Efficiency: The framework remained effective even when AIS message density was reduced, proving its robustness in environments with sparse data coverage.

Conclusion and Future Work

This research provides a scalable, unsupervised solution for mapping the world's maritime infrastructure. While highly effective for cargo and tanker berths, the current model's preprocessing filters out passenger and fishing vessels, which represents an area for future expansion. Additionally, the model's reliance on a minimum threshold of "evidence" means it struggles in very low-traffic ports. Future work will focus on integrating more vessel types and utilizing these identified berths to generate real-time performance metrics, such as average turnaround times, to further optimize global supply chains.

Summary updated

Abstract

Port berthing sites are regions of high interest for monitoring and optimizing port operations. Data sourced from the Automatic Identification System (AIS) can be superimposed on berths, enabling their real-time monitoring and revealing long-term utilization patterns. Ultimately, insights from multiple berths can uncover bottlenecks, and lead to the optimization of the underlying supply chain of the port and beyond. However, publicly available documentation of port berths, even when available, is frequently incomplete-e.g., there may be missing berths or inaccuracies such as incorrect boundary boxes-necessitating a more robust, data-driven approach to port berth localization. In this context, we propose an unsupervised spatial modeling method that leverages AIS data clustering and hyperparameter optimization to localize berthing sites. Trained on one month of freely available AIS data and evaluated across ports of varying sizes, our models significantly outperform competing methods, achieving a mean Bhattacharyya distance of 0.85 when comparing Gaussian Mixture Models trained on separate data splits, compared to 13.56 for the best existing method. Qualitative comparison with satellite images and existing berth labels further supports the superiority of our method, revealing more precise berth boundaries and improved spatial resolution across diverse port environments.
BibTeX
@inproceedings{hadjipieris2025unsupervised,
  author = {Andreas Hadjipieris and Neofytos Dimitriou and Ognjen Arandjelović},
  title = {{Unsupervised Port Berth Localization from Automatic Identification System Data}},
  booktitle = {Sensors},
  year = {2025},
  doi = {10.3390/s25226845},
}
Figure