Hybrid power ship energy optimization method based on working condition identification
Using deep learning technology and convolutional neural network to identify ship operating conditions, combined with a nonlinear model predictive controller, the problem of low operating condition processing efficiency in hybrid ship energy optimization is solved, and real-time and accurate energy control and energy consumption optimization are achieved. .
Patent Information
- Application Number
- CN202411017803.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-09-27
AI Technical Summary
Existing hybrid ship energy optimization methods fail to effectively handle different working conditions, resulting in low energy control efficiency, and rely on complex data annotation and feature extraction processes, making it difficult to achieve real-time and accurate working condition identification.
Use deep learning technology, especially convolutional neural networks, to identify ship operating conditions, establish a nonlinear model predictive controller, and realize closed-loop control of hybrid ship energy by adaptively adjusting constraints and cost functions, using the diesel generator speed and energy storage battery current for energy optimization.
It improves the real-time and accuracy of ship energy control, maintains optimal control performance under different working conditions, reduces energy consumption, provides a new data-driven analysis perspective, and improves working condition identification and energy management.
Smart Images

Figure CN118701255A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of ships, and in particular to a hybrid ship energy optimization method based on working condition identification. Background Art
[0002] A hybrid-powered ship is a ship that uses two or more power sources as propulsion. Hybrid technology promotes the development of ships from traditional power drive to a greener drive, alleviating the problem of carbon dioxide and pollutant emissions while also taking into account the problem of reducing energy consumption. Many scholars have studied ship control methods and energy management methods for hybrid power systems, hoping to effectively coordinate the multiple power sources of hybrid power systems, reduce energy consumption and reduce carbon emissions.
[0003] In public data, most of the energy optimization methods for hybrid ships optimize energy distribution from the perspective of shipboard power generation devices or power equipment, such as solving the problem of wave disturbance on propellers and solving the aging problem of energy storage batteries, but do not explicitly mention the treatment of different working conditions. Identifying ship working conditions and improving the accuracy and speed of working condition identification are of great significance to ship energy optimization and will promote future research on ship working conditions.
[0004] In essence, ship working condition recognition belongs to the category of pattern recognition, and the problem of ship working condition recognition can be considered from the perspective of supervised learning methods and data-driven. However, whether there is supervised learning technology or not, data is required as a prerequisite. Therefore, collecting ship working condition data is the basis for completing the working condition recognition task. Secondly, unsupervised learning is overly dependent on the quality and characteristics of the data, and the results it produces may not be easy to understand and accept, and it is not suitable for all types of data sets. Supervised learning has the function of correction and optimization, but the disadvantage is that it requires manual labeling of data. However, considering that working condition recognition requires real-time performance, the present invention adopts deep learning technology, and convolutional neural network is used for working condition recognition research. The advantage is that the model can be trained offline, avoiding the disadvantage of online training required for new data to be added; at the same time, the labeled data is easy to understand and accept, and the disadvantage that unsupervised learning may not meet the performance requirements is avoided; at the same time, the deep learning technology mainly used for image processing is used in the research of ship working conditions, which is innovative.
[0005] The main contribution of the present invention is to design a hybrid ship nonlinear model predictive control energy optimization method based on working condition identification. By collecting, processing, cleaning and analyzing data of hybrid ships, a ship working condition classification data set is established. Through deep learning technology, namely convolutional neural network, an offline working condition classification model is trained for working condition identification tasks to provide decision information for ship energy optimization. The ship power system is modeled, the fuel consumption of the ship is considered, and optimized. The present invention designs energy with the diesel generator speed and the current of the energy storage battery as control variables. Summary of the invention
[0006] In order to overcome the defects of the prior art, the present invention provides a hybrid ship energy optimization method based on operating condition identification. The method is based on the closed-loop control of the hybrid ship energy, identifies the internal operating conditions of the ship through deep learning technology, adaptively adjusts the constraints and cost functions of the nonlinear model predictive controller, and realizes closed-loop control of the energy optimization of the hybrid ship.
[0007] In order to achieve the above object, the present invention provides a hybrid ship energy optimization method based on working condition identification, and the control process includes:
[0008] Collect ship operating data;
[0009] According to the ship operating condition data, a convolutional network is used to identify the ship operating condition type;
[0010] The energy control of the ship is optimized through the rolling optimization characteristics of the nonlinear model predictive controller; the decision information of the nonlinear model predictive controller includes the current ship speed and the power level of the ship's required power; the way to optimize the energy control includes controlling the energy output of the diesel generator and the energy output of the energy storage battery, and the specific control targets include the current of the energy storage battery and the speed of the main engine in the diesel generator;
[0011] The constraint conditions and cost function in the nonlinear model predictive controller are adaptively adjusted according to the ship operating condition type.
[0012] A further improvement of the present invention is:
[0013] The convolutional neural network model is composed of a convolutional layer, a maximum pooling layer, a convolutional layer, a convolutional layer, a maximum pooling layer, a convolutional layer, a convolutional layer, a maximum pooling layer, and two fully connected layers from the input layer to the output layer.
[0014] The input parameters of the convolutional neural network model include ship speed, load power, load voltage, load current, propulsion power, propulsion voltage, propulsion current, and propulsion torque;
[0015] The operating condition types output by the convolutional neural network model include: "low speed-low power", "low speed-high power", "high speed-low power", and "high speed-high power".
[0016] A further improvement of the present invention is that the process of constructing the convolutional neural network includes:
[0017] Collect ship operating data;
[0018] Perform data cleaning, including deleting invalid values and filling missing values;
[0019] Through data visualization and manual annotation, a ship operating condition data set is established; the ship operating condition data set is divided into a training set and a test set;
[0020] The convolutional neural network is trained using a training set; after each training session, the test set is used to test and evaluate the accuracy of the network model. If the accuracy does not meet the preset range, hyperparameters are adjusted, including: learning rate and activation function.
[0021] A further improvement of the present invention is that in the process of constructing a nonlinear model predictive controller:
[0022] A nonlinear model predictive controller is designed for the power system model established for the ship's diesel generator and energy storage battery. The state variables of the nonlinear model predictive controller are the fuel consumption of the diesel generator and the battery's state of charge, the control variables are the speed of the diesel generator host and the battery's current, and the cost function involves changes in the battery's state of charge, changes in the instantaneous fuel consumption of the diesel generator, the generator power, and the energy storage battery power.
[0023] The beneficial effects of the method of the present invention are:
[0024] 1. By collecting data during the operation of the ship and establishing a ship operating condition data set, the ship operating condition identification task is completed from a data-driven perspective, providing a new analysis angle for the ship operating condition identification work.
[0025] 2. The constraints and cost functions of the nonlinear model predictive control algorithm in energy optimization control are improved through the offline operating condition identification model, so that the method can adaptively adjust the parameters as the operating conditions change, thereby maintaining better control performance under different operating conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 is a structural diagram of the power system of the ship in this embodiment;
[0027] Figure 2 It is a working condition recognition model and training process based on convolutional neural network;
[0028] Figure 3 It is a block diagram of the energy optimization method of nonlinear model predictive control of hybrid ship based on working condition identification;
[0029] Figure 4 It is the working characteristic curve of diesel generator;
[0030] Figure 5 It is the equivalent internal resistance model of the battery;
[0031] Figure 6 This is a flow chart of the energy optimization method of nonlinear model predictive control of hybrid ship based on operating condition identification. DETAILED DESCRIPTION
[0032] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0033] It should be noted that the illustrations provided in the following embodiments are only used to illustrate the basic concept of the present invention in a schematic manner, and thus the illustrations only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0034] While some exemplary embodiments of the present invention have been described for the purpose of illustration, it should be understood that the present invention may be implemented in other ways not specifically shown in the drawings.
[0035] The present invention provides a hybrid ship nonlinear model predictive control energy optimization method based on working condition identification. First, the ship working condition data set is established by collecting ship data. Secondly, the working condition is identified by convolutional neural network technology to provide decision information for subsequent energy management; thirdly, the nonlinear model predictive control algorithm is used to adaptively adjust the constraint conditions and cost functions in the algorithm based on the results of the identified working condition, and energy optimization control is performed for different working conditions.
[0036] The details are as follows:
[0037] By establishing a ship operating condition data set, the ship operating condition is analyzed, and the convolutional neural network model is periodically trained and built for ship operating condition identification tasks. When training the model, the data set is normalized and denormalized to facilitate data processing and ensure the comparability of data samples.
[0038] The convolutional neural network is used to train the working condition recognition model, and the working condition recognition results are used to design targeted constraints and cost functions to optimize the energy control of hybrid ships. The energy optimization method proposed in the present invention is a real-time algorithm. First, the ship working condition is identified in real time. Secondly, different constraints and cost functions are set for different working conditions, and the energy optimization control task is achieved through the rolling optimization capability of the method itself.
[0039] In the specific implementation process:
[0040] 1) Working condition identification task
[0041] (1) Ship operating condition dataset
[0042] Create a data set for the ship's operating conditions, analyze the structural characteristics of the ship's power system, collect characteristic data such as the required power of the ship's thruster, and ship speed, and then perform data preprocessing to achieve rapid and accurate identification of operating condition characteristics. Figure 1 The following is a diagram of the ship power system structure of an example referenced by the present invention. The characteristic data or characteristic parameters include eight parameters, namely, ship speed, load power, load voltage, load current, propulsion power, propulsion voltage, propulsion current, and propulsion torque;
[0043] ①Dataset collection and annotation
[0044] The data set largely determines the quality of the working condition identification results. Figure 1 The characteristic data of the ship example shown was cleaned using Python software. The main steps include: data consistency check, invalid value and missing value processing; Origin drawing software was used for visualization.
[0045] Table 1 shows the operating condition information and number. In this embodiment, the ship speed refers to the navigation speed of the ship, and the required power refers to the power of the thruster and other electrical equipment. The ship speed is divided into two levels: low ship speed and high ship speed, and the required power is divided into two levels: low power and high power. The combination of ship speed level and required power level represents all types of operating conditions. The decision information of the nonlinear model predictive controller includes the power level of the ship speed and the ship's required power, which are the four types of operating conditions shown in Table 1, that is, the operating condition identification results. In Table 1, "low speed-low power" represents the situation of low ship speed and low required power, numbered 1, and other situations are similar.
[0046] The data set is manually labeled from the perspective of required power and ship speed, and is labeled into the four types of working conditions shown in Table 1. The label value is the number corresponding to the working condition type. Finally, it is divided into a training set and a validation set in a ratio of 8:2.
[0047] Table 1 Working condition information and number
[0048]
[0049] ②Data normalization and denormalization processing
[0050] There will be differences in the power, required power, ship speed and other data of the ship's onboard power supply equipment. In order to enhance universality, in this embodiment, the data set is normalized and denormalized, which can facilitate data processing and ensure that the data samples are comparable.
[0051] ③Network selection and training process
[0052] Convolutional neural network is a representative algorithm of deep learning. It has the ability of representation learning and can classify input information in a translation-invariant manner according to its hierarchical structure. Convolutional neural network mainly consists of input layer, convolution layer, pooling layer, fully connected layer and output layer. Among them, the convolution layer is the core component of convolutional neural network and is used to extract features from data. The working condition recognition model based on convolutional neural network has 1 input layer, 5 convolution layers, 3 pooling layers and 2 fully connected layers. The processing of data sets during training and the structure and parameter settings of convolutional neural network model are as follows: Figure 2 As shown in the figure, the convolutional neural network model from the input layer to the output is: convolution layer Conv1, maximum pooling layer Max-Pooling1, convolution layer Conv2, convolution layer Conv2, maximum pooling layer Max-Pooling2, convolution layer Conv3, convolution layer Conv3, maximum pooling layer Max-Pooling2, fully connected layer Flatten, fully connected layer Flatten.
[0053] 2) Energy optimization method of nonlinear model predictive control of hybrid ship based on operating condition identification
[0054] (1) Mathematical model of hybrid power system
[0055] The block diagram of the energy optimization method based on working condition identification proposed in the present invention is as follows: Figure 3 As shown, it is mainly divided into working condition identification, nonlinear model predictive controller, and hybrid power system. The input of the working condition identification module is real-time working condition data, and the output is the working condition identification result, which is identified as one of the four working condition types in Table 1, and is used to adaptively adjust the constraints in the nonlinear model predictive controller and the weight coefficient of the cost function. The nonlinear model predictive controller achieves the optimization goal through rolling optimization and allocates the power of the energy storage battery and the power of the diesel generator.
[0056] ①Conservation of energy
[0057] exist Figure 1In the power system diagram shown, the propeller that provides forward power is driven by the diesel main engine, so the power system only needs to consider meeting the load requirements of the thruster and other electrical equipment. In this embodiment, the thruster of the ship is driven by a diesel generator and an energy storage device. Based on the law of conservation of energy and ignoring mechanical losses and partial power losses, the mathematical model description of its power can be expressed by the following formula:
[0058]
[0059] Where P load It is the power required by the ship's thruster and other electrical equipment. dg The power provided by the diesel generator. The energy storage device of this ship is a battery, P bat The power provided by the battery. bat When it is greater than 0, the power battery is in discharge state and output power, P bat When it is less than 0, the battery is in charging state and consumes power. sg It is the charging power of the shaft generator to the battery. In this embodiment, it is only used to illustrate the source of battery energy storage.
[0060] ② Diesel generator mathematical model
[0061] The diesel generator is mainly composed of a diesel main engine and a generator. By fitting the speed and output power of the diesel generator, the output power calculation formula of the diesel generator is as follows:
[0062]
[0063] In the formula, is the i-th power of the speed of the i-th diesel generator, α i yes Fitting coefficients of the auxiliary generator output power function.
[0064] The relationship between the fuel consumption rate and output power of a diesel generator is expressed as follows:
[0065]
[0066] In the formula, m f is the fuel consumption rate of the diesel generator, is the jth power of the auxiliary generator output power, b j yes Fitting coefficients of the auxiliary generator fuel consumption function.
[0067] The upper and lower limits of the diesel generator output power are shown in formula (4).
[0068] P dg,min ≤P dg ≤Pdg,max (4)
[0069] Where P dg,min is the minimum output power, P dg,max is the maximum output power. Figure 4 This is the working characteristic curve of the diesel generator.
[0070] ③Battery mathematical model
[0071] In order to simplify the calculation, the power battery model adopts the internal resistance equivalent model, such as Figure 5 As shown, the current calculation formula is as follows:
[0072]
[0073] Where: I bat is the current output by the battery, V oc is the open circuit voltage of the battery, P bat is the power output by the battery; R0 is the equivalent internal resistance of the battery.
[0074] Where V oc Figure 4 The open circuit voltage of the internal resistance model shown, P bat is the output power of the energy storage battery, and R0 is the internal resistance of the energy storage battery.
[0075] The battery SOC calculation formula is:
[0076]
[0077] In the formula, SOC0 is the initial state of charge, Q is the battery capacity, I bat is the current output by the battery. The upper and lower limits of the battery charging and discharging power are as follows:
[0078] P bat,min ≤P bat ≤P bat,max (7)
[0079] Where P bat,min is the minimum charging power, P bat,max is the maximum charging power. The SOC constraint of the power battery satisfies:
[0080]
[0081] Among them, SOC min is 0.2, SOC max is 0.9, I bat,min -600A, I bat,max It is 600A.
[0082] ④Energy optimization method
[0083] The present invention takes the state of charge of the battery and the instantaneous fuel consumption of the diesel generator as the optimization target. Therefore, the state variable is selected as x = [SOC, m f ] T , the control variable is u(k)=[I bat ,ω dg ] T , the output variable is y = [SOC, m f ] T The nonlinear model is given by:
[0084]
[0085] The cost function of the nonlinear model predictive control algorithm is designed as follows:
[0086]
[0087] Among them, (SOC i -SOC ref ) 2 The representative is a penalty measure for battery SOC deviation, which can ensure that excessive discharge changes in energy demand during the entire operating cycle are avoided; SOC ref It is the reference input of battery SOC; is the fuel consumption penalty term that is minimized; and is to minimize system input; (SOC N -SOC ref,N ) 2 and are terminal constraints; β1,β2,μ1,μ2, is the weight coefficient; u m As the control variable, the constraints should be satisfied, as shown in formulas (4) and (7). At the same time, in order to prevent the control variable from changing too drastically, its change rate should be within a certain range; the battery SOC is constrained as shown in formula (8). Finally, the energy conservation of the ship is added to the control method in the form of an equality constraint.
[0088] ⑤ Working condition identification combined with energy optimization method process
[0089] like Figure 3 As shown in Table 1, the convolutional neural network model trained in the working condition identification task 1) is used to identify and judge the working condition type of the current ship, as shown in Table 1. The working condition information obtained in this way is used as decision information to modify the weight coefficients β1, β2, μ1, μ2, mentioned in the cost function of the energy optimization method ④ in 2). And the energy conservation constraint in the constraint conditions: P t =P bat +P dgWhen the ship is in different operating conditions, through the above process, the cost function and constraints in the optimization method can be adaptively adjusted to complete energy optimization control.
[0090] In this embodiment, by Figure 6 The flowchart of the energy optimization method of nonlinear model predictive control of hybrid ship based on working condition identification is shown, which completes the energy optimization control of the required power of a single diesel generator and energy storage battery in the hybrid ship.
[0091] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. A hybrid ship energy optimization method based on working condition identification, characterized in that: The control process includes: Collect ship operating data; According to the ship operating condition data, a convolutional network is used to identify the ship operating condition type; The energy control of the ship is optimized through the rolling optimization characteristics of the nonlinear model predictive controller; the decision information of the nonlinear model predictive controller includes the current ship speed and the power level of the ship's required power; the way to optimize the energy control includes controlling the energy output of the diesel generator and the energy output of the energy storage battery, and the specific control targets include the current of the energy storage battery and the speed of the main engine in the diesel generator; The constraint conditions and cost function in the nonlinear model predictive controller are adaptively adjusted according to the ship operating condition type.
2. A hybrid ship energy optimization method based on operating condition identification according to claim 1, characterized in that: The convolutional neural network model is composed of a convolutional layer, a maximum pooling layer, a convolutional layer, a convolutional layer, a maximum pooling layer, a convolutional layer, a convolutional layer, a maximum pooling layer, and two fully connected layers from the input layer to the output layer. The input parameters of the convolutional neural network model include ship speed, load power, load voltage, load current, propulsion power, propulsion voltage, propulsion current, and propulsion torque; The operating condition types output by the convolutional neural network model include: "low speed-low power", "low speed-high power", "high speed-low power", and "high speed-high power".
3. A hybrid ship energy optimization method based on working condition identification according to claim 2, characterized in that: The process of constructing the convolutional neural network includes: Collect ship operating data; Perform data cleaning, including deleting invalid values and filling missing values; Through data visualization and manual annotation, a ship operating condition data set is established; the ship operating condition data set is divided into a training set and a test set; The convolutional neural network is trained using a training set; after each training session, the test set is used to test and evaluate the accuracy of the network model. If the accuracy does not meet the preset range, hyperparameters are adjusted, including: learning rate and activation function.
4. The hybrid ship energy optimization method based on working condition identification according to claim 1 is characterized in that: In the process of building a nonlinear model predictive controller: A nonlinear model predictive controller is designed for the power system model established for the ship's diesel generator and energy storage battery. The state variables of the nonlinear model predictive controller are the fuel consumption of the diesel generator and the battery's state of charge, the control variables are the speed of the diesel generator host and the battery's current, and the cost function involves changes in the battery's state of charge, changes in the instantaneous fuel consumption of the diesel generator, the generator power, and the energy storage battery power.
Citation Information
Cited By
Intelligent working condition recommendation method and device for ship energy saving based on clean synergist
CN119227547A
An intelligent working condition recommendation method and device for ship energy saving based on cleaning synergist
CN119227547B
Self-adaptive coordination control method for integration test of ship full-electric propulsion system
CN120848170A
Multi-working-condition energy optimization management system with cooperation of ship shaft power generation and lithium battery
CN121097906A
Ship shaft power generation energy management system based on multi-working-condition adaptation
CN122092395A
