Skip to main content
Advertisement
Browse Subject Areas
?

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

Surrogate modeling based on computational fluid dynamics for predicting the capsizing moment in a coupled shiplift system

  • Tong Tang ,

    Contributed equally to this work with: Tong Tang, Jianbao Yang

    Roles Conceptualization, Data curation, Formal analysis, Methodology, Writing – original draft

    Affiliation Institute of Engineering and Technology, Hubei University of Science and Technology, Xianning, People's Republic of China

  • Jianbao Yang ,

    Contributed equally to this work with: Tong Tang, Jianbao Yang

    Roles Investigation, Software, Validation, Writing – original draft

    Affiliation Institute of Engineering and Technology, Hubei University of Science and Technology, Xianning, People's Republic of China

  • Zikang Hu,

    Roles Formal analysis, Visualization

    Affiliation Institute of Engineering and Technology, Hubei University of Science and Technology, Xianning, People's Republic of China

  • Junzhe You,

    Roles Software

    Affiliation Institute of Engineering and Technology, Hubei University of Science and Technology, Xianning, People's Republic of China

  • Yang Zhang ,

    Roles Funding acquisition, Project administration, Supervision, Writing – review & editing

    zhangyang619921@qq.com (YZ); 1677381920@qq.com (DS)

    Affiliation Institute of Engineering and Technology, Hubei University of Science and Technology, Xianning, People's Republic of China

  • Duanwei Shi

    Roles Supervision, Writing – review & editing

    zhangyang619921@qq.com (YZ); 1677381920@qq.com (DS)

    Affiliation College of International Business and Economics, Wuhan Textile University, Wuhan, China

Abstract

Accurate prediction of the capsizing moment in shiplift systems remains a significant challenge, primarily due to the strong coupled interactions among the chamber, water body, and ship. Conventional three-dimensional (3D) numerical simulations are associated with high computational costs, while commonly used two-dimensional (2D) simplified models neglect ship effects, potentially leading to underestimation of the actual capsizing moment. In this study, a computational fluid dynamics (CFD)-informed surrogate model is developed for one-step-ahead prediction of capsizing moment in a coupled chamber-water-ship shiplift system. First, 3D models covering 19 scales are established, and the corresponding capsizing moments are obtained via CFD simulations. The CFD methodology is further validated against published smoothed particle hydrodynamics (SPH) results, with a maximum deviation of 4.1%, demonstrating the capability of the numerical framework to capture the relevant hydrodynamic responses. Furthermore, under El-Centro excitation, the peak capsizing moments predicted by the 3D model are substantially higher than those obtained using the conventional 2D simplified model for both the 3000 t light-load and 1350 t full-load conditions, indicating that 2D simplification may underestimate the capsizing moment in the examined cases and that three-dimensional effects should be considered when evaluating extreme responses. Based on the numerically generated CFD dataset, a hybrid surrogate framework is constructed, integrating convolutional neural networks, bidirectional long short-term memory networks, and random forests. To enhance the predictive robustness of the framework, multi-window isolation forest preprocessing, CNN-based feature enhancement, and parameter tuning based on the Mapping Mountain Gazelle Optimizer are employed. Comparisons with seven benchmark models demonstrate that the proposed model achieves the better overall predictive performance, with a mean absolute error of 0.0761 ± 0.0024, a root mean squared error of 0.1408 ± 0.0128, and a coefficient of determination of 0.9466 ± 0.0065 on the test set. Additional engineering cases indicate good generalization under ship-presence operating conditions, with peak prediction deviations below 4.8%. These results suggest that, when current and recent response states are available from monitoring or state-estimation systems, the proposed framework may support short-horizon capsizing-moment estimation.

Introduction

Shiplifts are critical navigation facilities used to overcome water-level differences and to ensure safe and efficient ship passage in inland waterways, as illustrated in Fig 1. During operation, the chamber, water body, and ship interact as a strongly nonlinear coupled system, which makes accurate evaluation of the capsizing moment particularly challenging. High-fidelity three-dimensional (3D) numerical simulations can provide reliable predictions, but they are computationally expensive and therefore unsuitable for rapid engineering assessment. By contrast, most available analytical or empirical approaches are based on two-dimensional (2D) simplifications that neglect ship effects and may consequently underestimate the actual capsizing moment. An efficient and sufficiently accurate predictive framework is therefore needed to support rapid capsizing-moment assessment and short-horizon safety evaluation of chamber-water-ship coupled shiplift systems.

thumbnail
Fig 1. Schematic diagram of the shiplift structure.

https://doi.org/10.1371/journal.pone.0358034.g001

As a critical navigation infrastructure, the operational safety of a shiplift is fundamentally governed by the coupled dynamic behavior of the chamber-water-ship system within its ship chamber. Existing research has predominantly focused on engineering design and operational aspects. Several scholars have employed numerical simulations and theoretical analyses to investigate the draft subsidence law during ships entry and exit [1,2], the water-air-solid coupling behavior at the chamber bottom [3], and the associated hydrodynamic responses [4]. Other studies have examined the influence of structural parameter variations [5], longitudinal seismic excitations [6], and flood discharge conditions [7] on the dynamic characteristics of shiplifts, thereby providing a theoretical foundation for structural optimization and operational control [8]. In recent years, neural networks have demonstrated remarkable performance in marine and ocean engineering. Convolutional Neural Networks (CNNs) are now widely used in frequency domain analysis [9]. Meanwhile, Long Short-Term Memory (LSTM) networks, leveraging their superior temporal modeling capability, have proven highly effective in predicting ship whipping responses [10] and enabling millisecond-level real-time motion monitoring [11]. Building upon these advances, the development of CNN-LSTM (C-LSTM) spatiotemporal hybrid models has opened new avenues for predicting ship motions over short horizons under varying sea conditions [12,13]. Furthermore, attention mechanisms have enhanced models’ ability to focus on crucial information, thereby enabling real-time estimation of three-dimensional (3D) sloshing forces [14]. Building on this foundation, the CNN-Bidirectional Long Short-Term Memory (BiLSTM)-Attention (CNN-BiLSTM-Attention) model improves the efficiency of utilizing forward and backward temporal information, demonstrating superior performance in tasks such as ship heave prediction [15], analysis of tank pitch characteristics [16], and engine room ignition timing forecasting [17,18].In summary, although notable progress has been made in shiplift and ship motion research both domestically and internationally, existing studies remain largely confined to open-water ships or isolated physical scenarios. Theoretical investigations and real-time predictive methodologies specifically targeting the coupled chamber–water–ship system are still relatively underexplored.

While direct investigations into the coupled dynamic characteristics and predictive methodologies for the water–ship system within a shiplift chamber remain relatively scarce, a substantial body of research has accumulated in adjacent domains, particularly ship motion and sloshing dynamics in liquid containers. In the field of ship motion, researchers have employed Artificial Neural Networks (ANNs) for the rapid prediction of wave-induced ship loads [19] and ship speed [20]. By comparing various Recurrent Neural Network (RNN) architectures, approaches for predicting the torque of moving ships have been refined [21,22]. Systematic analyses of roll motion characteristics have further contributed to theoretical guidance for navigation safety [23]. Moreover, Physics-Informed Neural Networks (PINNs) [24,25] have demonstrated the ability to enhance predictive accuracy while preserving the underlying consistency of ship dynamics. Multilayer Perceptrons (MLPs) [26] and Multi-Fidelity Deep Neural Network (MFDNN) frameworks [27] have introduced novel perspectives for hydrodynamic performance evaluation in ship-form optimization. Cascaded CNNs have enabled end-to-end flow field analysis in water-entry experiments [28], thereby extending the applicability of data-driven methods. In the context of liquid sloshing in containers, both Residual Networks (ResNets) [29] and ANNs [30] have demonstrated strong performance in predicting sloshing loads. Hybrid approaches combining ANNs with traditional smoothed particle hydrodynamics (SPH) have yielded effective predictions of sloshing behavior in rectangular tanks [31,32]. Researchers have also applied ANN models grounded in finite element methods to estimate the dynamic response of water tanks [33] and the free-surface displacement in liquid tanks [34]. Notably, ANN-based models have achieved prediction errors within 10% for sloshing in oil–gas media [35], while Dendritic Artificial Neural Networks (D-ANNs) have proven effective for analyzing measurement data from LNG-fueled ships [36]. In addition, conventional methods such as Unsteady Reynolds-Averaged Navier–Stokes (URANS) simulations [37], potential-flow–computational fluid dynamics (CFD) coupling [38], SPH [39], and physical model experiments [40] continue to provide essential benchmarks for research on tank sloshing and ship motion. In summary, although a mature body of numerical methods and algorithmic frameworks has emerged in the fields of ship motion and liquid sloshing, the corresponding research objects differ substantially from the shiplift chamber system in terms of structural configuration, geometric scale, and operational conditions. Consequently, whether existing neural network architectures and training strategies are directly applicable to the dynamic analysis of shiplift systems remains an open question requiring further investigation.

