Construction of Typical Sailing Conditions for Harbor Tugs Based on WOA-K-Means++ Clustering and Hidden Markov Models
Abstract
1. Introduction
1.1. Background
1.2. Limitations of Existing Approaches
1.3. Adaptation of Vehicle Driving Cycles
1.4. Research Gap and Contributions
- (1)
- An integrated clustering method combining the WOA and K-means++ (WOA-K-means++) is proposed, which achieves global optimization of cluster center selection and enhances the accuracy and stability of kinematic segment classification.
- (2)
- A condition synthesis method based on an HMM is proposed, which effectively captures the temporal correlations and state transition characteristics among real kinematic segments.
- (3)
- A 3600 s typical sailing condition profile for harbor tugs is constructed, and the rationality and validity of the constructed condition are verified through comparative analysis using multiple evaluation metrics.
2. Materials and Methods
2.1. Research Subject
- (1)
- Low-Speed Harbor Berthing/Unberthing Condition (0–2 knots): Requires the highest level of maneuvering precision, involving the provision of stable thrust at extremely low speeds to assist large ships in making smooth contact with or departing from the berth.
- (2)
- Slow-Speed Harbor/Coastal Transit Condition (2–4 knots): Suitable for repositioning within complex waterways, balancing maneuverability with moderate thrust.
- (3)
- Conventional Medium-Low Speed Cruising Condition (4–8 knots): Primarily used for longer-distance transfers within the harbor or along the coast, typically representing the upper limit of safe harbor speed, balancing efficiency and safety.
- (4)
- Medium-Speed Towing Condition (8–10 knots): Applicable for towing tasks with specific speed requirements, providing a cost-effective bollard pull within this range.
- (5)
- High-Speed Sailing Condition (10–13 knots): Used for rapid repositioning or emergency response, approaching the ship’s conventional maximum speed.
- (6)
- Full-Speed/Emergency Sailing Condition (13–15 knots): Activated only in extreme situations such as salvage operations, during which load and fuel consumption increase significantly.
2.2. Research Methods
2.3. Data Processing and Kinematic Segment Segmentation
- (1)
- Data Format Standardization: The raw ship speed data are read, and a dual-level exception-handling mechanism is employed to parse various time string formats and unify them into a standardized “datetime” format. Subsequently, abnormal timestamps and invalid time points are identified and removed.
- (2)
- Preliminary Data Cleaning: First, data points corresponding to duplicate timestamps are removed to ensure the uniqueness of the time series. Then, a moving average filter is applied to smooth the data, suppress noise, and remove spikes while preserving the underlying trend. Finally, time series alignment and resampling are performed. Linear interpolation is used to convert non-uniformly spaced data into a strictly regular 1 s interval sequence, providing temporal consistency and a continuous time reference for subsequent feature extraction.
- (3)
- Low-Speed Data Processing: To focus on sailing behavior, prolonged idle periods (where speed is near zero) that may occur while the harbor tug awaits its next task are processed. Intervals where the speed remains continuously below 0.5 knots for more than 60 s are defined as stationary states. The threshold of 0.5 knots is selected based on typical maneuvering speeds near berths and aligns with AIS data filtering practices in port studies [32]. The 60 s duration ensures that brief operational pauses are not incorrectly classified as idle. The speed values within these intervals are automatically set to zero and flagged accordingly.
- (4)
- Missing Data Imputation: Different strategies are applied based on the duration of missing data. For gaps longer than 120 s, the corresponding segment is filled with zeros. For gaps of 120 s or less, linear interpolation is used for imputation to maintain the continuity of the speed trend.
- (5)
- Kinematic Segment Segmentation: The continuous voyage data are partitioned into independent kinematic segments using a “zero-speed cutting method.” A complete kinematic segment is defined as a process starting from zero speed, followed by a period of sailing, and ending when the speed returns to zero. Specific steps include: identifying isolated non-zero points lasting fewer than 5 data points as invalid fragments and setting them to zero; segmenting voyages where both the starting and ending speeds are 0 knots with non-zero speeds in between into independent kinematic segments; and using zero-speed intervals lasting more than 120 s as boundaries between different segments. The 120 s threshold is chosen to distinguish between intentional operational stops and transient pauses during complex maneuvers, a criterion supported by analyses of tug operational patterns [33]. Based on the technical specifications listed in Table 2, the effective speed range for this study is set at 0–15 knots. Values outside this range are considered artifacts from signal jumps or measurement errors and are replaced with the average of the preceding and following valid speed values.
- (6)
- Abnormal Acceleration Correction: The instantaneous acceleration between consecutive data points within each kinematic segment is calculated using the central difference method. An acceleration threshold of ±0.3 m/s2 is set. This threshold is derived from the statistical distribution of acceleration in the dataset (covering 95% of observations) and is consistent with physical limits for tug acceleration during assisted operations, as discussed in prior studies [34]. Data points exceeding this threshold are identified as having abnormal acceleration and are corrected to fall within the threshold range, with cross-validation performed using the mean absolute deviation statistic. Data points with acceleration within the threshold are retained.
- (7)
- Data Smoothing and Denoising: To eliminate high-frequency noise while preserving key operational features, the ship speed data undergo further smoothing using a Savitzky–Golay filter after outlier treatment. Based on a 1 s sampling period and a 7-point sliding window, this method employs second-order polynomial fitting to reduce noise while maintaining the local extremum characteristics of acceleration changes. Its performance is superior to traditional moving average methods, and limiting the polynomial order helps avoid overfitting.
2.4. Feature Extraction and PCA Dimension Reduction
2.4.1. Feature Extraction
2.4.2. PCA Dimension Reduction
- Each principal component is a linear combination of the original features: ;
- The principal components are uncorrelated with each other: when ;
- The principal components are arranged in order of decreasing variance: .
2.5. Kinematic Segment Clustering
2.5.1. Traditional Clustering Algorithms
2.5.2. WOA-K-Means++ Clustering Algorithm
2.6. Sailing Condition Construction Based on HMM
- (1)
- State Set , where N is the number of hidden states in the model. In this study, each state corresponds to a type of sailing condition. In this study, each hidden state corresponds directly to one of the sailing condition clusters (C1–C6, see Table 7) identified by WOA-K-means++, representing six operationally meaningful modes: Idle/Fine-tuning (C1), Low-speed Harbor Maneuvering (C2), Medium-low Speed Cruising (C3), Medium-high Speed Towing (C4), High-speed Sailing (C5), and Full-speed/Emergency (C6).
- (2)
- Observation Set , where M is the number of discrete observation symbols. For continuous sailing data (e.g., speed, acceleration), modeling is usually performed via vector quantization or continuous probability density functions.
- (3)
- State Transition Probability Matrix , where , , . This element represents the probability of transitioning from state Si at time to state at time . The matrix satisfies .
- (4)
- Observation Probability Distribution . For discrete observations, , , , represents the probability of generating observation symbol while in state . For continuous observations, it is often represented by a multivariate Gaussian distribution or a mixture thereof: , where is the mixture weight, and and are the mean vector and covariance matrix, respectively.
- (5)
- Initial State Probability Distribution , where , , represents the probability that the model starts in each state at time .
- (1)
- Input preparation: Arrange the labels of all motion segments after WOA-K-means++ clustering in their original temporal order to form an observation state sequence.
- (2)
- HMM training: Utilizing the Baum–Welch algorithm, the aforementioned state sequence is used as training data to learn and obtain the matrix that represents the transition rules between states.
- (3)
- State sequence synthesis: Based on the learned transition matrix and initial state distribution , generate a new hidden state sequence with a total duration of 3600 s through probability sampling.
- (4)
- Motion clip mapping and stitching: Based on the duration of each state (corresponding to a cluster category) in the synthesized state sequence, the real-world motion clip closest to the center of the corresponding original cluster is selected.
- (5)
- Smoothing and Output: The selected motion clips are concatenated in the order of the synthetic sequence, and smoothing is applied to the connections. Finally, a continuous speed-time curve under typical navigation conditions is output.
3. Results and Discussion
3.1. Results of Data Processing and Kinematic Segment Segmentation
3.2. Results of Feature Extraction and PCA Dimensionality Reduction
3.2.1. Correlation Analysis of Feature Parameters
3.2.2. PCA Dimensionality Reduction Results
3.3. Kinematic Segment Clustering Results
3.3.1. Clustering Performance Evaluation Framework
- (1)
- Silhouette Coefficient Method
- (2)
- Elbow Method
3.3.2. WOA-K-Means++ Clustering Results
3.4. Construction Results of the Typical Sailing Condition Based on HMM
3.4.1. Construction Results of the Typical Sailing Condition
- (1)
- The operational process exhibits a strong tendency for state persistence. The idle condition (C1) and the medium-speed condition (C3), as core operational states, have self-transition probabilities as high as 0.70 and 0.55, respectively, forming the foundation for operational stability.
- (2)
- State transitions follow a progressive principle, and the acceleration and deceleration processes are asymmetric. Transitions between adjacent states dominate (e.g., C1 → C2 probability is 0.25, C2 → C3 is 0.15). However, the deceleration path back from high-speed states is more direct (e.g., the probability of decelerating from very-high-speed C6 to medium-high-speed C4 is 0.25, higher than the probability of accelerating from high-speed C5 to C6, which is 0.15), reflecting the safety-first operational norm.
- (3)
- High-speed states are transient and highly controllable. The self-transition probability for the very-high-speed condition (C6) is extremely low (0.05). When exiting this state, it primarily transitions to medium-high-speed (C4) and high-speed (C5) states (combined probability 0.50). Concurrently, the system allows it to decelerate directly to medium- or low-speed states with significant total probability (0.45), including skipping intermediate states (e.g., C6 → C3 probability 0.20, C6 → C2 probability 0.15, C6 → C1 probability 0.10), ensuring a rapid return to safe operating ranges in emergencies.
3.4.2. Multidimensional Validity Verification
4. Discussion
4.1. Summary of Key Findings
4.2. Research Prospects
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| AIS | Automatic Identification System |
| ANOVA | Analysis of Variance |
| CH | Calinski–Harabasz Index |
| DB | Davies–Bouldin Index |
| DBSCAN | Density-Based Spatial Clustering of Applications with Noise |
| D2 sampling | Double Sampling |
| EEDI | Energy Efficiency Design Index |
| EEXI | Energy Efficiency Existing Ship Index |
| FCM | Fuzzy C-Means |
| GA | Genetic Algorithm |
| HMM | Hidden Markov Models |
| KL | Kullback–Leibler |
| NEDC | New European Driving Cycle |
| PCA | Principal Component Analysis |
| PSO | Particle Swarm Optimization algorithm |
| SSE | Squared Sum of Squared Errors |
| WOA | Whale Optimization Algorithm |
| WLTP | Worldwide Harmonized Light Vehicles Test Procedure |
Appendix A. ANOVA Results for Features of Each Motion Segment Across Six Operating Conditions
| Characteristic Parameters | F-Statistic | p-Value | Significance (α = 0.05) |
|---|---|---|---|
| 450.3 | <0.001 | Highly significant | |
| 398.7 | <0.001 | Highly significant | |
| 355.2 | <0.001 | Highly significant | |
| 320.5 | <0.001 | Highly significant | |
| 285.1 | <0.001 | Highly significant | |
| 270.4 | <0.001 | Highly significant | |
| 245.6 | <0.001 | Highly significant | |
| 230.8 | <0.001 | Highly significant | |
| 215.9 | <0.001 | Highly significant | |
| 198.2 | <0.001 | Highly significant | |
| 180.5 | <0.001 | Highly significant | |
| 165.3 | <0.001 | Highly significant | |
| 150.1 | <0.001 | Highly significant |
Appendix B. WOA Key Parameter Sensitivity Analysis
| Test Scenario | Parameter Settings | Average Silhouette Coefficient | Standard Deviation |
|---|---|---|---|
| Benchmark | 0.745 | 0.012 | |
| Population size change | 0.738 | 0.015 | |
| Population size change | 0.743 | 0.011 | |
| Changes in Iteration Count | 0.732 | 0.018 | |
| Changes in Iteration Count | 0.746 | 0.010 | |
| (The benchmark is 1) | 0.741 | 0.013 | |
| 0.739 | 0.013 |
References
- Chen, B.; Chen, F.; Ciais, P.; Zhang, H.; Lü, H.; Wang, T.; Chevallier, F.; Liu, Z.; Yuan, W.; Peters, W. Challenges to achieve carbon neutrality of China by 2060: Status and perspectives. Sci. Bull. 2022, 67, 2030–2035. [Google Scholar] [CrossRef] [Scilit]
- Zhang, Y.; Liang, C.; Shi, J.; Lim, G.; Wu, Y. Optimal port microgrid scheduling incorporating onshore power supply and berth allocation under uncertainty. Appl. Energy 2022, 313, 118856. [Google Scholar] [CrossRef] [Scilit]
- Murcia González, J.C. Analysis and measurement of SOx, CO2, PM and NOx emissions in port auxiliary vessels. Environ. Monit. Assess. 2021, 193, 374. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Lebedevas, S.; Norkevičius, L.; Zhou, P. Investigation of effect on environmental performance of using LNG as fuel for engines in seaport tugboats. J. Mar. Sci. Eng. 2021, 9, 123. [Google Scholar] [CrossRef] [Scilit]
- Hwang, S.; Lee, C.; Ryu, J.; Lim, J.; Chung, S.; Park, S. Optimal EMS Design for a 4-MW-Class Hydrogen Tugboat: A Comparative Analysis Using DP-Based Performance Evaluation. Energies 2024, 17, 3146. [Google Scholar] [CrossRef] [Scilit]
- Cui, Y.; Zou, F.; Xu, H.; Chen, Z.; Gong, K. A novel optimization-based method to develop representative driving cycle in various driving conditions. Energy 2022, 247, 123455. [Google Scholar] [CrossRef] [Scilit]
- Lee, H.; Lee, K. Comparative evaluation of the effect of vehicle parameters on fuel consumption under NEDC and WLTP. Energies 2020, 13, 4245. [Google Scholar] [CrossRef] [Scilit]
- Lee, S.S. Analysis of the effects of EEDI and EEXI implementation on CO2 emissions reduction in ships. Ocean Eng. 2024, 295, 116877. [Google Scholar] [CrossRef] [Scilit]
- Fan, A.; Fan, X.; Zhang, M.; Yang, L.; Xiong, Y.; Lang, X.; Sheng, C.; He, Y. Data-driven ship typical operational conditions: A benchmark tool for assessing ship emissions. J. Clean. Prod. 2024, 483, 144252. [Google Scholar] [CrossRef] [Scilit]
- Devarapali, S.; Manske, A.; Khayamim, R.; Jacobs, E.; Li, B.; Elmi, Z.; Dulebenets, M. Electric tugboat deployment in maritime transportation: Detailed analysis of advantages and disadvantages. Marit. Bus. Rev. 2024, 9, 263–291. [Google Scholar] [CrossRef] [Scilit]
- Greig, N.C.; Hines, E.M.; Cope, S.; Liu, X. Using satellite AIS to analyze vessel speeds off the coast of Washington State, US, as a Risk Analysis for Cetacean-Vessel Collisions. Front. Mar. Sci. 2020, 7, 109. [Google Scholar] [CrossRef] [Scilit]
- Lin, B.; Wei, C.; Feng, F. A vehicle velocity prediction method with kinematic segment recognition. Appl. Sci. 2024, 14, 5030. [Google Scholar] [CrossRef] [Scilit]
- Liu, X.; Ma, J.; Zhao, X.; Du, J.; Xiong, Y. Study on driving cycle synthesis method for city buses considering random passenger load. J. Adv. Transp. 2020, 2020, 3871703. [Google Scholar] [CrossRef] [Scilit]
- Zähringer, M.; Kalt, S.; Lienkamp, M. Compressed driving cycles using Markov chains for vehicle powertrain design. World Electr. Veh. J. 2020, 11, 52. [Google Scholar] [CrossRef] [Scilit]
- Ma, R.; He, X.; Zheng, Y.; Zhou, B.; Lu, S.; Wu, Y. Real-world driving cycles and energy consumption informed by large-sized vehicle trajectory data. J. Clean. Prod. 2019, 223, 564–574. [Google Scholar] [CrossRef] [Scilit]
- Quirama, L.F.; Giraldo, M.; Huertas, J.I.; Tibaquirá, J.; Cordero Moreno, D. Main characteristic parameters to describe driving patterns and construct driving cycles. Transp. Res. Part D Transp. Environ. 2021, 97, 102959. [Google Scholar] [CrossRef] [Scilit]
- Brady, J.; O’Mahony, M. Development of a driving cycle to evaluate the energy economy of electric vehicles in urban areas. Appl. Energy 2016, 177, 165–178. [Google Scholar] [CrossRef] [Scilit]
- Bishop, J.D.K.; Axon, C.J. Using natural driving experiments and Markov chains to develop realistic driving cycles. Transp. Res. Part D Transp. Environ. 2024, 137, 104507. [Google Scholar] [CrossRef] [Scilit]
- Almachi, J.C.; Saguay, J.; Anrango, E.; Cando, E.; Reina, S. Clustering-Based Urban Driving Cycle Generation: A Data-Driven Approach for Traffic Analysis and Sustainable Mobility Applications in Ecuador. Sustainability 2025, 17, 3353. [Google Scholar] [CrossRef] [Scilit]
- Ay, M.; Özbakır, L.; Kulluk, S.; Gülmez, B.; Öztürk, G.; Özer, S. FC-Kmeans: Fixed-centered K-means algorithm. Expert Syst. Appl. 2023, 211, 118656. [Google Scholar] [CrossRef] [Scilit]
- Li, H.; Wang, J. Collaborative annealing power k-means++ clustering. Knowl.-Based Syst. 2022, 255, 109593. [Google Scholar] [CrossRef] [Scilit]
- Gao, Y.; Xu, Z.; Nie, F.; Zhang, Y.; Zhu, Q.; Shao, G. Joint Projected Fuzzy Neighborhood Preserving C-means Clustering with Local Adaptive Learning. Expert Syst. Appl. 2024, 255, 124617. [Google Scholar] [CrossRef] [Scilit]
- Cheng, D.; Zhang, C.; Li, Y.; Xia, S.; Wang, G.; Huang, J.; Zhang, S.; Xie, J. GB-DBSCAN: A fast granular-ball based DBSCAN clustering algorithm. Inf. Sci. 2024, 674, 120731. [Google Scholar] [CrossRef] [Scilit]
- Jing, Z.; Wang, T.; Zhang, S.; Wang, G. Development Method for the Driving Cycle of Electric Vehicles. Energies 2022, 15, 8715. [Google Scholar] [CrossRef] [Scilit]
- Yan, W.; Li, M.; Zhong, Y.; Qu, C.; Li, G. A novel k-MPSO clustering algorithm for the construction of typical driving cycles. IEEE Access 2020, 8, 64028–64036. [Google Scholar] [CrossRef] [Scilit]
- Zhao, L.; Li, K.; Zhao, W.; Ke, H.; Wang, Z. A sticky sampling and Markov state transition matrix based driving cycle construction method for EV. Energies 2022, 15, 1057. [Google Scholar] [CrossRef] [Scilit]
- Dabčević, Z.; Škugor, B.; Topić, J.; Deur, J. Synthesis of driving cycles based on low-sampling-rate vehicle-tracking data and Markov chain methodology. Energies 2022, 15, 4108. [Google Scholar] [CrossRef] [Scilit]
- Zhang, M.; Shi, S.; Cheng, W.; Shen, Y. Self-adaptive hyper-heuristic Markov chain evolution for generating vehicle multi-parameter driving cycles. IEEE Trans. Veh. Technol. 2020, 69, 6041–6052. [Google Scholar] [CrossRef] [Scilit]
- Yuan, M.; Kan, X.; Chi, C.; Cao, L.; Shu, H.; Fan, Y. Study of driving cycle of city tour bus based on coupled GA-K-means and HMM algorithms: A case study in Beijing. IEEE Access 2021, 9, 20331–20345. [Google Scholar] [CrossRef] [Scilit]
- Agushaka, J.O.; Ezugwu, A.E. Initialisation approaches for population-based metaheuristic algorithms: A comprehensive review. Appl. Sci. 2022, 12, 896. [Google Scholar] [CrossRef] [Scilit]
- Rana, N.; Latiff, M.S.A.; Abdulhamid, S.M.; Chiroma, H. Whale optimization algorithm: A systematic review of contemporary applications, modifications and developments. Neural Comput. Appl. 2020, 32, 16245–16277. [Google Scholar] [CrossRef] [Scilit]
- Chen, S.; Wang, F.; Wei, X.; Tan, Z.; Wang, H. Analysis of tugboat activities using AIS data for the Tianjin port. Transp. Res. Rec. 2020, 2674, 498–509. [Google Scholar] [CrossRef] [Scilit]
- Wijaya, W.M.; Nakamura, Y. Port performance indicators construction based on the AIS-generated trajectory segmentation and classification. Int. J. Data Sci. Anal. 2025, 20, 2473–2492. [Google Scholar] [CrossRef] [Scilit]
- 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] [Scilit]
- Wang, Y.; Li, K.; Zeng, X.; Gao, B.; Hong, J. Energy consumption characteristics based driving conditions construction and prediction for hybrid electric buses energy management. Energy 2022, 245, 123189. [Google Scholar] [CrossRef] [Scilit]
- Zhang, J.; Wang, Z.; Liu, P.; Zhang, Z.; Li, X.; Qu, C. Driving cycles construction for electric vehicles considering road environment: A case study in Beijing. Appl. Energy 2019, 253, 113514. [Google Scholar] [CrossRef] [Scilit]
- Yang, D.; Liu, T.; Zhang, X.; Zeng, X.; Song, D. Construction of high-precision driving cycle based on Metropolis-Hastings sampling and genetic algorithm. Transp. Res. Part D Transp. Environ. 2023, 118, 103715. [Google Scholar] [CrossRef] [Scilit]
- He, H.; Guo, J.; Zhou, N.; Sun, C.; Peng, J. Freeway driving cycle construction based on real-time traffic information and global optimal energy management for plug-in hybrid electric vehicles. Energies 2017, 10, 1796. [Google Scholar] [CrossRef] [Scilit]
- Guo, S.; Wu, K.; Zhang, G. Application of PCA-K-means++ combination model to construction of light vehicle driving conditions in intelligent traffic. J. Meas. Eng. 2020, 8, 107–121. [Google Scholar] [CrossRef] [Scilit]
- Liu, L.; Zhang, R. Multistrategy improved whale optimization algorithm and its application. Comput. Intell. Neurosci. 2022, 2022, 3418269. [Google Scholar] [CrossRef] [Scilit]
- Mirjalili, S.; Lewis, A. The whale optimization algorithm. Adv. Eng. Softw. 2016, 95, 51–67. [Google Scholar] [CrossRef] [Scilit]
- Zhang, W.; Xu, Z.; Hong, Y.; Bi, Z. Onboard photovoltaic-energy storage system integration in high-speed trains: Economic-environmental optimization via IGWO-WOA algorithm. Appl. Energy 2025, 400, 126579. [Google Scholar] [CrossRef] [Scilit]
- Ge, J.; Wang, T.; Hu, K.; Wang, J.; Wu, J.; Wang, J.; Wu, J. Optimization of power grid material warehousing and supply chain distribution path planning based on improved PSO algorithm. Sci. Rep. 2025, 15, 45132. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Min, D.; Song, Z.; Chen, H.; Wang, T.; Zhang, T. Genetic algorithm optimized neural network based fuel cell hybrid electric vehicle energy management strategy under start-stop condition. Appl. Energy 2022, 306, 118036. [Google Scholar] [CrossRef] [Scilit]
- Ma, J.; Pan, M.; Guan, W.; Zhang, Z.; Zhou, J.; Ye, N.; Qin, H.; Li, L.; Man, X. Economy Optimization by Multi-Strategy Improved Whale Optimization Algorithm Based on User Driving Cycle Construction for Hybrid Electric Vehicles. Machines 2025, 13, 158. [Google Scholar] [CrossRef] [Scilit]



















