A ship main engine power prediction method and system based on data fusion

By using data fusion methods, combining real ship data and mechanistic models, the problems of insufficient accuracy and generalization ability in ship main engine power prediction were solved, achieving higher accuracy and stronger extrapolation capabilities in prediction.

CN123178904APending Publication Date: 2026-11-27SHANGHAI SHIP & SHIPPING RES INST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611642464.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-22
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In existing technologies, the accuracy of ship main engine power prediction is insufficient. Pure mechanistic models cannot reflect nonlinear factors and are not easy to update automatically, while pure machine learning models are prone to overfitting and have poor generalization ability.

Method used

By constructing a prediction method based on data fusion, combining a pure machine learning model and a mechanistic model, calibrating the mechanistic model using a real ship dataset, generating a sparse working condition mechanistic dataset, and retraining the model in the fused dataset, the model can be updated online.

Benefits of technology

It improves the accuracy and generalization ability of ship main engine power prediction, covers the entire operating condition space, reduces the dependence on data completeness, and enhances the extrapolation ability of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178904A_ABST
    Figure CN123178904A_ABST
Patent Text Reader

Abstract

The application discloses a ship main engine power prediction method based on data fusion, comprising the following steps: S1, selecting core features related to the main engine power to form a real ship data set, and selecting a machine learning algorithm to construct a pure machine learning model; S2, constructing a mechanism model: constructing an initial mechanism model in advance, and then calibrating the initial mechanism model by using the real ship data set; S3, acquiring a sparse working condition lacking in the real ship or insufficient in data quantity, and then calling the mechanism model to calculate a corresponding power value to construct a sparse working condition mechanism data set; and S4, marking the real ship data set in the step S1 and the sparse working condition mechanism data set in the step S3, and then fusing the real ship data set and the sparse working condition mechanism data set together, reusing the same machine learning algorithm in the step S1, and constructing a fusion prediction model for ship main engine power prediction. The above steps cooperate with each other to improve the ship main engine power prediction accuracy, generalization ability and extrapolation ability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of ship main engine power prediction technology, specifically relating to a ship main engine power prediction method and prediction system based on data fusion. Background Technology

[0002] Increasingly stringent green emission regulations pose greater challenges to the shipping industry and place higher demands on shipping companies' ship management, a crucial aspect of which is ship fuel consumption management and forecasting. To achieve effective fuel consumption management and forecasting, predicting ship main engine power is key, but current forecast accuracy is still insufficient.

[0003] Currently, various methods exist, such as model testing (still water model testing + wave drag-increasing testing), empirical formulas, and CFD numerical simulations, which can be categorized as pure mechanistic modeling methods. With the trend towards intelligentization, many ships have installed sensors, collecting massive amounts of data, leading to the emergence of many machine learning-based modeling methods. The main problems currently existing in pure mechanistic modeling methods and machine learning modeling methods are:

[0004] Pure mechanistic models: cannot reflect many nonlinear factors, are not accurate enough, and are not convenient for automatic updates.

[0005] Pure machine learning models are prone to overfitting, have poor generalization ability, and require high data completeness.

[0006] Therefore, how to solve the above-mentioned defects has become a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention

[0007] To solve the above-mentioned technical problems, the present invention provides a specific technical solution as follows:

[0008] A method for predicting ship main engine power based on data fusion includes the following steps:

[0009] S1: Construct a pure machine learning model: Select core features related to main engine power, and obtain real ship monitoring data of these core features and measured values ​​of ship main engine power. Preprocess these real ship monitoring data to form a real ship dataset. At the same time, select a machine learning algorithm and use the machine learning algorithm and the real ship dataset to construct the pure machine learning model.

[0010] S2: Constructing a mechanism model: An initial mechanism model is constructed in advance, and then the initial mechanism model is calibrated using the real ship dataset in step S1 to obtain the mechanism model;

[0011] S3: Construct a sparse operating condition mechanism dataset: Based on actual ship monitoring data, perform operating condition analysis to obtain sparse operating conditions that are missing or have insufficient data on the actual ship, and then call the mechanism model to calculate the corresponding power value to construct the sparse operating condition mechanism dataset.

[0012] S4: Constructing a fusion prediction model: After labeling the real ship dataset in step S1 and the sparse operating condition mechanism dataset in step S3, merge them together, reuse the same machine learning algorithm in step S1, retrain the model on the merged dataset, and construct the fusion prediction model for ship main engine power prediction.

[0013] As a preferred option, step S5 is also included: updating the fusion prediction model: when new real-ship monitoring data is added, steps S3 and S4 are re-executed to achieve online updating of the fusion prediction model.

[0014] Preferably, in step S1, the core feature includes: the average draft T of the ship's bow and stern. m ship trim T r Ship speed over land V g Ship heading θ, wind speed V wind Wind direction φ wind Wave height H wave Wave cycle T wave , wave direction φ wave Flow velocity V c Flowing towards φ c .

[0015] As a preferred approach, the angular features are re-integrated to form the integrated feature: the average draft of the ship's bow and stern, T. m ship trim T r Ship speed over land V g Wind speed V wind The cosine of the angle between the wind direction and the ship's heading, cos(φ) wind -θ), wave height H wave Wave cycle T wave The cosine of the angle between the wave direction and the ship's heading, cos(φ) wave -θ), flow velocity V c cosine of the angle between the flow direction and the ship's course .

