NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

PWPNet: A Deep Learning Framework for Real-Time Prediction of Significant Wave Height Distribution in a Port

Cui Xie, Xiudong Liu, Tenghao Man, Tianbao Xie, Junyu Dong, Xiaozhou Ma, Yang Zhao, Guohai DongJournal of Marine Science and Engineering 2022

TL;DR

This paper introduces PWPNet, a novel two-stage deep learning framework for real-time prediction of significant wave height (SWH) distribution within ports. PWPNet effectively combines historical port wave data with external wave and wind field information to achieve superior medium- to long-term prediction accuracy compared to existing methods.

What Problem Does This Paper Address?

Accurate prediction of wave conditions within ports is crucial for maritime safety, port operations, and coastal engineering. Traditional numerical models, while robust, are computationally intensive and struggle to provide the real-time predictions needed for dynamic port management. Existing machine learning approaches often focus on predicting SWH at specific buoy locations, neglecting the spatial distribution across an entire port. This paper addresses the need for a computationally efficient, accurate, and spatially comprehensive method for real-time in-port SWH prediction, particularly for longer forecast horizons.

Methods

PWPNet is a cascaded deep learning framework consisting of two main components:

  • PWP-out: This module predicts future port-entrance wave parameters (SWH, peak period, mean direction, and directional spectrum width). It employs a novel three-branch architecture:
  • LSTM Branch: Captures temporal dependencies in historical port-entrance wave data.
  • WWFE (Wave and Wind field Feature Extraction) Branch: Utilizes a residual network with spatial and channel attention to extract spatiotemporal features from outside-port 2D wave and wind field data.
  • Multi-scale Time Encoding Branch: Encodes temporal information (month, hour) to capture periodic characteristics of waves and wind. The outputs of these branches are concatenated and fed into stacked fully connected layers for prediction.

  • PWP-in: This module estimates the in-port SWH distribution. It takes the predicted port-entrance wave parameters from PWP-out as input and uses a customized Artificial Neural Network (ANN). The ANN is trained to learn the complex, non-linear relationship between port-entrance conditions and the resulting SWH distribution within the port, outputting a spatial image of the SWH.

Datasets

  • Outside-port 2D wave and wind field dataset: This dataset, used for training and testing PWP-out, was derived from the ERA5 hourly reanalysis dataset (2010-2020) provided by the European Centre for Medium-Range Weather Forecasts (ECMWF). It includes data with a resolution of 0.5°×0.5° and a 1-hour time interval.
  • In-port SWH dataset: This dataset, used for training and testing PWP-in, was generated using the SWASH (Simulating WAves till Shore) numerical model. The SWASH model was calibrated against buoy-observed SWH data (ADCP1 and ADCP2) from Hambantota Port. Port-entrance wave parameters from the ERA5 dataset were used as inputs to SWASH to simulate in-port SWH distributions. A total of 384 samples were generated.

Key Insights and Ideas

  • Leveraging External Data: The paper highlights the critical importance of incorporating external wave and wind field data (beyond just historical port data) for accurate medium- to long-term wave predictions. The WWFE module's ability to extract spatiotemporal features from this external data is a key innovation.
  • Multi-Branch Architecture for PWP-out: The three-branch design of PWP-out effectively addresses different aspects of wave prediction: temporal dynamics (LSTM), spatial influences (WWFE), and cyclical patterns (time encoding). This modular approach allows for a more comprehensive understanding of the factors influencing port-entrance waves.
  • Cascaded Prediction for Spatial Distribution: The two-stage approach (predicting port-entrance parameters first, then in-port distribution) is a pragmatic way to tackle the complexity of in-port wave dynamics. It breaks down a challenging problem into more manageable sub-problems.
  • Importance of Time Encoding: The multi-scale time encoding proves effective in capturing the periodic nature of wave and wind phenomena, which is crucial for longer-term predictions influenced by seasonal and daily weather patterns.

