A Hybrid-Clustering Model of Ship Trajectories for Maritime Traffic Patterns Analysis in Port Area
Abstract
:1. Introduction
- (1)
- A ship trajectory dissimilarity metric and quantitative method are proposed based on different ship trajectory characteristics, including static characteristic dissimilarities, dynamic characteristic dissimilarities, and spatial dissimilarity;
- (2)
- The hybrid clustering model is used to realize the division of ship trajectory, improving the efficiency of ship trajectory recognition;
- (3)
- Based on the results of ship traffic clustering, analysis and anomaly recognition of ship behaviors can be identified and ships can be classified into various routes/voyages in the port area.
2. Description of the Problem
2.1. Definition of Ship Trajectory
2.2. Ship Trajectory Clustering Procedures
- (1)
- Construction of ship trajectory characteristics
- (2)
- Dissimilarity evaluation of ship trajectories
- (3)
- Multi-model ship trajectory clustering method
2.3. Framework of Trajectory Clustering and Anomaly Detection
- Step 1—AIS pre-processing. This step mainly includes ship trajectory separation, ship abnormal data filtering, and docking trajectory filtering, as seen in Section 3.1.1. In order to obtain segmented trajectories, MMSI information is used to identify different ships, whereas TIMESTAMP information is used to split different segments of trajectories of the same ship [37]. In addition, we focus on the moving trajectories in this work, and we set the speed-based rules to filter stopping data.
- Step 2—Ship trajectory characteristics extraction and dissimilarity evaluation. Based on the various ship trajectory characteristics, a construction method of multiple-dimensional characteristics is proposed and shown in Section 3.1.2 and Section 3.1.3. Accordingly, the dissimilarity of ship trajectories is evaluated based on the individual characteristic distance and comprehensive distance, as seen in Section 3.2. It is noted that most trajectory dissimilarities are based on trajectory characteristics, whereas the spatial dissimilarity involves different objects and needs to be discussed separately. Then, considering different dissimilarities and weights, the comprehensive dissimilarity is constructed to improve the recognition of trajectories [35].
- Step 3—Hybrid clustering method modeling. Based on the construction method of multiple-dimensional characteristics, a hybrid clustering method is proposed based on the K-Means algorithm for voyage clustering and the DBSCAN algorithm for characteristic classification for each cluster, as seen in Section 3.3.
- Step 4—Traffic characteristics analysis and abnormal behavior detection. After clustering and obtaining trajectories in different clusters, traffic characteristics, including speeding features and turning features, are analyzed on specific routes. Meanwhile, the abnormal behavior detection of abnormal ships could be achieved based on the results of DBSCAN clustering.
3. Methodology and Modeling
3.1. Ship Trajectory Characteristics Construction
3.1.1. AIS Data Reconstruction
3.1.2. Static Characteristics of Ship Trajectory
- (1)
- Feature of departure and destination of ship trajectory
- (2)
- Length feature of ship trajectory
3.1.3. Dynamic Characteristics of Ship Trajectory
- (1)
- Central trend feature of ship trajectory
- (2)
- Motion variation feature of ship trajectory
3.2. Dissimilarity Evaluation of Ship Trajectory Characteristics
3.2.1. Characteristic Dissimilarity of Ship Trajectory
- (1)
- The static characteristic dissimilarity of ship trajectory
- (2)
- The dynamic characteristic dissimilarity of ship trajectory
3.2.2. Spatial Dissimilarity (Distance) of Ship Trajectories
3.2.3. Comprehensive Dissimilarity of Ship Trajectory
3.3. Hybrid Trajectory Clustering Model
4. Case Studies
4.1. Research Area and Data Foundation
4.1.1. Research Area
4.1.2. Data Foundation
4.2. Evaluation of Clustering Results
4.3. Hybrid Clustering
4.3.1. K-Means Clustering
4.3.2. DBSCAN Clustering
4.4. Traffic Feature Analysis
4.4.1. Analysis of Speed Feature
- (1)
- Speed Analysis of outgoing and incoming ships
- (2)
- Speed analysis on different routes
4.4.2. Analysis of Course and Turning Feature
4.4.3. Analysis of Abnormal Trajectories
- (1)
- Abnormal trajectories with less than 10 points
- (2)
- Abnormal trajectories obtained by DBSCAN clustering
5. Discussion
- (1)
- Using the proposed model to classify the ship trajectories is sufficient in port.
- (2)
- Limits of dissimilarity of ship trajectories are importation to classify ship trajectories.
- (3)
- The proposed model is suitable for marine traffic feature analysis.
6. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
Appendix A
Algorithm A1. K-Means Algorithm for trajectories cluster. |
Input: |
, clustering number K, the maximum number of iterations N |
Output: |
Process: |
1.
; |
2.
; |
3.
: |
4.
: |
5. |
6.
; |
7. End for |
8.: |
9. Calculate the center trajectories based on new clustering result |
10. End for |
11. If the clustering result remains consistent: |
12. Go to line 17; |
13. Else: |
14. Go to line 4; |
15. End if |
16. End for |
17.. |
- (1)
- The number of clusters K
- (2)
- The selection of the initial clustering center
Appendix B
Algorithm A2. DBSCAN Algorithm for trajectories cluster. |
Input: |
Output: |
Process: |
1. Mark the D as unprocessed trajectories; |
2.: |
3. is visited: |
4. Continue; |
5. Else |
6. as visited |
7.; |
8.: |
9.; |
10.: |
11. is visited |
12. Continue; |
13. Else |
14. as visited |
15.; |
16.; |
17.; |
18. Else: |
19.; |
20. End if |
21. End for |
22. End if |
23.: |
24. as noise point; |
25. End if |
26. End for |
27.. |
References
- Svanberg, M.; Santén, V.; Hörteborn, A.; Holm, H.; Finnsgård, C. AIS in maritime research. Mar. Policy 2019, 106, 103520. [Google Scholar] [CrossRef]
- Zhang, M.; Zhang, D.; Goerlandt, F.; Yan, X.; Kujala, P. Use of HFACS and fault tree model for collision risk factors analysis of icebreaker assistance in ice-covered waters. Saf. Sci. 2019, 111, 128–143. [Google Scholar] [CrossRef]
- Heij, C.; Bijwaard, G.; Knapp, S. Ship inspection strategies: Effects on maritime safety and environmental protection. Transp. Res. Part D Transp. Environ. 2011, 16, 42–48. [Google Scholar] [CrossRef] [Green Version]
- Zhang, L.; Meng, Q.; Xiao, Z.; Fu, X. A novel ship trajectory reconstruction approach using AIS data. Ocean Eng. 2018, 159, 165–174. [Google Scholar] [CrossRef]
- Zhang, M.; Zhang, D.; Fu, S.; Kujala, P.; Hirdaris, S. A predictive analytics method for maritime traffic flow complexity estimation in inland waterways. Reliab. Eng. Syst. Saf. 2022, 220, 108317. [Google Scholar] [CrossRef]
- Szlapczynski, R.; Szlapczynska, J. An analysis of domain-based ship collision risk parameters. Ocean Eng. 2016, 126, 47–56. [Google Scholar] [CrossRef]
- Yang, D.; Wu, L.; Wang, S.; Jia, H.; Li, K.X. How big data enriches maritime research—A critical review of Automatic Identification System (AIS) data applications. Transp. Rev. 2019, 39, 755–773. [Google Scholar] [CrossRef]
- Harati-Mokhtari, A.; Wall, A.; Brooks, P.; Wang, J. Automatic Identification System (AIS): Data Reliability and Human Error Implications. J. Navig. 2007, 60, 373–389. [Google Scholar] [CrossRef]
- Kao, S.-L.; Chang, K.-Y. Study on fuzzy GIS for navigation safety of fishing boats. J. Mar. Eng. Technol. 2017, 16, 84–93. [Google Scholar] [CrossRef] [Green Version]
- Zhen, R.; Jin, Y.; Hu, Q.; Shao, Z.; Nikitakos, N. Maritime Anomaly Detection within Coastal Waters Based on Vessel Trajectory Clustering and Naïve Bayes Classifier. J. Navig. 2017, 70, 648–670. [Google Scholar] [CrossRef]
- Zhang, S.-K.; Shi, G.-Y.; Liu, Z.-J.; Zhao, Z.-W.; Wu, Z.-L. Data-driven based automatic maritime routing from massive AIS trajectories in the face of disparity. Ocean Eng. 2018, 155, 240–250. [Google Scholar] [CrossRef]
- Hansen, M.G.; Jensen, T.K.; Lehn-Schiøler, T.; Melchild, K.; Rasmussen, F.M.; Ennemark, F. Empirical Ship Domain based on AIS Data. J. Navig. 2013, 66, 931–940. [Google Scholar] [CrossRef] [Green Version]
- Jinyu, L.; Lei, L.; Xiumin, C.; Wei, H.; Xinglong, L.; Cong, L. Automatic identification system data-driven model for analysis of ship domain near bridge-waters. J. Navig. 2021, 74, 1284–1304. [Google Scholar] [CrossRef]
- Winther, M.; Christensen, J.H.; Plejdrup, M.S.; Ravn, E.S.; Eriksson, Ó.F.; Kristensen, H.O. Emission inventories for ships in the arctic based on satellite sampled AIS data. Atmos. Environ. 2014, 91, 1–14. [Google Scholar] [CrossRef]
- Adland, R.; Jia, H.; Strandenes, S.P. Are AIS-based trade volume estimates reliable? The case of crude oil exports. Marit. Policy Manag. 2017, 44, 657–665. [Google Scholar] [CrossRef] [Green Version]
- Chen, L.; Zhang, D.; Ma, X.; Wang, L.; Li, S.; Wu, Z.; Pan, G. Container Port. Performance Measurement and Comparison Leveraging Ship GPS Traces and Maritime Open Data. IEEE Trans. Intell. Transp. Syst. 2016, 17, 1227–1242. [Google Scholar] [CrossRef]
- Zhou, Y.; Daamen, W.; Vellinga, T.; Hoogendoorn, S.P. Ship classification based on ship behavior clustering from AIS data. Ocean Eng. 2019, 175, 176–187. [Google Scholar] [CrossRef]
- Shahir, A.Y.; Tayebi, M.A.; Glässer, U.; Charalampous, T.; Zohrevand, Z.; Wehn, H. Mining vessel trajectories for illegal fishing detection. In Proceedings of the 2019 IEEE International Conference on Big Data, Los Angeles, CA, USA, 9–12 December 2019; pp. 1917–1927. [Google Scholar]
- Shahir, A.Y.; Charalampous, T.; Tayebi, M.A.; Glasser, U.; Wehn, H. TripTracker: Unsupervised Learning of Fishing Vessel Routine Activity Patterns. In Proceedings of the 2021 IEEE International Conference on Big Data, Online, 15–18 December 2021; pp. 1928–1939. [Google Scholar]
- Bai, X.; Cheng, L.; Iris, Ç. Data-driven financial and operational risk management: Empirical evidence from the global tramp shipping industry. Transp. Res. Part E Logist. Transp. Rev. 2022, 158, 102617. [Google Scholar] [CrossRef]
- Duan, H.; Ma, F.; Miao, L.; Zhang, C. A semi-supervised deep learning approach for vessel trajectory classification based on AIS data. Ocean Coast. Manag. 2022, 218, 106015. [Google Scholar] [CrossRef]
- Shahir, H.Y.; Glasser, U.; Shahir, A.Y.; Wehn, H. Maritime situation analysis framework: Vessel interaction classification and anomaly detection. In Proceedings of the 2015 IEEE International Conference on Big Data, Santa Clara, CA, USA, 29 October–1 November 2015; pp. 1279–1289. [Google Scholar]
- Natale, F.; Carvalho, N.; Paulrud, A. Defining small-scale fisheries in the EU on the basis of their operational range of activity The Swedish fleet as a case study. Fish. Res. 2015, 164, 286–292. [Google Scholar] [CrossRef]
- Chen, J.; Lu, F.; Peng, G. A quantitative approach for delineating principal fairways of ship passages through a strait. Ocean Eng. 2015, 103, 188–197. [Google Scholar] [CrossRef]
- Zhao, L.; Shi, G.; Yang, J. An Adaptive Hierarchical Clustering Method for Ship Trajectory Data Based on DBSCAN Algorithm. In Proceedings of the 2017 IEEE 2nd International Conference on Big Data Analysis, Beijing, China, 10–12 March 2017; pp. 329–336. [Google Scholar]
- Wang, L.; Chen, P.; Chen, L.; Mou, J. Ship AIS Trajectory Clustering: An HDBSCAN-Based Approach. J. Mar. Sci. Eng. 2021, 9, 566. [Google Scholar] [CrossRef]
- Lee, J.-G.; Han, J.; Whang, K.-Y. Trajectory clustering: A partition-and-group framework. In Proceedings of the 2007 ACM SIGMOD International Conference on Management of Data, Beijing, China, 11–14 June 2007; pp. 593–604. [Google Scholar]
- Li, H.; Liu, J.; Liu, R.W.; Xiong, N.; Wu, K.; Kim, T.-H. A Dimensionality Reduction-Based Multi-Step Clustering Method for Robust Vessel Trajectory Analysis. Sensors 2017, 17, 1792. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Sheng, K.; Liu, Z.; Zhou, D.; He, A.; Feng, C. Research on Ship Classification Based on Trajectory Features. J. Navig. 2017, 71, 100–116. [Google Scholar] [CrossRef]
- Kowalska, K.; Peel, L. Maritime Anomaly Detection using Gaussian Process; Active Learning. In Proceedings of the 15th International Conference on Information Fusion, Singapore, 9–12 July 2012; pp. 1164–1171. [Google Scholar]
- Laxhammar, R. Anamaly detection for sea surveilance. In Proceedings of the 11th International Conference on Information Fusion, Cologne, Germany, 30 June–3 July 2008; pp. 1–8. [Google Scholar]
- Fu, P.; Wang, H.; Liu, K.; Hu, X.; Zhang, H. Finding Abnormal Vessel Trajectories Using Feature Learning. IEEE Access 2017, 5, 7898–7909. [Google Scholar] [CrossRef]
- Zhang, M.; Montewka, J.; Manderbacka, T.; Kujala, P.; Hirdaris, S. A Big Data Analytics Method for the Evaluation of Ship—Ship Collision Risk reflecting Hydrometeorological Conditions. Reliab. Eng. Syst. Saf. 2021, 213, 107674. [Google Scholar] [CrossRef]
- Zhang, M.; Conti, F.; Le Sourne, H.; Vassalos, D.; Kujala, P.; Lindroth, D.; Hirdaris, S. A method for the direct assessment of ship collision damage and flooding risk in real conditions. Ocean Eng. 2021, 237, 109605. [Google Scholar] [CrossRef]
- Lei, L.; Yong, Z.; Ming-Yang, Z.; Yong-Ming, W.; Jing, C. Analysis and optimization of ship trajectory dissimilarity models based on multi-feature fusion. J. Traffic Transp. Eng. 2021, 21, 199–213. [Google Scholar]
- Junmin, M.; Pengfei, C.; Yixiong, H.; Xingjian, Z.; Jianfeng, Z.; Rong, H. Fast self-tuning spectral clustering algorithm for AIS ship trajectory. J. Harbin Eng. Univ. 2018, 39, 428–432. [Google Scholar]
- Liu, L.; Chu, X.; Jiang, Z.; Liu, X.; Li, J.; He, W. Coverage effectiveness analysis of AIS base station: A case study in Yangtze River. In Proceedings of the IEEE 4th International Conference on Transportation Information and Safety (ICTIS), Banff, AB, Canada, 8–10 August 2017; pp. 178–183. [Google Scholar]
- Zhang, M.; Zhang, D.; Yao, H.; Zhang, K. A probabilistic model of human error assessment for autonomous cargo ships focusing on human–autonomy collaboration. Saf. Sci. 2020, 130, 104838. [Google Scholar] [CrossRef]
- Venturini, G.; Iris, Ç.; Kontovas, C.A.; Larsen, A. The multi-port berth allocation problem with speed optimization and emission considerations. Transp. Res. Part D Transp. Environ. 2017, 54, 142–159. [Google Scholar] [CrossRef] [Green Version]
- Toscano, D.; Murena, F.; Quaranta, F.; Mocerino, L. Assessment of the impact of ship emissions on air quality based on a complete annual emission inventory using AIS data for the port of Naples. Ocean Eng. 2021, 232, 109166. [Google Scholar] [CrossRef]
Data Column | Description |
---|---|
MMSI | Maritime Mobile Service Identity |
TIMESTAMP | The timestamp of AIS data |
LON | The longitude of the position |
LAT | The latitude of the position |
SOG | The shipping speed over ground |
COG | The shipping course over ground |
/ | 3/0.072 | 4/0.075 | 5/0.078 | 6/0.085 | 7/0.090 | 8/0.101 |
6.6257 | 6.1580 | 5.9966 | 5.7143 | 5.7860 | 5.7166 |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2022 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 (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Liu, L.; Zhang, Y.; Hu, Y.; Wang, Y.; Sun, J.; Dong, X. A Hybrid-Clustering Model of Ship Trajectories for Maritime Traffic Patterns Analysis in Port Area. J. Mar. Sci. Eng. 2022, 10, 342. https://doi.org/10.3390/jmse10030342
Liu L, Zhang Y, Hu Y, Wang Y, Sun J, Dong X. A Hybrid-Clustering Model of Ship Trajectories for Maritime Traffic Patterns Analysis in Port Area. Journal of Marine Science and Engineering. 2022; 10(3):342. https://doi.org/10.3390/jmse10030342
Chicago/Turabian StyleLiu, Lei, Yong Zhang, Yue Hu, Yongming Wang, Jingyi Sun, and Xiaoxiao Dong. 2022. "A Hybrid-Clustering Model of Ship Trajectories for Maritime Traffic Patterns Analysis in Port Area" Journal of Marine Science and Engineering 10, no. 3: 342. https://doi.org/10.3390/jmse10030342
APA StyleLiu, L., Zhang, Y., Hu, Y., Wang, Y., Sun, J., & Dong, X. (2022). A Hybrid-Clustering Model of Ship Trajectories for Maritime Traffic Patterns Analysis in Port Area. Journal of Marine Science and Engineering, 10(3), 342. https://doi.org/10.3390/jmse10030342