[0016] Preferably, in step S1, the machine learning algorithm uses MLP, and the pure machine learning model is:

[0017]

[0018] Where: P ml This is the predicted power output of the ship's main engine from a pure machine learning model.

[0019] Preferably, in step S1, the shipboard monitoring data also includes the main engine speed N. s And water depth, the pretreatment includes:

[0020] Delete missing data: If at least one data item is missing, the entire data record will be deleted.

[0021] Average the actual ship monitoring data over a time window;

[0022] Based on the actual data, the following processing is performed: If the meteorological data of wind, waves, and currents comes from weather forecasts, then the wind, waves, and current data need to be aligned with other monitoring data in time, which is achieved by interpolating the weather forecast data; if the meteorological data of wind, waves, and currents comes directly from sensor monitoring, then this step is not required.

[0023] The actual ship data was filtered to select data on stable navigation. The filtering criteria included: ship's speed over land, V. g Greater than 5kΩ, main unit power P s Greater than 10% of the rated power of the main unit, the main unit speed N s The difference between the two data points is less than 0.3 r / min, and the water depth is greater than 100 m.

[0024] Preferably, the time window is averaged into a 10-minute window.

[0025] As a preferred method, when using MLP for training, the real ship dataset is randomly divided into training and validation sets at a ratio of 0.8 / 0.2, and hyperparameter tuning is performed using grid search.

[0026] Preferably, in step S2, the initial mechanism model is:

[0027]

[0028] Where: P theorecitcal P represents the theoretical main engine power output from the initial mechanistic model. calm For ideal static water engine power; P add The increase in main engine power is due to environmental parameters; V is the ship's speed over water, i.e., the ship's speed over land. g Subtract the current velocity V in the direction of the ship's heading cx (cosine of the angle between the flow direction and the ship's course multiplied by the flow velocity V) c ); R calm For ideal hydrostatic resistance, η calm For ideal still water propulsion efficiency, R calm and η calm Both can be established through static water model tests or calculated using empirical formulas; R addIncreased drag due to environmental factors, including wind drag, wave drag, water temperature drag, and shallow water drag, is calculated using empirical formulas; η add The propulsion efficiency after environmental impact can be expressed as the ideal still water propulsion efficiency η. calm Subtract an efficiency reduction value Δη, where Δη can be determined from R. add With R calm The ratio is calculated, and the formula is denoted as f1. This formula can be obtained by fitting the test data of the static water model.

[0029] That is, the above formula can be reformulated as:

[0030] .

[0031] Preferably, in step S2, the initial mechanism model is calibrated using the real-ship dataset from step S1 to obtain the mechanism model, which includes:

[0032] Input the actual ship dataset from step S1 and filter it by wind and waves. It includes two parts: navigation data in small wind and waves; and navigation data in other normal wind and waves.

[0033] For data on small winds and waves, calculate the theoretical still-water main engine power P at the same speed. calm The ratio of the actual main engine power to the actual main engine power is averaged across all ratios and used as the adjustment coefficient c1 for the ideal hydrostatic resistance of the mechanistic model. The adjusted hydrostatic main engine power P can then be calculated using this coefficient. calm_calibrated ,Right now:

[0034]

[0035] After adjusting the ideal still-water engine power calculation formula, for normal wind and wave data, a nonlinear least squares optimization algorithm was used to calculate the environmental resistance increase adjustment factor c2 based on the actual power, ultimately obtaining the calibrated mechanism model:

[0036] .

[0037] Preferably, step S3 includes:

[0038] Ship operating conditions are divided based on real-world ship datasets: average draft (T) at the bow and stern. m The minimum value is calculated by rounding down the average ballast draft, and the maximum value is calculated by rounding up the structural draft, with each 1m interval representing a different operating condition; ship trim T r The minimum value is rounded down to -1% of the ship's perpendicular distance, and the maximum value is rounded up to 2% of the ship's perpendicular distance, with each interval representing a different operating condition every 0.5m; the ship's ground speed V gThe minimum value is 5 knots, and the maximum value is the ship's design speed rounded up, with each 0.5 knots representing one operating condition; wind speed V wind Minimum value 0kN, maximum value 40kN, with each operating condition lasting 5kN; cosine of the angle between wind direction and heading cos(φ). wind -θ): Minimum value -1.0, maximum value 1.0, with each 0.2 increment representing a working condition; wave height H wave Minimum value 0m, maximum value 6m, one working condition per 1m; wave period T wave Minimum value 1s, maximum value 10s, one working condition every 2s; cosine of the angle between wave direction and heading cos(φ) wave -θ): Minimum value -1.0, maximum value 1.0, with each condition increasing by 0.2; Flow velocity V c Minimum value -2 m / s, maximum value 2 m / s, with each operating condition occurring in 0.5 m / s increments; cosine of the angle between flow velocity and heading cos(φ). c -θ): Minimum value -1.0, maximum value 1.0, with each 0.2 representing a working condition;

[0039] Based on the working condition classification criteria, the working conditions of each actual ship monitoring data are classified, and then the number of all working condition combinations is counted. The combinations with a number less than the preset value N are identified as sparse working conditions.

[0040] As a preferred choice, N is 5.