To address these challenges, in this study, a CFD-informed surrogate model is developed for one-step-ahead prediction of capsizing moment in a chamber-water-ship coupled shiplift system. Nineteen in-service shiplifts with different scales are selected as representative cases. First, 3D chamber–water–ship models are established, and the corresponding capsizing moments are obtained through CFD simulations. The CFD methodology is further validated against published SPH simulations to evaluate its capability in reproducing the hydrodynamic response characteristics. A 19-case CFD database is subsequently constructed using consistent physical assumptions, boundary conditions, and solver settings, providing a unified numerical basis for the development and evaluation of the proposed surrogate model. Using this numerically generated CFD database, a hybrid surrogate model integrating a CNN, a BiLSTM, and a random forest (RF) is developed for efficient state-conditioned one-step-ahead prediction of capsizing moments. The CNN-BiLSTM branch is employed to extract nonlinear temporal and spatial feature dependencies from the constructed dynamic feature representations, whereas the RF branch provides complementary nonlinear regression capability through ensemble learning. The predictive performance, robustness, and applicability of the proposed framework are systematically evaluated through benchmark comparisons, ablation studies, and independent engineering-case validations. When current and recent system states are available from monitoring or state-estimation systems, the developed surrogate model can provide rapid short-horizon capsizing-moment estimates, offering a computationally efficient tool for operational assessment of chamber-water-ship coupled shiplift systems.

Models and methods

Physical model

During shiplift operations, the most adverse condition occurs when the ship chamber is situated at the uppermost section of the tower column in a docked and locked state, especially under seismic excitation [41]. Under such conditions, the tower column amplifies the seismic excitation and transmits it to the ship chamber via the guiding mechanism, thereby influencing the dynamic characteristics of the water body and the ship inside the chamber. In light of this, this study takes nineteen in-service shiplifts worldwide as the research objects (see Table 1), to investigate the capsizing moment characteristics of the chamber-water-ship system under seismic excitation, considering different sizes and ship tonnages. The ship drafts listed in Table 1 do not necessarily represent the maximum-capacity full-load condition for all shiplifts. Full-load ship parameters were adopted where such information was explicitly available in the original engineering sources; otherwise, the reported design or representative operating drafts were used. For physical model construction, the ship chamber was simplified as a rectangular shape [1], and the ship was equivalently represented based on typical cargo ships [42]. Fig 2. illustrates the overall model, where L1, B1, and H1 respectively represent the length, width, and height of the ship chamber, and H represents the liquid level height; L2, B2, and H2 respectively represent the length, width, and draft of the ship.

thumbnail
Table 1. Statistics of nineteen large and medium-sized in-service shiplifts worldwide.

https://doi.org/10.1371/journal.pone.0358034.t001

thumbnail
Fig 2. Axonometric and 2D cross-sectional views of the shiplift.

https://doi.org/10.1371/journal.pone.0358034.g002

Mathematical model

To investigate the sloshing characteristics of the chamber-water-ship system, 3D numerical simulations were conducted using Ansys Fluent 2022 R1. Among these, the continuity equation takes the following form [43]:

(1)

where =(u, v, w) is the velocity vector, with u, v, w representing its components along the x, y, z spatial coordinates,respectively. The Navier-Stokes equations are presented as follows [44]:

(2)

where p is the pressure field, ρ is the fluid density, t is time, v is the kinematic viscosity, and=(fx, fy, fz) is the body force vector, with fx, fy, fz representing the external force components along the x, y, z directions, respectively.

The equations of motion for a ship are as follows [45]. For translation motion:

(3)

where m is the ship mass, =(rx, ry, rz) is the position vector of the center of mass, with rx, ry, rz denoting its components along the x, y, z axes; =(Fx, Fy, Fz) is the total external force vector, with Fx, Fy, Fz represent the force components acting on the ship in the x, y, z directions. For rotation motion:

(4)

where is the moment of inertia tensor, =(ωx, ωy, ωz) is the angular velocity vector, with ωx, ωy, ωz corresponding to the angular velocity components about the x, y, z axes; =(Mx, My, Mz) denotes the total external torque vector, where Mx, My, Mz are the external torque components acting on the ship about the x, y, z axes.

Simulation settings for coupled motion of chamber-water-ship

This study employs a transient solver to simulate the coupled motion of the chamber-water-ship system. The default environment is set to atmospheric pressure, and the dynamic viscosity of water is specified as 0.001 kg/(m·s). Time discretization relies on an implicit scheme, complemented by implicit body force updating to enhance convergence and stability. A time step of 0.001 s is applied, with an iterative residual convergence criterion of 10−5 [46]. Considering the transient characteristics of the fluid, the SST k − ω model is employed to characterize the turbulent behavior of the fluid [47], and the Volume of Fluid (VOF) method [48] is utilized to track the gas-liquid interface evolution. The computational domain uses a circular-polygonal overlapping grid structure combined with dynamic grid technology to accurately handle moving boundaries variations. Both the ship and the ship chamber are modeled as rigid bodies, with the heat exchange effect neglected. The 19-case CFD database used for model development was generated exclusively under the El-Centro seismic record scaled to a PGA of 0.1g. The Taft and Koyna records shown in Fig 3 were not included in model training, validation, or internal testing; they were reserved for external engineering-case validation. In the external validation, the Taft and Koyna records were scaled to PGAs of 0.05g and 0.2g, respectively. For consistency with practical engineering requirements, the more hazardous 0 ~ 10s data segment is selected for calculations. The ship’s motion is defined via a User-Defined Function (UDF), and the fluid loads on its surface are transmitted in real time to a six-degree-of-freedom solver to achieve the positioning of rigid body motion. To prevent grid distortion, rezoning and smoothing are applied to the water-ship interface region. Under initial conditions, the ship rests statically in the water body, and neither has any initial velocity.

thumbnail
Fig 3. Acceleration time histories of the seismic records considered in this study: (a) Taft and (c) Koyna, used only for external validation, and (b) El-Centro, used to generate the 19-case model-development dataset.

https://doi.org/10.1371/journal.pone.0358034.g003

Numerical accuracy verification

Grid independence analysis.

Taking the ship chambers of the Three Gorges, Hindenburg, and Krasnoyarsk shiplifts as examples, El-Centro seismic waves were applied to each chamber separately, ensuring identical excitation magnitude and direction. Subsequently, the four largest positive local maxima of the longitudinal capsizing moment Mx at the center of the shiplift chamber bottom were extracted from the CFD-generated time histories. These peak values were ranked according to their magnitudes, corresponding to the largest, second-largest, third-largest, and fourth-largest positive local maxima, and their average value was adopted as the comparison indicator. The results are shown in Fig 4.

thumbnail
Fig 4. Grid independence analysis based on the averaged peak longitudinal capsizing moments for three representative shiplift cases.

(a) Three Gorges, (b) Hindenburg, and (c) Krasnoyarsk.

https://doi.org/10.1371/journal.pone.0358034.g004

As illustrated in Fig 4, with grid refinement, the discrepancies among the calculated average values of the selected longitudinal capsizing-moment peaks gradually decrease and tend to stabilize. In particular, when the grid size decreases from 0.24m to 0.18m, the relative errors of the averaged peak values for all three cases remain below 1%. It should be noted that 0.24m represents the maximum grid size adopted among the 19 models rather than a fixed grid size uniformly applied to all cases. For smaller shiplift chambers, finer grids (down to 0.1m) were employed to ensure sufficient spatial resolution. The total number of grid cells for all 19 models was maintained within approximately 1.1–1.5 million. Therefore, considering both computational efficiency and numerical accuracy, a maximum grid size of 0.24m was determined as the upper limit of mesh resolution for subsequent simulations.

Time step independence analysis.

To investigate whether the selected temporal resolution is sufficient to accurately capture the transient characteristics of the capsizing moment, a time-step sensitivity analysis was performed. The Three Gorges, Hindenburg, and Krasnoyarsk shiplifts were selected as representative cases, and identical El-Centro seismic excitation was applied under the same boundary conditions. Four time steps, namely 0.1s, 0.01s, 0.001s, and 0.0001s, were examined. For each case, the longitudinal capsizing moment Mx at the center of the chamber bottom was extracted from the transient CFD simulations, and the average value of the four largest positive local maxima was adopted as the characteristic indicator. The comparison results are presented in Fig 5.

thumbnail
Fig 5. Time-step independence analysis based on the averaged peak longitudinal capsizing moments for three representative shiplift cases.

(a) Three Gorges, (b) Hindenburg, and (c) Krasnoyarsk.

https://doi.org/10.1371/journal.pone.0358034.g005

As shown in Fig 5, relatively large time steps result in noticeable variations in the calculated peak capsizing moments, indicating that insufficient temporal resolution may affect the accuracy of transient load evaluation. With further refinement of the time step, the calculated peak values gradually converge. When the time step was reduced from 0.001s to 0.0001s, the relative differences in the averaged peak moments for all three cases remained below 2%, indicating that further temporal refinement produced negligible changes. Therefore, a time step of 0.001s was selected for subsequent CFD simulations considering both transient response accuracy and computational efficiency.

Algorithm theoretical basis

