Thermal management system control method for new energy vehicles based on deep learning
A deep Q network model is established through deep learning technology to solve the problems of temperature regulation and power consumption balance in the thermal management system of electric vehicles, achieving efficient temperature control and cruising range improvement.
Patent Information
- Application Number
- CN202411034796.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-31
AI Technical Summary
When the electric vehicle thermal management system faces complex temperature adjustment requirements, traditional control methods cannot effectively balance temperature adjustment performance and power consumption, and the computational load of model predictive control is too high when processing multiple states, affecting real-time performance.
A new energy vehicle thermal management system control method based on deep learning is adopted to collect a variety of sensor data, establish a deep Q network model, and use multi-layer perceptrons and experience playback modules for training to achieve independent control of the compressor and cooling fan. Optimize thermoregulation performance and reduce energy consumption.
It achieves maximum reduction in energy consumption while ensuring temperature regulation performance, improves the cruising range and driving experience of new energy vehicles, and enhances the robustness to changing driving conditions.
Smart Images

Figure CN118560223B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of new energy vehicles, and in particular to a new energy vehicle thermal management system control method based on deep learning. Background Art
[0002] In the field of electric vehicles (EVs), the importance of thermal management systems (TMS) far exceeds that of traditional internal combustion engine vehicles. This is because: the number of components that need to be cooled and regulated in electric vehicles has increased significantly, not just the comfort of the cockpit. In addition to the temperature control of the cockpit in traditional vehicles, the electronic equipment of electric vehicles, especially high-performance battery packs, also requires fine temperature control to ensure their stable operation and extend their life. Therefore, TMS has become one of the major power consumers in electric vehicles. However, given the limited capacity of electric vehicle batteries, an efficient and well-designed TMS controller becomes particularly critical. Such a controller can not only effectively reduce the energy consumption of the power battery, but also significantly increase the range of electric vehicles, thereby bringing users a more convenient and economical travel experience.
[0003] In the vehicle's thermal management system (TMS), traditional proportional-integral-derivative (PID) control and thermostat control methods have always been the first choice in the field of fuel vehicles due to their light weight, safety and reliability. However, with the rise of electric vehicles, the limitations of these simple control methods have gradually become apparent. The TMS of electric vehicles faces higher complexity, not only to ensure a comfortable temperature in the cab, but also to finely control the temperature of batteries and electronic devices. Therefore, traditional methods can no longer meet their needs. When designing the refrigeration cycle system of electric vehicles, the special temperature requirements of batteries and electronic devices must be comprehensively considered. This requires the TMS controller to have higher intelligence and adaptability to cope with more complex and changing control needs.
[0004] Fuzzy logic controllers (FLCs) have shown potential solutions to the unique needs of TMS in electric vehicles. FLCs are extremely flexible and are particularly good at handling environmental condition control knowledge with multi-valued logic. However, although FLCs have been used in many studies, balancing the relationship between temperature regulation performance and power consumption in the field of TMS remains a major challenge. On the other hand, model predictive control (MPC) has also attracted much attention from researchers. However, it is worth noting that MPC often faces the problem of excessive computational load when dealing with control models containing multiple states, which to some extent affects its real-time performance. To overcome this problem, researchers usually simplify the control model. However, considering the complexity of TMS, including its nonlinear and multi-state characteristics, using an overly simplified control model may lead to a decline in system performance. Therefore, in the design of TMS for electric vehicles, how to achieve high performance of temperature regulation while ensuring real-time performance is an urgent problem to be solved. Summary of the invention
[0005] The technical problem to be solved by the present invention is to overcome the deficiencies in the prior art and provide a new energy vehicle thermal management system control method based on deep learning.
[0006] The technical solution adopted by the present invention to solve the technical problem is: a new energy vehicle thermal management system control method based on deep learning, comprising the following steps:
[0007] S1. Collect data from various sensors of new energy vehicles to obtain data required to control the thermal management system during vehicle driving;
[0008] S2, preprocessing the data obtained in step S1 to establish a neural network model;
[0009] S3, establishing a thermal management system model for new energy vehicles, and training the neural network model of step S2;
[0010] S4, performing calculation and analysis on the vehicle data collected in real time by the neural network model trained in step S3, and returning the obtained analysis results to the thermal management system in the form of a control signal;
[0011] S5. The thermal management system controller controls the vehicle refrigeration system.
[0012] Furthermore, the data required for controlling the thermal management system in step S1 includes:
[0013] Ambient temperature, vehicle speed, solar intensity, condenser pressure, cabin relative humidity, evaporator air temperature, evaporator target air temperature, cabin temperature error, LTR coolant temperature, duct air temperature, compressor power, compressor speed, cooling fan speed, PTC power, ambient temperature change rate, vehicle speed change rate, solar intensity change rate, condenser pressure change rate, cabin relative humidity change rate, evaporator air temperature change rate, evaporator target air temperature change rate, duct air temperature change rate, cabin air temperature change rate, cabin temperature error change rate, LTR coolant temperature change rate, compressor power change rate, compressor speed change rate, cooling fan speed change rate, PTC power change rate, evaporator air temperature range indication signal, cabin temperature error range indication signal, condenser pressure range indication signal, refrigerant temperature, refrigerant pressure, antifreeze temperature and antifreeze level.
[0014] Furthermore, the preprocessing of the data in step S2 includes at least normalization of the data; the established neural network model is a deep Q network model, which includes a deep Q network model of the compressor and a deep Q network model of the cooling fan, and the deep Q network model of the compressor and the deep Q network model of the cooling fan both use multi-layer perceptrons.
[0015] Furthermore, the specific steps of training the neural network model in step S3 are:
[0016] The deep Q network model of the compressor and the deep Q network model of the cooling fan are trained separately. When any deep Q network model is used for exploration, the other deep Q network model adopts a greedy strategy. After each iteration, the two deep Q network models are trained interchangeably. During training, the deep Q network model using the greedy strategy explores at the minimum exploration speed: when the playback cache capacity is less than 5%, the deep Q network model updates parameters every 10 steps; when the playback cache capacity is between 5% and 10%, an update operation is performed every step; when the playback cache capacity is higher than 10%, the deep Q network model is updated 4 times per step.
[0017] Furthermore, the algorithm used to train the neural network model adopts strategy, which has an experience replay module and a target network module,
[0018] The experience replay module stores the experience generated by the interaction between the agent and the environment in an experience pool, and randomly samples it for training. During training, a certain amount of data is randomly extracted from the experience pool for training to optimize the network model;
[0019] The target network in the target network module includes a main network and a target network, namely, a Q network and a TargetQ network, which are used to calculate the Q target value; the deep Q network has networks with the same structure but different parameters: a current value network and a target value network, namely, a predictQ network and a targetQ network, wherein the predictQ network is used to predict the estimated Q value, and the targetQ network is used to predict the actual Q value. The predictQ network uses the latest parameters, and the targetQ network uses the parameters from a long time ago, and the parameters of the main network are regularly copied to the target network to stabilize the training process;
[0020] The targetQ value is calculated as follows: ,
[0021] In the formula, For reward, is the discount factor, is the Q function, Represented as the new state, the action taken in the new state, and the weight parameter respectively;
[0022] Use stochastic gradient descent to update the network weight w. The weight calculation formula is:
[0023] ,
[0024] In the formula, Represents the weight parameter The update amount, Indicates the current status. Indicates the action taken in the current state;
[0025] The reward function in the neural network model consists of 7 items, and the calculation formula is as follows:
[0026] ,
[0027] Among them, r represents the reward, is the weight parameter; Used to calculate cockpit temperature error Rewards, Used to calculate the evaporator air temperature Rewards, Calculate the condenser pressure Rewards, Represents the total energy consumed by the compressor, PTC heater and cooling fan, is the reward associated with input control, is the vector of normalized action signal, For vector The rate of change of
[0028] The first term of the reward function It is used to control the cabin temperature error to 0. As the absolute error becomes smaller, the reward increases linearly: when the absolute error is within 0.5°C, an additional reward will be given to encourage the controller to adjust the absolute error within a sufficiently small range;
[0029] Item 2 is used to control the evaporator air temperature within the range of 2°C to 10°C: the reward increases linearly as the evaporator air temperature approaches the desired range; the reward is a constant positive value when the temperature is within the desired range; if the temperature is below 2°C, an additional penalty is given to prevent water vapor from freezing;
[0030] Item 3 Related to the upper limit of the condenser pressure to avoid refrigerant leakage, this item is usually 0, but when the pressure approaches the upper limit, the reward will drop rapidly;
[0031] Item 4 Related to the lower and upper limits of the control input, this term normally returns 0, but will return a penalty proportional to the control input that exceeds the limit;
[0032] Item 5 Related to power consumption, the reward decreases linearly as power consumption increases to minimize power consumption;
[0033] Item 6 , decreases linearly as the amplitude of each action signal increases, so as to reduce the amplitude of the action signal;
[0034] Item 7 It decreases linearly with the increase of the amplitude of the motion signal change rate to reduce the instability of the motion signal.
[0035] Going further, the specific process of training the neural network model is:
[0036] (a) Initialize the action-value function and , target action function value and , Experience Replay and capacity N and Round counter, set k=0; initialize the filter loss of the loss function is 1.0;
[0037] (b) , Set parameters, set adaptive soft target update parameters ;
[0038] (c) In the first iteration, set the discount factor , update times , the learning rate is ,
[0039] in, ;
[0040] If the number of iterations is even, let ;
[0041] Otherwise, let ;
[0042] (d) Initialize the observation signal ;
[0043] When t=1:T, do the loop:
[0044] ,
[0045] Will Save to in; will Save to middle;
[0046] (e) When k=1: hour,
[0047] exist The random minimum sample batch in Set to:
[0048] ;
[0049] Calculating the loss function ;
[0050] Update using gradient descent , to minimize the loss value;
[0051] (f) Order ,
[0052] like ,make ,
[0053] otherwise, ;
[0054] renew .
[0055] Further, the thermal management system controller in step S5 at least includes an electronic water pump, a multi-way water valve, an electronic expansion valve, an electromagnetic stop valve, a temperature and pressure sensor of the refrigerant, a pressure sensor, a temperature sensor, and a temperature sensor and a liquid level sensor of the antifreeze liquid;
[0056] Among them, the electronic water pump adjusts the speed of the water pump and controls the flow of the coolant according to the control instructions of the thermal management system; the multi-way water valve adjusts the opening of the valve according to the control instructions of the thermal management system to realize the distribution and flow direction control of the coolant; the electronic expansion valve adjusts the opening of the valve according to the control instructions of the thermal management system to control the flow of the refrigerant and adjust the refrigeration effect; the electromagnetic stop valve quickly opens or closes according to the control instructions of the thermal management system to realize the on-off control of the refrigerant and coolant flow paths; the refrigerant temperature and pressure sensor, pressure sensor, and temperature sensor are used to collect the temperature and pressure of the refrigerant; the antifreeze temperature sensor and liquid level sensor are used to collect the temperature and liquid level of the antifreeze, respectively.
[0057] The beneficial effects of the present invention are:
[0058] The present invention adopts a deep reinforcement learning neural network model: Deep Q-Leaning Network (DQN), and adopts Strategy, which has two important modules, experience replay and target network, can make DQN more stable and have better performance;
[0059] The DQN for TMS control implemented by the present invention has two independent DQN structures, which solves multiple control input signals of TMS and high-latitude data of compressor and cooling fan;
[0060] The DNQ used in the present invention is divided into a compressor DQN and a cooling fan DQN to process their respective action signals. Both DQNs use a multi-layer perceptron DNN and provide a leaky rectifier linear unit activation function for the hidden layer. The DQN is used to control the TMS to minimize energy consumption while maintaining temperature regulation performance, and various constraints of the TMS are considered to ensure the feasibility of implementation. The compressor and the cooling fan are controlled by the TMS to accurately and quickly adjust the air temperature of the cab and the evaporator to achieve the target value, while reducing the consumption of power battery power, increasing the pure electric range of the vehicle, reducing range anxiety, and improving the driving experience of new energy vehicles.
[0061] The present invention adopts the DNQ model to control the TMS of new energy vehicles. The TMS controller realizes efficient management and control of vehicle temperature by accurately controlling the working states of components such as an electronic water pump, a multi-way water valve, an electronic expansion valve and an electromagnetic stop valve. The DQN model is trained through the TMS simulation model, which accurately represents the high nonlinearity and complexity of the electric vehicle thermal management system as well as actual constraints such as the pressure limit of the refrigerant and the speed limit of the actuator, thereby ensuring the feasibility of the method implementation. The proposed method also shows robustness to changing driving conditions. While ensuring the temperature regulation performance, it also improves the energy efficiency of the TMS and increases the mileage of new energy vehicles.
[0062] DQN uses the experience replay mechanism to randomize the data, store the experience in the replay memory, and eliminate the correlation of the data in the observation sequence through the continuous iterative update of the experience mixture. At the same time, the mechanism can perform multiple mixed iterations of the experience with characteristics to achieve smooth processing of the data changes. The experience replay mechanism ensures the stability of the value function based on deep neural network training. The key link of this mechanism is to first set a large sliding window replay memory, uniformly sample it randomly, and then perform multiple replay conversions to reduce the experience required for learning, thereby greatly reducing the cost of the entire optimization process and improving the calculation speed of the model to meet the real-time requirements of the TMS controller. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] The present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0064] Figure 1 It is a flow chart of the present invention.
[0065] Figure 2 It is a flow chart of training the neural network model in the present invention.
[0066] Figure 3 It is a control block diagram of the present invention. DETAILED DESCRIPTION
[0067] The present invention will now be further described in conjunction with the accompanying drawings and preferred embodiments. These drawings are simplified schematic diagrams, which only illustrate the basic structure of the present invention in a schematic manner, and therefore only show the components related to the present invention.
[0068] like Figure 1 As shown, a new energy vehicle thermal management system control method based on deep learning specifically includes the following steps:
[0069] S1. Collect data from various sensors of new energy vehicles to obtain data required to control the thermal management system during vehicle driving;
[0070] The acquired data is used to provide to the neural network, and the specific data required include: ambient temperature, vehicle speed, solar intensity, condenser pressure, cabin relative humidity, evaporator air temperature, evaporator target air temperature, cabin temperature error, LTR coolant temperature, duct air temperature, compressor power, compressor speed, cooling fan speed, PTC power, ambient temperature change rate, vehicle speed change rate, solar intensity change rate, condenser pressure change rate, cabin relative humidity change rate, evaporator air temperature change rate, evaporator target air temperature change rate, duct air temperature change rate, cabin air temperature change rate, cabin temperature error change rate, LTR coolant temperature change rate, compressor power change rate, compressor speed change rate, cooling fan speed change rate, PTC power change rate, evaporator air temperature range indication signal, cabin temperature error range indication signal, condenser pressure range indication signal; refrigerant temperature and pressure collected by the refrigerant temperature and pressure sensor, pressure sensor, and temperature sensor; and antifreeze temperature and liquid level collected by the antifreeze temperature sensor and liquid level sensor.
[0071] Among them, the evaporator air temperature indication signal means that when the evaporator air temperature is between 2℃ and 10℃, the signal value is 0.5, when the temperature is higher than 10℃, the signal value is 1, and when the temperature is lower than 2℃, the signal value is 0; the cockpit temperature error range indication signal means that when the cockpit error temperature is between -0.5℃ and 0.5℃, the signal value is 0.5, when the temperature is higher than 0.5℃, the signal value is 1, and the temperature is lower than -0.5℃, the signal value is 0; the condenser pressure range indication signal means that when the condenser pressure is lower than 2.3MPa, the signal value is 0, when the pressure is between 2.3MPa and 2.5MPa, the signal value is 0.33, when the pressure is between 2.5MPa and 2.7MPa, the signal value is 0.67, when the pressure is greater than or equal to 2.7MPa, the signal value is 1.
[0072] S2. Preprocess the acquired data to make it suitable for neural network training and establish a neural network model. The neural model used is a deep Q network (DQN);
[0073] The data collected by the sensor is preprocessed, including data normalization, etc. In particular, when the evaporator air temperature indication signal and the cockpit temperature error range indication signal are normalized, the amplitude of each value interval is compressed due to the compression of the values, and the model trained with these data will lead to a decrease in model performance.
[0074] To this end, the evaporator air temperature indication signal and the cockpit temperature error range indication signal were re-adjusted to expand the range of the signal value range. Specifically, the lower limit of the evaporator air temperature was adjusted from 2°C to 0°C, and the upper limit was adjusted from 10°C to 12°C; the lower limit of the cockpit temperature error was adjusted from -0.5°C to -2.5°C, and the upper limit was adjusted from 0.5°C to 2.5°C.
[0075] The DQN for implementing TMS control has two independent DQN structures, aiming to solve the multiple control input signals of TMS and the high-dimensional data of the compressor and cooling fan; DNQ is divided into compressor DQN and cooling fan DQN to process their respective action signals. Both DQNs use multi-layer perceptron DNN and provide leaky rectified linear unit activation function for the hidden layer.
[0076] S3. Establish a TMS model for new energy vehicles and train the DQN model;
[0077] The DQN was trained using a Simulink simulation model of a mid-sized electric vehicle, the TMS, which takes into account conditions such as the driving cycle, ambient air temperature and relative humidity, solar intensity, and cabin temperature.
[0078] The DQN algorithm is essentially a Q-Learning algorithm, and its strategy selection is consistent with Q-Learning. Strategy, with two important modules: Experience Replay and Target Network. When training the model, the two DQNs are trained separately to alleviate the problem of high estimation bias; when training the separated DQNs, one DQN is allowed to explore while the other DQN adopts a greedy strategy. After each iteration, the two DQNs swap roles, which can reduce the uncertainty of the samples while also allowing for efficient training. During training, the DQN using the greedy strategy explores at the minimum exploration speed to avoid local optimality; to avoid model overfitting, the DQN updates the model slowly in the initial stage of training; when the ReplayBuffer capacity is less than 5%, the DQN updates the parameters every 10 steps; when the ReplayBuffer capacity is between 5% and 10%, an update operation is performed every step; when the ReplayBuffer capacity is higher than 10%, the DQN updates 4 times every step.
[0079] Experience replay stores the experience generated by the interaction between the agent and the environment in an experience pool, and randomly samples it for training. During training, a certain amount of data is randomly extracted from the experience pool for training. In this way, the network model can be continuously optimized, the neural network can be trained smoothly, the sample utilization rate can be improved, and the correlation between samples can be reduced.
[0080] The target network mainly solves the problem of unstable algorithm training. Copy a Target Q network with the same structure as the original Q network, which is divided into a main network (Q network) and a target network (Target Q network) to calculate the Q target value. There are two networks with the same structure but different parameters in DQN. The current value (predictQ) network is used to predict the estimated Q value, and the target value (targetQ) network is used to predict the actual Q value. The current value network uses the latest parameters, and the target value network uses parameters from a long time ago. The parameters of the main network can be regularly copied to the target network to stabilize the training process;
[0081] The targetQ value is calculated as follows:
[0082] ;
[0083] Use stochastic gradient descent to update the network weight w. The weight calculation formula is:
[0084] ;
[0085] In the formula, For reward, is the discount factor, is the Q function, They are respectively represented as the new state, the action taken in the new state, and the weight parameter. Represents the weight parameter The update amount, Indicates the current status. Indicates the action taken in the current state.
[0086] like Figure 2 As shown in the figure, the DQN training process is as follows (the subscript comp represents the compressor and the subscript cfan represents the cooling fan):
[0087] Initialize the action-value function and ;
[0088] Initialize the target action function value and ;
[0089] Initialize experience playback and capacity N;
[0090] initialization Round counter, set k=0;
[0091] Initialize the filter loss of the loss function is 1.0;
[0092] for , Set parameters;
[0093] Set adaptive soft target update parameters ;
[0094] In the first iteration, set the discount factor , update times , the learning rate is ,
[0095] in, ;
[0096] If the number of iterations is even, let ;
[0097] Otherwise, let ;
[0098] Initialize observation signal ;
[0099] When t=1:T, do the loop:
[0100] ,
[0101] Will Save to in; will Save to middle;
[0102] When k=1: hour,
[0103] exist The random minimum sample batch in Set to:
[0104] ;
[0105] Calculating the loss function ;
[0106] Update using gradient descent , to minimize the loss value;
[0107] make ,
[0108] like ,make ,
[0109] otherwise, ;
[0110] renew .
[0111] The DQN model has a reward mechanism, the purpose of which is to enable TMS to adjust the temperature of the cab and evaporator to the target temperature in the shortest time, while reducing the consumption of the power battery capacity and satisfying the actual constraints to achieve feasibility; the reward function consists of 7 items, and the calculation formula is as follows:
[0112] ;
[0113] Among them, r represents the reward, is the weight parameter; Used to calculate cockpit temperature error Rewards, Used to calculate the evaporator air temperature Rewards, Calculate the condenser pressure Rewards, Represents the total energy consumed by the compressor, PTC heater and cooling fan, is the reward associated with input control, is the vector of normalized action signal, For vector The rate of change.
[0114] The first term of the reward function It is used to control the cabin temperature error to 0. As the absolute error becomes smaller, the reward increases linearly. When the absolute error is within 0.5°C, an additional reward will be given to encourage the controller to adjust the absolute error within a sufficiently small range. is used to control the evaporator air temperature within the range of 2°C to 10°C. The reward increases linearly as the evaporator air temperature approaches the desired range; when the temperature is within the desired range, the reward is a constant positive value. If the temperature is below 2°C, an additional penalty is given to prevent water vapor from freezing. Related to the upper limit of the condenser pressure to avoid refrigerant leakage, this item is usually 0, but when the pressure approaches the upper limit, the reward will drop rapidly. This term normally returns 0, but can return a penalty proportional to the control input exceeding the limits. The reward is linearly reduced as the power consumption increases, in order to minimize the power consumption. , decreases linearly as the amplitude of each action signal increases to reduce the amplitude of the action signal. It decreases linearly with the increase of the amplitude of the motion signal change rate to reduce the instability of the motion signal.
[0115] S4. Calculate and analyze the collected vehicle data through the neural network model, and return the results to TMS in the form of control signals;
[0116] After the vehicle sensor data is input into the neural network model, the model's reasoning and analysis are used to obtain a prediction result, and an action signal is returned to the TMS. The action signal determines the control input of the TMS.
[0117] S5, TMS controls the vehicle refrigeration system, including the electronic water pump, multi-way water valve, electronic expansion valve, electromagnetic stop valve, etc., to achieve cooling regulation of the cockpit, electronic equipment and batteries.
[0118] When the electronic water pump receives the control signal from the TMS controller, it will start and drive the coolant to circulate in the system. The coolant absorbs heat from the radiator, then flows through the components that need to dissipate heat, takes the heat away, and then returns to the radiator for heat dissipation.
[0119] The multi-way water valve receives the control signal from the TMS controller. When the flow direction of the cooling water needs to be changed, the electronic control system sends a command to the electric multi-way water valve to drive the valve core to move, thereby changing the flow direction of the cooling water. If the battery or motor needs to be heated in winter, the multi-way water valve can be controlled to direct the coolant to the heater to increase the temperature of the battery or motor. If the battery or motor needs to be cooled in summer, the multi-way water valve can be used to direct the coolant to the cooler to reduce the temperature of the battery or motor.
[0120] The electronic expansion valve receives the control signal from the TMS controller and automatically adjusts the opening of the valve needle through the electronic control system, thereby controlling the flow of coolant in the system. When the system temperature is too high, the electronic expansion valve will increase the opening and increase the flow to reduce the temperature; when the system temperature is too low, it will decrease the opening and reduce the flow to maintain the temperature.
[0121] The solenoid stop valve receives the control signal from the TMS controller, and the solenoid stop valve performs the operation of cutting off or connecting the flow of coolant. Before the vehicle is started or when the system fails, the solenoid stop valve can cut off the flow of coolant to prevent system damage; if rapid heat dissipation is required, the flow of coolant can be connected to accelerate the heat dissipation process.
[0122] like Figure 3 As shown, the DNQ model is used to control the thermal management system of new energy vehicles. The vehicle thermal management system controller accurately controls the working status of components such as the electronic water pump, multi-way water valve, electronic expansion valve and electromagnetic stop valve.
[0123] The new energy vehicle thermal management system control method based on deep learning in this embodiment adopts the DNQ model to control the thermal management system of the new energy vehicle. The vehicle thermal management system controller realizes efficient management and control of the vehicle temperature by accurately controlling the working status of components such as the electronic water pump, multi-way water valve, electronic expansion valve and electromagnetic stop valve; and the DQN model is trained through the TMS simulation model. The simulation model accurately represents the high nonlinearity and complexity of the electric vehicle thermal management system as well as actual constraints such as the pressure limit of the refrigerant and the speed limit of the actuator, ensuring the feasibility of the implementation of the method. The proposed method also shows robustness to changing driving conditions. While ensuring the temperature regulation performance, it also improves the energy efficiency of the TMS and increases the mileage of new energy vehicles.
[0124] The above embodiments are only for illustrating the technical concept and features of the present invention, and their purpose is to enable people familiar with this technology to understand the content of the present invention and implement it. They cannot be used to limit the protection scope of the present invention. Any equivalent changes or modifications made according to the spirit of the present invention should be included in the protection scope of the present invention.
Claims
1. A new energy vehicle thermal management system control method based on deep learning, characterized in that: The steps include: S1. Collect data from various sensors of new energy vehicles to obtain data required to control the thermal management system during vehicle driving; S2, preprocessing the data obtained in step S1 to establish a neural network model; S3, establishing a thermal management system model for new energy vehicles, and training the neural network model of step S2; S4, performing calculation and analysis on the vehicle data collected in real time by the neural network model trained in step S3, and returning the obtained analysis results to the thermal management system in the form of a control signal; S5, the thermal management system controller controls the vehicle refrigeration system; The preprocessing of the data in step S2 at least includes normalization of the data; the established neural network model is a deep Q network model, which includes a deep Q network model of a compressor and a deep Q network model of a cooling fan, and the deep Q network model of the compressor and the deep Q network model of the cooling fan both use a multilayer perceptron; The specific steps of training the neural network model in step S3 are as follows: the deep Q network model of the compressor and the deep Q network model of the cooling fan are trained separately, and any deep Q network model is allowed to explore, while the other deep Q network model adopts a greedy strategy. After each iteration, the two deep Q network models are exchanged for training; during training, the deep Q network model using the greedy strategy explores at the minimum exploration speed: when the playback cache capacity is less than 5%, the deep Q network model updates parameters once every 10 steps; when the playback cache capacity is between 5% and 10%, an update operation is performed every step; when the playback cache capacity is higher than 10%, the deep Q network model is updated 4 times every step; The algorithm used to train the neural network model is strategy, which has an experience replay module and a target network module, The experience replay module stores the experience generated by the interaction between the agent and the environment in an experience pool, and randomly samples it for training. During training, data is randomly extracted from the experience pool for training to optimize the network model; The target network in the target network module includes a main network and a target network, namely, a Q network and a TargetQ network, which are used to calculate the Q target value; the deep Q network has networks with the same structure but different parameters: a current value network and a target value network, namely, a predictQ network and a targetQ network, wherein the predictQ network is used to predict the estimated Q value, and the targetQ network is used to predict the actual Q value. The predictQ network uses the latest parameters, and the targetQ network uses the previous parameters, and the parameters of the main network are regularly copied to the target network to stabilize the training process; The targetQ value is calculated as follows: , In the formula, For reward, is the discount factor, is the Q function, Represented as the new state, the action taken in the new state, and the weight parameter respectively; Use stochastic gradient descent to update the network weight w. The weight calculation formula is: , In the formula, Represents the weight parameter The update amount, Indicates the current status. Indicates the action taken in the current state; The reward function in the neural network model consists of 7 items, and the calculation formula is as follows: , Among them, r represents the reward, is the weight parameter; Used to calculate cockpit temperature error Rewards, Used to calculate the evaporator air temperature Rewards, Calculate the condenser pressure Rewards, Represents the total energy consumed by the compressor, PTC heater and cooling fan, is the reward associated with input control, is the vector of normalized action signal, For vector The rate of change of The first term of the reward function It is used to control the cabin temperature error to 0. As the absolute error becomes smaller, the reward increases linearly: when the absolute error is within 0.5°C, an additional reward will be given; Item 2 is used to control the evaporator air temperature within the range of 2°C to 10°C; when the temperature is within the desired range, the reward is a constant positive value; if the temperature is below 2°C, an additional penalty is given to prevent water vapor from freezing; Item 3 It is related to the upper limit of the condenser pressure to avoid refrigerant leakage; Item 4 Related to the lower and upper limits of the control input; Item 5 Related to power consumption, the reward decreases linearly as power consumption increases to minimize power consumption; Item 6 , decreases linearly as the amplitude of each action signal increases, so as to reduce the amplitude of the action signal; Item 7 It decreases linearly with the increase of the amplitude of the rate of change of the motion signal to reduce the instability of the motion signal; The specific process of training the neural network model is: (a) Initialize the action-value function and , target action function value and , Experience Replay and capacity N and Round counter, set k=0; initialize the filter loss of the loss function is 1.0; (b) , Set parameters, set adaptive soft target update parameters ; (c) In the first iteration, set the discount factor , update times , the learning rate is , in, ; If the number of iterations is even, let ; Otherwise, let ; (d) Initialize the observation signal ; When t=1:T, do the loop: , Will Save to in Save to middle; (e) When k=1: hour, exist The random minimum sample batch in Set to: ; Calculating the loss function ; Update using gradient descent , to minimize the loss value; (f) Order , like ,make , otherwise, ; renew .
2. The deep learning-based new energy vehicle thermal management system control method according to claim 1 is characterized in that: The data required for controlling the thermal management system in step S1 includes: Ambient temperature, vehicle speed, condenser pressure, cabin relative humidity, evaporator air temperature, evaporator target air temperature, cabin temperature error, LTR coolant temperature, duct air temperature, compressor power, compressor speed, cooling fan speed, PTC power, ambient temperature change rate, vehicle speed change rate, condenser pressure change rate, cabin relative humidity change rate, evaporator air temperature change rate, evaporator target air temperature change rate, duct air temperature change rate, cabin air temperature change rate, cabin temperature error change rate, LTR coolant temperature change rate, compressor power change rate, compressor speed change rate, cooling fan speed change rate, PTC power change rate, evaporator air temperature range indication signal, cabin temperature error range indication signal, condenser pressure range indication signal, refrigerant temperature, refrigerant pressure, antifreeze temperature and antifreeze level.
3. The control method of the new energy vehicle thermal management system based on deep learning according to claim 1 is characterized in that: The thermal management system controller in step S5 at least includes an electronic water pump, a multi-way water valve, an electronic expansion valve, an electromagnetic stop valve, a temperature and pressure sensor for the refrigerant, a pressure sensor, a temperature sensor, and a temperature sensor and a liquid level sensor for the antifreeze liquid; Among them, the electronic water pump adjusts the speed of the water pump and controls the flow of the coolant according to the control instructions of the thermal management system; the multi-way water valve adjusts the opening of the valve according to the control instructions of the thermal management system to realize the distribution and flow direction control of the coolant; the electronic expansion valve adjusts the opening of the valve according to the control instructions of the thermal management system to control the flow of the refrigerant and adjust the refrigeration effect; the electromagnetic stop valve quickly opens or closes according to the control instructions of the thermal management system to realize the on-off control of the refrigerant and coolant flow paths; the refrigerant temperature and pressure sensor, pressure sensor, and temperature sensor are used to collect the temperature and pressure of the refrigerant; the antifreeze temperature sensor and liquid level sensor are used to collect the temperature and liquid level of the antifreeze, respectively.