[0041] Preferably, in step S3, after obtaining these sparse working conditions, the obtained sparse working conditions are reduced, including:

[0042] Remove operating conditions with small stern draft: Calculate the stern draft based on the average draft and trim of the operating condition, and remove operating conditions where the stern draft is too small, causing water to spill from the propeller, based on the propeller position and diameter.

[0043] Delete waves whose wave cycles are not between 1.5 and 5.0 times. Operating conditions within the specified range;

[0044] The operating conditions with wave height greater than 4m, wind speed greater than 30kn, and ship speed greater than 80% of design speed have been removed.

[0045] As a preferred approach, within the reduced sparse operating conditions, input parameter combinations are generated by spatially uniform sampling, and these parameter combinations are used to call the mechanism model P. theoretical_calibrated Calculate the corresponding power values ​​to obtain a sparse operating condition mechanism dataset.

[0046] Preferably, in step S4, when training with fused data, weights are assigned to the real ship dataset and the sparse working condition mechanism dataset: the weight of the real ship dataset is 0.7, and the weight of the sparse working condition mechanism dataset is 0.3, or both are initially set to 0.5 and then adjusted according to the training effect.

[0047] The present invention also provides a ship main engine power prediction system based on data fusion, comprising:

[0048] The pure machine learning model building module is used to: select core features related to main engine power, obtain real ship monitoring data of these core features and measured values ​​of ship main engine power, preprocess these real ship monitoring data to form a real ship dataset, select a machine learning algorithm, and use the machine learning algorithm and the real ship dataset to build the pure machine learning model.

[0049] The mechanism model construction module is used to: construct an initial mechanism model in advance, and then calibrate the initial mechanism model using the real ship dataset in the pure machine learning model construction module to obtain the mechanism model;

[0050] The sparse operating condition mechanism dataset construction module is used to: perform operating condition analysis based on actual ship monitoring data, obtain sparse operating conditions that are missing or have insufficient data on actual ships, and then call the mechanism model to calculate the corresponding power value to construct the sparse operating condition mechanism dataset.

[0051] Fusion prediction model building module: After labeling the real ship dataset and the sparse operating condition mechanism dataset, the model is fused together, and the same machine learning algorithm of the pure machine learning model building module is reused to retrain the model on the fused dataset to build the fusion prediction model for ship main engine power prediction.

[0052] The present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the data fusion-based ship main engine power prediction method described above.

[0053] The present invention also provides an electronic device, including a processor and a memory, wherein the memory stores a computer program, and the processor executes the computer program to implement the data fusion-based ship main engine power prediction method described above.

[0054] The beneficial effects are as follows:

[0055] 1. It combines the advantages of stable mechanistic models and easy-to-update machine learning models;

[0056] 2. By fusing mechanistic models and machine learning models, the nonlinear compensation of machine learning models can improve local accuracy and make up for the lack of accuracy of mechanistic models. Meanwhile, the physical constraints provided by mechanistic data can suppress noisy fitting and also improve the accuracy of pure machine learning models.

[0057] 3. The final model covers the entire working space, which can enhance extrapolation capabilities. By filling in the gaps with virtual data, the dependence on data completeness can be reduced.

[0058] This invention does not simply superimpose a mechanistic model and a machine learning model. Instead, it forms a comprehensive technical solution through steps S1 to S4: "real ship data preprocessing and feature selection—real ship calibration of the mechanistic model—sparse operating condition identification and mechanistic data generation—real ship / mechanistic data labeling and fusion training." Specifically, S1 selects core features based on expert experience and preprocesses real ship monitoring data to provide a high-quality real ship dataset for subsequent modeling; S2 uses this real ship dataset to calibrate the initial mechanistic model, enabling it to reflect the actual resistance and propulsion characteristics of the target ship; S3 uses machine learning features as the operating condition dimension for operating condition analysis, identifying sparse operating conditions where real ship data is lacking or insufficient, and uses the calibrated mechanistic model to generate a sparse operating condition mechanistic dataset, thereby expanding the data coverage under physical mechanism constraints; S4 labels and fuses the real ship dataset and the sparse operating condition mechanistic dataset, retraining using the same machine learning algorithm as in S1, allowing the model to simultaneously learn the true statistical laws of the real ship data and the physical constraints of the mechanistic data. The above steps work together to improve the accuracy, generalization ability, and extrapolation ability of ship main engine power prediction.

[0059] Specifically:

[0060] (1) S1 and S2 work together, and the real ship data is used to train the pure machine learning model and to calibrate the mechanism model, so that the mechanism data generated later is closer to the actual characteristics of the target ship.

[0061] (2) S3 identifies sparse operating conditions based on real ship data and generates sparse operating condition data through a calibrated mechanism model, which solves the problem of missing or insufficient real ship data under some operating conditions.

[0062] (3) S4 integrates real ship data and mechanism data, and can be trained according to weight allocation, so that real ship data dominates the laws of real working conditions and mechanism data provides physical constraints, thereby suppressing the overfitting of pure machine learning models and making up for the lack of nonlinear expression of pure mechanism models.

[0063] (4) When new real ship monitoring data is added, S3 and S4 are re-executed to realize the online update of the fusion prediction model, so that the model can continuously adapt to changes in the ship's operating status.