In this study, the input feature vector Xt consists of ten physically meaningful features. Specifically, the input at prediction instant t is defined as: Xt=[L2/L1, B2/B1, H2/H, H/H1, a(t-1), a(t), F(t-1), F(t), M(t-1), M(t)]. The first four components represent the geometric characteristics of the ship chamber configuration, including the ratios of ship length to chamber length (L2/L1), ship width to chamber width (B2/B1), ship draft to liquid height (H2/H), and liquid height to chamber height (H/H1). The remaining six components describe the available historical dynamic responses, including acceleration (a(t-1), a(t)), capsizing force (F(t-1), F(t)), and capsizing moment (M(t-1), M(t)) at the current and previous sampling instants. The prediction target is the capsizing moment at the next sampling instant M(t+1). Therefore, the proposed model performs one-step-ahead prediction, where only the information available at or before the current instant t is used to estimate the response at t + 1. The prediction horizon corresponds to one sampling interval ∆t, rather than a long-term multi-step forecasting process. In the machine-learning dataset, the sampling interval is ∆t = 0.02 s; therefore, M(t+1) represents the capsizing moment 0.02 s after the current prediction instant. During practical applications, the prediction process can be continuously updated as new measurements become available, enabling short-horizon capsizing moment monitoring. Although the input vector contains dynamic responses from two adjacent sampling instants (t − 1 and t), it is organized as an ordered feature representation rather than a long temporal sequence. Therefore, the CNN module focuses on extracting nonlinear correlations among physically related variables within the feature arrangement, while the BiLSTM module further captures the dependency information embedded in the extracted feature representations.

For the convolution operation, i represents the position of the convolution window in the input feature dimension and j represents the position of the feature within the convolution kernel. Therefore, X1, X2,..., X10 correspond to the ten input features listed above. The convolution kernel moves along the feature dimension to extract local nonlinear interactions within the organized feature representation. For example, when the kernel covers a subset of feature representations, the convolution operation aggregates their combined information to identify potential interactions among geometric and dynamic response variables.

Convolutional neural network.

The CNN adopts “convolution (Conv) - batch normalization (BatchNorm) - activation function (ReLU) - max pooling (MaxPool)” as its basic unit to extract local nonlinear interactions from the input feature vector. The one-dimensional convolution operation is applied along the feature dimension. For the input vector Xt=[X1, X2,..., XL], where L = 10 and each element corresponds to one physically meaningful variable defined above, the one-dimensional convolution operation is expressed as [49]:

(5)

where denotes the i-th element of the output feature map, represents the weight at the j-th position of the convolution kernel, and denotes the (i + j − 1)-th element of the input feature vector. In this study, X1-X10 correspond to the ten physically meaningful variables describing the chamber-water-ship coupled system. Here, i represents the starting position of the convolution window, while j indicates the relative position within the kernel. h represents the size of the convolution kernel, which is set to 2 in this study, b is the bias term and is the activation function.

The extracted feature set after convolution is expressed as:

(6)

where L represents the length of the input feature vector, In this study, the kernel size is set to h = 2, resulting in an output feature length of L − h + 1 = 9. Each convolution operation combines two feature elements within the organized representation to construct higher-level nonlinear feature representations. These representations characterize potential coupled relationships among geometric characteristics and dynamic response variables of the chamber-water-ship system.

The max-pooling operation further compresses the feature dimension by retaining dominant feature responses:

(7)

where denotes the output feature vector after pooling and m represents the size of the pooling window, which is set to 2 in this study. Through these operations, CNN extracts compact and informative feature representations from the original input variables, which are subsequently fed into the BiLSTM module for further feature encoding.

BiLSTM neural network.

The BiLSTM module is employed to further encode the feature representations extracted by CNN and capture the internal dependencies among these representations. In this study, BiLSTM does not directly process future physical responses; instead, it operates on the feature representation generated from the observed information at and before the prediction instant t. Therefore, the backward direction of BiLSTM operates only within the extracted feature representation space and does not introduce unavailable future measurements.

The LSTM unit updates the hidden state through three gating mechanisms, including the forget gate, input gate, and output gate. The forget gate determines which information from the previous hidden state should be retained [50]:

(8)

where xt represents the CNN-extracted feature representation at the corresponding feature position, ht−1 denotes the previous hidden state, σ(·) represents the sigmoid activation function; ft, Wf, and bf are the output vector, weight matrix, and bias vector of the forget gate, respectively.

Then, the input gate controls the incorporation of new information and updates the cell state:

(9)(10)(11)

where , , and are the output vector, weight matrix, and bias vector of the input gate, respectively; , , and denote the candidate cell state vector and its associated weight matrix, and bias vector; Ct represents the updated cell state vector of the LSTM unit, where “cell” refers to the neural network memory unit rather than the computational cells in the CFD mesh, and represents the element-wise multiplication.

Subsequently, the output gate controls the information transferred from the cell state to the hidden state:

(12)(13)

where , , and are the output vector, weight matrix, and bias vector of the output gate, respectively.The hidden state represents the encoded high-level dynamic representation used for subsequent prediction.

Finally, to enhance feature representation capability, BiLSTM adopts two parallel LSTM layers with opposite processing directions. The forward and backward hidden states are concatenated:

(14)

where and denote the hidden states generated by the forward and backward LSTM layers, respectively. The concatenated vector provides a comprehensive representation of the nonlinear dependencies within the ordered CNN-extracted feature representations and is subsequently transmitted to the regression module for capsizing moment prediction. [] represents the vector concatenation operation.

Random forest.

Unlike the CNN-BiLSTM branch, which extracts nonlinear feature representations from the input variables, the RF branch is constructed as an independent regression module to provide an additional prediction result. The RF and CNN-BiLSTM branches operate in parallel, and their outputs are subsequently integrated through the fusion layer to obtain the final prediction of the capsizing moment M(t+1). RF includes three core processes: “Bootstrap Sampling - Independent Tree Regression - Prediction Aggregation”. The input dataset is defined as [51]:

(15)

where denotes the input feature vector of the N-th sample, and represents the corresponding target value, namely the capsizing moment MN(t+1) at the next prediction instant. Each feature vector contains ten input variables, including four geometric ratios and six historical dynamic responses.

The bootstrap sampling process generates K different training subsets from the original dataset through sampling with replacement:

(16)

where represents the training subset used for constructing the k-th regression tree.

Subsequently, each subset is independently used to train a regression tree:

(17)

where denotes the k-th regression tree, and represents the prediction output of the corresponding tree for input vector x. Each regression tree establishes a nonlinear mapping between the input variables and the target capsizing moment, and denotes the mapping symbol.

Finally, to improve prediction robustness and reduce the influence of individual trees, the outputs from all regression trees are aggregated by averaging:

(18)

where denotes the final prediction generated by the RF branch.

C-BL-R neural network model

This study proposes a hybrid Convolutional Neural Network-Bidirectional Long Short Term Memory-Random Forest (C-BL-R) surrogate model for one-step-ahead capsizing moment prediction in the chamber-water-ship coupled shiplift system, as illustrated in Fig 6. The proposed framework consists of two parallel regression branches: a CNN-BiLSTM (C-BL) branch and an independent RF branch. Prior to model training, eight data-driven features are generated from the 10 original physical variables through an auxiliary CNN-based feature-enhancement procedure and concatenated with the original variables. Consequently, both the C-BL and RF branches receive the same 18-dimensional input representation. The outputs of the two branches are subsequently combined through an adaptive weighted fusion strategy to obtain the final prediction of the capsizing moment M(t + 1).

thumbnail
Fig 6. Schematic diagram of the C-BL-R hybrid model framework.

https://doi.org/10.1371/journal.pone.0358034.g006

The two branches are designed to provide complementary predictions through heterogeneous learning mechanisms. The C-BL branch extracts nonlinear dependencies from the structured input representation through deep feature learning, whereas the RF branch provides an independent ensemble-regression prediction that is relatively robust to sample fluctuations. Output-level weighted fusion was selected instead of feature-level concatenation because the two branches do not naturally generate homogeneous intermediate representations. Direct concatenation would therefore require additional feature-alignment and regression layers, increasing architectural complexity and reducing the independence of the two predictors. A stacking-type ensemble would require an additional meta-learner trained using out-of-fold predictions from the base models, thereby introducing another training stage and additional parameters. In contrast, the adopted weighted fusion directly combines the two scalar capsizing-moment predictions, preserves the independence of the two branches, and provides an explicit and interpretable representation of their relative contributions.

The fusion weights are designed as learnable network parameters, which are synchronously optimized with the backbone network parameters through backpropagation during the training process. The initial weights are set to 0.5, and the optimal fusion weights determined by adaptive optimization are approximately ωC-BL = 0.49 and ωRF = 0.51. This mechanism enables the model to dynamically adjust the contribution ratio of the two branches according to the optimization objective during training, allowing the fusion layer to automatically learn the optimal balance between the two complementary predictors, achieving complementary correction of bias and improving overall prediction accuracy.

