Fuel cell automobile energy management method based on multi-target reinforcement learning
Through the multi-objective reinforcement learning method, combined with the LSTM model and deep reinforcement learning architecture, the problem that fuel cell vehicle energy management strategy is difficult to take into account multi-objective performance and real-time performance, and the multi-objective optimization and real-time performance of fuel cell vehicle energy management is achieved. promote.
Patent Information
- Application Number
- CN202410995814.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-11-15
AI Technical Summary
The existing fuel cell vehicle energy management strategy is difficult to take into account the multi-objective performance optimization and real-time performance. The rule-based strategy lacks optimality. The optimization strategy takes a long time to calculate and easily fall into local optimality. It is difficult to achieve real-time and multi-objectives based on learning strategy. optimization.
Using a multi-objective reinforcement learning method, the vehicle speed is predicted by training the LSTM model, the vehicle power system model is constructed, combined with the deep reinforcement learning architecture, comprehensively considering the durability and economy of fuel cells, determining the energy management strategy, and through the hybrid system The controller performs energy distribution.
Achieve multi-objective optimization control for fuel cell vehicle energy management, improve real-time control and optimal strategy, balance the economy and durability of fuel cells, and improve the adaptability and universality of energy management. .
Smart Images

Figure CN118953159A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of fuel cell vehicle energy management, and in particular to a fuel cell vehicle energy management method based on multi-objective reinforcement learning. Background Art
[0002] In the automotive power system, due to the slow dynamic response of the fuel cell system, batteries or supercapacitors are usually used as auxiliary power to adapt to drastically changing working conditions. In order to reasonably allocate the output power of different power sources and improve the economy and durability of the vehicle, it is particularly important to design a reasonable energy management strategy.
[0003] At present, common energy management strategies are mainly divided into three categories: rule-based, optimization-based and learning-based. Among them, the rule-based strategy is to design control rules based on the working characteristics of the power source and driving conditions. It is simple and practical, but not optimal, and the control effect depends on expert experience.
[0004] The optimization-based strategy is represented by dynamic programming, which requires obtaining operating condition information in advance and takes a long time to calculate. It is difficult to apply in real time and is prone to falling into local optimality. It can only achieve the optimization of a single performance or parameter, making it difficult to give full play to the advantages of each energy source. The output fluctuation of the fuel cell may still be large and the efficiency may be low.
[0005] Learning-based strategies are a current research hotspot. They combine the characteristics of rule-based and optimization-based strategies and have good adaptability to working conditions. However, in practical applications, it is difficult to take into account both the optimal multi-objective performance and real-time performance of the vehicle. Summary of the invention
[0006] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and provide a fuel cell vehicle energy management method based on multi-objective reinforcement learning, which can realize multi-objective optimization control of the energy of fuel cell vehicles and improve the real-time performance of the control.
[0007] The purpose of the present invention can be achieved by the following technical solution: A fuel cell vehicle energy management method based on multi-objective reinforcement learning, comprising the following steps:
[0008] S1. Collect standard working speed data, and build a vehicle speed prediction model by training LSTM (Long Short-Term Memory) to predict the vehicle speed at future moments;
[0009] S2. Construct a vehicle power system model;
[0010] S3, inputting the current speed of the vehicle into the vehicle speed prediction model, outputting the predicted speed, and inputting the predicted speed into the vehicle power system model to obtain the corresponding required power;
[0011] S4. Based on the required power, an energy management strategy is determined using a deep reinforcement learning architecture that comprehensively considers fuel cell durability and economy.
[0012] S5. The vehicle hybrid power system controller executes energy distribution according to the energy management strategy.
[0013] Furthermore, the specific process of step S1 is: collecting standard working condition speed data, and dividing the data into a training set and a test set;
[0014] Construct an LSTM neural network architecture, select five time steps and one future time step as a set of data, use 10 hidden neurons, set the maximum number of training steps, and train to obtain a vehicle speed prediction model.
[0015] Furthermore, the step S1 specifically divides the collected standard operating speed data into a training set and a test set in a ratio of 7:3.
[0016] Furthermore, the standard operating conditions include UDDS (Urban Dynamometer Driving Schedule), NEDC (New European Driving Cycle), US06 (intense driving conditions: high speed, high acceleration, and drastic speed fluctuations), and HWFET (Highway Fuel Economy Test).
[0017] Furthermore, the vehicle power system model in step S2 includes a fuel cell model, a battery model, and a vehicle transmission model.
[0018] Furthermore, the vehicle transmission model is the relationship between the vehicle's required power and speed:
[0019]
[0020] Among them, P is the required power of the vehicle, η T is the efficiency of the transmission system, is the mass of the vehicle, g is the acceleration of gravity, f is the rolling resistance coefficient, c D is the air resistance coefficient, A is the frontal area, u is the speed of the car in no wind, δ is the conversion coefficient of the car's rotational mass, and α is the road slope.
[0021] Furthermore, the fuel cell model adopts an efficiency-power curve model, and the formula for calculating hydrogen consumption is:
[0022] η=f(P fc )
[0023]
[0024] Where η is the fuel cell efficiency, P fc is the fuel cell output power, m is the hydrogen consumption, is the molar mass of hydrogen, I fc is the fuel cell stack current, n is the number of fuel cell units, F is the Faraday constant, E H2 is the lower heating value of hydrogen, P fc Output power for the fuel cell.
[0025] Furthermore, the battery adopts an internal resistance model, which is calculated as follows:
[0026]
[0027] V oc =f(SOC)
[0028] R bat =f(SOC)
[0029]
[0030] Among them, I bat is the battery current, V oc is the open circuit voltage of the battery, R bat is the battery resistance, P bat is the battery output power, SOC(t) is the battery SOC (state of charge), C cap is the capacity of the battery.
[0031] Furthermore, the deep reinforcement learning architecture in step S4 includes state, reward, behavior, environment and vehicle speed prediction model, wherein the environment outputs state and reward to the vehicle speed prediction model, the vehicle speed prediction model outputs the predicted speed which is converted into behavior and then transmitted to the environment, the environment is composed of a fuel cell model and a battery model, the state is the battery SOC, and the behavior is the output power selection of the fuel cell.
[0032] Furthermore, the rewards include economic and durability reward mechanisms, specifically:
[0033] reward 1 =C 1 -|P p[rr -P action |
[0034] reward2 =C 2 -(1ifP action >0andP prr <=0else 0)
[0035] reward 3 =C 3 -(1ifP action <P lowpower else 0)
[0036] reward 4 =C 4 -(1ifP action >P highpower else 0)
[0037]
[0038] reward 6 =C 6 -|SOC end -SOC start |
[0039] reward=K 1 ×reward 1 +K 2 ×reward 2 +K 3 ×reward 3 +K 4 ×reward 4
[0040] +K 5 ×reward 5 +K 6 ×reward 6
[0041] Among them, reward 1 To reward 6 They correspond to the first to sixth reward functions, C 1 To C 6 are constants, P prr is the fuel cell output power at the previous moment, P action is the current power output by the behavior part of reinforcement learning, P lowpower is the minimum idle power, P highpower For high load working power, is the hydrogen consumption of the fuel cell, is the hydrogen consumption of the battery, SOC end The final state of charge of the battery, SOCstart is the initial state of charge of the battery, K 1 To K 6 They correspond to the weight coefficients of the first reward function to the sixth reward function respectively.
[0042] Furthermore, the dynamic optimization constraints of the deep reinforcement learning architecture are:
[0043]
[0044] Among them, △P fc is the fuel cell power change value, P b is the battery power, the subscript min indicates the preset minimum value of the corresponding parameter, and the subscript max indicates the preset maximum value of the corresponding parameter.
[0045] Compared with the prior art, the present invention has the following advantages:
[0046] The present invention collects standard operating speed data to train a vehicle speed prediction model, and then combines it with the constructed vehicle power system model to input the vehicle's current speed into the speed prediction model, output the predicted speed, and input the predicted speed into the vehicle power system model to obtain the corresponding required power; then based on the required power, a deep reinforcement learning architecture that comprehensively considers the durability and economy of the fuel cell is used to determine the energy management strategy. Thus, the vehicle speed prediction model is innovatively introduced and combined with deep reinforcement learning to propose an energy management solution that balances the economy and durability of fuel cell vehicles, comprehensively considering the economy of fuel cell hybrid vehicles and the durability of fuel cell batteries, and realizing multi-objective optimization of the energy management strategy of fuel cell hybrid vehicles.
[0047] The present invention combines the vehicle speed prediction model with the vehicle power system model, uses the vehicle speed prediction model to predict the vehicle speed at future moments, and inputs the speed into the vehicle transmission model in the vehicle power system model to determine the corresponding vehicle demand power. That is, the corresponding demand power can be determined in real time according to the current speed of the vehicle, which is conducive to the subsequent reinforcement learning architecture to improve the real-time performance of the strategy while ensuring the optimality of the strategy.
[0048] In the present invention, the deep reinforcement learning architecture includes state, reward, behavior, environment and vehicle speed prediction models, wherein the environment outputs state and reward to the vehicle speed prediction model, the vehicle speed prediction model outputs the predicted speed and then converts it into behavior and transmits it to the environment, and establishes a reward mechanism for examining the comprehensive economy and durability of the fuel cell, and designs the constraints of the dynamic optimization process of deep reinforcement learning. Through continuous learning, the optimality and universality of the output energy management strategy can be improved, ensuring the optimality under standard test conditions and the optimality under actual driving conditions, and improving the adaptability of the energy management strategy. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 It is a schematic diagram of the method flow of the present invention;
[0050] Figure 2 It is a schematic diagram of the application process of the embodiment;
[0051] Figure 3 The schematic diagram of the vehicle power system;
[0052] Figure 4 This is a schematic diagram of the reinforcement learning architecture in the embodiment;
[0053] Figure 5 Flow chart of reinforcement learning in the embodiment. DETAILED DESCRIPTION
[0054] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
[0055] Example
[0056] like Figure 1 As shown, a fuel cell vehicle energy management method based on multi-objective reinforcement learning includes the following steps:
[0057] S1. Collect standard working speed data, and build a vehicle speed prediction model by training LSTM to predict the vehicle speed at future moments;
[0058] S2. Construct a vehicle power system model;
[0059] S3, inputting the current speed of the vehicle into the vehicle speed prediction model, outputting the predicted speed, and inputting the predicted speed into the vehicle power system model to obtain the corresponding required power;
[0060] S4. Based on the required power, an energy management strategy is determined using a deep reinforcement learning architecture that comprehensively considers fuel cell durability and economy.
[0061] S5. The vehicle hybrid power system controller executes energy distribution according to the energy management strategy.
[0062] This embodiment applies the above solution, such as Figure 2 As shown in the figure, according to the input current vehicle speed, the vehicle speed prediction model (i.e., LSTM vehicle speed prediction) is used for prediction, and then the vehicle model of the whole vehicle is input according to the prediction result, and the vehicle model outputs the corresponding required power. After that, the power is allocated according to the reinforcement learning algorithm. The battery obtains the current open circuit voltage and resistance value according to the SOC situation, which is used to calculate the current, the SOC at the next moment, and the equivalent hydrogen consumption. The fuel cell calculates the hydrogen consumption and the remaining hydrogen storage capacity according to the allocated power, thus completing the calculation of one time step and entering the next time step.
[0063] Specifically, in step S1, a vehicle speed prediction model based on an LSTM neural network is established, and standard working conditions such as UDDS (Urban Dynamometer Driving Schedule), NEDC (New European Driving Cycle), US06 (intense driving conditions: high speed, high acceleration, and drastic speed fluctuations), and HWFET (Highway Fuel Economy Test) are used as data sources. The data is divided into a training set and a test set, of which 70% is used as a training set and 30% is used as a test set. The LSTM neural network selects five time steps and one time step in the future as a set of data, with 10 hidden neurons, and selects 200 steps as the maximum number of training steps, and a mature LSTM neural network vehicle speed prediction model is obtained through training.
[0064] In step S2, a model of the vehicle power system is established according to vehicle needs, including a fuel cell model, a battery model, and a transmission model. Figure 3 shown.
[0065] Among them, the transmission model, that is, the relationship between the power required by the vehicle and the speed is:
[0066]
[0067] Where P is the required power of the vehicle, η T is the efficiency of the transmission system, m is the mass of the vehicle, g is the acceleration of gravity, f is the rolling resistance coefficient, c D is the air resistance coefficient, A is the frontal area, u is the speed of the car in no wind, δ is the conversion coefficient of the car's rotational mass, and α is the road slope.
[0068] The fuel cell model uses the efficiency-power curve model, so the formula for calculating hydrogen consumption is as follows
[0069] η=f(P fc )
[0070]
[0071] Where η is the fuel cell efficiency, P fc is the fuel cell output power, m is the hydrogen consumption, is the molar mass of hydrogen, I fc is the fuel cell stack current, n is the number of fuel cell units, F is the Faraday constant, E H2 is the lower heating value of hydrogen, P fc Output power for the fuel cell.
[0072] The battery adopts the internal resistance model, and the calculation is as follows:
[0073]
[0074] In the formula, I bat is the battery current, V oc is the open circuit voltage of the battery, R bat is the battery resistance, P bat The output power of the battery. In addition, the open circuit voltage and resistance of the battery are affected by the battery SOC.
[0075] V oc =f(SOC)
[0076] R bat =f(SOC)
[0077] The calculation formula of battery SOC is:
[0078]
[0079] In the formula, C cap is the capacity of the battery.
[0080] In step S4, the deep reinforcement learning structure is as follows Figure 4 As shown, it includes state, reward, behavior, environment and neural network system. The environment is composed of the entire power system of fuel cells and batteries established in step S2. The state is the battery SOC, and the behavior selection is the output power selection of the fuel cell. The formula for establishing a reward mechanism to examine the comprehensive economy and durability of the fuel cell is as follows. In this embodiment, Figure 5 As shown, the action selection of reinforcement learning adopts a greedy algorithm.
[0081] reward 1 =C 1 -|P prr -P action |
[0082] reward 2 =C 2 -(1 if P action >0 and P prr <=0 else 0)
[0083] reward 3 =C 3 -(1 if P action <P lowpower else 0)
[0084] reward 4=C 4 -(1 if P action >P highpower else 0)
[0085]
[0086] reward 6 =C 6 -|SOC end -SOC start |
[0087] reward=K 1 ×reward 1 +K 2 ×reward 2 +K 3 ×reward 3 +K 4 ×reward 4 +K 5 ×reward 5 +K 6 ×reward 6
[0088] The constraints for designing the dynamic optimization process of deep reinforcement learning are as follows:
[0089]
[0090] In the formula, reward 1 To reward 6 They correspond to the first to sixth reward functions, C 1 To C 6 are constants, P prr is the fuel cell output power at the previous moment, P action is the current power output by the behavior part of reinforcement learning, P lowpower is the minimum idle power, P highpower For high load working power, is the hydrogen consumption of the fuel cell, is the hydrogen consumption of the battery, SOC end The final state of charge of the battery, SOC start is the initial state of charge of the battery, K 1 To K + They correspond to the weight coefficients of the first reward function to the sixth reward function respectively;
[0091] △P fc is the fuel cell power change value, P bis the battery power, the subscript min indicates the preset minimum value of the corresponding parameter, and the subscript max indicates the preset maximum value of the corresponding parameter.
[0092] Finally, the output energy management strategy is passed to the vehicle hybrid system controller to execute and complete the energy distribution, then obtain the current vehicle speed, re-predict the future vehicle speed and optimize the energy management strategy until the vehicle stops.
Claims
1. A fuel cell vehicle energy management method based on multi-objective reinforcement learning, characterized in that: The following steps are involved: S1. Collect standard working speed data, and build a vehicle speed prediction model by training LSTM to predict the vehicle speed at future moments; S2. Construct a vehicle power system model; S3, inputting the current speed of the vehicle into the vehicle speed prediction model, outputting the predicted speed, and inputting the predicted speed into the vehicle power system model to obtain the corresponding required power; S4. Based on the required power, the energy management strategy is determined by using a deep reinforcement learning architecture that comprehensively considers the durability and economy of the fuel cell; S5. The vehicle hybrid power system controller executes energy distribution according to the energy management strategy.
2. A fuel cell vehicle energy management method based on multi-objective reinforcement learning according to claim 1, characterized in that: The specific process of step S1 is: collecting standard working condition speed data and dividing the data into a training set and a test set; Construct an LSTM neural network architecture, select five time steps and one future time step as a set of data, use 10 hidden neurons, set the maximum number of training steps, and train to obtain a vehicle speed prediction model.
3. A fuel cell vehicle energy management method based on multi-objective reinforcement learning according to claim 1, characterized in that: The standard operating conditions include UDDS, NEDC, US06, and HWFET.
4. A fuel cell vehicle energy management method based on multi-objective reinforcement learning according to claim 1, characterized in that: The vehicle power system model in step S2 includes a fuel cell model, a battery model, and a vehicle transmission model.
5. A fuel cell vehicle energy management method based on multi-objective reinforcement learning according to claim 4, characterized in that: The vehicle transmission model is the relationship between the vehicle's required power and speed: Among them, P is the required power of the vehicle, η T is the efficiency of the transmission system, m is the mass of the vehicle, g is the acceleration of gravity, f is the rolling resistance coefficient, c D is the air resistance coefficient, A is the frontal area, u is the speed of the car in no wind, δ is the conversion coefficient of the car's rotational mass, and α is the road slope.
6. A fuel cell vehicle energy management method based on multi-objective reinforcement learning according to claim 5, characterized in that: The fuel cell model adopts the efficiency-power curve model, and the formula for calculating hydrogen consumption is: η=f(P fc ) Where η is the fuel cell efficiency, P fc is the fuel cell output power, m is the hydrogen consumption, is the molar mass of hydrogen, I fc is the fuel cell stack current, n is the number of fuel cell units, F is the Faraday constant, E H2 is the lower heating value of hydrogen, P fc Output power for the fuel cell.
7. A fuel cell vehicle energy management method based on multi-objective reinforcement learning according to claim 6, characterized in that: The battery adopts the internal resistance model, and the calculation is as follows: V oc =f(SOC) R bat =f(SOC) Among them, I bat is the battery current, V oc is the open circuit voltage of the battery, R bat is the battery resistance, P bat is the battery output power, SOC(t) is the battery SOC, C cap is the capacity of the battery.
8. A fuel cell vehicle energy management method based on multi-objective reinforcement learning according to claim 7, characterized in that: The deep reinforcement learning architecture in step S4 includes state, reward, behavior, environment and vehicle speed prediction model, wherein the environment outputs state and reward to the vehicle speed prediction model, the vehicle speed prediction model outputs the predicted speed and then converts it into behavior and transmits it to the environment, the environment consists of a fuel cell model and a battery model, the state is the battery SOC, and the behavior is the output power selection of the fuel cell.
9. A fuel cell vehicle energy management method based on multi-objective reinforcement learning according to claim 8, characterized in that: The rewards include economic and durability reward mechanisms, specifically: reward1=C1-|P prr -P action | reward2=C2-(1ifP action >0andP prr <=0else 0) reward3=C3-(1ifP action <P lowpower else 0) reward4=C4-(1ifP action >P highpower else 0) reward6=C + -|SOC end -SOC start | reward=K1×reward1+K2×reward2+K3×reward3+K4×reward4+K5×reward5+K6×reward6 Among them, reward1 to reward6 correspond to the first reward function to the sixth reward function respectively, C1 to C6 are constants, P prr is the fuel cell output power at the previous moment, P action is the current power output by the behavior part of reinforcement learning, P lowpower is the minimum idle power, P highpower For high load working power, is the hydrogen consumption of the fuel cell, is the hydrogen consumption of the battery, SOC end The final state of charge of the battery, SOC start is the initial state of charge of the battery, and K1 to K6 correspond to the weight coefficients of the first reward function to the sixth reward function respectively.
10. A fuel cell vehicle energy management method based on multi-objective reinforcement learning according to claim 9, characterized in that: The dynamic optimization constraints of the deep reinforcement learning architecture are: Among them, △P fc is the fuel cell power change value, P b is the battery power, the subscript min indicates the preset minimum value of the corresponding parameter, and the subscript max indicates the preset maximum value of the corresponding parameter.
Citation Information
Cited By
Energy management method, system and equipment based on speed prediction and medium
CN120566715A
Fuel cell automobile energy management strategy fused with traffic perception
CN120621168A
Layered prediction air supply control method for vehicle hydrogen fuel cell
CN120637532A
