Method for establishing ship fuel consumption based on support vector machine regression deep learning algorithm
By using support vector machine regression deep learning algorithms to process ship AIS, messages, and meteorological data, the problems of large fuel consumption prediction errors and difficult data acquisition are solved, achieving efficient fuel consumption prediction and model scalability.
Patent Information
- Application Number
- CN202411548490.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-01
- Publication Date
- 2024-11-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing ship fuel consumption prediction models fail to fully consider various influencing factors, resulting in large prediction errors, high difficulty in data acquisition, and complex model calculations.
A support vector machine regression deep learning algorithm is used to acquire ship AIS, message and meteorological data, perform data cleaning and normalization, extract feature parameters, and use support vector machine regression algorithm to train the model, select appropriate kernel function and adjust parameters to predict fuel consumption.
It improves the accuracy of fuel consumption prediction, reduces the complexity of data acquisition and model calculation, and achieves scalability of fuel consumption models for different types and single ships.
Smart Images

Figure CN119046777A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of ship fuel consumption, and in particular relates to a method for establishing ship fuel consumption based on a support vector machine regression deep learning algorithm. Background Art
[0002] Ship fuel consumption is an important source of cost for shipping companies. With the rise in international fuel prices and the increasing international requirements for ship carbon emission indexes, accurate prediction of ship fuel consumption is becoming increasingly important for rationally planning ship sailing time and reducing the operating costs of aviation fuel companies.
[0003] At present, simple fuel consumption prediction only uses the historical relationship between fuel consumption and speed, without considering the impact of other factors on fuel consumption, resulting in large model prediction errors; some fuel consumption models have strict requirements on the accuracy and amount of historical data, and the difficulty and high requirements of data acquisition make it difficult to model some ships, and the model cannot be effectively used. The present invention proposes a method of mining historical fuel consumption data of ships from AIS data, and using a support vector machine regression (SVR) deep learning algorithm to predict ship fuel consumption. Support vector machine regression (SVR) is a machine learning algorithm based on support vector machine (SVM), which can analyze and process ships according to multiple factors in a specific environment, calculate the characteristic coefficient corresponding to each characteristic variable, and then select the influencing factors with the best model calculation effect to automatically predict the ship's fuel consumption. Summary of the invention
[0004] In view of this, the present invention aims to propose a ship fuel consumption method based on a support vector machine regression deep learning algorithm to solve at least one problem existing in the above-mentioned prior art.
[0005] To achieve the above object, the technical solution of the present invention is achieved as follows: A method for establishing ship fuel consumption based on a support vector machine regression deep learning algorithm comprises the following steps: S1. Obtain a ship sample set, where the ship sample set data includes ship AIS data, ship message data, and meteorological data; S2, cleaning the data in step S1; S3, analyzing the factors affecting ship fuel consumption and the influence of characteristic values on the data cleaned in step S2; S4. Use the support vector machine regression algorithm to train the data model and output the prediction results.
[0006] Furthermore, in step S1, the ship AIS data includes static data, dynamic data and voyage data of the ship, wherein the static data of the ship includes the ship name, call sign, ship type, length and width of the ship; the dynamic data of the ship includes the longitude, latitude, heading, track and speed of each waypoint during the voyage of the ship; and the voyage data of the ship includes the ship status, draft, destination and expected arrival time.
[0007] Furthermore, in step S2, data cleaning includes: The ship data is cleaned according to the ship MMSI number of the ship static data. After cleaning, the data is separated according to the ship type, and finally the information and ship track points of different ships are obtained; After data cleaning, the data is normalized to limit the data interval to the same level. The normalization method is as shown in formula (1): (1); Among them, x represents the original value, x min Represents the minimum value in the original data set, x max represents the maximum value in the original data set, and y represents the normalized value.
[0008] Furthermore, in step S3, the analysis of factors affecting ship fuel consumption and the analysis of the influence of characteristic values include: Extracting characteristic parameters from the data cleaned in step S2; Call the corrcoef function and stepwisefit function in MATLAB to select the characteristic parameters that have the greatest impact on fuel consumption.
[0009] Furthermore, in step S4, a support vector machine regression algorithm is used to train the data model and output prediction results, including: Given a training sample set A as shown in formula (2): (2); Among them, y1...y n Represents the output result, a, b, c, ..., x represent the values of different feature latitudes; A regression model is expected to be obtained through the sample set. The expression of the regression model is shown in formula (3), where w and b are the unknown parameters of the model, f(x) is the calculation result of the model, y is the actual result of the model, and the maximum error between the two is recorded as ε, that is, the calculation result is retained only when formula (4) is satisfied; (3); (4); Among them, x i is the input vector, yi Indicates the corresponding output result, l ε is a non-negative relaxation function that satisfies constraint (5) and is an insensitive loss function, and C is a penalty factor constant; (5); The support vector machine algorithm needs to set a kernel function to reduce the computational complexity. According to the characteristics of the data set, the kernel function is selected for model learning. The kernel function types are divided into linear kernel function, whose expression is shown in formula (6); polynomial kernel function, whose expression is shown in formula (7); radial basis function, whose expression is shown in formula (8); sigmoid kernel function, whose expression is shown in formula (9); Finally, the parameter values are adjusted by calculating the model's root mean square error, mean absolute error, and mean deviation error to obtain the best model prediction results.
[0010] Furthermore, the linear kernel function is expressed as formula (6): (6); Among them, x and y are two vectors in space, x T Represents the transposed vector of vector x.
[0011] Furthermore, the expression of the polynomial kernel function is formula (7): (7); Among them, x and y are two vectors in space, x T represents the transposed vector of vector x, γ, r, and d represent parameters, which need to be adjusted according to actual data.
[0012] Furthermore, the expression of the radial basis function is formula (8): (8); Among them, x and y are two vectors in space, exp represents the exponential function with e as the base, and γ represents the parameter, which needs to be adjusted according to the actual data.
[0013] Furthermore, the expression of the Sigmoid kernel function is formula (9): (9); Among them, x and y are two vectors in space, tanh is the hyperbolic tangent function, γ and r are parameters that need to be adjusted according to actual data.
[0014] Furthermore, the expression of the model root mean square error is formula (10): (10); Where n is the number of samples, y iis the actual output result, z i To predict the results; The expression of mean absolute error is formula (11): (11); Where n is the number of samples, y i is the actual output result, z i To predict the results; The expression of the average deviation error is formula (12): (12); Where n is the number of samples, y i is the actual output result, z i For the prediction results.
[0015] Compared with the prior art, the method for establishing ship fuel consumption based on support vector machine regression deep learning algorithm described in the present invention has the following advantages: The method for establishing ship fuel consumption based on support vector machine regression deep learning algorithm described in the present invention uses support vector machine regression deep learning algorithm to provide data acquisition, data processing, influencing factor selection and parameter adjustment schemes to predict ship fuel consumption data. It solves the problems of inaccurate fuel consumption prediction due to insufficient consideration of fuel consumption influencing factors; and the difficulty of data acquisition and complex model calculation due to excessive amount of fuel consumption influencing data. At the same time, the method can choose to establish a fuel consumption model of a certain type of ship or a fuel consumption model of a single ship according to the data situation, and the model has strong scalability. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the accompanying drawings: Figure 1 This is a schematic diagram of the model training process described in an embodiment of the present invention; Figure 2 This is a schematic diagram of a fuel consumption data set according to an embodiment of the present invention; Figure 3 This is a schematic diagram of a training sample set after normalization processing according to an embodiment of the present invention; Figure 4 This is a schematic diagram for comparing prediction results of a training set according to an embodiment of the present invention; Figure 5 A schematic diagram showing comparison of test set training results according to an embodiment of the present invention; Figure 6 A schematic diagram showing the comparison between the predicted value and the true value of the training set according to an embodiment of the present invention; Figure 7Schematic diagram of comparison between predicted values and true values of a test set according to an embodiment of the present invention. DETAILED DESCRIPTION
[0017] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other.
[0018] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and the like are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", and the like may explicitly or implicitly include one or more of the features. In the description of the present invention, unless otherwise specified, "multiple" means two or more.
[0019] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood by specific circumstances.
[0020] The present invention will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.
[0021] like Figures 1 to 7 As shown, a ship fuel consumption method is established based on a support vector machine regression deep learning algorithm, including the following steps: The factors affecting the fuel consumption of different ships may vary. When the amount of data is insufficient, a simple classification can be made according to the ship type. When sufficient data is accumulated, the data, characteristic parameter processing and model training of a single ship can be performed in the same way to establish the ship's own fuel consumption prediction model.
[0022] 1. Data processing. Ship fuel consumption involves ship AIS data, ship message data and meteorological data. The amount of data is huge but the information is scattered, and it needs to be processed and integrated into usable data in advance.
[0023] The Automatic Identification System (AIS) consists of base station facilities on shore and shipborne equipment. The AIS system can automatically broadcast and receive static information, dynamic information, voyage information and safety information of ships, and these information are not affected by bad weather, so that various information of ships can be monitored and collected in real time, and a large amount of AIS data has been accumulated. AIS data includes static data of ships: ship name, call sign, ship type, length, ship width, etc.; dynamic data of ships: longitude, latitude, bow direction, track direction, speed, etc. of each waypoint during the ship's voyage; ship voyage data: ship status, draft, destination, expected arrival time and other information. According to the ship's position and time information, the corresponding hydrological and meteorological information can be obtained. At present, the more accurate fuel consumption information of ships is ship messages, so it is necessary to process AIS data and message data time accordingly.
[0024] 2. Data cleaning Currently, AIS and message data have duplication, missing data or some erroneous data, which makes the data unusable directly. The data quality can be improved and the model training can be facilitated by means of data cleaning, screening or interpolation.
[0025] The ship data is cleaned according to the ship MMSI number. The MMSI number is the unique number to distinguish ships. The MMSI number can ensure that the data is the same ship. After cleaning, the data is separated according to the ship type, and finally the information and ship track points of different ships are obtained. Data quality affects the accuracy of subsequent model learning, so its accuracy is guaranteed as much as possible through data processing. The data cleaning plan is shown in Table 1.
[0026] Table 1 Data cleaning solution ; The magnitudes of different data vary greatly. After data cleaning, all data are normalized to limit the data interval to the same magnitude. The normalization method is as shown in formula (1).
[0027] (1); Among them, x represents the original value, x min Represents the minimum value in the original data set, x max represents the maximum value in the original data set, and y represents the normalized value.
[0028] 3. Analysis of factors affecting ship fuel consumption and the impact of characteristic values Based on the processed data, characteristic parameters are extracted. In order to reduce the amount of model calculation, characteristic parameter selection is required. Call the corrcoef function and stepwisefit function in MATLAB to select the parameters that have the greatest impact on fuel consumption. The stepwisefit function is used for stepwise regression analysis. Stepwise regression analysis is a variable selection method to select independent variable combinations that have a significant impact on the dependent variable. The corrcoef function calculates the Pearson correlation coefficient, which measures the linear relationship between two variables. The order of the correlation between each parameter and fuel consumption is obtained by calculating and synthesizing in two ways. In the future, the same method is used to change the data set to single ship data to obtain a fuel consumption fitting solution suitable for each single ship.
[0029] 4. Model Training Support vector machines (SVM) are a powerful machine learning algorithm that is particularly suitable for complex classification and regression tasks. Support vector machine regression (SVR) is a machine learning algorithm based on support vector machines (SVM) that is used to solve regression problems. The data is input into the support vector machine, and the support vector machine regression algorithm is used to seek the minimum structured risk, thereby improving the generalization ability, and thus achieving better results even when the statistical sample size is small.
[0030] First, a training sample set A is given as shown in formula (2): (2); where y1...y n Represents the output result, and a, b, c, ..., x represent the values of different feature dimensions.
[0031] A regression model can be obtained through sample set expectation, as shown in formula (3), where w and b are the unknown parameters of the model, f(x) is the calculated result of the model, y is the actual result of the model, and the maximum error between the two is denoted as ε, that is, the calculated result is retained only when formula (4) is satisfied.
[0032] (3); (4); Among them, x i is the input vector, y i Indicates the corresponding output result, l ε is a non-negative relaxation function that satisfies constraint (5) and is an insensitive loss function. C is a penalty factor constant. (5); The support vector machine algorithm needs to set a kernel function to reduce the computational complexity. According to the characteristics of the data set, selecting a suitable kernel function can more effectively learn the model. Kernel function types are divided into linear kernel function, as shown in formula (6); polynomial kernel function, as shown in formula (7); radial basis function, as shown in formula (8); sigmoid kernel function, as shown in formula (9).
[0033] (6); Where x and y are two vectors in space, x T Represents the transposed vector of vector x. The linear kernel function is simple to calculate and fast, and is suitable for situations where the number of features is large and the data is close to linear separable in the original space.
[0034] (7); Where x and y are two vectors in space, x T represents the transposed vector of vector x, γ, r, and d represent parameters, which need to be adjusted according to actual data. The polynomial kernel function can fit complex nonlinear relationships, but it is sensitive to parameters and needs to be carefully adjusted to obtain better results.
[0035] (8); Where x and y are two vectors in space, exp represents an exponential function with e as the base, and γ represents a parameter that needs to be adjusted according to actual data. The radial basis function is a commonly used kernel function in deep learning algorithms. It has strong nonlinear fitting capabilities, but is sensitive to the parameter γ. Different parameter values have a great impact on the performance of the model.
[0036] (9); Among them, x and y are two vectors in space, tanh is the hyperbolic tangent function, and γ and r are parameters that need to be adjusted according to actual data. The Sigmoid kernel function is a kernel function that can be used in the support vector machine algorithm. It is similar to the activation function in the neural network and can fit complex nonlinear relationships. It is mainly used in text classification, bioinformatics, and image recognition.
[0037] Finally, the parameter values are adjusted by calculating the model root mean square error, mean absolute error, and mean deviation error to obtain the best model results. Model root mean square error (RMSE): Root mean square error is a commonly used indicator to measure the error between the predicted value and the true value. The expression is shown in formula (10). A lower RMSE value indicates that the error between the model's predicted value and the true value is smaller, and the model performance is better.
[0038] (10); Where n is the number of samples, y i is the actual output result, z i For the prediction results.
[0039] Mean Absolute Error (MAE): Mean absolute error is an indicator used to measure the error between the predicted value and the true value. The expression is shown in formula (11). It calculates the average of the absolute values of the difference between the predicted value and the true value. A lower MAE value indicates that the error between the model's predicted value and the true value is smaller, and the model performance is better.
[0040] (11); Where n is the number of samples, y i is the actual output result, z i For the prediction results.
[0041] Mean Bias Error (MBE): Mean Bias Error is the average value of the deviations between all individual observations and the true value, as shown in formula (12). It can be used to determine whether the predicted value is systematically high or low. If MBE is positive, it means that the predicted value is generally high; if MBE is negative, it means that the predicted value is generally low.
[0042] (12); Where n is the number of samples, y i is the actual output result, z i For the prediction results.
[0043] The present invention provides a fuel consumption fitting algorithm based on ship AIS data, message data and meteorological data, obtains AIS data to obtain basic ship parameters and route information, matches meteorological information and message fuel consumption information, obtains input data through data cleaning and normalization processing, adopts support vector machine regression algorithm to establish deep learning algorithm model, analyzes and trains characteristic coefficients for influencing factors and eigenvalues, adjusts algorithm parameter values through model root mean square error, mean absolute error and mean deviation error, and predicts ship fuel consumption. The support vector machine regression algorithm does not require a large number of training samples and has good performance for output results involving complex nonlinear relationships such as fuel consumption, which can effectively solve the problem of inaccurate prediction model due to too few influencing factors, and complex model modeling and low model calculation efficiency due to too much data, providing a new solution for ship fuel consumption prediction.
[0044] The present invention uses the support vector machine regression deep learning algorithm to provide data acquisition, data processing, influencing factor selection and parameter adjustment schemes to predict ship fuel consumption data. It solves the problems of inaccurate fuel consumption prediction due to insufficient consideration of fuel consumption influencing factors, and the difficulty of data acquisition and complex model calculation due to excessive amount of fuel consumption influencing data. At the same time, the method can select to establish a fuel consumption model of a certain type of ship or a fuel consumption model of a single ship according to the data situation, and the model has strong scalability.
[0045] Example 1 The factors affecting the fuel consumption of different ships are different. When the amount of data is insufficient, a simple classification can be performed according to the ship type. When sufficient data is accumulated later, the data, characteristic parameter processing and model training of a single ship can be performed in the same way to establish the ship's own fuel consumption prediction model. The present invention is illustrated by an example of data of a bulk carrier.
[0046] 1. Data processing. Ship fuel consumption involves ship AIS data, ship message data and meteorological data. The amount of data is huge but the information is scattered, and it needs to be processed and integrated into usable data in advance.
[0047] The time and longitude and latitude coordinates of the ship are obtained through the message data, and the ship's AIS data and meteorological data are matched based on these two information and the ship's unique identification code MMSI. Figure 2 It is part of the data information after the integration of ship AIS data, message data and meteorological data. The first line is the ship AIS data, message data and meteorological data type, and the second line and thereafter are the specific data of the ship AIS data, message data and meteorological data type.
[0048] 2. Data cleaning Currently, AIS and message data have duplication, missing data or some erroneous data, which makes the data unusable directly. The data quality can be improved and the model training can be facilitated by means of data cleaning, screening or interpolation.
[0049] The ship data is cleaned according to the ship MMSI number. The MMSI number is the unique number to distinguish ships. The MMSI number can ensure that the data is the same ship. After cleaning, the data is separated according to the ship type, and finally the information and ship track points of different ships are obtained. Data quality affects the accuracy of subsequent model learning, so its accuracy is guaranteed as much as possible through data processing. The data cleaning plan is shown in Table 1.
[0050] The magnitudes of different data vary greatly. After data cleaning, all data are normalized to limit the data interval to the same magnitude, such as Figure 3It is the training sample set after normalization. The first few columns are the influencing factors, and the last column represents the output fuel consumption (unit: tons / day).
[0051] 3. Analysis of factors affecting ship fuel consumption and the impact of characteristic values Based on the processed data, characteristic parameters are extracted. In order to reduce the amount of model calculation, characteristic parameter selection is required. Call the corrcoef function and stepwisefit function in MATLAB to select the parameters that have the greatest impact on fuel consumption. The stepwisefit function is used for stepwise regression analysis, which is a variable selection method to select independent variable combinations that have a significant impact on the dependent variable. The corrcoef function calculates the Pearson correlation coefficient, which measures the linear relationship between two variables. Using two methods to calculate separately can derive the order of the correlation between each parameter and fuel consumption.
[0052] The present invention processes the data of bulk carriers, and obtains the ranking of the influence of each parameter on fuel consumption from large to small: 1 main engine power, 2 ship deadweight, 3 difference between wind direction and ship heading, 4 ship sailing speed, 5 ship draft, 6 comprehensive wave height, 7 ocean current size, 8 wind speed. The same method is used later to change the data set to single ship data, and the fuel consumption fitting scheme of a single ship can be obtained.
[0053] The fuel consumption on board mainly includes the main engine high-sulfur oil consumption, main engine low-sulfur oil consumption, main engine marine diesel fuel consumption, main engine marine light fuel oil consumption and four types of fuel consumption corresponding to the auxiliary engine. When predicting fuel consumption, such a detailed classification is not required. Therefore, this study takes the sum of the daily consumption of various fuel types on board the main engine and auxiliary engine as the output result.
[0054] 4. Model Training Support vector machines (SVM) are a powerful machine learning algorithm that is particularly suitable for complex classification and regression tasks. Support vector machine regression (SVR) is a machine learning algorithm based on support vector machines (SVM) that is used to solve regression problems. The data is input into the support vector machine, and the support vector machine regression algorithm is used to seek the minimum structured risk, thereby improving the generalization ability, and thus achieving better results even when the statistical sample size is small.
[0055] Use the svmtrain function in MATLAB, set the SVM type to the SVR algorithm, input the normalized training samples and set the sample set to the test set ratio. The kernel function types use linear kernel function, polynomial kernel function, radial basis function, and sigmoid kernel function, set the penalty factor value and kernel function parameter value, and after shuffling the data set, calculate the model root mean square error, mean absolute error, and mean deviation error adjustment parameter values. After adjusting the parameters, the error results of each kernel function are shown in Table 2.
[0056] Table 2 Kernel function error results ; It can be seen that the best effect is achieved when the radial basis function is selected as the kernel function, where the penalty factor c is 4.0; the radial basis function parameter γ is 0.65; the loss function in SVR is 0.5. The comparison analysis results between the true value and the test value are as follows: Figure 4-Figure 7 As shown, it can be seen that the trend is consistent with the daily fuel consumption, and the error meets the needs of ship fuel consumption prediction.
[0057] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A ship fuel consumption method is established based on a support vector machine regression deep learning algorithm, which is characterized by: The following steps are involved: S1. Obtain a ship sample set, where the ship sample set data includes ship AIS data, ship message data, and meteorological data; S2, cleaning the data in step S1; S3, analyzing the factors affecting ship fuel consumption and the influence of characteristic values on the data cleaned in step S2; S4. Use the support vector machine regression algorithm to train the data model and output the prediction results.
2. The method for establishing ship fuel consumption based on support vector machine regression deep learning algorithm according to claim 1 is characterized in that: In step S1, the ship AIS data includes static data, dynamic data and voyage data of the ship, wherein the static data of the ship includes the ship name, call sign, ship type, length and width of the ship; the dynamic data of the ship includes the longitude, latitude, heading, track and speed of each waypoint during the voyage of the ship; and the voyage data of the ship includes the ship status, draft, destination and expected arrival time.
3. The method for establishing ship fuel consumption based on support vector machine regression deep learning algorithm according to claim 2 is characterized in that: In step S2, data cleaning includes: The ship data is cleaned according to the ship MMSI number of the ship static data. After cleaning, the data is separated according to the ship type, and finally the information and ship track points of different ships are obtained; After data cleaning, the data is normalized to limit the data interval to the same level. The normalization method is as shown in formula (1): (1); Among them, x represents the original value, x min Represents the minimum value in the original data set, x max represents the maximum value in the original data set, and y represents the normalized value.
4. The method for establishing ship fuel consumption based on support vector machine regression deep learning algorithm according to claim 1, characterized in that: In step S3, the analysis of factors affecting ship fuel consumption and the analysis of the influence of characteristic values include: Extracting characteristic parameters from the data cleaned in step S2; Call the corrcoef function and stepwisefit function in MATLAB to select the characteristic parameters that have the greatest impact on fuel consumption.
5. The method for establishing ship fuel consumption based on support vector machine regression deep learning algorithm according to claim 1, characterized in that: In step S4, a support vector machine regression algorithm is used to train the data model and output the prediction results, including: Given a training sample set A as shown in formula (2): (2); Among them, y1...y n Represents the output result, a, b, c, ..., x represent the values of different feature latitudes; A regression model is expected to be obtained through the sample set. The expression of the regression model is shown in formula (3), where w and b are the unknown parameters of the model, f(x) is the calculation result of the model, y is the actual result of the model, and the maximum error between the two is recorded as ε, that is, the calculation result is retained only when formula (4) is satisfied; (3); (4); Among them, x i is the input vector, y i Indicates the corresponding output result, l ε is a non-negative relaxation function that satisfies constraint (5) and is an insensitive loss function, and C is a penalty factor constant; (5); The support vector machine algorithm needs to set a kernel function to reduce the computational complexity. According to the characteristics of the data set, the kernel function is selected for model learning. The kernel function types are divided into linear kernel function, whose expression is shown in formula (6); polynomial kernel function, whose expression is shown in formula (7); radial basis function, whose expression is shown in formula (8); sigmoid kernel function, whose expression is shown in formula (9); Finally, the parameter values are adjusted by calculating the model's root mean square error, mean absolute error, and mean deviation error to obtain the best model prediction results.
6. The method for establishing ship fuel consumption based on support vector machine regression deep learning algorithm according to claim 5 is characterized in that: The expression of the linear kernel function is formula (6): (6); Among them, x and y are two vectors in space, x T Represents the transposed vector of vector x.
7. The method for establishing ship fuel consumption based on support vector machine regression deep learning algorithm according to claim 5 is characterized in that: The expression of the polynomial kernel function is formula (7): (7); Among them, x and y are two vectors in space, x T represents the transposed vector of vector x, γ, r, and d represent parameters, which need to be adjusted according to actual data.
8. The method for establishing ship fuel consumption based on support vector machine regression deep learning algorithm according to claim 5 is characterized in that: The expression of radial basis function is formula (8): (8); Among them, x and y are two vectors in space, exp represents the exponential function with e as the base, and γ represents the parameter, which needs to be adjusted according to the actual data.
9. The method for establishing ship fuel consumption based on support vector machine regression deep learning algorithm according to claim 5, characterized in that: The expression of the Sigmoid kernel function is formula (9): (9); Among them, x and y are two vectors in space, tanh is the hyperbolic tangent function, γ and r are parameters that need to be adjusted according to actual data.
10. The method for establishing ship fuel consumption based on support vector machine regression deep learning algorithm according to claim 5, characterized in that: The expression of the model root mean square error is formula (10): (10); Where n is the number of samples, y i is the actual output result, z i To predict the results; The expression of mean absolute error is formula (11): (11); Where n is the number of samples, y i is the actual output result, z i To predict the results; The expression of the average deviation error is formula (12): (12); Where n is the number of samples, y i is the actual output result, z i For the prediction results.
Citation Information
Patent Citations
Genetic algorithm-based support vector regression shipping traffic flow prediction method
CN102005135A
Method for predicting ship energy consumption based on deep learning and support vector regression
CN106709640A
Method for predicting ship fuel consumption according to sea conditions and manipulating conditions
CN106779137A
Container ship voyage encasement quantity prediction method
CN109978270A
Ship oil consumption estimation method and system based on AIS
CN115456451A
Cited By
Ocean vessel oil consumption prediction method based on big data
CN119953537A