Fig 7. summarizes the design rationale and workflow of the proposed C-BL-R model, including branch construction, model optimization, and adaptive fusion. During the training stage, the input features and corresponding ground-truth values are simultaneously fed into the two branches, while the hyperparameter space of each branch is optimized using MMGO to determine suitable model configurations. The validation set is subsequently employed to evaluate the model performance and guide the iterative adjustment of training parameters. After obtaining the individual predictions from the C-BL and RF branches, an adaptive learnable weighted-fusion layer is introduced to integrate the complementary information provided by the two predictors. In this framework, MMGO is employed for branch-level hyperparameter optimization, whereas the fusion weights are adaptively determined during the fusion stage based on the prediction performance of the two branches.

thumbnail
Fig 7. Design-decision flowchart and adaptive weighted-fusion mechanism of the proposed C-BL-R model.

https://doi.org/10.1371/journal.pone.0358034.g007

Unlike conventional ensemble strategies that manually determine weights according to validation errors, the proposed fusion layer treats the contribution coefficients of the two branches as trainable parameters. The initial fusion weights are set equally as ωC-BL = 0.5 and ωRF = 0.5, and they are optimized jointly with the model parameters through backpropagation by minimizing the prediction loss. The final optimized coefficients converge to ωC-BL = 0.49 and ωRF = 0.51, and this result indicates that the C-BL and RF branches provide comparable but complementary contributions to the prediction task.

Preliminary feature extraction layers.

Specifically, input features first pass through a Conv layer to extract local features within the sequence, followed by batch normalization to stabilize the data distribution and a ReLU activation function to introduce nonlinearity. Subsequently, a MaxPool layer performs downsampling on the features to enhance their robustness. This “Conv - BatchNorm - ReLU - MaxPool” architecture is repeated twice; ultimately, the output multi-dimensional features are flattened and concatenated to form a high-dimensional preliminary feature vector.

Deep feature extraction layers.

The processed features enter the BiLSTM network, which leverages its bidirectional LSTM layers to capture forward and backward dependencies within the extracted feature representations, without using information beyond prediction time t. Network weights are optimized via gradient descent to minimize the loss function. At each time step, the hidden states from both directions are concatenated to form a comprehensive feature representation, which are ultimately subjected to ReLU activation for nonlinear transformation to retain positive responses.

Fully connected layer.

The deeply extracted features are fed into a stacked fully connected (FC) layer, where they undergo layer-by-layer nonlinear transformations through hidden layers of unified dimensions. After multiple rounds of integration and refinement, the learned high-level abstract features ultimately yield a single-value prediction result. Table 2. details the specific parameter settings for this process.

thumbnail
Table 2. Architectural hyperparameters of the C-BL network.

https://doi.org/10.1371/journal.pone.0358034.t002

Model training and hyperparameter optimization.

The detailed architecture of the C-BL component is summarized in Table 2. The CNN module consists of two convolutional layers with 98 and 96 filters, respectively. Both convolutional layers adopt a kernel size of (2,1) with same padding, followed by batch normalization, ReLU activation, and max-pooling operations to enhance local feature extraction capability from the structured input features. After the CNN-based feature extraction process, the output features are flattened and subsequently fed into the BiLSTM layer. The BiLSTM module contains 82 hidden units and is employed to capture the ordered dependencies among extracted feature representations. Finally, a fully connected layer is used to map the extracted high-dimensional features into the predicted capsizing moment output.

During model training, the stride was set to 1, and the CNN-BiLSTM network was trained for 70 epochs with a batch size of 1875. The key hyperparameters of the C-BL-R model were optimized using MMGO under identical optimization conditions. Specifically, MMGO was selected because the hyperparameter optimization problem involves both discrete structural parameters and continuous model parameters. Its adaptive exploration and exploitation mechanisms provide an effective balance between exploration and exploitation during hyperparameter optimization.

In this study, MMGO was employed to optimize the hyperparameters of the C-BL and RF branches. The predefined parameter spaces included network configurations and hidden-layer settings for the C-BL branch, and the number of decision trees and minimum leaf size for the RF branch. Candidate configurations were evaluated using the validation-set MAE, and the configuration with the lowest MAE was selected. The fusion coefficients were then optimized through the adaptive fusion mechanism.

The final RF component adopted 200 decision trees and a minimum leaf size of 1. To improve the reliability of the optimization process, five additional runs with different random initializations were conducted after the best-performing parameter combination was identified, and the final model configuration was determined based on the repeated optimization results.

Dataset and preprocessing

Dataset

The CFD-generated dataset used in this study consists of 10 input features and one target output. For each shiplift model, all hydrodynamic responses were obtained from a single ANSYS Fluent simulation. The transverse and longitudinal capsizing moments at the bottom of the chamber, together with the corresponding force responses, were extracted separately from the same simulation results. The seismic acceleration input was applied simultaneously in the transverse, longitudinal, and vertical directions as a unified excitation condition. The transverse and longitudinal response histories were not combined into a two-dimensional feature matrix. Instead, they were converted into independent samples and jointly used to train the unified C-BL-R model. Specifically, the geometric parameters [52] are direction-independent, while the dynamic response variables correspond to the specific prediction direction of each sample. Therefore, each sample contains the historical response information associated with one direction and the corresponding target capsizing moment at the next sampling instant.

For each shiplift model, 500 transverse samples and 500 longitudinal samples were generated, resulting in 1000 samples per case. Finally, the 19 independent shiplift models produced 19,000 samples for model training and evaluation. All 19,000 samples in the model-development dataset were generated using the El-Centro record scaled to a PGA of 0.1g. The Taft and Koyna records were completely excluded from the training, validation, and internal test subsets and were used only for external validation. No synthetic samples or artificially generated capsizing-moment targets were introduced; all input variables and target responses were directly extracted from CFD-generated response histories. The samples from all shiplift cases were randomly divided into training, validation, and test subsets. Because case-specific experimental measurements of capsizing moments are unavailable for the 19 investigated configurations, the proposed surrogate model is developed to approximate the CFD-based response relationship rather than directly reproduce experimentally measured full-scale responses.

Preprocessing

The transient CFD simulations may introduce small high-frequency numerical fluctuations in the capsizing moment histories due to discretization errors and iterative convergence processes. Therefore, a smoothing procedure was applied in MATLAB to reduce insignificant numerical fluctuations while preserving the overall trend and peak characteristics of the capsizing moment. Since the input variables have different physical dimensions and numerical ranges, Z-score normalization was subsequently performed before model training to improve numerical stability and ensure comparable contributions of different features during optimization. The formulation is given as follows:

(19)

where denotes the i-th sample in the dataset, and represent the mean and standard deviation of the corresponding feature, respectively, and is the normalized value.

Following normalization, eight additional features were generated from the 10 original physical variables using CNN-based feature enhancement. These features were concatenated with the original variables to form an 18-dimensional input representation, which was subsequently fed into both the C-BL and RF branches. The feature-enhancement CNN serves as a preprocessing module and is different from the CNN component in the C-BL branch. Subsequently, all samples from the 19 shiplift cases were randomly shuffled and partitioned into training, validation, and test sets with a ratio of 8:1:1.

Evaluation metrics

To compare the prediction performance of different models on the capsizing moment at the bottom of the ship chamber, five evaluation metrics are adopted in this study [53,54]: Mean Absolute Error (MAE), Mean Absolute Percentage Error (MAPE), Mean Squared Error (MSE), Root Mean Squared Error (RMSE), and Coefficient of Determination (R2). Specifically, an R2 value approaching 1 indicates a higher predictive accuracy. The calculation formulas for each metric are as follows:

(20)(21)(22)(23)(24)

where and are the actual and predicted values for the i-th sample, respectively; denotes the mean of all actual values; and n is the total number of samples.

Results and discussions

Verification of 3D CFD model for chamber-water-ship system

To evaluate the capability of the CFD framework adopted in this study for capturing the hydrodynamic response characteristics of the chamber-water-ship system, the 3D model from Ref. [55] was selected as a benchmark case, and the CFD results were compared with the corresponding SPH results, as shown in Fig 8.

thumbnail
Fig 8. Comparison of longitudinal capsizing force and longitudinal capsizing moment predicted by the SPH method and the present CFD method under identical model conditions.

https://doi.org/10.1371/journal.pone.0358034.g008

The results show that the longitudinal capsizing force Fx and capsizing moment Mx obtained using the CFD method in this study generally follow the same trend as the results obtained using the SPH method in the reference [55]. Specifically, at t = 4s, the peak capsizing forces from the two methods are 10.92N and 10.59N, with a relative difference of about 3%. At t = 3s, the maximum capsizing moments are 0.51N·m and 0.49N·m, with a relative difference of about 4.1%. The CFD and SPH results exhibit consistent time-history trends for the examined benchmark configuration. The relative differences between the two methods in the selected peak force and peak moment are approximately 3.0% and 4.1%, respectively. This agreement provides additional confidence in the numerical framework under the examined benchmark conditions. However, this benchmark comparison is intended to provide numerical cross-validation of the CFD framework rather than experimental validation of the 19 full-scale configurations, because both datasets are numerical and the benchmark case is independent of the surrogate-model database. The CFD responses are therefore used as numerical reference data for surrogate-model development and evaluation.