Key Results

  • PWP-out Performance: PWP-out significantly outperforms mainstream machine learning models (LSTM, GRU, BPNN, SVR, ELM, RF) in medium-term (25-48 h), med-long-term (49-72 h), and long-term (73-96 h) predictions of port-entrance wave parameters. While it is slightly less accurate in short-term predictions (1-24 h), its advantage grows with the forecast horizon.
  • PWPNet Performance: The complete PWPNet framework demonstrates superior performance compared to other two-stage cascaded models (e.g., LSTM+PWP-in, GRU+PWP-in) for medium- to long-term predictions of in-port SWH distribution, achieving better SSIM and PSNR scores.
  • Real-time Capability: PWPNet achieves real-time SWH prediction in a port with an average time cost of 0.0369 seconds per prediction, making it suitable for operational use.

Limitations and Future Work

  • Short-term Prediction Accuracy: While PWP-out excels in longer-term predictions, its accuracy in short-term forecasting is slightly inferior to models that solely use historical port data. The authors suggest integrating Empirical Mode Decomposition (EMD) as a preprocessing step to improve short-term results.
  • PWP-in Improvement: The PWP-in module, while achieving good SSIM and PSNR, could be further improved. The authors propose exploring Generative Adversarial Networks (GANs) for enhanced in-port SWH estimation.
  • Data Dependency: PWPNet relies on external wave and wind field data. For real-time prediction, it can be combined with numerical models providing historical data. Future work includes integrating forecasted outside-port wind field data from atmospheric models (like ECMWF) to further enhance predictions.
  • Error Accumulation: The two-stage nature of PWPNet can lead to error accumulation. The authors suggest using observed SWH data from buoys (like ADCP1) as an additional input to mitigate this.
  • Data Availability: The ERA5 dataset, while comprehensive, has a daily update latency of about 5 days, meaning it cannot be directly used for real-time prediction of PWP-out. It is primarily used for training and testing.

Summary updated

Abstract

In this paper, a 2-stage cascaded deep learning framework, Port Wave Prediction Network (PWPNet), is proposed for real-time prediction of significant wave height (SWH) distribution in a port. The PWP-out model of the first stage, predicting port-entrance wave parameters, utilizes three branches, the first branch using a Long Short Term Memory (LSTM) module to learn the temporal dependencies of time sequences of port-entrance wave parameters, the second branch using Wave and Wind field Feature Extraction (WWFE) modules, composed of a residual network with spatial and channel attention, to capture spatiotemporal characteristics of outside-port 2D wave and wind field data, the third branch using multi-scale time encoding to capture the periodic characteristics of waves and wind. The PWP-in model of the second stage, estimating the in-port SWH distribution, uses port-entrance wave parameters based on a customized Artificial Neural Network (ANN) and takes PWP-out’s output as its input. A comparison of the performance of PWP-out and mainstream machine learning models including LSTM, GRU, BPNN, SVR, ELM, and RF at Hambantota Port shows that PWP-out outperforms all other models regarding medium-term (25–48 h), med–long-term (49–72 h), and long-term (73–96 h) predictions, and ablation experiments proved the effectiveness of the three branches. Furthermore, the performance comparison of our PWPNet and other 2-stage models of LSTM, GRU, BPNN, SVR, ELM, and RF cascaded with PWP-in shows that PWPNet outperforms those cascaded models for medium-term to long-term predictions of SWH distribution in a port.
BibTeX
@article{xie2022pwpnet,
  author = {Cui Xie and Xiudong Liu and Tenghao Man and Tianbao Xie and Junyu Dong and Xiaozhou Ma and Yang Zhao and Guohai Dong},
  title = {{PWPNet: A Deep Learning Framework for Real-Time Prediction of Significant Wave Height Distribution in a Port}},
  journal = {Journal of Marine Science and Engineering},
  year = {2022},
  doi = {10.3390/jmse10101375},
}
Figure