| Reference | Objective | Methodology | Dataset | Decision Variables/Features | Solution Approach | Limitations | Gap Analysis |
|---|---|---|---|---|---|---|---|
| [17] Brady et al. | Generate random traffic/driving profiles based on statistical distributions. | Monte Carlo simulation, joint speed-acceleration distribution. | Highway vehicle data. | Speed, acceleration. | Random sequence generation. | Ignores temporal correlations between states, lacks realistic dynamic logic. | Focuses on macro-statistical reproduction, does not cluster micro-trips or model sequences based on state transitions. |
| [24] Jing et al. | Construct typical driving cycle for electric vehicles. | Wavelet denoising, hierarchical clustering, segment selection and splicing. | Real-world EV data. | Microscopic trip feature parameters. | Hierarchical clustering and representative segment selection. | Clustering algorithm (hierarchical) may be less efficient; final cycle splicing does not consider transition probabilities between segments. | Uses clustering but does not optimize initial center selection; profile synthesis is simple statistical selection, not using temporal models (e.g., Markov chain) to simulate state transitions. |
| [25] Yan et al. | Construct local typical driving cycle. | Improved PSO-optimized K-means, Principal Component Analysis. | Real driving data from Jinan City. | Multi-dimensional driving features. | PSO-K-means clustering, PCA for dimensionality reduction. | PSO algorithm may suffer from premature convergence; does not explicitly use clustering results for temporal sequence generation. | Employs a metaheuristic to optimize clustering but does not integrate the optimized clusters with a model capable of capturing temporal dynamics (e.g., HMM) for profile synthesis. |
| [29] Yuan et al. | Construct driving cycle for urban tour buses. | GA-K-means clustering combined with HMM. | Beijing tour bus data. | Kinematic segment features. | GA-optimized clustering, HMM for sequence modeling and generation. | GA has complex parameter tuning and potentially slower convergence; no specific optimization for clustering initialization in high-dimensional, non-convex feature spaces. | Proposes a clustering + HMM framework, but the metaheuristic used for optimizing cluster centers (GA) may not be the optimal choice in terms of global search capability and convergence speed. |
| This work | Construct typical sailing condition for harbor tugs. | WOA-K-means++ clustering combined with HMM. | AIS (Automatic Identification System) and voyage data of tugs from Port of Dalian. | 13-dimensional kinematic and time proportion features. | PCA for dimensionality reduction, WOA for global optimization of cluster centers, HMM for learning state transitions and synthesizing sequences. | Data from a single port and ship type; parameters and proportions require calibration for new environments. | 1. Introduces WOA to optimize initial centers for K-means++, enhancing clustering stability and accuracy for high-dimensional non-convex data. 2. Explicitly uses the optimized cluster states as hidden states of an HMM, utilizing its transition matrix to synthesize a typical profile with both statistical representativeness and temporal rationality. |
| Indicator | Parameter |
|---|---|
| Length Overall (LOA) | 35 m |
| Beam | 12 m |
| Draft | 5.3 m |
| Builder | Jiangsu Zhenjiang Shipyard (Group) Co., Ltd., Zhenjiang, China |
| Ship Type | Azimuth Stern Drive (ASD) Tug |
| Owner | Dalian Port (Group) Co., Ltd., Dalian, China |
| Main Engine Power | 7200 horsepower |
| Typical Sailing Condition Definitions | |
| Low-Speed Harbor Berthing/Unberthing | Ship speed: 0–2 knots |
| Slow-Speed Harbor/Coastal Transit | Ship speed: 2–4 knots |
| Conventional Medium-Low Speed Cruising | Ship speed: 4–8 knots |
| Medium-Speed Towing | Ship speed: 8–10 knots |
| High-Speed Sailing | Ship speed: 10–13 knots |
| Full-Speed/Emergency Sailing | Ship speed: 13–15 knots |
| Processing Type | Data Volume (10k Records) | Proportion (%) | Processing Method |
|---|---|---|---|
| Original Vessel Speed Data | 307.5 | 100.0 | - |
| Missing Data | 8.03 | 2.61 | Interpolation/Removal |
| Speed Anomalies | 3.66 | 1.19 | Removal |
| Acceleration Anomalies | 5.04 | 1.64 | Correction |
| Extended Stops | 10.52 | 3.42 | Flagging |
| Total Valid Data | 280.25 | 91.14 | - |
| Primitive Features | PC1 | PC2 | PC3 |
|---|---|---|---|
| 0.912 | −0.128 | 0.065 | |
| 0.886 | −0.205 | 0.098 | |
| 0.793 | 0.302 | −0.114 | |
| 0.145 | 0.901 | 0.213 | |
| 0.208 | 0.872 | −0.156 | |
| 0.327 | 0.786 | 0.417 | |
| 0.286 | 0.754 | −0.382 | |
| −0.104 | 0.668 | 0.605 | |
| 0.098 | 0.592 | −0.587 | |
| 0.874 | 0.235 | 0.108 | |
| −0.217 | 0.903 | 0.187 | |
| 0.185 | 0.815 | −0.224 | |
| 0.765 | −0.312 | 0.411 |
| Number of Clusters K | SEE | Mean Contour Coefficient Values | CH Index | DB Index |
|---|---|---|---|---|
| 2 | 423.4 | 0.458 | 211.51 | 1.142 |
| 3 | 310.5 | 0.517 | 233.56 | 1.013 |
| 4 | 246.6 | 0.579 | 252.88 | 0.879 |
| 5 | 205.8 | 0.611 | 285.76 | 0.793 |
| 6 | 154.5 | 0.745 | 312.56 | 0.698 |
| 7 | 169.4 | 0.725 | 293.24 | 0.773 |
| 8 | 165.6 | 0.669 | 272.37 | 0.850 |
| 9 | 164.2 | 0.584 | 251.00 | 0.927 |
| 10 | 287.4 | 0.581 | 229.14 | 1.007 |
| Metric | K-Means | K-Means++ | WOA-K-Means++ |
|---|---|---|---|
| Average Intra-Cluster Distance | 3.56 | 3.12 | 2.87 |
| Average Silhouette Coefficient | 0.635 | 0.692 | 0.745 |
| Convergence Stability (Std. Dev.) | 0.342 | 0.215 | 0.089 |
| Clustering Stability | 0.529 | 0.731 | 0.904 |
| CH Index | 275.43 | 289.67 | 312.56 |
| DB Index | 0.812 | 0.756 | 0.698 |
| SEE | 254.32 | 189.67 | 154.5 |
| Iterations to Convergence | 28 | 32 | 47 |
| Average Runtime (second) | 4.32 | 5.16 | 7.85 |
| Feature Parameters | C1 | C2 | C3 | C4 | C5 | C6 |
|---|---|---|---|---|---|---|
| /kn | 0.8 | 3.2 | 5.6 | 7.9 | 10.3 | 12.5 |
| /kn | 2.5 | 5.8 | 8.9 | 11.6 | 13.8 | 15.0 |
| /kn | 0.6 | 1.2 | 1.8 | 2.3 | 2.7 | 3.1 |
| /m∙s−2 | 0.12 | 0.25 | 0.38 | 0.42 | 0.45 | 0.48 |
| /m∙s−2 | 0.15 | 0.28 | 0.35 | 0.39 | 0.42 | 0.46 |
| /m∙s−2 | 0.05 | 0.12 | 0.18 | 0.22 | 0.25 | 0.28 |
| /m∙s−2 | 0.06 | 0.14 | 0.20 | 0.24 | 0.27 | 0.30 |
| /m∙s−2 | 0.03 | 0.08 | 0.12 | 0.15 | 0.18 | 0.21 |
| /m∙s−2 | 0.04 | 0.09 | 0.13 | 0.16 | 0.19 | 0.22 |
| /% | 15.2 | 28.6 | 35.8 | 42.3 | 46.5 | 51.2 |
| /% | 20.3 | 25.8 | 28.9 | 30.5 | 31.2 | 32.6 |
| /% | 22.7 | 24.3 | 26.8 | 28.9 | 29.5 | 30.1 |
| /% | 41.8 | 21.3 | 8.5 | 3.3 | 1.8 | 0.1 |
| Percentage/% | 18.6 | 25.3 | 22.8 | 16.5 | 12.1 | 4.7 |
| Feature Category | Feature Name | Typical Sailing Condition | Original Sailing Condition | Absolute Error |
|---|---|---|---|---|
| Speed Features | 5.25 kn | 5.12 kn | 0.13 | |
| 14.16 kn | 14.48 kn | −0.32 | ||
| 0.373 kn | 0.361 m/s | 0.012 | ||
| Acceleration Features | 0.27 m/s2 | 0.28 m/s2 | −0.01 | |
| 0.28 m/s2 | 0.27 m/s2 | 0.01 | ||
| 0.148 m/s2 | 0.153 m/s2 | −0.005 | ||
| 0.162 m/s2 | 0.157 m/s2 | 0.005 | ||
| 0.079 m/s2 | 0.081 m/s2 | −0.002 | ||
| 0.088 m/s2 | 0.090 m/s2 | −0.002 | ||
| Time Proportion Features | 34.5% | 35.2% | −0.7% | |
| 22.5% | 21.8% | 0.7% | ||
| 20.2% | 20.8% | −0.6% | ||
| 21.7% | 21.1% | 0.6% |
| Evaluation Dimension | Core Metric | Metric Value | Dimension Score (S) | Weight (w) | Weighted Score |
|---|---|---|---|---|---|
| Statistical Feature Fidelity | Avg. Relative Error of Multiple Statistics | 2.88% | 97.12 | 0.4 | 38.85 |
| Distribution Similarity | KL Divergence | 0.023 | 95.4 | 0.3 | 28.62 |
| Temporal Property | Joint Dist. Corr. Coef. | 0.942 | 94.2 | 0.3 | 28.26 |
| Total Comprehensive Score | - | - | - | 95.73 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 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.
Share and Cite
Li, Z.; Long, W.; Tian, H. Construction of Typical Sailing Conditions for Harbor Tugs Based on WOA-K-Means++ Clustering and Hidden Markov Models. J. Mar. Sci. Eng. 2026, 14, 270. https://doi.org/10.3390/jmse14030270
Li Z, Long W, Tian H. Construction of Typical Sailing Conditions for Harbor Tugs Based on WOA-K-Means++ Clustering and Hidden Markov Models. Journal of Marine Science and Engineering. 2026; 14(3):270. https://doi.org/10.3390/jmse14030270
Chicago/Turabian StyleLi, Zhao, Wuqiang Long, and Hua Tian. 2026. "Construction of Typical Sailing Conditions for Harbor Tugs Based on WOA-K-Means++ Clustering and Hidden Markov Models" Journal of Marine Science and Engineering 14, no. 3: 270. https://doi.org/10.3390/jmse14030270
APA StyleLi, Z., Long, W., & Tian, H. (2026). Construction of Typical Sailing Conditions for Harbor Tugs Based on WOA-K-Means++ Clustering and Hidden Markov Models. Journal of Marine Science and Engineering, 14(3), 270. https://doi.org/10.3390/jmse14030270