To further evaluate the influence of dimensional simplification on capsizing moment prediction, the numerical results obtained from the 2D simplified model were compared with those from the 3D CFD model. Considering that shiplifts with different scales and loading conditions may exhibit different discrepancies between 2D and 3D simulations, two independent engineering cases were investigated, including the 3000t light-load condition and the 1350t full-load condition. The corresponding 2D results were calculated using the modified Housner model proposed in Ref. [56] to ensure consistency with the benchmark comparison. The comparison results are presented in Fig 9.

thumbnail
Fig 9. Comparison of capsizing moments predicted by the 2D and 3D models under identical seismic excitation: (a) transverse and (b) longitudinal responses for the 3000t light-load case; (c) transverse and (d) longitudinal responses for the 1350t full-load case.

https://doi.org/10.1371/journal.pone.0358034.g009

As shown in Fig 9, both the 2D and 3D models capture the overall variation trend of transverse and longitudinal capsizing moments under identical seismic excitation. However, noticeable differences are observed in the transient peak responses. Taking the 3000t light-load condition (Fig 9(a)-Fig 9(b)) as an example, the longitudinal capsizing moment predicted by the 3D model is higher than that obtained from the 2D model, with the maximum deviation exceeding 27% at the peak response stage. This difference is mainly attributed to the simplified representation of three-dimensional free-surface deformation and spatial fluid motion in the 2D model, which cannot fully capture the complex chamber-water-ship coupling effects. Similar behavior is also observed in the additional 1350t full-load condition (Fig 9(c)-Fig 9(d)). The peak longitudinal capsizing moment predicted by the 3D model is approximately 30% higher than that from the 2D model. The consistent trend observed in the two examined cases suggests that the 2D simplification may underestimate the peak longitudinal capsizing moment under different scales and loading conditions. However, the magnitude of the discrepancy remains case-dependent. Since the longitudinal capsizing moment is a critical indicator for seismic safety assessment of shiplift structures, these comparisons highlight the importance of considering three-dimensional hydrodynamic effects when evaluating extreme dynamic responses.

Comparative evaluation of the proposed C-BL-R model with benchmark models

To evaluate the prediction stability and generalization performance of the proposed C-BL-R model, five independent training runs were conducted, with the full dataset randomly repartitioned into training, validation, and test sets at an 8:1:1 ratio for each run. The prediction performance on the Training set, Validation set, and Testing set was evaluated using five commonly adopted metrics, including MAE, MAPE, MSE, RMSE, and R2. Considering the stochastic nature of model training, all results are presented in the form of mean ± standard deviation (Mean±SD), as summarized in Table 3.

thumbnail
Table 3. Prediction performance of the proposed C-BL-R model on the training, validation, and test set.

https://doi.org/10.1371/journal.pone.0358034.t003

As shown in Table 3, the proposed C-BL-R model maintained stable predictive performance in the training set, validation set, and test set. The model achieved the lowest prediction error on the training set, with MAE of 0.0471 ± 0.0007, RMSE of 0.0817 ± 0.0014, and R2 value of 0.9822 ± 0.0008, indicating that the model effectively captures the nonlinear relationship between input variables and capsizing moment response. For the test set, the MAE of the model is 0.0761 ± 0.0024, the RMSE is 0.1408 ± 0.0128, and the R2 value is still as high as 0.9466 ± 0.0065. Although the prediction error slightly increases compared to the training set, the performance degradation is limited. Meanwhile, the increase in MAPE is considered reasonable because MAPE is highly sensitive to small capsizing moment responses, and small absolute deviations may lead to relatively large percentage errors. These results indicate that no severe overfitting tendency was observed, and the proposed C-BL-R model has reliable generalization ability.

To further validate the superiority of the proposed C-BL-R model, we selected seven benchmark models including C-BL, C-LSTM, BiLSTM-RF (BL-R), CNN, BiLSTM, LSTM, and RF for comparative analysis. All models were evaluated under the same experimental conditions, and their predictive performance on the test set is summarized in Table 4.

thumbnail
Table 4. Comparison of predictive performance of different machine learning models on the test set.

https://doi.org/10.1371/journal.pone.0358034.t004

As shown in Table 4, the proposed C-BL-R model achieved the best comprehensive performance in terms of MAE, MSE, RMSE, and R2 on the test set, with the lowest MAE (0.0761 ± 0.0024), MSE (0.0201 ± 0.0038), and RMSE (0.1408 ± 0.0128), as well as the highest R2 value (0.9466 ± 0.0065). These results demonstrate its superior generalization capability for capsizing moment prediction. Among the benchmark models, C-BL and C-LSTM exhibited relatively competitive performance, while their prediction errors remained higher than those of C-BL-R, indicating the effectiveness of introducing the RF component for nonlinear regression enhancement. BL-R and RF achieved reasonable accuracy but showed lower R2 values on the test set, suggesting weaker generalization compared with the proposed model. The individual neural network models (CNN, BiLSTM, and LSTM) showed relatively inferior performance, as they lack the capability to simultaneously capture local features and complex nonlinear relationships. Overall, the integration of CNN, BiLSTM, and RF enables C-BL-R to achieve more comprehensive feature extraction and more accurate prediction.

Effects of different parameters on the predictive accuracy of C-BL-R model

Three model-design factors were examined in this section: neuron number, outlier-detection method, and optimization algorithm. A sequential one-factor-at-a-time sensitivity analysis was adopted, in which one factor was varied while the remaining settings were fixed at the values used in that stage. This procedure was intended to compare the conditional influence of the investigated candidates under a manageable computational budget, rather than to perform an exhaustive joint optimization of all interacting components. Therefore, the selected configuration should be interpreted as the best-performing empirical configuration among the evaluated candidates and along the adopted search path, not as a mathematically guaranteed global optimum. The evaluation metrics included MAE, RMSE, and R2. Based on the comparison results, the configuration with the best predictive performance among the evaluated candidates was selected for the final C-BL-R model.

Effects of different neuron counts.

Existing studies [57] have demonstrated that an inappropriate number of neurons may negatively affect neural network performance. An excessive number of neurons increases model complexity and may result in overfitting, whereas an insufficient number limits the representation capability and causes underfitting. Therefore, the optimal neuron number of the C-BL-R model was first determined within the range of 3–23 according to empirical formulations such as the Kolmogorov formula [54,58]. Five representative neuron configurations (3 × 3, 8 × 8, 13 × 13, 18 × 18, and 23 × 23) were selected at equal intervals to investigate the influence of neuron number on model prediction performance. The corresponding results are presented in Fig 10.

thumbnail
Fig 10. Comparison of prediction performance metrics among five different neuron numbers including 3 × 3.

https://doi.org/10.1371/journal.pone.0358034.g010

As illustrated in Fig 10, the five neuron configurations exhibit comparable performance on the training set, indicating that all structures possess sufficient fitting capability. For the validation set, the 13 × 13 neuron configuration obtains the best performance, with MAE, RMSE, and R2 values of 0.07750, 0.14750, and 0.94050, respectively. Compared with the 8 × 8 configuration, the 13 × 13 structure slightly reduces prediction errors and improves the coefficient of determination.

On the test set, the 13 × 13 configuration also achieves the highest prediction accuracy, with MAE, RMSE, and R2values of 0.07610, 0.14080, and 0.94660, respectively. However, further increasing the neuron number to 18 × 18 and 23 × 23 results in increased errors and decreased R2, indicating that excessive neurons may introduce redundant parameters and weaken model generalization. Therefore, the 13 × 13 neuron configuration is selected as the optimal structure.

Effects of different outlier detection methods.

Outlier detection, which optimizes data quality by identifying and handling abnormal samples, is a crucial preprocessing step for enhancing the generalization ability of the C-BL-R model. To systematically evaluate the impact of different outlier detection methods on the performance of the C-BL-R model, this study selected four representative algorithms for comparison: Three Sigma, Isolation Forest, Local Outlier Factor (LOF), and Multi-Window Isolation Forest (MWIF). The results are illustrated in Fig 11.

thumbnail
Fig 11. Comparison of prediction performance among four different outlier detection methods: Three Sigma, Isolation Forest, Local Outlier Factor, and Multi-Window Isolation Forest.

https://doi.org/10.1371/journal.pone.0358034.g011

As illustrated in Fig 11, the prediction performance obtained with different outlier detection methods shows noticeable differences among the training set, validation set, and test set. On the training set, Three Sigma, MWIF, and Isolation Forest exhibit relatively similar performance, whereas LOF produces larger prediction errors, with MAE and RMSE values of 0.06084 and 0.10972, respectively.