[0064] In a specific embodiment, the R² of the fusion prediction model is 0.980, which is higher than that of the pure mechanistic model (0.935) and the pure machine learning model (0.961). This indicates that the present invention, through the synergistic cooperation of the overall technical solution, is superior to the single model solution in both prediction accuracy and generalization ability. Attached Figure Description

[0065] Figure 1 This is a flowchart illustrating a data fusion-based method for predicting ship main engine power.

[0066] Figure 2 This is a flowchart illustrating a specific implementation of a data fusion-based method for predicting the power of a ship's main engine. Detailed Implementation

[0067] Combination Figure 1-2 This invention provides a method for predicting ship main engine power based on data fusion, including the following:

[0068] I. Construction of Pure Machine Learning Models

[0069] 1. Feature Selection

[0070] Based on expert experience, the core features of the main engine power model were selected, including: the ship's average draft (T) from bow to stern. m ship trim T r (Stern tilt is positive), ship's speed over land V g Ship heading θ, wind speed V wind Wind direction φ wind Wave height H wave Wave cycle T wave , wave direction φ wave Flow velocity V c Flowing towards φ c .

[0071] Reintegrating angular features can improve model learning performance. Based on experience, the cosine of the angle between the wind, wave, and current direction and the ship's heading is highly correlated with main engine power. Therefore, the integrated model features are: average draft (T) of the ship from bow to stern. m ship trim T r Ship speed over land V g Wind speed V wind cosine of the angle between wind direction and heading Wave height H wave Wave cycle T wave The cosine of the angle between the wave direction and the heading is cos(φ). wave -θ), flow velocity V c Cosine of the angle between flow velocity and heading .

[0072] Of course, the acquired shipboard monitoring data also includes the measured values ​​of the ship's main engine power, and this shipboard monitoring data can also be summarized as shipboard data (such as...). Figure 2 (As shown).

[0073] 2. Algorithm Selection and Model Training

[0074] (1) Selecting machine learning algorithms: Based on previous experience, the MLP (Multilayer Perceptron) algorithm has a good effect on predicting the power of ship main engines.

[0075] (2) Preprocessing of actual ship monitoring data mainly involves four steps: 1) Deleting missing data. To ensure smooth modeling, if any data item is missing, the entire data should be deleted; 2) Averaging the data. Monitoring and acquisition data usually have a high acquisition frequency (e.g., 1Hz). To reduce the data size and eliminate some signal noise, the data is averaged over a time window. Based on experience, a 10-minute window is most suitable; 3) Depending on the actual data, if meteorological data such as wind, waves, and currents come from weather forecasts (usually forecasted every 6 hours), the wind, wave, and current data need to be aligned with other monitoring data in time. This alignment is achieved by interpolating the weather forecast data. If the meteorological data comes directly from sensor monitoring, this step is not required; 4) Screening the actual ship data. Data on stable navigation is selected. Screening conditions include: speed Vg greater than 5 knots, main engine power P s MCR greater than 10% of the main unit's rated power, and main unit speed N. s The difference between the two data points is less than 0.3 r / min, and the water depth is greater than 100 m.

[0076] It should be noted that the actual ship data used in the mechanism model calibration mentioned later is also preprocessed data.

[0077] If meteorological data such as wind, waves, and currents come from weather forecasts (usually every 6 hours), then the wind, wave, and current data need to be aligned with other monitoring data in time. This alignment is achieved by interpolating the weather forecast data. Specifically, using the timestamp of the actual ship monitoring data as a reference, time interpolation is performed on the weather forecast data so that each actual ship monitoring data point corresponds to a time-aligned meteorological parameter value. The interpolation method can be a conventional time series interpolation method in this field, such as linear interpolation, nearest neighbor interpolation, or cubic spline interpolation.

[0078] (3) The filtered data are randomly divided into training and validation sets at a ratio of 0.8 / 0.2. The selected machine learning algorithm is used for training, and the hyperparameters are tuned using a grid search method. Finally, a pure data-driven machine learning model is output:

[0079] II. Mechanism Model Construction and Ship Data Calibration

[0080] 1. Initial Mechanism Model Construction

[0081] Constructing a theoretical calculation model for ship main engine power:

[0082]

[0083] Based on the principles of ship resistance and propulsion, it can be known that the power of a ship's main engine can be broken down into two parts: the ideal still-water main engine power and the increase in main engine power caused by environmental parameters such as wind and waves. Each of these two power components can be further broken down into two parts: resistance and propulsion efficiency.

[0084]

[0085] in:

[0086] --V represents the speed;

[0087] --R calm For ideal hydrostatic resistance, η calm For ideal still water propulsion efficiency, both can be modeled through still water model tests or calculated using empirical formulas.

[0088] --R add The increase in drag caused by the environment can be broken down into wind drag, wave drag, water temperature drag, and shallow water drag, which can be calculated separately using empirical formulas.

[0089] --η add The propulsion efficiency after environmental impact can be expressed as the ideal still water propulsion efficiency η. calm Subtract an efficiency reduction value Δη, where Δη can be determined from R. add With R calm The ratio is estimated (the estimation formula is denoted as f1, which can be obtained by fitting the static water model test data, or, f1 is considered to be a linear relationship, i.e., Δη=k*(R)). add / R calm (The default value of k is 0.2, but this method is not accurate enough), meaning the above expression can be reformulated as:

[0090]

[0091] 2. Actual ship data calibration

[0092] (1) Input the real ship dataset filtered in step one and filter it for wind and waves. It includes two parts: 1) navigation data with small wind and waves, such as wind force 3 and waves below force 2; 2) navigation data with other normal wind and waves.

[0093] (2) For small wind and wave data, calculate the theoretical still water main engine power P at the same speed. calm The ratio of the actual main engine power to the actual main engine power is averaged across all ratios and used as the adjustment coefficient c1 for the ideal hydrostatic resistance of the mechanistic model. The adjusted hydrostatic main engine power P can then be calculated using this coefficient. calm_calibrated ,Right now:

[0094]

[0095] (3) After adjusting the ideal still water engine power calculation formula, for normal wind and wave data, the environmental resistance increase adjustment coefficient c2 is calculated using a nonlinear least squares optimization algorithm with the actual power as the benchmark, and finally the calibrated mechanism model is obtained:

[0096]

[0097] III. Operating Condition Analysis and Mechanism Dataset Generation

[0098] 1. Analysis of actual ship data and operating conditions

[0099] (1) Using machine learning features as the dimension of operating condition analysis, classify ship operating conditions:

[0100] 1) Average draft (T) of the ship from bow to stern m The minimum value is rounded down from the average ballast draft of the ship, and the maximum value is rounded up from the structural draft of the ship, with each 1m representing a different operating condition.

[0101] 2) Ship trim T r The minimum value is rounded down by -1% of the ship's perpendicular length, and the maximum value is rounded up by 2% of the ship's perpendicular length, with each working condition defined in 0.5m increments.

[0102] 3) Ship's speed over land, V g The minimum value is 5kn, and the maximum value is the ship's design speed rounded up, with each 0.5kn representing one operating condition.

[0103] 4) Wind speed V wind Minimum value 0kN, maximum value 40kN, with each working condition lasting 5kN;

[0104] 5) Cosine of the angle between wind direction and heading (cos(φ)) wind -θ): Minimum value -1.0, maximum value 1.0, with each 0.2 representing a working condition;

[0105] 6) Wave height H wave Minimum value 0m, maximum value 6m, one working condition per 1m;

[0106] 7) Wave cycle T wave Minimum value 1s, maximum value 10s, one working condition every 2s;

[0107] 8) Cosine of the angle between wave direction and heading (φ) wave -θ): Minimum value -1.0, maximum value 1.0, with each 0.2 representing a working condition;

[0108] 9) Flow velocity V c Minimum value -2m / s, maximum value 2m / s, with each operating condition occurring every 0.5m / s;

[0109] 10) Cosine of the angle between the flow velocity and the heading (cos(φ)) c -θ): Minimum value -1.0, maximum value 1.0, with each 0.2 representing a working condition;

[0110] (2) According to the working condition division conditions, the working conditions of each actual ship data are divided, and then the number of all working condition combinations is counted. The number of combinations is less than N and is identified as sparse working conditions. N is 5.

[0111] 2. Generation of Mechanistic Data Sets

[0112] (1) Sparse operating conditions obtained from the analysis of actual ship data are reduced by removing some unlikely operating conditions to decrease the size of the dataset to be generated. The reduction is mainly based on the correlation between the dimensions of each operating condition, such as:

[0113] 1) Remove working conditions with small stern draft: Calculate the stern draft based on the average draft and trim of the working condition, and remove working conditions where the stern draft is too small, causing the propeller to spew water out, based on the propeller position and diameter.

[0114] 2) Wave height and wave period are related. Based on experience, the wave period is usually between 1.5 and 5.0 times the sqrt (wave height). This condition can be used to delete working conditions.

[0115] 3) Due to the limitation of the main engine power, the ship cannot maintain a high speed when the wind and waves are large. Therefore, the working conditions where the wave height is greater than 4m, the wind speed is greater than 30kn and the ship speed is greater than 80% of the design speed can be deleted.

[0116] (2) Within the reduced sparse operating conditions, input parameter combinations are generated by uniform spatial sampling. For example, the speed can be further sampled into parameter points every 0.1 km. Using the parameter combinations, the mechanism model P is invoked. theoretical_calibrated Calculate the corresponding power values ​​to obtain a sparse operating condition mechanism dataset.

[0117] IV. Data Fusion and Final Model Training

[0118] The real-ship dataset filtered in step one and the mechanism data dataset generated in step three are labeled and merged together. The same machine learning scheme (same features, same algorithm, same parameters) from step one is reused, and the model is retrained on the merged dataset to obtain the fused prediction model.

[0119] P final = MLP (Merged Dataset Feature Vector)

[0120] During training with the fused dataset, weights can be assigned to the real ship dataset and the mechanism dataset based on the labels. For example, the weights for the real ship dataset can be set to 0.7 and the weights for the mechanism dataset can be set to 0.3. Alternatively, both can be set to 0.5 initially and then adjusted based on the training results.

[0121] V. Model Update Mechanism

[0122] When new actual ship data is added, steps three and four are repeated to achieve online model updates.

[0123] In one specific embodiment:

[0124] Construction of S1 pure machine learning model:

