Ship resistance prediction method based on double-time scale resistance residual identification
By employing a dual-timescale resistance residual identification method and utilizing neural networks and credibility construction, the problems of incomplete and anomaly-related data in ship resistance prediction are solved. This enables accurate prediction of resistance components and verification of fuel consumption rate, thereby improving prediction accuracy and interpretability.
Patent Information
- Application Number
- CN202611683611.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-29
- Publication Date
- 2026-11-27
AI Technical Summary
How to accurately predict ship resistance, especially separating fast and slow resistance components, and ensure the physical interpretability and accuracy of the prediction results when the monitoring data of operating vessels is incomplete and anomalies exist?
A method based on dual-timescale drag residual identification is adopted. The method trains fast-changing drag, slow-changing drag, and white-box baseline correction through neural network, constructs confidence by using time consistency and conditional statistical tests, and combines dimensionless drag conversion to achieve stable identification and prediction of drag residual.
In the absence of direct measurement and monitoring data anomalies, it can accurately predict the total resistance of ships, improving the accuracy and interpretability of the predictions. Furthermore, the rationality of the results is verified through fuel consumption, supporting the effective calculation of fuel consumption rate.
Smart Images

Figure CN123179757A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of ship hydrodynamic performance monitoring technology, and relates to a method for predicting the resistance of operating ships based on dual-time-scale resistance residual identification. Background Technology
[0002] Ship carbon emissions are derived from fuel consumption; therefore, accurately predicting ship fuel consumption is fundamental to meeting carbon emission regulations and a prerequisite for speed optimization and energy efficiency management. However, directly predicting fuel consumption presents two challenges. First, fuel consumption is determined by both main engine power and fuel consumption rate, and main engine power depends on ship resistance and propulsion efficiency. Directly regressing fuel consumption bypasses this physical chain, making it difficult for the model to maintain generalization ability beyond the training conditions. Second, fuel consumption is simultaneously affected by multiple factors such as wind and waves, maneuvering, loading, and hull surface fouling; relying solely on fuel consumption labels makes it difficult to distinguish the contributions of each factor. Therefore, shifting the prediction target from fuel consumption to ship resistance, and indirectly predicting fuel consumption through resistance and propulsion systems, can improve the model's interpretability and generalization ability while preserving physical consistency.
[0003] Ship resistance is an intermediate physical quantity connecting hull hydrodynamics, propulsion system, main engine power, and fuel consumption. Accurately predicting ship resistance under current and future operating conditions helps assess the impact of wind, waves, maneuvering, and hull surface fouling on operational performance, and also provides a physical basis for subsequent fuel consumption prediction. However, operating ships typically do not directly measure total resistance; instead, they can only observe it by calculating equivalent resistance from main engine power, propulsion efficiency, and surface speed.
[0004] Ship resistance prediction faces two main challenges. First, data incompleteness. Operational data exhibits two types of incompleteness: the first is the lack of direct monitoring methods for physical quantities such as waves and hull surface fouling, making conventional interpolation ineffective; the second is issues with existing time, speed, draft, wind conditions, power, and RPM records caused by sensor malfunctions, including missing values, prolonged invariance, offsets, sudden jumps, misalignments, and equipment time-correspondence deviations. Simultaneously, actual acceleration / deceleration, turning, and strong environmental disturbances also cause significant changes in power and speed, with numerical characteristics similar to sensor malfunctions. Second, existing models have shortcomings. Traditional design condition resistance curves or pure white-box models struggle to characterize unmodeled resistance caused by actual wind and waves, maneuvering, load changes, and long-term additional friction; directly performing black-box regression of power or fuel consumption against monitored variables makes it difficult to ensure consistency between the output and the balance between hull resistance, propulsion efficiency, and power; while retaining only quasi-steady-state calm sea state samples simplifies calculations, it loses the natural excitation needed to identify rapidly changing resistance. More importantly, the difference between the equivalent drag calculated from the main engine power and the white-box drag baseline includes short-term environmental and control disturbances, long-term additional friction effects, and white-box baseline approximation errors. For each moment, there is only one observable drag residual, but it is necessary to determine three unknown components: rapidly varying, slowly varying, and baseline correction. Therefore, its mathematical prototype is an underdetermined problem. Without state propagation laws and cross-timescale comparisons, different components can compensate for each other to obtain the same total residual, making it impossible to form stable and interpretable drag prediction results.
[0005] Existing ship resistance prediction methods typically treat total resistance as a whole for estimation or directly perform black-box fitting on the residuals, making it difficult to simultaneously guarantee prediction accuracy, physical interpretability, and component identification. Therefore, there is a need for a method that can reliably identify fast-changing and slow-changing resistance components from equivalent resistance observations and predict total ship resistance under conditions where direct monitoring of waves and hull fouling is lacking, and operational monitoring records are incomplete or anomaly-prone. Summary of the Invention
[0006] The main technical problem to be solved by this invention is: under the conditions that there is a lack of direct measurement of wave and hull surface fouling status, and there are missing and abnormal operational monitoring records, how to construct a reliable resistance residual monitoring from the equivalent resistance observation obtained by back-calculation of main engine power, and solve the underdeterminacy when fast-changing resistance, slow-changing resistance and white box baseline correction are unknown at the same time, so as to realize the prediction of total resistance of operating ships.
[0007] To address the aforementioned technical problems, this invention provides the following technical solution: a method for predicting the resistance of operating vessels based on dual-time-scale resistance residual identification, comprising the following steps: Step S1: Obtain operational monitoring data and ship technical information, standardize the definitions of time, unit, draft, trim, ship speed against water and wind direction, and retain manually confirmed error records, missing instructions and data collection times of each device; Step S2: Using the ship's speed over water, relative wind conditions, draft, ship type parameters and propeller parameters as inputs, calculate the static water resistance, wind-induced resistance and wetted surface area respectively, and then calculate the white box resistance baseline and overall propulsion efficiency. Step S3: Based on the data from Step S1 and the calculation results from Step S2, identify the operating status and environmental status. Based on the physical and temporal consistency test, the statistical test of similar working conditions, and the fault identification results, calculate the field reliability, basic sample reliability, and resistance task reliability of the operation monitoring data. Step S4: On the operational monitoring data that are effective for main engine power, ship speed in water and comprehensive propulsion efficiency, the equivalent resistance observation is back-calculated, the white box resistance baseline is subtracted to obtain the resistance residual observation, and the wetted surface area, current water density and the square of ship speed in water obtained in step S2 are used to construct the resistance conversion scale and convert the resistance residual into a dimensionless form. Step S5: Construct historical windows, short-term similar working condition data pairs, and long-term similar working condition data pairs in chronological order, and establish a dual-time-scale resistance residual identification neural network. The dual-time-scale resistance residual identification neural network includes a fast-changing resistance branch, a slow-changing resistance branch, and a white-box baseline correction branch. The neural network is trained using a joint training strategy that includes task credibility-weighted resistance residual observation loss, short-term similar working condition differential loss, long-term similar working condition differential loss, and physical state propagation constraints. Step S6: The dual-timescale resistance residual identification neural network uses historical time series, current operating conditions, cumulative operating characteristics, missing indicators, resistance task credibility, and differential data of similar operating conditions to output fast-changing resistance, slow-changing resistance, and white box baseline correction. The three are added together to obtain the predicted value of resistance residual. The predicted value of resistance residual is then added to the white box resistance baseline to obtain the predicted value of total ship resistance.
[0008] Preferably, in step S3, the physical and temporal consistency checks include absolute physical range, temporal consistency, adjacent change relationships, and cross-field physical consistency; wherein, absolute physical range is used to check whether latitude and longitude, draft, main engine speed, main engine power, and wind speed are within the range that the equipment and the ship can interpret; temporal consistency is used to check for uniform time indexes, deviations in the time of collection by different equipment, and duplicate records; adjacent change relationships are used to check whether the variation range of the same field between consecutive records is reasonable; cross-field physical consistency is used to check whether the power-speed, speed-geographical location changes, and mean draft and trim are coordinated.
[0009] Preferably, in step S3, the statistical test of similar operating conditions specifically involves: establishing a gradient-lifted quantile regression model for each field to be tested, using a condition vector as the input to the model; the condition vector includes the currently determined operating conditions and environmental conditions, motion and dynamic parameters that have a physical relationship with the field to be tested, the current average draft and inclination, and the rate of change of the field to be tested and related variables; the gradient-lifted quantile regression model includes conditional quantiles, conditional medians, and conditional upper quantile models; the distance between the upper and lower quantiles represents the normal fluctuation scale of the field under the current operating conditions, and the degree to which the current monitored value deviates from the conditional median is divided by this normal fluctuation scale to obtain the dimensionless conditional statistical deviation; the obtained conditional statistical deviation value is smoothed using a piecewise cosine function and converted into a conditional statistical deviation score between 0 and 1.
[0010] Preferably, based on the physical and temporal consistency test and the statistical test of similar working conditions, the abnormal evidence of numerical out-of-bounds, time correspondence anomalies, cross-field physical relationship anomalies, long-term invariance, drift, step, and conditional statistical deviation are comprehensively considered, and the field anomaly probability is obtained by using the fault discrimination model.
[0011] Preferably, the field confidence level is expressed as: ; ; in, Representation field At any moment Whether the most basic usability condition is met; if it is met, set to 1; otherwise, set to 0. Indicates whether the retention conditions for complex operating conditions are met; Indicates the minimum level of confidence that can be retained under complex operating conditions; Representation field At any moment Basic credibility, This represents the score for the physical and temporal consistency test. This represents the statistical test score for similar operating conditions. This indicates the probability that the field will be judged as abnormal.
[0012] Preferably, the confidence level of the basic sample is expressed as: ; ; in, For a moment The credibility of the basic samples; This indicates whether the record has passed the manual quality mark and basic index check; a value of 1 indicates passing, and a value of 0 indicates otherwise. This is the confidence vector of the fields participating in the basic sample evaluation; This is a vector of non-negative aggregate coefficients corresponding to each field, and the sum of its components is greater than 0; This represents a function that calculates a weighted geometric average of the input scores based on the aggregation coefficients. The probability of discrimination due to insufficient information; This is a correction factor for the completeness of information.
[0013] Preferably, the reliability of the resistance mission is expressed as: ; in, For a moment The reliability scalar of the resistance task; This indicates whether the record meets the necessary conditions for constructing an equivalent resistance observation; a value of 1 indicates that the record meets the conditions, and a value of 0 indicates otherwise. The input scoring vector for participating in the drag mission evaluation includes scores for time, surface speed, main engine power, main engine speed, draft, relative wind, white box baseline calculation quality, and propulsion calculation quality. It is a non-negative aggregate coefficient vector that corresponds one-to-one with each score, and the sum of its components is greater than 0; This represents a function that calculates a weighted geometric average of the input scores based on the aggregation coefficients.
[0014] Preferably, in step S5, the loss function used in the joint training strategy is as follows: ; In the formula, This indicates the observation loss of the drag residual. This represents the differential loss under similar operating conditions over a short period of time. This represents the differential loss under long-term similar operating conditions. This indicates the loss that limits the rapid drag coefficient from exhibiting unfounded overall shifts between long-term data pairs. This represents the amplitude limits for the calm reference, white box correction, and slowly varying state. This represents the total training loss of the network; , , They are respectively , , The weighting coefficients.
[0015] Compared with existing technologies, the present invention has the following advantages: (1) Estimate the normal range of monitoring parameters based on the operating status and environmental status, and then make a joint judgment with the ship motion and the physical relationship between the ship engine and propeller, so that the records of real maneuvering and strong environmental disturbances can participate in resistance identification according to their credibility, thereby reducing the risk of accidentally deleting them with a unified threshold. (2) Establish credibility corresponding to the task. Field anomalies first affect the credibility of the corresponding field, and then affect the role of resistance observation, credible historical residuals and natural difference data pairs, so as to avoid "the front end judges anomalies, but the back end still uses them with equal weight"; (3) To address the underdeterminacy of the resistance residual decomposition, the propagation laws of three physical states—fast change, slow change, and white box baseline correction—are embedded into the neural network structure. Short-term and long-term similar operating condition differences are used to allocate components to increase independent information and reduce the situation where the three branches arbitrarily cancel each other out when the total residual remains unchanged. (4) By using a dimensionless drag conversion scale, the fast-changing and slow-changing drag coefficients are separated from the drag values directly caused by speed and draft. Both coefficients can be converted into the corresponding drag components according to the current operating conditions; among them, the slow-changing coefficient can be further converted to the reference speed and reference wetted surface area for comparison of long-term degradation trends across operating conditions; (5) Output the predicted total resistance of the ship with a clear physical unit, and use the comprehensive propulsion efficiency to calculate the effective power, main engine braking power and fuel consumption rate in sequence, so that fuel consumption prediction becomes a downstream application of resistance prediction. Since there is no directly measured true value of total resistance, the actual reconstructed fuel consumption rate is used as a reference. By comparing the fuel consumption rate calculated from the predicted resistance with the actual fuel consumption rate, the rationality of the resistance prediction results is indirectly verified. Attached Figure Description
[0016] Figure 1 The overall flowchart of the resistance prediction method for operating vessels based on dual-time-scale resistance residual identification provided by the present invention is shown below. Figure 2 A schematic diagram of the credibility calculation process for the collaboration between physics and conditional statistics; Figure 3 This is an external consistency test between the rapidly changing resistance state and the ERA5 wave indicator in the embodiments of the present invention; wherein, (a) the rapidly changing resistance state of the present invention; (b) the ERA5 wave indicator; Figure 4 This is a curve showing the change of the equivalent frictional resistance increment coefficient over time in an embodiment of the present invention; Figure 5 This is a verification result of the fuel consumption rate calculation based on predicted resistance in the embodiments of the present invention. Detailed Implementation
[0017] To facilitate understanding of the present invention, the specific embodiments of the present invention will be described in further detail below with reference to the accompanying drawings and specific examples. The following examples or drawings are used to illustrate the present invention, but are not intended to limit the scope of the present invention.
[0018] This invention uniformly uses STW to represent water speed in m / s and SOG to represent land speed in kN. White box resistance baseline, equivalent resistance observation, resistance residual, and predicted total ship resistance are all in kN. Rapidly changing resistance coefficient and equivalent frictional resistance increment coefficient are dimensionless; field confidence, basic sample confidence, resistance task confidence, and fuel consumption task confidence all range from [0,1]. Main engine braking power is in kW, main engine operating equivalent fuel consumption rate is in g / (kW·h), and fuel consumption rate is in kg / h.
[0019] In the training phase of this invention, operational data is first time-consolidated, operating condition identified, and reliability calculated. Then, the white-box resistance baseline and overall propulsion efficiency are calculated. For records containing main engine power, STW (Stop-Wave Time), and propulsion efficiency, equivalent resistance observations are back-calculated. Subtracting the white-box resistance baseline yields resistance residual observations, forming resistance residual monitoring. Then, historical windows, short-term similar operating condition data pairs, and long-term similar operating condition data pairs are constructed according to time, and three branches—rapidly varying resistance, slowly varying resistance, and white-box baseline correction—are jointly trained. Based on historical time series, current speed, draft, wind conditions, operational and environmental conditions, cumulative operational characteristics, reliability, and reliable historical residuals strictly earlier than the current time, three resistance residual components are predicted and added to the current white-box resistance baseline to obtain the predicted total ship resistance value. The equivalent resistance observation is the output of the training phase; the prediction phase outputs the predicted total ship resistance value and its three components: rapidly varying, slowly varying, and white-box baseline correction. Fuel consumption rate, as a downstream application result of the predicted resistance in the main engine power and fuel calculation chain, is used to verify the usability of the resistance prediction results and is not used as an independent fuel consumption prediction model.
[0020] The method for predicting the resistance of operating vessels based on dual-time-scale resistance residual identification provided by this invention is as follows: Figure 1 As shown, the specific steps include: I. Operational Monitoring Data Collection and Synchronization Processing This invention uses approximately one and a half years of operational monitoring records from a certain vessel, totaling 12,549 records. The data covers the period from December 2023 to May 2025; among them, records that meet the time and location conditions required for existing ERA5 matching cover the period from January 7, 2024 to May 29, 2025. 10,365 records are marked with a manual quality rating of 1, and 2,184 records are marked with a quality rating of 0.
[0021] The raw fields in the operational monitoring records include UTC (Coordinated Universal Time), latitude and longitude, SOG, STW, heading, relative wind speed and direction, bow and stern draft, main engine power, engine speed and load, cumulative flow meter readings, raw fuel consumption, and source document information. The operational monitoring records are formatted on a uniform hourly scale, with the data collection times from GPS, odometers, meteorological data, and cabin equipment retained as auxiliary fields.
[0022] Sort by uniform time, prioritizing representative records with complete necessary fields, valid physical relationships, and high quality for repeated time points; original records and representative row markers are retained. Cumulative flow meter differences are calculated along the representative time sequence, not by directly subtracting from Excel physical row numbers. Missing indicators corresponding to model calculations are retained synchronously; manually confirmed erroneous records are not re-entered into training simply because the statistical model gives a higher score.
[0023] To ensure that operational monitoring records from different sources use the same floating state definition, the average draft and trim are first calculated from the bow and stern drafts. The calculation relationship is as follows: ; ; In the formula, and Representing time respectively The bow draft and the stern draft, Indicates average draft. This indicates the trim measurement obtained by subtracting the bow draft from the stern draft. Both draft and trim are expressed in meters (m).
[0024] After obtaining a unified time index, the time interval between adjacent UTC records is calculated, and the STW is converted from kn to m / s so that the subsequent resistance and power formulas can use a unified unit. ; ; In the formula, This indicates the time represented by the previous different UTC. Indicates the time interval between adjacent representative records, in hours (h). Expresses speed over water, in kN. This indicates the converted speed over water, expressed in m / s.
[0025] After unifying the time interval and the speed over water, the rate of change of speed over water and the rate of change of course are further calculated to identify operational states such as acceleration, deceleration, and turning. ; ; ; In the formula, This indicates the rate of change of STW, expressed in kN / h. This represents the heading difference calculated based on the period angle, in degrees. This represents the rate of change of heading, expressed in ° / h. Using the period angle for calculation can avoid misinterpreting a change from 359° to 1° as a turn of 358°.
[0026] The fuel label is constructed based on the current fuel supply metering method: the incremental increase in the cumulative amount of fuel supplied to the fuel supply unit is subtracted from the difference between the cumulative amounts at the auxiliary engine inlet and outlet to obtain the reconstructed amount of net heavy fuel oil consumption for the main engine, which is then divided by the corresponding time interval. The fuel label needs to correspond to the cumulative flow changes within the same time interval. According to the ship's fuel supply metering method, the net heavy fuel oil consumption of the main engine and its average consumption rate are calculated using the following formula: ; ; In the formula, This indicates the increment of the cumulative amount in the fuel supply unit between adjacent records. and These represent the cumulative increases in imports and exports of auxiliary engines, respectively. This indicates the net heavy oil consumption of the main engine after deducting the impact of auxiliary engines. All the above cumulative amounts are in kg. This indicates the average fuel consumption rate of the main engine, reconstructed from the flow meter, within this time interval, in kg / h. If a negative increment, meter recount, repeated time intervals, long data gaps, or light fuel switching occurs, the fuel label for that interval is marked as invalid.
[0027] II. White Box Resistance Baseline Calculation 1. Calculation of hydrostatic resistance The white box resistance baseline is first determined based on ship data and the current floating state to determine hydrostatic parameters. This invention uses mean draft and trim as operating condition variables, interpolating within the coverage of the ship's hydrostatic data to obtain parameters such as the current wetted surface area S, waterline length L, and displacement volume. If the hydrostatic data and operational monitoring data use different definitions for trim signs, the trim sign is unified before interpolation. When the hydrostatic data includes both mean draft and trim dimensions, bilinear interpolation is used between the four nearest nodes surrounding the current operating condition; when only the draft dimension is included, linear interpolation is used. All hydrostatic parameters are calculated based on the current floating state, and fixed values under design draft are not used to replace actual operating conditions.
[0028] Within the coverage area of hydrostatic data, bilinear interpolation is performed using four adjacent nodes surrounding the current mean draft and dip. This represents a hydrostatic parameter to be interpolated, with its current value being: ; In the formula, For the node index in the average draft direction, and These represent the smaller and larger draft nodes that enclose the current average draft, respectively. This is the node index in the tilt direction. and These represent the smaller and larger trim nodes that enclose the current trim, respectively; This represents the hydrostatic parameter value at the intersection of the coordinates of these two nodes; This represents the current average draft. The current longitudinal tilt is determined by the convention of sign for hydrostatic data. The interpolation weights for the corresponding nodes are calculated using the following formulas.
[0029] Let the two draft nodes be , The two tilt nodes are , Then the relative position and interpolation weights are: ; ; ; ; ; ; In the formula, and These represent the current draft and trim relative to adjacent nodes, respectively, and are both dimensionless quantities. These are the interpolation weights for the corresponding nodes. When the current operating condition is within the area enclosed by the four nodes, each weight is non-negative and their sum is 1. When the current operating condition exceeds the coverage of hydrostatic data, this invention marks the corresponding record as exceeding the existing data range and uses this status as the basis for reducing the quality of the white box baseline calculation.
[0030] After obtaining the current waterline length and speed relative to the water, the Reynolds number, Froude number, and ITTC-1957 friction drag coefficient are further calculated to provide the basic quantities for calculating hydrostatic resistance. ; ; ; In the formula, Represents the Reynolds number. Represents the Fruder number, This indicates the friction coefficient of ITTC-1957; Expresses speed over water, in m / s; This indicates the current waterline length, in meters (m). Expressed as gravitational acceleration, in m / s² 2 Unit; The kinematic viscosity of water is expressed in meters (m). 2 The unit is / s.
[0031] Based on the above parameters, the frictional resistance, shape effect, relevant corrections, wave-making resistance, and other hydrostatic resistance terms supported by existing data are combined to obtain the hydrostatic resistance: ; In the formula, The density of water is expressed in kg / m³ 3 Unit; Represents the current wetted surface area, in meters. 2 Unit; Represents the shape factor; Indicates the relevant correction factor; Indicates wave resistance. This indicates other hydrostatic resistances that are explicitly supported by the data. The values represent hydrostatic resistance, and all resistance values mentioned above are in kN.
[0032] 2. Baseline calculation of wind resistance and white box resistance The wind direction is uniformly adopted using the incoming wind direction in the bow coordinate system: bow is 0°, clockwise is positive, 90° is the starboard wind, and 180° is the stern wind. If the input is the incoming wind direction in geographic coordinates, it will be converted to the already determined heading; if the input itself is a relative wind direction, the heading will not be subtracted. The input must specify the incoming or outgoing wind direction, the positive angle, and the reference point. After conversion, it will be checked according to the periodic angle from 0° to 360°.
[0033] Wind direction data needs to be unified to the ship's bow coordinate system first. When the direction of the incoming wind in the geographic coordinates is known, the relative wind angle is converted according to the ship's heading: ; In the formula, Indicates time Relative wind angle in the bow coordinate system; Indicates the direction of incoming wind in geographic coordinates. Indicates the bow direction of the ship.
[0034] After obtaining the relative wind angle, the relative wind speed is decomposed into two components: longitudinal and transverse, for verification of wind conditions and subsequent wind resistance calculations. ; ; In the formula, Relative wind speed, expressed in m / s; and These represent the relative wind velocity components in the longitudinal and lateral directions of the ship, respectively, in m / s.
[0035] After determining the relative wind speed, relative wind angle, windward area, and drag coefficient, the longitudinal wind resistance under the current operating condition is calculated as follows: ; In the formula, Air density is expressed in kg / m³ 3 Unit; This represents the current forward-projected reference area on the water surface, expressed in meters (m). 2 Unit; This represents the longitudinal drag coefficient corresponding to the relative wind angle; This represents the current longitudinal wind resistance, expressed in kN. This invention defines longitudinal air resistance in the opposite direction of the ship's movement as positive resistance, and air resistance in the direction of the ship's movement as negative; the corresponding positive or negative sign is determined by the longitudinal drag coefficient. The symbol is determined.
[0036] hydrostatic resistance Compared with the current longitudinal wind resistance After addition, the white box resistance baseline used for subsequent resistance residual identification is formed: ; In the formula, This represents the baseline resistance of the white box, in kN. Subsequent resistance residual calculations will use this value. .
[0037] 3. Calculation of overall propulsion efficiency This vessel uses a fixed-pitch propeller. The configured propeller has a diameter D=7.2m, number of blades Z=5, disk area ratio of 0.56, and pitch ratio of 0.8658. The open-water performance of the Wageningen B series propeller is used to calculate the relationships between thrust, torque, and open-water efficiency.
[0038] To calculate the propeller's operating state from the main engine speed and the ship's speed, we first need to calculate the propeller advance speed and advance coefficient: ; ; ; In the formula, The main engine speed is expressed in r / min; in direct drive, This indicates the propeller rotational speed, expressed in r / s. Indicates the fraction of the accompanying flow; The speed of navigation over water is expressed in m / s. Indicates the propeller advance speed, in m / s; Indicates the advance rate coefficient; This indicates the propeller diameter, expressed in meters (m).
[0039] The thrust coefficient of the Wageningen B series propellers is calculated using a polynomial based on the advance coefficient, pitch ratio, disk ratio, and number of blades: ; In the formula, For the index of the polynomial terms, For the first The coefficient of the term; , , and These are the advance coefficients in this item. Pitch ratio , board ratio and number of leaves The coefficients and indices mentioned above are taken from the Wageningen B series thrust coefficient table and are not refitted during the training process of the drag residual network in this invention. This represents the propeller thrust coefficient under the current operating conditions. For pitch, The diameter of the propeller is in meters (m). The blade unfolded area, The area of the propeller disk is expressed in meters. 2 Unit; For the comparison of the board surface, The number of leaves is used. The polynomials, coefficients, and exponents employed are based on the Wageningen B series of open water performance polynomials published by Oosterveld and van Oossanen in 1975.
[0040] The propeller torque coefficient is calculated using the B-series polynomials that correspond to the thrust coefficient: ; In the formula, This represents the torque coefficient under the current operating conditions. The torque coefficient polynomial of the th The coefficient of the term; , , and Each of the items in this item , , and The exponent is indicated by the apostrophe, which is only used to distinguish the exponent of the torque coefficient polynomial from that of the thrust coefficient polynomial. The corresponding indices are taken from the torque coefficient table in the same literature, and the meanings of the other physical quantities are the same as those in the thrust coefficient formula.
[0041] Within the corresponding effective open water operating conditions, the thrust, torque, and open water efficiency are as follows: ; ; ; In the formula, Propeller thrust, expressed in N; The value is the propeller torque, expressed in N·m. For propeller open-water efficiency; The density of water is expressed in kg / m³ 3 Unit; and These are the current thrust coefficient and torque coefficient, respectively. The calculation requirements for the advance coefficient are as follows: Open water efficiency calculation requirements Furthermore, the operating conditions are within the effective range of the series relationships adopted.
[0042] The braking power output by the main engine cannot be fully converted into effective power to overcome ship resistance. Therefore, before calculating the equivalent resistance from the power output, the overall propulsion efficiency must be calculated first. Hull efficiency is determined by the thrust deduction fraction and the wake fraction. The overall propulsion efficiency also takes into account relative rotational efficiency, current propeller open-water efficiency, and shafting efficiency. ; ; In the formula, For thrust deduction fraction, For the accompanying flow fraction, For hull efficiency, For relative rotational efficiency, For shaft system efficiency; For a moment Propeller open-water efficiency calculated under current operating conditions; This refers to the overall propulsion efficiency, calculated from the main engine braking power to the effective power. This embodiment uses the appropriate propeller parameters based on the employed ship engine. , , and Current operating conditions change through Entering the overall advancement efficiency. Due to... Shaft efficiency is already included; subsequent power conversions will not involve repeated multiplication. .
[0043] III. Reliability Calculation of Physical and Conditional Statistical Synergy 1. Identification of ship operating status and environmental status To avoid using a uniform statistical range for anomaly assessment of monitoring parameters under different operating states and environmental conditions, this invention first characterizes the current operational monitoring records for operating and environmental conditions. The resulting operating and environmental conditions are not directly used to judge the quality of the data, but rather to describe the physical conditions of the monitoring records and to provide conditional information for subsequent conditional statistical anomaly detection.
[0044] This invention classifies operating states into seven categories. Code 0 indicates invalid or undetermined; code 1 indicates berthing or docking; code 2 indicates low-speed maneuvering; code 3 indicates acceleration; code 4 indicates deceleration; code 5 indicates turning or maneuvering; and code 6 indicates quasi-steady-state navigation. Operating conditions are primarily determined based on a comprehensive analysis of SOG, STW, changes in geographical location, main engine power, main engine speed, heading, and the rate of change of adjacent records, ensuring that the determination of operating conditions does not rely on a single monitored variable or a single fixed threshold.
[0045] To distinguish between normal small fluctuations and significant changes in operating conditions, this invention sets "stable change thresholds" and "significant change thresholds" for airspeed, engine speed, heading, and engine power, respectively. Each threshold is determined by first referencing the statistical distribution of the corresponding rate of change in the training data, and then comparing it with the lower limit of the range of change that has engineering interpretability. Stable changes and significant changes are referenced to the 40th and 82nd quantiles of the training data, respectively; the lower limits for STW (Speed Transmission Wing) rate of change are 0.15 kN / h and 0.45 kN / h, respectively; the lower limits for engine speed rate of change are 1 (r / min) / h and 3 (r / min) / h, respectively; the lower limits for heading rate of change are 4° / h and 12° / h, respectively; and the lower limit for engine power rate of change is 0.015P, respectively. SMCR / h and 0.045P SMCR / h.
[0046] Environmental conditions and operational conditions are characterized separately. Environmental condition code 0 indicates insufficient environmental information, code 1 indicates a relatively calm environment, code 2 indicates general environmental disturbance, and code 3 indicates relatively strong environmental disturbance. Environmental conditions are mainly determined based on relative wind speed, relative wind angle in the bow coordinate system, wind-induced drag, and the degree of motion fluctuation during the quasi-steady-state navigation segment. The relative wind speed classification references the 35th, 70th, and 90th percentiles of the training segment and is combined with the engineering scope; the current configuration limits the low wind speed boundary to 4–8 m / s, the intermediate boundary to 7–11 m / s, and the relatively strong disturbance boundary to no less than 12 m / s.
[0047] Operating status and environmental status are used to characterize the current operating conditions of the monitoring records, not to directly determine the reliability of the current data. For example, acceleration, deceleration, turning, or strong environmental disturbances do not constitute abnormal monitoring data in themselves; only when the corresponding monitoring parameters are significantly inconsistent with the physical relationships or statistical distributions that should be met under that operating condition do they form evidence of data anomalies. This avoids directly equating real, complex operating conditions with low-quality data.
[0048] 2. Data anomaly detection based on physical and temporal consistency and conditional statistical coordination. This invention does not use a single fixed threshold to directly determine whether operational monitoring data is abnormal. Instead, it extracts evidence of data anomalies from two aspects: physical and temporal consistency and statistical distribution under similar operating conditions. The physical and temporal consistency test determines whether the monitoring data meets the basic relationships that should exist in ship motion, dynamic response, and the data acquisition process. The conditional statistical test determines whether a certain monitoring value deviates significantly from the normal statistical range of similar records under the current operating and environmental conditions. These two types of evidence complement each other, jointly providing a basis for constructing the credibility of subsequent fields.
[0049] Physical and temporal consistency checks include four aspects: absolute physical range, temporal consistency, adjacent variation relationships, and cross-field physical consistency. Absolute physical range checks whether parameters such as latitude and longitude, draft, main engine speed, main engine power, and wind speed are within the range that the equipment and vessel can interpret. Temporal consistency checks for uniform time indexes, discrepancies in data collection times from different devices, and duplicate records. Adjacent variation relationships check whether the variation range of the same field between consecutive records is reasonable. Cross-field physical consistency checks whether there is coordination between power-speed, speed-geographical location variations, and related physical quantities such as average draft and trim.
[0050] For phenomena such as values remaining unchanged for a long time, single-point mutations, slow drifts, fixed biases, step jumps, repeated record blocks, and cumulative rollbacks, this invention does not treat them as a third set of anomaly detection methods independent of physical and conditional statistical tests, but rather treats them as evidence of physical and temporal consistency anomalies.
[0051] The judgment process should also consider changes in relevant monitored variables. For example, when the main engine power remains completely constant over a long period of time, while the main engine speed and STW change continuously during the same period, the evidence of anomaly is stronger than the constant power value that occurs when all relevant parameters are stable. Conversely, in acceleration, if the speed, main engine speed and main engine power increase in a coordinated manner, the large parameter changes mainly reflect changes in the actual operating conditions and should not be judged as sensor failure simply because they deviate from the mean of all samples.
[0052] Based on physical and temporal consistency checks, this invention utilizes statistical distribution under similar operating conditions to determine whether monitored values are abnormal. (Regarding the field...) At any moment monitoring values Construct condition vector This includes the current operating and environmental conditions, relevant motion and dynamic parameters, mean draft and trim, and corresponding rates of change. Directional variables are represented using sine and cosine. In the general function... The independent variable of the condition vector is taken when substituted into the current record. .
[0053] For each field to be tested, a gradient boosting quantile regression model is established. The gradient boosting quantile model is constructed by progressively stacking multiple regression trees, and quantile loss is used as the fitting criterion. Conditional quantile, conditional median, and conditional upper quantile models are established separately to characterize the conditional center and normal fluctuation range of the field under different operating conditions.
[0054] No. The conditional quantile model is expressed as: ; In the formula, Representation field In the condition vector The next Conditional quantiles; let We take values of 0.16, 0.50, and 0.84, which correspond to the conditional quantile, conditional median, and conditional upper quantile, respectively. Indicates the initial quantile. This indicates the number of superimposed regression trees. Indicates the first A tree of return, This indicates the corresponding update step size.
[0055] The parameters of the conditional quantile model are determined by minimizing the quantile loss, and its training objective is expressed as: ; In the formula, Indicates training period, Represents the weights of the training samples. Representation field At any moment The monitoring value, Represents the quantile loss function; This indicates the selection of the model that minimizes the weighted quantile loss.
[0056] Quantile loss takes the signed difference between the field's monitored value and the candidate conditional quantile as input. For the field... At any moment The quantile regression error is defined based on the records: ; The corresponding quantile loss is: ; ; In the formula, For quantile regression error, subscript Identify quantile regression tasks, their units and fields. Consistent; This is the output of the candidate quantile model for the current condition vector; Let these be quantiles. Minimize the training loss for each of the three quantiles to obtain the conditional quantile, conditional median, and conditional upper quantile models. (Previous equation) This represents the model obtained through training, which will be used in subsequent calculations. All models were trained using this method.
[0057] After obtaining the conditional quantile, conditional median, and conditional upper quantile, the distance between the upper and lower quantiles is first used to represent the normal fluctuation scale of this field under the current operating conditions: ; In the formula, Representation field At any moment The normal fluctuation scale under corresponding operating conditions; This indicates the smallest positive scale consistent with the unit of this field, used to avoid division by zero when the local distribution is too narrow; Subsequently, the dimensionless degree of conditional deviation is obtained by dividing the degree by which the current monitored value deviates from the conditional median by the fluctuation scale: ; In the formula, This indicates the dimensionless deviation of the monitored value from the conditional median. The larger the value, the more it deviates from the normal range under similar operating conditions.
[0058] To convert the degree of deviation from conditions into a continuous statistical score between 0 and 1, this invention uses a piecewise cosine function for smooth mapping: ; In the formula, Representation field At any moment The conditional statistical test score ranges from [0,1]. and These represent the two deviation thresholds: the threshold at which the score begins to decrease and the threshold at which the score is reduced to 0. This embodiment uses... , The two thresholds are determined by training and validation data, and remain unchanged during testing and real-world application.
[0059] Based on the aforementioned physical and temporal consistency tests and conditional statistical tests, anomaly evidence vectors are constructed from information such as numerical out-of-bounds errors, time correspondence anomalies, cross-field physical relationship anomalies, long-term unchanged readings, drift, step jumps, and conditional statistical deviations. This patent employs an existing histogram-based gradient boosting classification method to perform binary classification of relevant monitoring fields into normal and abnormal categories, outputting the anomaly probability of the corresponding fields. The histogram-based gradient boosting classification method is implemented using HistGradientBoostingClassifier in scikit-learn, which is based on the gradient boosting machine proposed by Friedman in 2001 and the histogram split gradient boosting decision tree proposed by Ke et al. in 2017. The classifier is trained with class-balanced weights, and the output probability is calibrated using ordinal-preserving regression on the validation records.
[0060] The classifier's training data includes high-confidence records generated according to explicit physical rules during the training period, and semi-synthetic records obtained by injecting faults of known type and location into the training records. Binary labels are constructed based on the fields involved in the faults, and a field classifier is trained using class-balanced weights. Validation records are separated from training records by time; when validation records contain both normal and abnormal classes, and there are at least 20 abnormal records, ordinal-preserving regression is used to calibrate the original abnormal probabilities; otherwise, the original probabilities are retained. Test records do not participate in classifier fitting or probability calibration. The field abnormal probability is expressed as: ; In the formula, For fields At any moment The vector of anomalous evidence; The original anomaly probability output by the field classifier obtained through training; For the order-preserving calibration mapping determined on the verification record, the identity mapping is taken when calibration is not performed; This represents the final field anomaly probability, ranging from 0 to 1. This probability, along with the physical consistency score and conditional statistics score, participates in the field credibility calculation and is not used alone as the basis for deleting the entire operational record.
[0061] 3. Multi-layered credibility construction method After obtaining the physical consistency, conditional statistical deviation and anomaly discrimination results of each monitoring field, the present invention further constructs credibility at three levels: field level, sample level and task level, so that the aforementioned anomaly detection results can be transformed into data quality quantification results that can be directly used for subsequent resistance residual identification and fuel relationship fitting.
[0062] First, the field credibility is constructed. The field credibility considers the field's basic physical test score, conditional statistical score, and anomaly probability obtained from the fault discrimination model.
[0063] The credibility of basic fields is represented as follows: ; In the formula, Representation field At any moment The basic credibility, This represents the score for the physical and temporal consistency test. This represents the score of the conditional statistical test. This indicates the probability that the field will be judged as abnormal. These three factors work together to ensure that a field maintains high confidence only when the physical relationship is reasonable, the statistical deviation is small, and the evidence of failure is weak.
[0064] For records exhibiting significant maneuvering or environmental disturbances, but where relevant parameters remain physically consistent and evidence of sensor malfunction is weak, this invention sets up a complex operating condition retention condition to prevent real complex operating conditions from being overweighted due to scarce samples. The final field confidence level is expressed as follows: ; In the formula, Representation field At any moment Whether the most basic usability condition is met; if it is met, set to 1; otherwise, set to 0. Indicates whether the retention conditions for complex operating conditions are met; This indicates the minimum level of confidence that can be retained under complex operating conditions. This includes situations where manual verification fails, the condition clearly exceeds physical limits, or necessary fields are missing. The condition retention feature for complex operating conditions no longer applies.
[0065] After obtaining the confidence levels of each field, the information from multiple fields is combined into the overall confidence level of a record. To reduce the impact of low confidence levels in key fields being masked by other high-confidence fields, a weighted geometric mean function is used. ; ; In the formula, The scoring vectors that participate in this synthesis. For the first The item score ranges from 0 to 1; For the number of ratings; This is a vector of non-negative aggregate coefficients corresponding to each score, and their sum is greater than 0. A very small positive number is set to prevent the logarithmic independent variable from being 0; The output is a single synthetic score.
[0066] Time The credibility of the fields of time, location, SOG, STW, heading, relative wind, draft, engine speed, and engine power are sequentially used to form the basic scoring vector. Using the corresponding aggregation coefficient vector Calculate the confidence level of the base sample: ; ; In the formula, For a moment The credibility of the basic samples; This indicates whether the record has passed the manual quality mark and basic index check; 1 indicates passing, and 0 indicates otherwise. The probability of discrimination due to insufficient information; This is a correction factor for the completeness of information. (Superscript) Used to identify the basic sample evaluation, not to represent exponentiation. The basic aggregation coefficients in this embodiment are taken in the order of the above fields: .
[0067] The drag task only summarizes mass information directly related to the equivalent drag observation structure. The time, STW, main engine power, main engine speed, draft, relative wind, white box baseline calculation mass, and propulsion calculation mass are sequentially combined into a scoring vector. Calculate the reliability of the resistance task: ; ; In the formula, For a moment The eight input rating vectors; This is the corresponding aggregation coefficient vector; This is a scalar for the reliability of the synthesized resistance mission. This indicates whether the record meets the necessary conditions for constructing an equivalent resistance observation; a value of 1 indicates it meets the conditions, and a value of 0 indicates it does not. (Superscript) Used to identify resistance tasks, not to represent exponentiation.
[0068] The base sample and the resistance task each use independent aggregation coefficients. These coefficients are set based on the role of each field in time correspondence, motion state judgment, white box resistance calculation, and equivalent resistance inverse calculation, as well as the impact of known erroneous records, and are normalized to sum to 1. They represent the aggregation importance of each score in the corresponding task, not neural network weights or field failure probabilities.
[0069] The fuel consumption task also requires reconstructing the validity of fuel labels. Based on the reliability of the resistance task, the reliability of the fuel label is calculated together with the reliability of the fuel consumption task. ; In the formula, To improve the credibility of fuel consumption tasks; This indicates whether the fuel reconfiguration range is valid; it is set to 1 if valid and 0 otherwise. To assess the credibility of fuel labels; This is the combination coefficient of resistance-related information and fuel label information. The reliability of the fuel label is determined by a combination of factors, including the label's physical range, statistical deviations under current power and speed conditions, and abnormal evidence such as readings remaining unchanged for a long time, drifting, step changes, repeated measurements, and recounting of accumulated amounts.
[0070] If a manual verification error occurs or the necessary conditions for the task are not met, the task credibility will be set to 0 by the corresponding availability flag. This cannot be changed due to settings during the calculation. This allows invalid records to regain valid training weights. The above values are the engineering aggregation parameters used in this invention; when changing ships, monitoring equipment, or data sources, sensitivity checks are performed using the ship's training records, known error records, and verification records, without altering the physical function of each field. Once the parameters are determined, they remain unchanged during testing and practical application. When a fuel label is missing but the equivalent resistance observation structure is valid, It can be 0 and It can still be greater than 0.
[0071] The above values are the engineering aggregation parameters used in this invention. When changing ships, monitoring equipment, or data sources, sensitivity checks should be performed using the ship's training records, known error records, and verification records, without altering the physical function of each field; once the parameters are determined, they should remain unchanged during the testing and practical application phases. For records lacking fuel labels but with complete resistance calculations, the reliability of the fuel consumption task can be 0, while the reliability of the resistance task can still be greater than 0.
[0072] The aforementioned credibility levels not only describe the quality of operational data but also further control the actual role of records of different quality in subsequent drag identification and fuel relationship fitting. By mapping task credibility to corresponding training weights, operational monitoring records with lower quality but still containing valid information can participate in model training according to their credibility level, rather than simply using a binary approach of retention or deletion.
[0073] For a single record that can generate an equivalent resistance observation, resistance identification training weights are formed based on the reliability of the resistance task; for records with valid fuel labels, fuel relationship fitting weights are formed based on the reliability of the fuel consumption task. ; ; In the formula, and These represent the training weights for drag identification and fuel relationship fitting, respectively. and These indicate whether a sample belongs to the corresponding training period and meets the necessary conditions. and Indicate whether the current operating conditions are suitable for the corresponding task; and This represents the non-weighted mapping function determined by the validation data. When resistance cannot be inversely calculated, The corresponding records do not generate resistance to supervision.
[0074] The reliability of the resistance task is also used to control the use of historical resistance residual information. The rapidly changing resistance identification branch only uses historical resistance residuals that are strictly earlier than the current time, and at the same time considers the resistance task reliability of the corresponding historical resistance observations, so that the impact of historical resistance information with lower reliability on subsequent state propagation is reduced accordingly.
[0075] For a pair of short-term or long-term similar operating condition data consisting of two records, the training weights simultaneously consider the resistance task weights at both endpoints and the degree of operating condition similarity: ; In the formula, Indicates that by record and records The data pairs are weighted; This indicates whether the two endpoints simultaneously meet the pairing conditions for similar working conditions over a short period of time or a long period of time. This represents the degree of similarity between two records, with a value range of [0,1]. If either endpoint does not meet the necessary conditions for resistance supervision, the corresponding data pair weight is 0. When both endpoints have high resistance task credibility and a high degree of similarity in their operating conditions, this data has a significant training effect in subsequent short-term or long-term difference constraints.
[0076] Through the aforementioned task-oriented participation approach, this invention establishes a data quality processing procedure that progressively passes data anomaly judgment from the front end to subsequent resistance identification. First, it utilizes operational and environmental conditions to provide the necessary background for anomaly judgment, obtaining anomaly evidence for each field through a combined physical consistency and conditional statistical test. Then, it sequentially constructs field credibility, basic sample credibility, and task credibility. Finally, it converts task credibility into the actual weights of single resistance observations, fuel relationship fitting, reliable historical resistance residuals, and short- and long-term similar operating condition data pairs.
[0077] This avoids the problem of the front end identifying data quality differences while the back end model training still uses all samples equally. At the same time, it retains operational monitoring records with effective physical information in real maneuvering and complex environmental conditions, providing a reliable data foundation for subsequent ship resistance residual construction and dual-timescale resistance residual identification.
[0078] IV. Construction and Dimensionlessization of Resistance Residual Observation When the main engine braking power, overall propulsion efficiency, and speed over water are all effective, the equivalent drag observation value corresponding to the current record can be calculated from the power balance relationship: ; In the formula, Indicates time The measured braking power of the main engine is expressed in kW. This indicates the overall propulsion efficiency at that moment; Expresses speed over water, in m / s; This represents the equivalent resistance calculated from power, expressed in kN. During acceleration, deceleration, or steering, It may also include the effects of transient motion and changes in propulsion efficiency, so it is not directly interpreted as steady hull resistance.
[0079] The white box resistance calculation provides the resistance that can be explained under the existing ship type, floating state, and wind condition information. To extract the portion of the resistance that is not explained by the white box resistance, the resistance residual observation is obtained by subtracting the white box resistance baseline from the equivalent resistance observation: ; In the formula, Indicates time The observed values of the resistance residuals are in kN.
[0080] Since the magnitude of drag varies significantly with different speeds and drafts, this invention utilizes the current water density, wetted surface area, and the square of the water speed to construct a drag conversion factor, and converts the drag residual into a dimensionless form: ; ; In the formula, The resistance conversion factor is expressed in kN, which is determined by the current water density, wetted surface area, and speed against the water. This represents the dimensionless drag residual coefficient after normalization. This normalization is used to reduce the difference in drag magnitude directly caused by the square of the speed and the wetted surface area; further comparisons are still needed between similar operating conditions.
[0081] V. Neural Network for Identifying Resistance Residuals on Two Time Scales 1. Underdeterminism and the space for propagation of physical states The mathematical prototype for drag residual identification belongs to an underdetermined problem with multiple implicit states. Based on the equivalent drag observations and white-box drag baselines constructed in Chapter 3, only one scalar drag residual observation can be obtained at each time step. However, this residual not only includes rapidly changing drag caused by environmental disturbances, maneuvering, and other unmodeled transient factors at short time scales, but may also include long-term additional frictional drag that gradually changes with the cumulative operating process, as well as baseline corrections caused by approximation errors in the white-box drag model. Therefore, the same scalar drag residual needs to be interpreted by three implicit components with different physical meanings and changing patterns.
[0082] Without introducing additional physical constraints, for any given moment, as long as the sum of the three components remains constant, the same total drag residual can be obtained through numerical compensation between different components. For operational monitoring records containing N moments, relying solely on N scalar drag residual observations requires determining the time-varying fast drag state, slow drag state, and white-box baseline correction state, with significantly higher degrees of freedom than the independent information provided by direct observation. Therefore, when using only the total drag residual fitting error as the training objective, arbitrary compensation may occur between different branches: for example, an increase in the slow-varying branch can be offset by the inverse change of the fast-varying branch or the white-box baseline correction branch, while the total residual prediction remains unchanged. In this case, even if the total drag residual fitting error is small, it cannot guarantee that each branch has a stable and reasonable physical interpretation.
[0083] This invention will be timely The predicted resistance residual is expressed as the sum of the fast-changing resistance component, the slow-changing resistance component, and the white-box resistance baseline correction, and their relationship is expressed as follows: ; In the formula, Indicates time The drag residuals predicted by the neural network, in kN; Represents the rapidly changing drag component. Represents the slowly varying resistance component. The values represent the baseline correction for white box resistance, and all three are expressed in kN. Indicates the coefficient of rapid drag. represents the incremental coefficient of equivalent frictional resistance; both are dimensionless quantities. This indicates the resistance conversion factor for the current operating condition.
[0084] To reduce the degrees of freedom in the aforementioned underdetermined decomposition, this invention does not allow the three branches to be independently fitted as arbitrary functions without physical constraints. Instead, based on the time scale and variation characteristics of different resistance sources, different state propagation directions are specified for the three implicit states, thereby constructing a physical state propagation space constrained by physical priors. This physical state propagation space does not predefine the specific values of the three components, but rather specifies the allowed forms and ranges of variation for each component, ensuring that candidate solutions satisfying the total resistance residual observation simultaneously meet the corresponding physical evolution conditions.
[0085] The rapidly changing resistance state is used to explain the resistance increment over a shorter timescale due to changes in operating conditions, environmental disturbances, and historical conditions. This state allows for positive or negative values and utilizes time-series inputs and historical information strictly earlier than the current time to form a finite time-series memory through a GRU gating structure. Therefore, the rapidly changing branch can adjust to short-term operating conditions, but it cannot form arbitrary long-term trends independent of the current and historical operating conditions.
[0086] The slowly varying resistance state describes the long-term additional frictional effect that gradually changes over the cumulative operating process. This effect is related to the cumulative sailing time and speed action experienced by the ship. Therefore, the slowly varying branch uses four monotonically increasing cumulative operating features as inputs: cumulative effective operating time, cumulative sailing time, speed integral over time, and speed square integral over time. Each feature is obtained by hourly accumulation of non-negative time intervals and non-negative operating conditions at each moment, thus only increasing over time. To eliminate dimensional differences between features, each dimension is scaled according to the range calculated in the training segment; since the scaling factor is positive, the original monotonically increasing characteristic is maintained after scaling. Based on this, the slowly varying branch uses non-negative network weights and a monotonically activated structure, so that the output does not decrease as the cumulative operating features increase. The resulting equivalent frictional resistance increment coefficient remains non-negative and does not arbitrarily decrease over the cumulative operating process under the condition of no explicit maintenance events. This constraint limits the possibility of the slowly varying branch using short-time fluctuations to compensate for the error of the fast varying branch.
[0087] The white box resistance baseline correction state is used to compensate for empirical resistance models, ship type parameter approximations, and other white box calculation errors. This branch forms a static correction based on current operating parameters, without utilizing cumulative operating characteristics to form a long-term monotonic trend, nor relying on long historical sequences to generate short-term memory; at the same time, its allowable correction range is limited by a bounded output function, so that it mainly undertakes the limited correction function of the white box resistance baseline, and cannot infinitely absorb fast or slow-changing resistance components.
[0088] The single-branch structural constraints described above are insufficient to completely eliminate compensation between different components. Therefore, this invention further utilizes similar operating condition records at different time scales to provide additional identification information. For record pairs with short time intervals and similar main operating conditions such as speed and draft, the long-term additional friction state changes only slightly in a short period. Therefore, the change in drag residual mainly provides constraints for identifying rapidly changing states. For record pairs with longer time intervals but comparable speed, draft, RPM, and operating and environmental conditions, their long-term change information is used to further constrain the interpretation direction of slowly changing states. Simultaneously, this limits the overall drift of rapidly changing states on a long-term scale due to a lack of short-term operating condition data, thereby reducing the absorption of long-term changes by the rapidly changing branch.
[0089] Therefore, this invention does not directly solve for the three unknown components without constraints from a single resistance residual observation. Instead, it gradually narrows down the feasible solution set for the three hidden states through temporal memory constraints for rapidly changing states, non-negative monotonic propagation constraints for slowly changing states, static bounded constraints for white-box baseline correction, and differential constraints for short-term and long-term similar operating conditions. The three branches are all subject to resistance residual observation constraints, but each has different propagation directions and time scale characteristics. This reduces the degrees of freedom for multiple components to arbitrarily compensate for each other under the condition of constant total residual, and improves the identifiability of rapidly changing resistance, long-term additional frictional resistance, and white-box baseline correction.
[0090] 2. Identifying branches using rapid variable resistance The fast-changing branch uses a gated cyclic unit (GRU). For each time step... Within the same continuous data segment, a window consisting of the L most recent records is constructed; in this invention, L=48. This window is approximately 48 hours only when the records are continuous and close to one per hour; when there are interval variations, 48 represents the number of records and does not automatically equal an exact 48 hours. When the time interval exceeds 12 hours or the sequence is abnormal, the continuous segment is reconstructed. When the actual historical records are less than 48, this invention simultaneously records the true and valid historical length, so that the fill-in position is not considered a true monitoring record in the calculation.
[0091] Inputs include STW, SOG and their differences, airspeed rate of change, main engine speed, draft, trim, wind speed, sine and cosine of wind angle and heading, rate of change of direction, operational and environmental conditions, basic sample reliability, drag mission reliability, time intervals, missing necessary field indicators, and reliable historical drag residuals. Derived features are standardized before being input into the network. The center and scale used for standardization are calculated only from the training segment; the validation and test segments use the same center and scale as the training segment. When a derived feature is missing, it is numerically filled using the center value of the training segment, and an additional missing value flag is set. This filled value is only used to maintain the integrity of the input dimensions and is not considered a true monitoring value. The network identifies the filling location through the missing value flag.
[0092] Rapidly changing branches require historical resistance information that is strictly earlier than the current time step. To simultaneously express the magnitude, reliability, and time interval of the historical residual from the current time step, the historical residual input is constructed as follows: ; ; In the formula, This represents the historical resistance residual characteristics of the input fast-changing branch. This indicates the reliability of the resistance mission corresponding to the historical resistance observation. This indicates historical resistance residual observations that are strictly earlier than the current time. This represents the drag residual reference scale determined based on the training data; This indicates the time interval between the historical observation and the current moment, in hours (h). This represents the result after performing a logarithmic transformation on the time interval. Here, we use... Instead of using This is to connect with the reset gate in the subsequent GRU. distinguish.
[0093] The fast-changing branch uses a GRU to extract timing changes. The GRU first calculates the reset gate based on the current input and the internal state of the previous time step: ; The update gate is then calculated to determine how much historical internal state to retain: ; After the reset gate is activated, calculate the current candidate internal state: ; By combining the previous internal state of the updated goalkeeper with the current candidate state, we obtain the current internal state of the GRU: ; Finally, the internal state of the GRU is mapped to a signed rapid drag coefficient, and the rapid drag component is obtained according to the current drag conversion factor: ; ; In the formula, Indicates time Timing input data, This indicates the internal state of the GRU at the previous moment. This indicates that the door is being reset. Indicates an update to the door. Indicates the internal state of the candidate. Indicates the current internal state; This represents the Sigmoid function. This indicates element-wise multiplication. , and This represents the network parameters that need to be trained, and its index. These represent the corresponding gates in the GRU; A positive amplitude parameter representing the coefficient of rapid change in drag. Indicates the output mapping function; Indicates the coefficient of rapid drag. This represents the corresponding rapidly changing drag component. Negative values are allowed, indicating that the short-term additional resistance effect is lower than the reference level.
[0094] 3. Identifying branches based on the increase in equivalent frictional resistance The slowly varying branch is used to describe the long-term additional frictional effects that gradually change over the cumulative operational process. Its input uses monotonically non-decreasing cumulative operational features to characterize the ship's accumulated operational exposure up to the current moment. These features include: cumulative effective recording time, cumulative sailing time, cumulative integral of speed over time, and cumulative integral of the square of speed over time. Each feature is obtained by hourly summing of non-negative time intervals and non-negative operating conditions at each moment, thus increasing only over time. To eliminate dimensional differences between features, each dimension is scaled according to the range calculated during the training period; since the scaling factor is positive, the original monotonically non-decreasing characteristic is maintained after scaling. The cumulative operational feature vector is represented as: ; In the formula, This indicates the time index of the current record; This indicates a historical record index that is no later than the current record. ; Indicates the first The effective time interval between each record and the previous record, in hours, is calculated by summing only non-negative time intervals, with the first record being [value missing]. ; Indicates the first Whether a record belongs to a valid navigation status is determined by setting the code to 1 when the operation status code of the record is 2 to 6 (low speed maneuvering, acceleration, deceleration, turning or quasi-steady navigation) and 0 when the code is 0 or 1 (status cannot be determined, anchored or docked). Indicates the first The recorded water speed at each moment is in m / s, and its physical meaning and unit are the same as those mentioned above. Identical, subscript Used to identify the first in the summation A historical record, namely , For the first The time of each record. The four components in the above formula are, in order: the sum of all valid time intervals (cumulative valid record duration), the sum of valid time intervals under navigation conditions (cumulative navigation duration), the first cumulative integral of speed under navigation conditions, and the second cumulative integral of speed under navigation conditions; the units of these four are h, h, m / s·h, and m, respectively. 2 / s 2 ·h.
[0095] To ensure that the long-term state does not arbitrarily decrease as the cumulative operating characteristics increase, the slowly varying branches employ non-negative weights and monotonic activation functions, and their network mapping is represented as: ; In the formula, For the four-dimensional dimensionless cumulative eigenvector (i.e., the scaled one mentioned above) ); for The non-negative weight matrix, for The non-negative weight matrix (or non-negative row vector). for dimensional bias vector, To output a bias scalar; softplus acts on each element of a vector or matrix individually. Because , Non-negative and softplus monotonically undecreasing. right Each component is monotonically constant. Only affects The absolute output level; subsequent adoption The difference, They cancel each other out in the difference and do not affect each other. The value of .
[0096] The network weights are converted to non-negative values using the Softplus function, and the network output under the current cumulative operating characteristics is subtracted from the initial reference output to obtain the equivalent frictional resistance increment coefficient: ; ; In the formula, For the first The original weight matrix to be trained in the layer is then subjected to element-wise softplus processing, making... All elements are non-negative; It is a proportional parameter; Represents a four-dimensional zero vector. This is a reference output when all cumulative operating characteristics are zero, corresponding to the starting point of this segment of operating monitoring data, and does not represent the resistance of the hull in a new ship condition or a cleaned state; Indicates taking .because and Monotony remains unchanged. The content inside the square brackets is not negative. It is mainly used for numerical protection and does not change the nonnegativity conclusion.
[0097] The Softplus function and the non-negativity and non-decreasing constraints of the slowly varying coefficients are expressed as follows: ; In the formula, This indicates the time of the previous valid record. Since all cumulative characteristics monotonically do not decrease over time, Each component is not less than The corresponding components; and because , Non-negative, softplus monotonically undecreasing and Therefore ,and then This non-negative, non-decreasing property is guaranteed by the non-negativity of the network structure and the cumulative features, and no additional constraints need to be imposed during training; it means that, without confirmed maintenance events, the equivalent frictional resistance increment coefficient will not arbitrarily decrease with the cumulative operation process, but it is not required to grow in a pre-specified functional form.
[0098] In the above formulas, Indicates time The dimensionless cumulative operational feature vector; This represents the dimensionless equivalent frictional resistance increment coefficient; the meanings of the other symbols are the same as described above. The cumulative operating characteristics do not decrease, the network weights are non-negative, and the Softplus function is monotonic; therefore, in the absence of a confirmed maintenance event, It remains non-negative and does not arbitrarily decrease with the cumulative operating process.
[0099] After obtaining the equivalent frictional drag increment coefficient, the slowly varying drag component is obtained based on the drag conversion coefficient under the current operating conditions; for long-term comparisons, it is uniformly converted to the same reference speed and reference wetted surface area. ; ; In the formula, This represents the slowly varying resistance component under the current operating conditions, expressed in kN. The resistance conversion factor for the current operating condition is expressed in kN. The density of water is expressed in kg / m³ 3 Unit; and These are the current wetted surface area and the speed over water, respectively. This represents the coefficient of increase in equivalent frictional resistance; Indicates that the same Converted to reference speed and reference wetted surface area The resistance value after that, in kN, is as follows: In m / s With m 2 The unit is [unit]. The reference speed and corresponding reference floating state are selected before comparison, and the reference wetted surface area is determined by the hydrostatic data of that floating state; the same water density, positive reference speed and positive reference wetted surface area are used in the same comparison sequence, and the reference condition is not changed hourly.
[0100] Therefore, under fixed reference conditions, Follow Monotonous and undiminished; under actual working conditions It also depends on and This can decrease with reduced speed or changes in load. This conversion is used to reduce the direct impact of changes in operating conditions on long-term comparisons. It mainly reflects the changes in long-term additional friction effects.
[0101] Since existing operational data lacks records of dock repairs, hull cleaning, or underwater inspections with confirmed dates, this invention does not artificially reduce or reset the equivalent frictional resistance increment coefficient in existing calculations. Draft changes before and after berthing are treated as changes in cargo loading / unloading or ballast, and are not used to determine if hull cleaning has occurred. The rate at which cumulative operational characteristics increase over time can vary; therefore, the equivalent frictional resistance increment coefficient remains non-negative and non-decreasing, but this does not mean it must grow according to a pre-specified power function curve.
[0102] 4. White box resistance baseline correction branch The white box resistance baseline may still contain systematic errors caused by empirical formulas and approximations of ship parameters; therefore, a separate white box resistance baseline correction branch is set up. This branch only uses current operating condition parameters and limits the correction range using a hyperbolic tangent function. ; In the formula, The static input represents the parameters of the current operating condition, including speed, average draft, trim, speed, Froude number, wetted surface area, white box drag, and propulsion efficiency. This indicates the white box resistance baseline correction branch; Indicates the upper limit of the allowable correction amount, in kN; This represents the baseline correction for white box resistance, in kN. The hyperbolic tangent function will... Limited to to Between these, the branch only corrects the white box approximation error.
[0103] 5. Sample construction, difference analysis under similar operating conditions, and network training Operational monitoring records are fixedly divided into training, validation, and test segments according to UTC sequence. Quantile models, feature scaling, matching distance scales, SFOC, and network parameters must not be fitted using the test segment. The training segment is used for parameter estimation, the validation segment is used to determine constraint weights and computational ranges, and the test segment is used for final evaluation. A common record index is used when comparing the performance of different models; the coefficient of determination cannot be calculated separately using each model's most favorable subset of samples.
[0104] Short-term data pairs are selected over a relatively short time interval. The two endpoints have similar speeds and drafts, and the relationships between the main engine and propulsion can be calculated, with no significant abrupt changes in loading during this period. This comparison weakens the impact of slowly varying friction increments over short periods, and the network's response to short-term disturbances is constrained by the difference in normalized residuals. Long-term data pairs are selected over a longer time interval. Besides similar speeds, drafts, and RPMs, comparable operating and environmental conditions are required, and identified loading / unloading transitions are excluded. The similarity of the samples is determined based on the operating condition distance standardized according to the training segment scale.
[0105] In order to select records that can be used for comparison from historical data, this invention first calculates the standardized distance between two records on matching variables such as speed, draft, and rotational speed, and then converts this distance into a degree of similarity in operating conditions: ; ; In the formula, Representing records and records Standardized operating distance between them; This represents the set of operating condition variables used for matching; and They represent the first The values of each matching variable in the two records; This refers to a reference scale determined based on training data and used to unify the numerical ranges of different variables; This indicates the degree of similarity in working conditions obtained from distance transformation. The smaller the distance, the higher the similarity. The closer the two records are to 1, the more suitable they are for comparing similar operating conditions.
[0106] For the existing data pairs, calculate the dimensionless difference between the observed resistance residual and the model predicted resistance residual at the two endpoints: ; ; In the formula, Representing records and records The difference in the dimensionless drag residual between the observed values, This represents the corresponding difference between the model predictions; and These represent the observed drag residuals at the two endpoints, and This represents the residual of the model's predicted resistance. and This represents the resistance conversion factor for each of the two ends under their respective operating conditions.
[0107] To reduce the impact of a small number of large errors on the training results, Huber loss is used for each error term. The dimensionless error, denoted by the loss function, is defined as: ; In the formula, This is the boundary between squared loss and linear loss. The error used for observing the drag residual loss is: ; The error used for differential loss under similar short-term and long-term operating conditions is: ; In the formula, the subscript Identify the task of observing resistance residuals, subscript Identify differential tasks under similar operating conditions; The drag residual reference scale determined for the training data, in kN; A dimensionless difference reference scale determined for the training data. Therefore and All are dimensionless quantities. When calculating different loss terms, the corresponding errors are substituted into... .
[0108] First, the observation loss of the drag residual is used to ensure that the total residual predicted by the model is consistent with the observation residual obtained by back-calculation of the equivalent drag: ; Secondly, the differential loss under short-term similar operating conditions utilizes the residual changes between time-adjacent records to constrain the fast-changing response: ; Long-term similar operating condition differential loss utilizes records with long time intervals but comparable operating conditions to constrain the direction of interpretation of long-term changes: ; To avoid unfounded overall drift of the rapidly changing drag coefficient over the long term, further constraints are imposed on long-term rapidly changing state variations: ; Simultaneously, the amplitudes of the calm reference state, white box correction, and slowly varying state are limited to reduce meaningless mutual cancellation between the three branches: ; The above loss and constraint terms are combined with their respective weights to form the total loss function for network training: ; In the formula, This indicates the observation loss of the drag residual. This represents the differential loss under similar operating conditions over a short period of time. This represents the differential loss under long-term similar operating conditions. This indicates the loss that limits the rapid drag coefficient from exhibiting unfounded overall shifts between long-term data pairs. This represents the amplitude limits for the calm reference, white box correction, and slowly varying state. This represents the total training loss of the network; and These represent the sets of short-term data pairs and the sets of long-term similar operating condition data pairs, respectively. This represents the set of reference samples that are quasi-steady and relatively calm in the training data; and These represent the reference scales used to unify the numerical ranges of drag residuals and differential errors, respectively. , , They are respectively , , The negative unweighted coefficients.
[0109] The network parameters are updated through backpropagation of the total loss described above. The error gradient of low-confidence observations is due to... w R,t Smaller, weakened differential pairs with reliable endpoints provide strong constraints; the nonnegative monotonicity of the slow branch and the boundedness of the baseline are guaranteed by the structure. Calm reference constraints allow fast variables to be interpreted around a defined reference state, and amplitude constraints reduce meaningless cancellation between components. After training, network parameters, feature scales, and white-box parameters are kept consistent for subsequent recording.
[0110] VI. Power and fuel consumption calculation based on predicted drag 1. Prediction of total ship resistance At the predicted time This invention first calculates the white box resistance baseline based on the current speed, draft, and wind conditions. Then, a dual-time-scale resistance residual identification neural network outputs rapidly varying resistance, slowly varying resistance, and a white box baseline correction. Adding the white box baseline to the predicted resistance residual yields the predicted total ship resistance for the current moment. ; In the formula, Indicates time The predicted total resistance of the ship, in kN; Indicates the white box resistance baseline. The values represent the predicted drag residuals output by the dual-timescale drag residual identification neural network, both expressed in kN. This prediction process does not use the current host power as network input; the current power is only used for post-construction of equivalent drag observations and evaluation of prediction errors.
[0111] 2. Effective power and main engine braking power Once the equivalent total resistance of the ship is determined, the effective power is first calculated from the resistance and the speed against the water, and then converted into main engine braking power using the comprehensive propulsion efficiency: ; ; In the formula, Indicates time The effective power required to overcome the ship's equivalent total resistance. This indicates the corresponding main engine braking power, both of which are in kW. Expresses the equivalent total resistance of a ship, in kN; Expresses speed over water, in m / s; This indicates the overall efficiency of the advancement. Due to... Shaft efficiency has already been included, so there will be no need to repeat shaft efficiency corrections in the future.
[0112] 3. Calculation of Equivalent Fuel Consumption Rate and Fuel Consumption for Main Unit Operation To calculate fuel consumption from the main engine braking power, it is necessary to establish the relationship between the main engine's operating equivalent ratio fuel consumption rate and the fuel consumption rate. First, SFOC training labels are generated based on the reconstructed fuel consumption rate and the measured main engine power, and the main engine load and speed are dimensionless. ; ; ; In the formula, For a moment Main braking power observations used for tag construction, in kW; The main engine fuel consumption rate corresponding to the same effective reconfiguration interval, in kg / h. The operating equivalent fuel consumption rate calculated from both is expressed in g / (kW·h); 1000 is the coefficient for converting kg to g. (Superscript) This refers to the observations obtained from monitoring records or their reconstruction results, to distinguish them from the main engine braking power calculated from predicted resistance. The dimensionless form representing the host load; Indicates the selected continuous power reference, in kW; Indicates the standardized main engine speed. The engine speed is expressed in r / min. This represents the center value of the host rotation speed in the training samples. Indicates a reference scale used to unify the numerical range of rotational speeds; Based on this, the equivalent SFOC curve for operation is fitted using host load and standardized rotational speed, and the output is limited to a reasonable range supported by the training data: ; ; In the formula, This is the specific fuel consumption rate without imposed output range limitations; to These are the fitting parameters for the relationship; and These represent the lower and upper limits of the specific fuel consumption rate supported by the training data. Since load and standardized speed are dimensionless, the fitting parameters and specific fuel consumption rate are all expressed in units consistent with g / (kW·h).
[0113] The SFOC relationship fitting uses the same functional form as the actual prediction, but the power source corresponding to the load is different. The fitting stage uses observed main engine braking power (…). The main engine braking power is calculated using total resistance during the prediction phase. ), respectively:
[0114] .
[0115] Fitting with Substituting the load term into the SFOC relation, and combining it with the standardized rotational speed from the training records... Estimated coefficients; used in prediction Substitute the established same relation. The main engine speed is a dimensionless, standardized value, and the propeller speed is expressed in r / s. Distinguishing them. SFOC training labels are only for... And the calculation is based on valid fuel label records.
[0116] Utilizing fuel consumption task weights The fitting process aims to reduce the impact of outliers and constrain the non-negativity of the quadratic term. The current implementation performs six rounds of iterative fitting. In each round, the influence of large error samples is reduced based on the fitting error of the previous round, thereby minimizing the impact of outlier fuel samples on the SFOC relationship. Fitted samples must have a power output greater than 500kW, a positive fuel label, and a corresponding confidence level that meets the fitting conditions. Outlier SFOCs are constrained using the low and high quantile ranges of the training data. and The prediction is determined based on the training fit range, and does not continue to extrapolate to the range not covered by the training data in the extremely low load area where there is no data support.
[0117] Once the main engine braking power and the operating equivalent SFOC are determined, the main engine fuel consumption rate is calculated as follows: .
[0118] 4. Performance Evaluation of Drag and Fuel Consumption Prediction On a pre-defined evaluation record, the consistency between the predicted total ship resistance and the observed equivalent resistance, as well as the consistency between the fuel consumption rate converted from the predicted resistance and the reconstructed fuel consumption rate, are calculated. For any evaluation task, using... and They represent the first Reference values and predicted values for each evaluation record, in order to This indicates the number of evaluation records for this task. The average reference value is: ; The coefficient of determination and root mean square error are used to evaluate the agreement between predicted and reference values. ; ; For evaluation records with positive reference values, calculate the mean absolute percentage error: ; ; In the formula, The coefficient of determination is RMSE, the root mean square error is MAPE, and the mean absolute percentage error is RMSE. This is an index set of evaluation records with reference values greater than 0. This represents the number of records in the set. When evaluating resistance, the reference value is the equivalent resistance observation calculated from the main engine power and overall propulsion efficiency, and the predicted value is the predicted total resistance of the ship. RMSE is expressed in kN. When evaluating fuel consumption, the reference value is the reconstructed fuel consumption rate, and the predicted value is the fuel consumption rate converted from the predicted resistance through the relationship between power and SFOC. After mass measurement standardization, RMSE is expressed in kg / h. MAPE is a dimensionless quantity and is expressed as a percentage.
[0119] VII. Verification and Effect Analysis 1. External consistency test between rapidly changing resistance state and ERA5 reanalysis data The effective wave height, mean period, and mean direction of ERA5 wind waves and swells were matched to the operational monitoring records according to UTC and latitude and longitude. Combined indices related to direction and encounter frequency were constructed and then compared with the rapidly changing conditions. ERA5 data is reanalysis data and is not a direct measurement of the ship's wave-induced resistance.
[0120] Pair ERA5 wind and wave data with the corresponding operational records for time and location. For the first... For each wave component, the angular frequency, wave number, and encounter angular frequency are calculated using the deep-water linear wave relation: ; ; ; In the formula, Indicates wind and waves, Indicates surging waves; For the corresponding wave component at time The average period, in seconds; Angular frequency, expressed in rad / s; Wave number, in m⁻¹; For a moment The speed of navigation over water is expressed in m / s; The angular frequency of the wave component encountered by the ship, in rad / s; This is the acceleration due to gravity. The angle between the direction of the incoming wave and the direction of the bow is 0, and the angle between the incoming wave and the direction of the incoming wave at the stern is 0. When substituting into the cosine function, the unit is rad. During calculation, the difference between the ERA5 wave direction and the ship's bow direction under the same geographical reference is taken, and the result is standardized to a period angle. .
[0121] Based on the aforementioned encounter frequencies, and considering the effective wave height and relative angle of arrival of wind waves and swells, a wave combination indicator for external consistency testing is constructed: ; In the formula, For a moment Wave combination indicators; For the first The effective wave height of each wave component, in meters (m), where the subscript... Indicates the significant wave height; This is the encounter angular frequency of the component, in rad / s; The angle of approach relative to the bow of the ship, expressed in rad; 、 These correspond to wind waves and swells, respectively. The dimension of this indicator is m. 2 / s 2 It does not have the dimensions of resistance or wave height.
[0122] The values in square brackets represent the empirical directional weights used in this invention. The constants 0.25 and 0.75 are dimensionless set values, allowing the directional weights to vary between 0.25 and 1: 1 when the bow is facing the wave and 0.25 when the stern is facing the wave.
[0123] This indicator is only used to compare the consistency between the model's rapidly changing resistance state and the changes in external wave excitation. It is not used as a direct measurement of the true value of rapidly changing resistance, nor does it attribute all changes in rapidly changing resistance to waves. Each variable must correspond at the same recording time and location, and the correlation coefficient is calculated according to a defined sample range and time aggregation scale.
[0124] Figure 3 The Spearman correlation coefficient between the two on this independent test section is 0.842, which indicates that the rapidly changing drag state and the external wave excitation have a strong monotonic consistency on this test section.
[0125] 2. Verification of the rationality of the equivalent frictional resistance increment state Figure 4 The actual output of the slowly varying coefficients in the standard interface is given, and then converted to a unified physical coefficient scale for display. This curve is output hourly by the model according to the cumulative operating characteristics. The curve as a whole shows a non-negative, monotonically non-decreasing trend, which is consistent with the non-negative, non-decreasing structural constraints imposed by the model on the long-term additional friction effect.
[0126] This result reflects the model's equivalent frictional resistance increment state under existing operating data. The non-negative monotonic constraint is a structural restriction employed in this invention to address long-term variations.
[0127] 3. Downstream applications and validation of fuel consumption prediction Figure 5 Consistency verification results for the transfer of resistance prediction results to main engine fuel consumption rate within an independent test segment are presented. The test segment contains 519 records with an artificial mass marker of 1, where both the reconstructed fuel consumption rate and strict resistance path prediction results are valid. Effective power is calculated based on the predicted total ship resistance and surface speed, and main engine braking power is converted using the integrated propulsion efficiency. The main engine fuel consumption rate is then calculated using the operational equivalent fuel consumption rate relationship. The coefficient of determination R between the predicted and reconstructed values is presented. 2The mean square error (RMSE) was 0.918, the mean square error (RMSE) was 60.34 kg / h, and the mean absolute percentage error (MAPE) was 5.14%. These results were used to evaluate the predictive ability of drag prediction and its power-fuel consumption calculation chain on records not used in model training.
Claims
1. A method for predicting the resistance of operating vessels based on dual-time-scale resistance residual identification, characterized in that, Includes the following steps: Step S1: Obtain operational monitoring records and ship technical data, standardize the definitions of time, unit, draft, trim, ship speed against water, and wind direction, and retain manually confirmed error records, missing instructions, and data collection times from each device; Step S2: Using the ship's speed over water, relative wind conditions, draft, ship type parameters and propeller parameters as inputs, calculate the static water resistance, wind-induced resistance and wetted surface area respectively, and then calculate the white box resistance baseline and overall propulsion efficiency. Step S3: Based on the data from Step S1 and the calculation results from Step S2, identify the operating status and environmental status. Based on the physical and temporal consistency test, the statistical test of similar working conditions, and the fault identification results, calculate the field reliability, basic sample reliability, and resistance task reliability of the operation monitoring record. Step S4: On the operational monitoring records that are effective for main engine power, ship speed in water and comprehensive propulsion efficiency, back-calculate the equivalent resistance observation, subtract the white box resistance baseline to obtain the resistance residual observation, and use the wetted surface area, current water density and the square of ship speed in water obtained in step S2 to construct the resistance conversion scale, and convert the resistance residual into a dimensionless form. Step S5: Construct historical windows, short-term similar working condition data pairs, and long-term similar working condition data pairs in chronological order, and establish a dual-time-scale resistance residual identification neural network. The dual-time-scale resistance residual identification neural network includes a fast-changing resistance branch, a slow-changing resistance branch, and a white-box baseline correction branch. The neural network is trained using a joint training strategy that includes task credibility-weighted resistance residual observation loss, short-term similar working condition differential loss, long-term similar working condition differential loss, and physical state propagation constraints. Step S6: The dual-timescale resistance residual identification neural network uses historical time series, current operating conditions, cumulative operating characteristics, missing indicators, resistance task credibility, and differential data of similar operating conditions to output fast-changing resistance, slow-changing resistance, and white box baseline correction. The three are added together to obtain the predicted value of resistance residual. The predicted value of resistance residual is then added to the white box resistance baseline to obtain the predicted value of total ship resistance.
2. The method for predicting the resistance of operating vessels based on dual-time-scale resistance residual identification according to claim 1, characterized in that, In step S3, the physical and temporal consistency checks include absolute physical range, temporal consistency, adjacent change relationships, and cross-field physical consistency. Among them, absolute physical range is used to check whether latitude and longitude, draft, main engine speed, main engine power, and wind speed are within the range that the equipment and the ship can interpret; temporal consistency is used to check for uniform time index, deviations in the time of collection by different equipment, and duplicate records; adjacent change relationships are used to check whether the variation range of the same field between consecutive records is reasonable; cross-field physical consistency is used to check whether the power-speed, speed-geographical location changes, and mean draft and trim are coordinated.
3. The method for predicting the resistance of operating vessels based on dual-time-scale resistance residual identification according to claim 2, characterized in that, In step S3, the statistical test of similar operating conditions specifically involves: establishing a gradient-lifted quantile regression model for each field to be tested, using a condition vector as the input to the model; the condition vector includes the currently determined operating conditions and environmental conditions, motion and dynamic parameters that have a physical relationship with the field to be tested, the current average draft and inclination, and the rate of change of the field to be tested and related variables; the gradient-lifted quantile regression model includes conditional quantiles, conditional medians, and conditional upper quantile models; the distance between the upper and lower quantiles represents the normal fluctuation scale of the field under the current operating conditions, and the degree to which the current monitored value deviates from the conditional median is divided by this normal fluctuation scale to obtain the dimensionless conditional statistical deviation.
4. The method for predicting the resistance of operating vessels based on dual-time-scale resistance residual identification according to claim 3, characterized in that, In step S3, based on the physical and time consistency test and the statistical test of similar working conditions, numerical out-of-bounds, time correspondence anomalies, cross-field physical relationship anomalies, long-term invariance, drift, step, and conditional statistical deviation are taken as evidence of anomalies, and the field anomaly probability is obtained by using the fault discrimination model.
5. The method for predicting the resistance of operating vessels based on dual-time-scale resistance residual identification according to claim 1, characterized in that, Field credibility is expressed as: ; ; in, Representation field At any moment Whether the most basic usability condition is met; if it is met, set to 1; otherwise, set to 0. Indicates whether the retention conditions for complex operating conditions are met; Indicates the minimum level of confidence that can be retained under complex operating conditions; Representation field At any moment The basic credibility, This represents the score for the physical and temporal consistency test. This represents the statistical test score for similar operating conditions. This indicates the probability that the field will be judged as abnormal.
6. The method for predicting the resistance of operating vessels based on dual-time-scale resistance residual identification according to claim 1, characterized in that, The confidence level of the basic sample is expressed as: ; ; in, For a moment The credibility of the basic samples; This indicates whether the record has passed the manual quality mark and basic index check; a value of 1 indicates passing, and a value of 0 indicates otherwise. This is the confidence vector of the fields participating in the basic sample evaluation; This is a vector of non-negative aggregate coefficients corresponding to each field, and the sum of its components is greater than 0; This represents a function that calculates a weighted geometric average of the input scores based on the aggregation coefficients. The probability of discrimination due to insufficient information; This is a correction factor for the completeness of information.
7. The method for predicting the resistance of operating vessels based on dual-time-scale resistance residual identification according to claim 1, characterized in that, The reliability of a resistance mission is expressed as follows: ; in, For a moment The reliability scalar of the resistance task; This indicates whether the record meets the necessary conditions for constructing an equivalent resistance observation; a value of 1 indicates that the record meets the conditions, and a value of 0 indicates otherwise. The input scoring vector for participating in the drag mission evaluation includes scores for time, surface speed, main engine power, main engine speed, draft, relative wind, white box baseline calculation quality, and propulsion calculation quality. It is a non-negative aggregate coefficient vector that corresponds one-to-one with each score, and the sum of its components is greater than 0; This represents a function that calculates a weighted geometric average of the input scores based on the aggregation coefficients.
8. The method for predicting the resistance of operating vessels based on dual-time-scale resistance residual identification according to claim 1, characterized in that, In step S5, the loss function used in the joint training strategy is as follows: ; In the formula, This indicates the observation loss of the drag residual. This represents the differential loss under similar operating conditions over a short period of time. This represents the differential loss under long-term similar operating conditions. This indicates the loss that limits the rapid drag coefficient from exhibiting unfounded overall shifts between long-term data pairs. This represents the amplitude limits for the calm reference, white box correction, and slowly varying state. This represents the total training loss of the network; , , They are respectively , , The weighting coefficients.