On the validation set, MWIF and Isolation Forest achieve lower error values than the other two methods. However, considering the overall performance on unseen samples, MWIF provides a more balanced prediction capability. Specifically, on the test set, MWIF achieves an MAE of 0.07610, an RMSE of 0.14080, and an R2 of 0.94660, outperforming Three Sigma and Isolation Forest in terms of comprehensive prediction accuracy. Although LOF obtains a slightly lower MAE value (0.07592), its RMSE increases to 0.16273 and R2 decreases to 0.92165, indicating unstable prediction performance. In addition, the R2 of Isolation Forest decreases from 0.98301 on the training set to 0.92984 on the test set, suggesting reduced generalization ability. With the neuron configuration and remaining settings fixed, MWIF was selected from the four evaluated outlier-detection methods according to the predefined validation criterion and was used in the subsequent comparison.

Effects of different optimization algorithms.

Optimization algorithms play an important role in improving the searching efficiency and convergence performance of the C-BL-R model by optimizing model parameters and minimizing the defined objective function. To investigate the influence of different optimization strategies on model performance, twenty representative metaheuristic optimization algorithms were selected (S1 Table). These algorithms include classical algorithms: particle swarm optimization (PSO), grey wolf optimizer (GWO), established metaheuristic algorithms: dung beetle optimizer (DBO), northern goshawk optimization (NGO), runge kutta optimizer (RUN), white shark optimizer (WSO), kepler optimization algorithm (KOA), rime ice-based optimization algorithm (RIME), hiking optimization algorithm (HOA), Chameleon Swarm Algorithm (CSA), golden sine particle swarm optimization (GDPSO), golden sine and mapping improved sparrow search algorithm (GSSA), and emerging algorithms proposed in recent years: mapping·mountain·gazelle·optimizer (MMGO) [59], black-winged kite algorithm (BKA), animated oat optimization algorithm (AOO), caterpillar fungus optimizer (CFO), tianji’s horse racing optimization (THRO), salp swarm-kepler optimization algorithm (SSAKOA), dhole optimization algorithm (DOA), generalized rime ice-based optimization algorithm (GRIME). All metrics were normalized to the [0, 1] interval, with a value of 1 indicating optimal performance. Fig 12. presents the results.

thumbnail
Fig 12. Comparison of prediction performance among twenty different optimization algorithms, including MMGO and PSO.

https://doi.org/10.1371/journal.pone.0358034.g012

As shown in Fig 12, under the fixed network and preprocessing settings and the common computational budget adopted in this comparison, MMGO achieved the best validation performance among the investigated algorithms for this specific C-BL-R hyperparameter-optimization task. On the test set, MMGO obtains MAE, RMSE, and R2 values of 0.905, 0.842, and 0.861, respectively, demonstrating its competitive prediction accuracy and stability. Although several algorithms, such as KOA, NGO, and SSAKOA, exhibit competitive performance in some individual metrics, their overall performance remains inferior to MMGO. In contrast, algorithms such as GWO and CFO show relatively weaker optimization capability, resulting in lower prediction performance of the C-BL-R model. Therefore, MMGO was therefore selected for the final model within the scope of the evaluated candidates.

Case analysis

To provide an additional external evaluation beyond the randomly partitioned dataset, four operating conditions based on one chamber geometry that was not included in the 19-case model-development dataset were investigated. These cases were established based on the preliminary design scheme of the 3000 t ship chamber developed within the National Key Research and Development Program “Complete Technology of 200 m-scale Large Vertical Shiplift”. All cases adopted the same ship chamber geometry with dimensions of 115m × 18.4m × 10.5m (length×width×height). The investigated conditions included a 3000 t full-load ship, a 3000 t light-load ship, a 1000 t full-load ship, and a ship-absence case. The 3000 t full-load and light-load ships shared the same hull geometry (88.0m × 16.3m × 6.48m) but differed in loading state, while the 1000 t full-load ship had dimensions of 67.5m × 10.8m × 3.7m.

The CFD simulations of these four cases were completely independent from the training set and were used solely for evaluating the predictive capability of the proposed surrogate model under unseen operating conditions. Under identical external boundary conditions, the C-BL-R model performed sequential one-step-ahead prediction of the longitudinal capsizing moment based on the available input variables at each prediction instant t. Specifically, four geometric parameters (L2/L1, B2/B1, H2/H, H/H1) and six historical dynamic response variables, including a(t − 1), a(t), F(t − 1), F(t), M(t − 1), and M(t), were used as inputs to predict the capsizing moment at the next time step M(t + 1). Therefore, all input variables were available at or before the current prediction instant, and no future response information was involved. For the ship-absence validation cases, the ship-related geometric inputs L2/L1, B2/B1, and H2/H were set to zero, while H/H1 was determined from the actual chamber geometry and water level. The CFD-generated response histories provide the historical states required for one-step-ahead prediction and the reference target values for evaluating model accuracy. The predicted value M(t + 1) was not recursively used as M(t) for the next prediction step; instead, each prediction used the corresponding observed CFD-derived historical states. The comparison between CFD simulations and C-BL-R predictions is presented in Fig 13.

thumbnail
Fig 13. Comparison of longitudinal capsizing moment results between CFD and C-BL-R models under four conditions: (a) 3000t Full Load, (b) 3000t Light Load, (c) 1000t Full Load, and (d) ship-absence.

https://doi.org/10.1371/journal.pone.0358034.g013

As shown in Fig 13., the predicted capsizing moment histories from the C-BL-R model generally agree well with the CFD results under the four independent operating conditions. The model generally captures the overall variation trends and major peak responses without significant phase shifts. For the ship-present cases, the 3000t full-load condition exhibited the largest peak capsizing moment, reaching 6.6 × 107N·m, while the corresponding prediction by the C-BL-R model was 6.3 × 107N·m, with a deviation of 4.8%. The 1000t full-load condition showed the smallest peak value of 3.96 × 107N·m, and the predicted value was 3.79 × 107N·m, corresponding to a deviation of 4.5%. These results demonstrate that the proposed model maintains reliable one-step-ahead prediction capability for unseen ship-present operating conditions.

However, under the ship-absence case, although the C-BL-R model can capture the overall evolution trend of the capsizing moment, the prediction deviation increases to approximately 12.8%, which is higher than that observed in ship-present cases (below 4.8%). This increased deviation is mainly attributed to the absence of ship-absence samples in the training dataset. Since all 19 shiplift cases and approximately 19,000 samples used for training were generated under ship-present conditions, the model had limited capability to generalize to this unseen condition. In addition, the absence of the ship changes the hydrodynamic response characteristics within the chamber, further increasing the prediction deviation. Therefore, the current model should be applied primarily to ship-present operating conditions and is not recommended for quantitative prediction under ship-absence conditions without further retraining and validation. If the model is intended to be applied to ship-absence scenarios, additional ship-absence cases should be incorporated, followed by retraining and independent validation.

To evaluate the external predictive performance of the proposed C-BL-R model under seismic records not included in model development, two groups of additional CFD validation cases were introduced. The Taft record scaled to a PGA of 0.05g was applied to the 1000 t full-load Niederfinow shiplift, whereas the Koyna record scaled to a PGA of 0.2g was applied to the 1350 t full-load Lokeren shiplift. For each record, both ship-present and ship-absence conditions were considered. These records and cases were excluded from training, validation, internal testing, and hyperparameter optimization. The CFD simulations were performed independently, and the obtained capsizing moment responses were used as reference solutions for comparison with the C-BL-R predictions, as shown in Fig 14.

thumbnail
Fig 14. Comparison of longitudinal capsizing moment results between CFD and C-BL-R models under unseen seismic excitations: (a) 6-degree Taft earthquake with 1000t Full Load and (b) ship-absence; (c) 8-degree Koyna earthquake with 1350t Full Load and (d) ship-absence.

https://doi.org/10.1371/journal.pone.0358034.g014

As shown in Fig 14, the C-BL-R model successfully captures the overall variation characteristics of the longitudinal capsizing moment under different seismic excitation types and intensity levels. For the full-load conditions, the predicted responses under both Taft and Koyna earthquake excitations exhibit good agreement with the CFD results, with consistent oscillation characteristics and peak response trends. These results demonstrate that the proposed model can effectively extract the nonlinear relationship between seismic excitation characteristics and shiplift dynamic responses, indicating good generalization capability beyond the seismic conditions included in the training set.

Nevertheless, under the ship-absence cases, although the predicted responses maintain consistent overall trends with the CFD results, relatively larger amplitude discrepancies are observed. The maximum deviation of the predicted peak capsizing moment reaches approximately 14%, which is higher than that under the full-load conditions. This result is consistent with the previous case analysis, indicating that additional ship-absence samples should be incorporated into the training dataset to improve the model’s generalization capability for such operating conditions.

Model interpretability analysis

To improve the interpretability of the proposed model, the SHAP (SHapley Additive exPlanations) method was employed to perform global feature importance analysis and quantify the contribution of each of the 10 input features to the predicted capsizing moment. This analysis provides insight into how different physical variables affect the model output and helps clarify the prediction mechanism of the proposed C-BL-R model. As shown in Fig 15, the input features are arranged along the vertical axis according to their overall importance, while the horizontal axis represents the SHAP value, indicating the contribution direction and magnitude of each feature to the prediction result. A positive SHAP value indicates that the corresponding feature increases the predicted capsizing moment, whereas a negative SHAP value indicates a decreasing effect. The color gradient from red to blue represents the feature value magnitude, with red indicating higher feature values and blue indicating lower feature values. Fig 15(a) illustrates the distribution and direction of feature contributions, while Fig 15(b) summarizes the overall feature importance based on mean absolute SHAP values.