[0125] Ship Information: A bulk carrier, approximately 300m in length and with a propeller diameter of approximately 10m; Data: Time period (June 2021 - December 2024), sampling frequency 1Hz, approximately 100 million original records, approximately 100,000 records after preprocessing; Preprocessing: Missing data removal; 10-minute window averaging; Weather forecast interpolation alignment; Filtering: Ship's ground speed V g Greater than 5kΩ, main unit power P s Greater than 10% of the rated power of the main unit, the main unit speed N s The difference between the previous and next two data points is less than 0.3 r / min, and the water depth is greater than 100 m. Input features: 10. Tags: Measured host power P s Example data (1 row): Feature values ​​→ P s

[0126] Example data:

[0127] Eigenvalues: ,

[0128] Label: Partitioning: Training set / validation set 0.8 / 0.2, approximately 80,000 / 20,000 MLP parameters each.

[0129] Initial parameters: hidden_layer_sizes=(100, ), activation function='relu', optimizer='adam', initial learning rate_rate_init=0.001, L2 regularization coefficient alpha=0.0001, maximum number of iterations=2000

[0130] Grid search range: Hidden layers [(50,), (100,), (50,20), (100,50), (200,), (200,50)], initial learning rate [0.0001, 0.001, 0.01], L2 regularization coefficient = [1e-5, 1e-4, 1e-3, 1e-2] Output: P ml =5745kW

[0131] S2 mechanism model

[0132] R calm and η calm Derived from model tests, including results at different drafts (9-19m range) and at different speeds for each draft (10-17 knots), R calm The range is approximately 500~1800kN. R add Components: wind drag, wave drag, water temperature drag, and shallow water drag; all using formulas from ISO 15016:2025. Wind drag uses formula C.1 in Appendix C (with the wind drag coefficient using method C.3.4), wave drag uses the method in Appendix D.4, water temperature drag uses the method in Appendix E, and shallow water drag uses the method in Appendix G. Approximately 5000 small wind and wave data points were used to calculate c1 for different drafts and speeds, ranging from approximately 1 to 1.05. For normal wind and wave data, nonlinear least squares calculations were used to calculate c2 for different drafts and speeds, ranging from approximately 0.9 to 1.2. Using the example data in S1 as input, and employing the calibrated mechanistic model formula, the output is 5861kW.

[0133] S3 Sparse Working Condition Mechanism Dataset

[0134] Granularity of operating condition classification: Every With a sparse operating condition threshold of N=5, approximately 38,000 sparse operating conditions were identified. After reduction, approximately 8,000 conditions remained. Reduction rules: propeller exit from water, wave period range, extreme operating conditions. Uniform sampling: speed every 0.1 kN, etc., generating approximately 40,000 mechanism data points. Example mechanism data point 1 → power calculation.

[0135] enter: ,

[0136] Output:

[0137] Output: Sparse operating condition mechanism dataset

[0138] S4 Fusion Prediction Model

[0139] Data Fusion: 80,000+ real-ship data points, 40,000+ mechanistic data points. Labeling and Weighting: Real-ship 0.7, Mechanism 0.3 (or initially 0.5 then adjusted). Reusing the same MLP structure and parameters from S1. Validation Results: Pure Mechanistic Model: R 2 =0.935 Pure machine learning model: R 2 =0.961 Fusion model of this application: R 2 =0.980

[0140] R 2R is the coefficient of determination, used to evaluate the goodness of fit between the model's predicted values ​​and the measured values. 2 The closer the R value is to 1, the better the model's predicted values ​​fit the actual values. 2 All results were calculated on independent validation sets. From the above results, it can be seen that the R-value of the fusion prediction model in this application is... 2 The value was 0.980, higher than the 0.935 for the pure mechanistic model and the 0.961 for the pure machine learning model, indicating that the fusion prediction model has higher prediction accuracy.

[0141] S5 Update (Optional)

[0142] Add new real-ship data (approximately 2.5 million raw data entries, and approximately 2,000 preprocessed data entries). Re-execute S3-S4 update before R. 2 =0.980 after update R 2 =0.981.

[0143] The present invention also provides a ship main engine power prediction system based on data fusion, comprising:

[0144] The pure machine learning model building module is used to: select core features related to main engine power, obtain real ship monitoring data of these core features and measured values ​​of ship main engine power, preprocess these real ship monitoring data to form a real ship dataset, select a machine learning algorithm, and use the machine learning algorithm and the real ship dataset to build the pure machine learning model.

[0145] The mechanism model construction module is used to: construct an initial mechanism model in advance, and then calibrate the initial mechanism model using the real ship dataset in the pure machine learning model construction module to obtain the mechanism model;

[0146] The sparse operating condition mechanism dataset construction module is used to: perform operating condition analysis based on actual ship monitoring data, obtain sparse operating conditions that are missing or have insufficient data on actual ships, and then call the mechanism model to calculate the corresponding power value to construct the sparse operating condition mechanism dataset.

[0147] Fusion prediction model building module: After labeling the real ship dataset and the sparse operating condition mechanism dataset, the model is fused together, and the same machine learning algorithm of the pure machine learning model building module is reused to retrain the model on the fused dataset to build the fusion prediction model for ship main engine power prediction.

[0148] The present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the data fusion-based ship main engine power prediction method described above.

[0149] The present invention also provides an electronic device, including a processor and a memory, wherein the memory stores a computer program, and the processor executes the computer program to implement the data fusion-based ship main engine power prediction method described above.

[0150] It has the same technical effect as above.

Claims

1. A method for predicting ship main engine power based on data fusion, characterized in that, Includes the following steps: S1: Construct a pure machine learning model: Select core features related to main engine power, and obtain real ship monitoring data of these core features and measured values ​​of ship main engine power. Preprocess these real ship monitoring data to form a real ship dataset. At the same time, select a machine learning algorithm and use the machine learning algorithm and the real ship dataset to construct the pure machine learning model. S2: Constructing a mechanism model: An initial mechanism model is constructed in advance, and then the initial mechanism model is calibrated using the real ship dataset in step S1 to obtain the mechanism model; S3: Construct a sparse operating condition mechanism dataset: Based on actual ship monitoring data, perform operating condition analysis to obtain sparse operating conditions that are missing or have insufficient data on the actual ship, and then call the mechanism model to calculate the corresponding power value to construct the sparse operating condition mechanism dataset. S4: Constructing a fusion prediction model: After labeling the real ship dataset in step S1 and the sparse operating condition mechanism dataset in step S3, merge them together, reuse the same machine learning algorithm in step S1, retrain the model on the merged dataset, and construct the fusion prediction model for ship main engine power prediction.

2. The method for predicting ship main engine power based on data fusion according to claim 1, characterized in that, It also includes step S5: updating the fusion prediction model: when new real-ship monitoring data is added, steps S3 and S4 are re-executed to achieve online updating of the fusion prediction model.

3. The method for predicting ship main engine power based on data fusion according to claim 1 or 2, characterized in that, In step S1, the core feature includes: the average draft T of the ship's bow and stern. m ship trim T r Ship speed over land V g Ship heading θ, wind speed V wind Wind direction φ wind Wave height H wave Wave cycle T wave , wave direction φ wave Flow velocity V c Flowing towards φ c .

4. The method for predicting ship main engine power based on data fusion according to claim 3, characterized in that, The angular features are re-integrated to form the following integrated feature: the average draft (T) of the ship from bow to stern. m ship trim T r Ship speed over land V g Wind speed V wind The cosine of the angle between the wind direction and the ship's heading, cos(φ) wind -θ), wave height H wave Wave cycle T wave The cosine of the angle between the wave direction and the ship's heading, cos(φ) wave -θ), flow velocity V c The cosine of the angle between the flow direction and the ship's heading, cos(φ) c -θ).

5. The method for predicting ship main engine power based on data fusion according to claim 4, characterized in that, In step S1, the machine learning algorithm uses MLP, and the pure machine learning model is as follows: Where: P ml This is the predicted power output of the ship's main engine from a pure machine learning model.

6. The method for predicting ship main engine power based on data fusion according to claim 5, characterized in that, In step S1, the actual ship monitoring data also includes the main engine speed N. s And water depth, the pretreatment includes: Delete missing data: If at least one data item is missing, the entire data record will be deleted. Average the actual ship monitoring data over a time window; Based on the actual data, the following processing is performed: If the meteorological data of wind, waves, and currents comes from weather forecasts, then the wind, waves, and current data need to be aligned with other monitoring data in time, which is achieved by interpolating the weather forecast data; if the meteorological data of wind, waves, and currents comes directly from sensor monitoring, then this step is not required. The actual ship data was filtered to select data on stable navigation. The filtering criteria included: ship's speed over land, V. g Greater than 5kΩ, main unit power P s Greater than 10% of the rated power of the main unit, the main unit speed N s The difference between the two data points is less than 0.3 r / min, and the water depth is greater than 100 m.

7. The method for predicting ship main engine power based on data fusion according to claim 6, characterized in that, The time window was averaged into a 10-minute window.

8. The method for predicting ship main engine power based on data fusion according to claim 6, characterized in that, When training with MLP, the real ship dataset is randomly divided into training and validation sets with a ratio of 0.8 / 0.2, and hyperparameter tuning is performed using grid search.