thumbnail
Fig 15. SHAP-based interpretability analysis of the C-BL-R model: (a) SHAP value distribution of the 10 input features; (b) feature importance ranking based on the mean absolute SHAP values.

https://doi.org/10.1371/journal.pone.0358034.g015

The SHAP analysis provides further insight into the contribution of different input features to the prediction of capsizing moment. As shown in Fig 15(a), the historical capsizing moment variables M(t) and M(t-1) exhibit the largest SHAP values, indicating their dominant influence on the prediction. This observation is consistent with the temporal continuity of dynamic responses in the chamber-water-ship coupled system. For the excitation-related variables, a(t-1) shows a relatively wider SHAP distribution, indicating a nonlinear relationship between historical acceleration and the predicted capsizing moment. This behavior may be related to the dynamic response characteristics of the shiplift system, where transient excitation can influence the evolution of hydrodynamic loading through coupled structural and fluid responses.

In comparison, the geometric parameters, including L2/L1, B2/B1, H2/H, and H/H1, exhibit relatively smaller SHAP magnitudes but still provide additional information for distinguishing different chamber-water-ship configurations. As summarized in Fig 15(b), the SHAP results indicate that the proposed model is dominated by the autoregressive moment features M(t) and M(t − 1), while the acceleration, force, and geometric variables provide complementary information. Therefore, the present framework should be interpreted as a multivariate one-step autoregressive predictor rather than a long-horizon standalone forecasting model.

Conclusions

This study addresses the challenge of efficiently predicting the capsizing moment of shiplifts under chamber-water-ship coupled interactions. It proposes a prediction method based on C-BL-R and systematically systematically evaluates its performance through numerical simulations and engineering case studies. The main conclusions are as follows:

  1. A three-dimensional CFD model of the chamber-water-ship coupled system was established and validated against smoothed particle hydrodynamics simulations, with a maximum deviation of 4.1% in peak capsizing moment. Under El-Centro excitation, the peak capsizing moments predicted by the 3D model were markedly higher than those obtained from the traditional 2D simplified model for both the 3000 t light-load and 1350 t full-load conditions, indicating that two-dimensional simplifications may underestimate the capsizing moment under certain operating conditions. These results highlight the importance of three-dimensional analysis for reliable shiplift safety assessment.
  2. Based on the numerically generated CFD dataset, a hybrid surrogate model integrating convolutional neural networks, bidirectional long short-term memory networks, and random forests was developed for one-step-ahead capsizing-moment prediction. Among eight candidate models, the proposed model achieved the best overall predictive performance on the test set, with a mean absolute error of 0.0761 ± 0.0024, a mean absolute percentage error of 1.110 ± 0.336%, a mean squared error of 0.0201 ± 0.0038, a root mean squared error of 0.1408 ± 0.0128, and a coefficient of determination of 0.9466 ± 0.0065.
  3. Ablation studies showed that the C-BL-R model achieved improved predictive performance when using a 13 × 13 neuron configuration in combination with multi-window isolation forest preprocessing and Mapping Mountain Gazelle Optimizer-based hyperparameter tuning. In addition, the SHAP analysis showed that the historical capsizing-moment variables M(t) and M(t − 1) dominated the prediction, while a(t − 1) and the remaining acceleration, force, and geometric variables provided smaller complementary contributions.
  4. Additional engineering cases showed that the proposed model captured the major variation trends and peak responses of capsizing moments, with peak prediction deviations below 4.8%. However, larger deviations were observed under ship-absence conditions, indicating that the current model is mainly applicable within the ship-present operating range. Additional ship-absence samples and broader operating conditions are required to further improve model robustness.

Overall, this study demonstrates the feasibility of CFD-informed, state-conditioned one-step-ahead capsizing-moment prediction. The current validation uses CFD-derived historical states as proxies for the measurements or state estimates required during practical operation. Therefore, field application will require an integrated real-time monitoring or state-estimation system and further experimental validation of measurement noise, synchronization, and computational latency. A principal limitation of the present study is the absence of physical-model or full-scale capsizing-moment measurements for the 19 shiplift configurations. Consequently, the current surrogate model should be regarded as an emulator of the CFD-generated response database. Future work should include scaled physical experiments, hydraulic-flume measurements, or field monitoring to quantify model-form uncertainty and assess the absolute accuracy of both the CFD framework and the surrogate model. In addition, future work should apply multiple seismic records to identical shiplift configurations over a controlled series of PGA levels, including additional rare-earthquake cases at and above 0.2g, to establish a statistically supported PGA applicability boundary and evaluate code-oriented engineering use.

Supporting information

S1 Table. Summary of the optimization algorithms used in this study.

https://doi.org/10.1371/journal.pone.0358034.s001

(XLSX)

Acknowledgments

The authors would like to thank the colleagues who provided valuable discussions and technical assistance during this study.