9. The method for predicting ship main engine power based on data fusion according to claim 1, characterized in that, In step S2, the initial mechanism model is: Where: P theoretical P represents the theoretical main engine power output from the initial mechanistic model. calm For ideal static water engine power; P add The increase in main engine power is due to environmental parameters; V is the ship's speed over water, i.e., the ship's speed over land. g Subtract the current velocity V in the direction of the ship's heading cx V cx The cosine of the angle between the flow direction and the ship's course, multiplied by the flow velocity V. c ;R calm For ideal hydrostatic resistance, η calm For ideal still water propulsion efficiency, R calm and η calm Both can be established through static water model tests or calculated using empirical formulas; R add Increased drag due to environmental factors, including wind drag, wave drag, water temperature drag, and shallow water drag, is calculated using empirical formulas; η add The propulsion efficiency after environmental impact can be expressed as the ideal still water propulsion efficiency η. calm Subtract an efficiency reduction value Δη, where Δη can be determined from R. add With R calm The ratio is calculated, and the formula is denoted as f1. This formula can be obtained by fitting the test data of the static water model. That is, the above formula can be reformulated as: 。 10. The method for predicting ship main engine power based on data fusion according to claim 9, characterized in that, In step S2, the initial mechanism model is calibrated using the real-ship dataset from step S1 to obtain the mechanism model, including: Input the actual ship dataset from step S1 and filter it by wind and waves. It includes two parts: navigation data in small wind and waves; and navigation data in other normal wind and waves. For data on small winds and waves, calculate the theoretical still-water main engine power P at the same speed. calm The ratio of the actual main engine power to the actual main engine power is averaged across all ratios and used as the adjustment coefficient c1 for the ideal hydrostatic resistance of the mechanistic model. The adjusted hydrostatic main engine power P can then be calculated using this coefficient. calm_calibrated ,Right now: After adjusting the ideal still-water engine power calculation formula, for normal wind and wave data, a nonlinear least squares optimization algorithm was used to calculate the environmental resistance increase adjustment factor c2 based on the actual power, ultimately obtaining the calibrated mechanism model: 。 11. The method for predicting ship main engine power based on data fusion according to claim 10, characterized in that, Step S3 includes: Ship operating conditions are divided based on real-world ship datasets: average draft (T) at the bow and stern. m The minimum value is calculated by rounding down the average ballast draft, and the maximum value is calculated by rounding up the structural draft, with each 1m interval representing a different operating condition; ship trim T r The minimum value is rounded down to -1% of the ship's perpendicular distance, and the maximum value is rounded up to 2% of the ship's perpendicular distance, with each interval representing a different operating condition every 0.5m; the ship's ground speed V g The minimum value is 5 knots, and the maximum value is the ship's design speed rounded up, with each 0.5 knots representing one operating condition; wind speed V wind Minimum value 0kN, maximum value 40kN, with each operating condition lasting 5kN; cosine of the angle between wind direction and heading cos(φ). wind -θ): Minimum value -1.0, maximum value 1.0, with each 0.2 increment representing a working condition; wave height H wave Minimum value 0m, maximum value 6m, one working condition per 1m; wave period T wave Minimum value 1s, maximum value 10s, one working condition every 2s; cosine of the angle between wave direction and heading cos(φ) wave -θ): Minimum value -1.0, maximum value 1.0, with each condition increasing by 0.2; Flow velocity V c Minimum value -2 m / s, maximum value 2 m / s, with each operating condition occurring in increments of 0.5 m / s; cosine of the angle between flow velocity and heading. Minimum value -1.0, maximum value 1.0, with each 0.2 increment representing a different operating condition; Based on the working condition classification criteria, the working conditions of each actual ship monitoring data are classified, and then the number of all working condition combinations is counted. The combinations with a number less than the preset value N are identified as sparse working conditions.

12. The method for predicting ship main engine power based on data fusion according to claim 11, characterized in that, N is set to 5.

13. The method for predicting ship main engine power based on data fusion according to claim 11, characterized in that, In step S3, after obtaining these sparse working conditions, the obtained sparse working conditions are reduced, including: Remove operating conditions with small stern draft: Calculate the stern draft based on the average draft and trim of the operating condition, and remove operating conditions where the stern draft is too small, causing water to spill out of the propeller, based on the propeller position and diameter. Delete waves whose wave cycles are not between 1.5 and 5.0 times. Operating conditions within the specified range; The operating conditions with wave height greater than 4m, wind speed greater than 30kn, and ship speed greater than 80% of design speed have been removed.

14. The method for predicting ship main engine power based on data fusion according to claim 13, characterized in that, In the reduced sparse working case, input parameter combinations are generated by spatially uniform sampling. These parameter combinations are then used to invoke the mechanistic model P. theoretical_calibrated Calculate the corresponding power values ​​to obtain a sparse operating condition mechanism dataset.

15. The method for predicting ship main engine power based on data fusion according to claim 1, characterized in that, In step S4, during the training of fused data, weights are assigned to the real ship dataset and the sparse working condition mechanism dataset: the weight of the real ship dataset is 0.7, and the weight of the sparse working condition mechanism dataset is 0.3, or both are initially set to 0.5 and then adjusted according to the training effect.

16. A ship main engine power prediction system based on data fusion, characterized in that, include: The pure machine learning model building module is used to: select core features related to main engine power, obtain real ship monitoring data of these core features and measured values ​​of ship main engine power, preprocess these real ship monitoring data to form a real ship dataset, select a machine learning algorithm, and use the machine learning algorithm and the real ship dataset to build the pure machine learning model. The mechanism model construction module is used to: construct an initial mechanism model in advance, and then calibrate the initial mechanism model using the real ship dataset in the pure machine learning model construction module to obtain the mechanism model; The sparse operating condition mechanism dataset construction module is used to: perform operating condition analysis based on actual ship monitoring data, obtain sparse operating conditions that are missing or have insufficient data on actual ships, and then call the mechanism model to calculate the corresponding power value to construct the sparse operating condition mechanism dataset. Fusion prediction model building module: After labeling the real ship dataset and the sparse operating condition mechanism dataset, the model is fused together, and the same machine learning algorithm of the pure machine learning model building module is reused to retrain the model on the fused dataset to build the fusion prediction model for ship main engine power prediction.

17. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the data fusion-based ship main engine power prediction method as described in any one of claims 1 to 15.

18. An electronic device, characterized in that, It includes a processor and a memory, wherein the memory stores a computer program, and the processor executes the computer program to implement the data fusion-based ship main engine power prediction method according to any one of claims 1 to 15.