References

  1. 1. Fu L, Hu Y, Li Z. Experimental analysis of the influence of the cross-section coefficient on the ship squat while the ship exits the shiplift chamber. J Mar Sci Eng. 2024;12(4):576.
  2. 2. Zhuang Y, Ding Y, Liu J, Zhang S. Research on draft control optimization of ship passing a lock based on CFD method. J Mar Sci Eng. 2025;13(8):1406.
  3. 3. Li X, Zheng F. Investigation into the water exit behavior of a cavity. Sustainability. 2023;15(2):1007.
  4. 4. Chang H, Zheng Q, Liu Z, Yao Y, Cheng X, Feng B, et al. Influence of the upstream channel of a shiplift on the hydrodynamic performance of a fleet entry chamber and design of traction scheme. J Mar Sci Eng. 2025;13(7):1375.
  5. 5. Cheng X, Shi D, Li H, Xia R, Zhang Y, Zhou J. Influence of structural parameters on pitching stability of a vertical shiplift. SN Appl Sci. 2020;2(9).
  6. 6. Zhang Y, Yang J, Shi D. Analysis for tower-guide-chamber-fluid coupling system of shiplift under longitudinal earthquake. J Braz Soc Mech Sci Eng. 2024;46:168.
  7. 7. Xu L, Ouyang J, Wang X, Hu X, Liu J. Analysis on the vibration characteristics of shiplift under Xiangjiaba flood discharge. In: 2021 7th International Conference on Hydraulic and Civil Engineering & Smart Water Conservancy and Intelligent Disaster Reduction Financing (ICHCE & SWIDR). Nanjing, China; 2021. pp. 1340–6.
  8. 8. He K, Wang M, Liu S, Yang W, Li G. Dynamic characteristics analysis and safety evaluation of lifting mechanism for winch shiplift. J Braz Soc Mech Sci Eng. 2025;47:139.
  9. 9. Zhou Y, Liu W, Song X. Rapid prediction on frequency-domain RAOs of containership motion based on an improved convolutional neural network of multi-head self-attention mechanism. Ocean Engineering. 2026;343:123019.
  10. 10. Liu R, Li H, Zou J, Ong MC. Reconstruction and prediction of global whipping responses on a large cruise ship based on LSTM neural networks. Ocean Engineering. 2023;285:115393.
  11. 11. Del Águila Ferrandis J, Triantafyllou MS, Chryssostomidis C, Karniadakis GE. Learning functionals via LSTM neural networks for predicting vessel dynamics in extreme sea states. Proc Math Phys Eng Sci. 2021;477(2245):20190897. pmid:33642920
  12. 12. Li G, Tang G, Zhang J, Sun Q, Liu X. Short-term prediction of ship heave motion using a PSO-optimized CNN-LSTM model. J Mar Sci Eng. 2025;13(6):1008.
  13. 13. Lee J-H, Lee J, Kim Y, Ahn Y. Prediction of wave-induced ship motions based on integrated neural network system and spatiotemporal wave-field data. Physics of Fluids. 2023;35(9).
  14. 14. Nashit ASM, Chen M, Xu H, Li M, Li Q, Ming Z, et al. Experimental investigation of sloshing force prediction via deep learning and sensor fusion in robotics. In: 2025 WRC Symposium on Advanced Robotics and Automation (WRC SARA). Beijing, China; 2025. pp. 82–88.
  15. 15. Liu Y, Cheng X, Han K, Liu Z, Feng B. Investigation into the prediction of ship heave motion in complex sea conditions utilizing hybrid neural networks. J Mar Sci Eng. 2025;13(1):1.
  16. 16. Zheng H, Wang S, Li S, Wang X, Lu K, Li D, et al. Research on the stability of the ballast water tank on the offshore floating platform based on numerical simulation. PLoS One. 2025;20(10):e0334494. pmid:41100480
  17. 17. Wang K, Qiu R, Chen H, Liu X, Wang H, Liu J, et al. Deep learning enables safety concerns of fuel ignition recognition in thermal-hydrodynamic process with ship motion-sloshing interaction. Appl Therm Eng. 2025;278(Pt D):127467.
  18. 18. Wang K, Chen H, Wang H, Liu X, Qiu R. Thermo-informed hybrid deep learning model for transient indicator in marine fuel accidental ignition considering irregular ship motion. Appl Therm Eng. 2026;289(Pt 3):129858.
  19. 19. Moreira L, Soares CG. Neural network model for estimation of hull bending moment and shear force of ships in waves. Ocean Eng. 2020;206:107347.
  20. 20. Bassam AM, Phillips AB, Turnock SR, Wilson PA. Artificial neural network based prediction of ship speed under operating conditions for operational optimization. Ocean Eng. 2023;278:114613.
  21. 21. Wang Q, Wu L, Li C, Chang X, Zhang B. Research on a real-time prediction method of hull girder loads based on different recurrent neural network models. J Mar Sci Eng. 2024;12(5):746.
  22. 22. Wang Q, Yu P, Lv M, Wu X, Li C, Chang X, et al. Real-time prediction of wave-induced hull girder loads for a large container ship based on the recurrent neural network model and error correction strategy. Int J Nav Archit Ocean Eng. 2024;16:100587.
  23. 23. Orosa JA, Pérez-Canosa JM, Pérez-Castelo FJ, Durán-Grados V. Research on the improvement of safety navigation based on the shipmaster’s control of ship navigational parameters when sailing in different sea state conditions. Appl Sci. 2023;13(7):4486.
  24. 24. Wang T, Skulstad R, Zhang H. Physics-informed neural networks for robust system identification of ship roll dynamics with noise resilience. IEEE Trans Ind Inf. 2025;21(5):3934–42.
  25. 25. Zhang X, Wang J, Ma J, Wang D, Lu G, Wei J, et al. Data-driven approaches to predicting six-degree-of-freedom ship motion under irregular sea states. Chem Prod Process Model. 2025.
  26. 26. Martić I, Degiuli N, Grilj CG. Prediction of added resistance of container ships in regular head waves using an artificial neural network. J Mar Sci Eng. 2023;11(7):1293.
  27. 27. Wei Y, Wang Y, Wan D. Hull form optimization based on multi-fidelity deep neural network. Chin J Ship Res. 2024;19(6).
  28. 28. Yu C, Luo H, Fan Y, Bi X, He M. A cascaded convolutional neural network for two-phase flow piv of an object entering water. IEEE Trans Instrum Meas. 2022;71:1–10.
  29. 29. Kim KJ, Kim D. Prediction of sloshing pressure using image-based deep learning. Ocean Eng. 2024;303:117718.
  30. 30. Ahn Y, Kim Y. Data mining in sloshing experiment database and application of neural network for extreme load prediction. Mar Struct. 2021;80:103074.
  31. 31. Chegini HG, Zarepour G. Utilizing artificial neural network for load prediction caused by fluid sloshing in tanks. Geofluids. 2021;2021:1–17.
  32. 32. Chegini HG, Zarepour G. Numerical study of rectangular tank with sloshing fluid and simulation of the model using a machine learning method. Geofluids. 2022;2022:1–13.
  33. 33. Tahera UN, Raj KS, Kumar R, Soundalgekar H, Deepa T, et al. Comparative analysis of sloshing effects on elevated water tanks’ dynamic response using ANN and MARS. Discov Mater. 2025;5:9.
  34. 34. Saghi H, Sarani Nezhad MR, Saghi R, Partovi Sahneh S. Comparison of artificial neural networks and genetic algorithms for predicting liquid sloshing parameters. J Mar Sci Appl. 2024;23:292–301.
  35. 35. Mahmud MA, Khan RI, Wang S, Xu Q. Comprehensive study on sloshing impacts for an offshore 3D vessel via the integration of computational fluid dynamics simulation, experimental unit, and artificial neural network prediction. Ind Eng Chem Res. 2020;59:22187–204.
  36. 36. Jeong H, Park A, Chung J, Lee D, Lee D, Lee H, et al. Modeling and simulation of thermodynamic behavior of an LNG fuel tank by using artificial neural network based on operational data. Energy. 2025;314:134340.
  37. 37. Liu L, Feng D, Wang X, Zhang Z, Yu J, Chen M. Numerical study on the effect of sloshing on ship parametric roll. Ocean Eng. 2022;247:110612.
  38. 38. Wang Z, Wang Y, Jiang S. Coupling actions between ship roll motion and internal sloshing with water and LNG inside. J Mar Sci Appl. 2025;24:1194–207.
  39. 39. Zhao K, Yang S-F, Yuan P-Y. Research on the sloshing characteristics of the ship tank with baffles under rolling motion based on smoothed particle hydrodynamics method. Phys Fluids. 2023;35(11).
  40. 40. Zheng M, Ni Y, Wu C, Jo H. Experimental investigation on effect of sloshing on ship added resistance in head waves. Ocean Eng. 2021;235:109362.
  41. 41. Guo B, Zhao L, Chang F, Wang J. Analyses on seismic response of fluid-structure interaction for tower-column structure coupling system of hydraulic shiplift. Water Resour Hydropower Eng. 2021;52(1):51–63.
  42. 42. Xu C, Zhou X, Ren H, Sutulo S, Guedes Soares C. Real-time calculation of ship to ship hydrodynamic interaction in shallow waters with adaptive mesh refinement. Ocean Eng. 2024;295:116943.
  43. 43. Khayyer A, Shimizu Y, Gotoh T, Gotoh H. Enhanced resolution of the continuity equation in explicit weakly compressible SPH simulations of incompressible free-surface fluid flows. Appl Math Model. 2023;116:84–121.
  44. 44. Zhang Y, Liang H, Chua KH, Liu X, de Mello P. Experimental and numerical analysis of resonant sloshing flow in a membrane tank of different filling levels. Ocean Eng. 2022;263:112337.
  45. 45. Zhou B, Qi X, Zhang J, Zhang H. Effect of 6-DOF oscillation of ship target on SAR imaging. Remote Sens. 2021;13(9):1821.
  46. 46. Chang Y, Shi H, Luo Y, Qiu S, Wang W, Qiu C, et al. Study on high-speed ship waves propagation in the Pearl River Estuary by the numerical simulation. Ocean Eng. 2025;317:120062.
  47. 47. Wang B, Xu T-J, Jiang Z-Q, Wang S, Dong G-H, Wang T-Y. Numerical simulation of sloshing flow in a 2D rectangular tank with porous baffles. Ocean Eng. 2022;256:111384.
  48. 48. Lu L, Zhu R, Ji C, Guo J, Lyu F, Xu S. Influence of solid particles in liquid tank on sloshing behaviour based on CFD-DEM coupling method. Ocean Eng. 2024;312:119068.
  49. 49. Liu L, Feng J, Li J, Chen W, Mao Z, Tan X. Multi-layer CNN-LSTM network with self-attention mechanism for robust estimation of nonlinear uncertain systems. Front Neurosci. 2024;18:1379495. pmid:38638692
  50. 50. Fan Y, Zhou S, Gao Z, Xiao Q, Wang W, Cheng J. A SAW RFID sensor phase estimation method using SSA-CNN-BILSTM-based apFFT algorithm. Measurement. 2026;265:120364.
  51. 51. Alsalem K. A hybrid time series forecasting approach integrating fuzzy clustering and machine learning for enhanced power consumption prediction. Sci Rep. 2025;15(1):6447. pmid:39987282
  52. 52. Yang X, Yu T, Zhang S, Wu X. Influence of baffles on liquid longitudinal sloshing and vehicle dynamics in tank trucks. Mach Des Manuf. 2024.
  53. 53. Elshewey AM, Jamjoom MM, Alkhammash EH. An enhanced CNN with ResNet50 and LSTM deep learning forecasting model for climate change decision making. Sci Rep. 2025;15(1):14372. pmid:40274930
  54. 54. Gülmez B. Stock price prediction with optimized deep LSTM network with artificial rabbits optimization algorithm. Expert Syst Appl. 2023;227:120346.
  55. 55. Ren B, He M, Dong P, Wen H. Nonlinear simulations of wave-induced motions of a freely floating body using WCSPH method. Appl Ocean Res. 2015;50:1–12.
  56. 56. Leng F, Yao Y, Wang J. Study on simplified dynamic model of water-ship system in shiplift. Earthq Eng Eng Dyn. 2020;40(4):94–100.
  57. 57. Seidi E, Kaviani F, Miller SF. Hyperparameter tuning of artificial neural network-based machine learning to optimize number of hidden layers and neurons in metal forming. J Manuf Mater Process. 2025;9(8):260.
  58. 58. Somvanshi S, Javed SA, Islam MM, Pandit D, Das S. A survey on Kolmogorov-Arnold Network. ACM Comput Surv. 2025;58(2):1–35.
  59. 59. Lai Y, Chen Z, Mao Y. Research on the application of a model combining improved optimization algorithms and neural networks in trajectory tracking of robotic arms. Alex Eng J. 2025;127:336–56.