Thermal management agent training method and device, vehicle and storage medium
By constructing a reduced-order model based on thermal management system parameters, the training process of thermal management agents is simplified, the problem of low training efficiency in the existing technology is solved, and more efficient and accurate thermal management agent decisions are achieved.
Patent Information
- Application Number
- CN202410795736.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-10-15
AI Technical Summary
The existing thermal management agent training efficiency is low and wastes resources, making it difficult to effectively manage complex vehicle thermal management systems.
The reduced-order model is used as the mathematical model of the neural network to simplify the training process and improve training efficiency and decision-making accuracy by constructing a mapping relationship based on thermal management system parameters.
It improves the training efficiency and decision-making accuracy of thermal management agents, simplifies the model structure, adapts to different application scenarios, and meets the multi-objective management needs of the thermal management system.
Smart Images

Figure CN118780343A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and more particularly to the field of automotive thermal management system control strategy technology, specifically to a thermal management agent training method, device, vehicle, and storage medium. Background Art
[0002] With the continuous development of new energy vehicles, more and more controlled components are being incorporated into the vehicle's thermal management system, such as compressors, cooling fans, blowers, water pumps, and three-way valves. Traditional thermal management control algorithms are mainly rule-based control methods, including table lookup, proportional-integral-derivative (PID) algorithms, and logical judgment. However, as the number of controlled components in the vehicle's thermal management system increases, the development of thermal management control algorithms needs to comprehensively consider multiple objectives, such as passenger compartment temperature, battery thermal management, motor thermal management, electronic control system thermal management, and energy consumption.
[0003] In related technologies, a simulation model of the vehicle thermal management system is established to replace the real vehicle environment, and reinforcement learning is used to train the thermal management agent. However, because the controlled components in the thermal management system involve numerous systems, a large number of parameters in the thermal management agent need to be calibrated, and two-phase changes of the refrigerant are involved, resulting in low training efficiency and wasted resources. Therefore, how to improve the training efficiency of the thermal management agent is an urgent technical problem to be solved. Summary of the Invention
[0004] This application provides a method, apparatus, vehicle, and storage medium for training thermal management agents, to at least address the technical problem of low training efficiency of thermal management agents in related technologies. The technical solution of this application is as follows:
[0005] According to a first aspect of this application, a method for training a thermal management agent is provided. The method includes: constructing a reduced-order model; the reduced-order model is a neural network model constructed based on the mapping relationship between parameters of a thermal management system; training a thermal management agent for a vehicle based on the reduced-order model; the agent is a reinforcement learning system that learns based on observations to output optimal decisions; the thermal management agent is used to manage the vehicle's thermal management system based on the vehicle's state information.
[0006] Based on the aforementioned technical methods, the reduced-order model, as a mathematical model for neural networks, is simpler than the physical simulation model in related technologies. Training the vehicle's thermal management agent using the reduced-order model improves the training efficiency. Furthermore, the reduced-order model preserves the mapping relationships between the parameters of the thermal management system, enabling the trained thermal management agent to manage the vehicle's thermal management system based on these relationships, thus improving the accuracy of the agent's decisions.
[0007] In one possible implementation, constructing a reduced-order model includes: determining the input data and output data of the reduced-order model; determining the training data and validation data based on the input data and output data; determining the mapping relationship between the input data and output data and constructing a neural network structure; and adjusting the neural network structure based on the training data and validation data to construct the reduced-order model.
[0008] Based on the aforementioned technical methods, the number of variable parameters in the thermal management system is reduced by defining the input data, thereby simplifying the model structure of the reduced-order model. Based on the training and validation data, the neural network structure is adjusted, enabling the reduced-order model to more accurately reflect the mapping relationship between the input and output data. Furthermore, by utilizing the mapping relationship between the input and output data, a more precise neural network structure is constructed, thereby improving the accuracy of the reduced-order model training.
[0009] In another possible implementation, the training data and verification data are determined based on the input data and output data, including: determining the frequency conversion function of the input data and the frequency conversion function of the output data based on the value range of the input data and the value range of the output data, respectively; generating the operating condition matrix of the frequency conversion function of the input data and the operating condition matrix of the frequency conversion function of the output data based on the Latin hypercube algorithm; determining the generation operating condition corresponding to the input data based on the frequency conversion function of the input data and the operating condition matrix of the frequency conversion function of the input data; determining the verification operating condition corresponding to the output data based on the frequency conversion function of the output data and the operating condition matrix of the frequency conversion function of the output data; and simulating the generation operating condition and the verification operating condition based on the simulation model of the vehicle's thermal management system to obtain the training data and the verification data.
[0010] Based on the aforementioned technical methods, by using frequency conversion functions and operating condition matrices, the input and output data can cover their entire value range, making the training and verification data more comprehensive, thereby improving the accuracy of the reduced-order model. Furthermore, by simulating the generated and verification operating conditions using a simulation model, the generation and verification processes of the training and verification data are made consistent with the actual physical processes, thus improving the accuracy of the training and verification data.
[0011] In another possible implementation, the neural network structure includes fully connected layers and long short-term memory (LSTM) layers; determining the mapping relationship between input data and output data, and constructing the neural network structure includes: determining one-to-one mapping relationships and many-to-many mapping relationships between input data and output data; constructing a single-layer LSTM neural network structure for one-to-one mapping relationships; and constructing a two-layer LSTM neural network structure for many-to-many mapping relationships.
[0012] Based on the aforementioned techniques, LSTM layers can capture long-term dependencies between input and output data. By constructing a two-layer neural network structure consisting of fully connected layers and LSTM, the complex nonlinear relationships between input and output data can be represented more accurately, thereby improving the training accuracy of the reduced-order model. Furthermore, based on the one-to-one and many-to-many mapping relationships between input and output data, corresponding neural network structures can be flexibly constructed, allowing the reduced-order model to adapt to different application scenarios.
[0013] In another possible implementation, the neural network structure is adjusted and a reduced-order model is constructed based on the training data and the verification data, including: training the neural network structure based on the training data; verifying the neural network structure based on the verification data to obtain the performance index of the neural network structure; if the performance index does not meet a preset threshold, updating the training data and the verification data, adjusting the neural network structure, training and verifying the neural network structure based on the updated training data and the verification data to construct a reduced-order model; and if the performance index meets the preset threshold, constructing a reduced-order model based on the neural network structure.
[0014] Based on the aforementioned technical methods, the neural network structure is continuously optimized using training and validation data until its performance metrics reach a preset threshold. This allows the reduced-order model to more accurately reflect the mapping relationship between input and output data, thereby improving the accuracy of its training. Furthermore, automatically controlling the training process of the neural network structure through preset thresholds improves the efficiency of building the reduced-order model.
[0015] In another possible implementation, the input data includes: compressor speed, fan speed, water pump speed, fan speed, blower speed, and air intake grille speed; the output data includes: passenger compartment temperature, evaporator outlet temperature, compressor power consumption, fan power consumption, and water pump power consumption.
[0016] Based on the aforementioned technical means, the input and output data cover the operating status of multiple key components in the thermal management system, including compressors, fans, and water pumps. This allows the thermal management agent to manage parameters such as compressor speed, fan speed, and water pump speed. As a result, the thermal management agent trained based on the reduced-order model can more comprehensively and accurately manage the working status of the thermal management system to meet different needs.
[0017] According to a second aspect provided in this application, a thermal management agent training device is provided, the device comprising: a construction module and a training module; the construction module is used to construct a reduced-order model; the reduced-order model is a neural network model constructed based on the mapping relationship between parameters of the thermal management system; the training module is used to train the thermal management agent of the vehicle based on the reduced-order model; the agent is a reinforcement learning system that learns based on observations to output optimal decisions; the thermal management agent is used to manage the thermal management system of the vehicle based on the vehicle's state information.
[0018] In one possible implementation, the aforementioned construction module is specifically used to determine the input data and output data of the reduced-order model; based on the input data and output data, determine the training data and verification data; determine the mapping relationship between the input data and output data, and construct a neural network structure; based on the training data and verification data, adjust the neural network structure, and construct the reduced-order model.
[0019] In another possible implementation, the aforementioned construction module is specifically used to determine the frequency conversion function of the input data and the frequency conversion function of the output data based on the value range of the input data and the value range of the output data, respectively; generate the operating condition matrix of the frequency conversion function of the input data and the operating condition matrix of the frequency conversion function of the output data based on the Latin hypercube algorithm; determine the generation operating condition corresponding to the input data based on the frequency conversion function of the input data and the operating condition matrix of the frequency conversion function of the input data; determine the verification operating condition corresponding to the output data based on the frequency conversion function of the output data and the operating condition matrix of the frequency conversion function of the output data; and simulate the generation operating condition and the verification operating condition based on the simulation model of the vehicle's thermal management system to obtain the training data and the verification data.
[0020] In another possible implementation, the above-mentioned building module is specifically used to determine the one-to-one mapping relationship and the many-to-many mapping relationship in the input data and output data; for the one-to-one mapping relationship, an LSTM single-layer neural network structure is constructed; for the many-to-many mapping relationship, a fully connected layer and an LSTM two-layer neural network structure are constructed.
[0021] In another possible implementation, the above-mentioned construction module is specifically used to train the neural network structure based on the training data; to verify the neural network structure based on the verification data to obtain the performance index of the neural network structure; if the performance index does not meet the preset threshold, to update the training data and the verification data, and to adjust the neural network structure; to train and verify the neural network structure based on the updated training data and the verification data to construct a reduced-order model; and if the performance index meets the preset threshold, to construct a reduced-order model based on the neural network structure.
[0022] In another possible implementation, the input data includes: compressor speed, fan speed, water pump speed, fan speed, blower speed, and air intake grille speed; the output data includes: passenger compartment temperature, evaporator outlet temperature, compressor power consumption, fan power consumption, and water pump power consumption.
[0023] According to a third aspect provided in this application, a vehicle is provided, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute instructions to implement the method described in the first aspect and any possible implementation thereof.
[0024] According to a fourth aspect provided in this application, a computer-readable storage medium is provided that, when the instructions in the computer-readable storage medium are executed by a processor of a vehicle, enables the vehicle to perform the methods described in the first aspect and any possible implementation thereof.
[0025] According to the fifth aspect provided in this application, a computer program product is provided, the computer program product including computer instructions that, when executed on a vehicle, cause the vehicle to perform the method described in the first aspect and any possible implementation thereof.
[0026] Therefore, the above-mentioned technical features of this application have the following beneficial effects:
[0027] (1) As a mathematical model for neural networks, the reduced-order model is simpler than the physical simulation model in related technologies. Training the vehicle's thermal management agent using the reduced-order model improves the training efficiency of the thermal management agent. Furthermore, the reduced-order model maintains the mapping relationship between the parameters of the thermal management system, enabling the trained thermal management agent to manage the vehicle's thermal management system based on the mapping relationship between the parameters, thus improving the accuracy of the thermal management agent's decision-making.
[0028] (2) By reducing the number of variable parameters in the thermal management system through the determination of input data, the model structure of the reduced-order model is simplified. Based on the training and validation data, the neural network structure is adjusted to make the reduced-order model more accurately reflect the mapping relationship between input and output data. Furthermore, by constructing a more accurate neural network structure through the mapping relationship between input and output data, the accuracy of the reduced-order model training is improved.
[0029] (3) By using the frequency conversion function and the operating condition matrix, the input and output data can cover their entire value range, making the training data and verification data more comprehensive, thereby improving the accuracy of the reduced-order model. Furthermore, the simulation model is used to simulate the generated operating conditions and the verification operating conditions, so that the generation and verification process of the training data and verification data is consistent with the actual physical process, thereby improving the accuracy of the training data and verification data.
[0030] (4) LSTM layers can capture long-term dependencies between input and output data. By constructing a two-layer neural network structure of fully connected layers and LSTM, the complex nonlinear relationships between input and output data can be more accurately represented, thereby improving the training accuracy of the reduced-order model. Furthermore, based on the one-to-one and many-to-many mapping relationships between input and output data, corresponding neural network structures can be flexibly constructed, enabling the reduced-order model to adapt to different application scenarios.
[0031] (5) By using training data and validation data, the neural network structure is continuously optimized until the performance index of the neural network structure reaches a preset threshold, thereby enabling the reduced-order model to more accurately reflect the mapping relationship between the input and output data, thus improving the accuracy of the reduced-order model training. Furthermore, by automatically controlling the training process of the neural network structure through the preset threshold, the construction efficiency of the reduced-order model is improved.
[0032] (6) The input and output data cover the operating status of multiple key components in the thermal management system, including compressors, fans, water pumps, etc., so that the thermal management agent can manage parameters such as compressor speed, fan speed, and water pump speed. This allows the thermal management agent trained based on the reduced-order model to manage the working status of the thermal management system more comprehensively and accurately to meet different needs.
[0033] It should be noted that the technical effects of any of the implementation methods in aspects two through five can be found in the technical effects of the corresponding implementation methods in aspect one, and will not be repeated here.
[0034] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0035] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application, and do not constitute an undue limitation of this application.
[0036] Figure 1 This is a flowchart illustrating a thermal management agent training method according to an exemplary embodiment;
[0037] Figure 2 This is a flowchart illustrating another method for training a thermal management agent according to an exemplary embodiment;
[0038] Figure 3 This is a flowchart illustrating yet another thermal management agent training method according to an exemplary embodiment;
[0039] Figure 4 This is a schematic diagram of the frequency conversion function of a compressor according to an exemplary embodiment;
[0040] Figure 5 This is a schematic diagram illustrating a frequency conversion function for input data under different operating conditions according to an exemplary embodiment;
[0041] Figure 6 This is a flowchart illustrating yet another thermal management agent training method according to an exemplary embodiment;
[0042] Figure 7 This is a schematic diagram illustrating the construction of a neural network structure for a reduced-order model according to an exemplary embodiment;
[0043] Figure 8 This is a flowchart illustrating yet another thermal management agent training method according to an exemplary embodiment;
[0044] Figure 9 This is a flowchart illustrating the construction process of a reduced-order model according to an exemplary embodiment;
[0045] Figure 10 This is a block diagram illustrating a thermal management agent training device according to an exemplary embodiment;
[0046] Figure 11 This is a block diagram illustrating a vehicle according to an exemplary embodiment. Detailed Implementation
[0047] To enable those skilled in the art to better understand the technical solutions of this application, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.
[0048] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0049] With the continuous development of new energy vehicles, the scope of automotive thermal management systems is expanding, especially with an increasing number of controlled components being incorporated into these systems, such as compressors, cooling fans, blowers, water pumps, and three-way valves. Traditional thermal management control algorithms are primarily rule-based control methods, including lookup tables, PID control, and logical reasoning. However, developing vehicle thermal management control algorithms requires a comprehensive consideration of multiple objectives, including passenger cabin temperature comfort, thermal management of the three-electric system (battery, motor, and electronic control), and energy consumption. Traditional thermal management control algorithm development methods rely heavily on experimental calibration of numerous parameters, resulting in low development efficiency and significant waste of human and material resources.
[0050] Reinforcement learning is a machine learning algorithm that allows a reinforcement learning agent to make decisions based on observed environmental information, perceive rewards from environmental feedback, and continuously improve the effectiveness of its decisions through training to obtain more rewards. Therefore, applying reinforcement learning-based control algorithms to the development of vehicle thermal management control algorithms can comprehensively consider multiple objectives such as passenger cabin temperature and thermal comfort, thermal management of the electric drive system, and energy consumption. Furthermore, the principle of benefit-seeking and harm-avoiding in reinforcement learning agents can be utilized to continuously improve the performance of the thermal management control algorithm through training.
[0051] Because reinforcement learning requires a large amount of training data, to avoid the adverse effects of inappropriate actions caused by the autonomous exploration of the reinforcement learning agent on the actual system during training, it is generally considered to use simulation models to replace the real environment in the reinforcement learning training of the thermal management agent. However, the controlled components in the vehicle thermal management system involve numerous systems and two-phase changes of the refrigerant, and the computational speed of reinforcement learning training is generally slow, resulting in low training efficiency for the thermal management agent. Therefore, it is necessary to perform model reduction (or black-box modeling) on the simulation model based on physical principles to simplify the reinforcement learning training process and improve the training efficiency of the thermal management agent. Related technologies only propose using the random forest algorithm for black-box model training, without providing methods for data generation and model structure design involved in model reduction. Therefore, how to improve the training efficiency of the thermal management agent is a pressing technical problem that needs to be solved.
[0052] To address the aforementioned issues, this application proposes a training method for a thermal management agent. In this method, a reduced-order model serves as the mathematical model for the neural network. Compared to the physical simulation models in related technologies, the reduced-order model is simpler. Training the vehicle's thermal management agent using this reduced-order model improves the training efficiency. Furthermore, the reduced-order model preserves the mapping relationships between the parameters of the thermal management system, enabling the trained thermal management agent to manage the vehicle's thermal management system based on these parameters, thus improving the accuracy of the agent's decisions.
[0053] For ease of understanding, the following description, in conjunction with the accompanying drawings, details the thermal management agent training method provided in this application.
[0054] Figure 1 This is a flowchart illustrating a thermal management agent training method according to an exemplary embodiment, such as... Figure 1 As shown, the training method for the thermal management agent includes the following steps:
[0055] S11. Construct a reduced-order model.
[0056] Among them, the reduced-order model is a neural network model constructed based on the mapping relationship between the parameters of the thermal management system.
[0057] As one possible implementation, the training device can construct a neural network model based on the mapping relationship between various parameters of the vehicle's thermal management system as a reduced-order model, so as to train the vehicle's thermal management agent based on the reduced-order model.
[0058] For example, the training device can first determine the input and output data of the reduced-order model based on various parameters of the vehicle's thermal management system, and then determine the training data and verification data of the reduced-order model based on the input and output data. Based on the mapping relationship between the input and output data, the corresponding neural network structure is constructed, and the neural network structure is trained and adjusted based on the training data and verification data to construct the reduced-order model.
[0059] S12. Train the vehicle's thermal management agent based on the reduced-order model.
[0060] In this context, the intelligent agent is a reinforcement learning system that learns from observations to output the optimal decision. The thermal management intelligent agent is used to manage the vehicle's thermal management system based on the vehicle's state information.
[0061] As one possible implementation, after the training device constructs a reduced-order model, it can train the vehicle's thermal management agent based on the reduced-order model, so that the thermal management agent can intelligently manage the vehicle's thermal management system based on the vehicle's state information.
[0062] For example, the training device can replace the original physical simulation model with a reduced-order model as the reinforcement learning environment for the vehicle's thermal management agent, and use classic reinforcement learning algorithms such as deep deterministic policy gradient (DDPG), soft actor-critic (SAC), proximal policy optimization (PPO) or other reinforcement learning algorithms to train the vehicle's thermal management agent, thereby obtaining the trained thermal management agent for intelligent control of the vehicle's thermal management system.
[0063] It should be understood that in the field of reinforcement learning, an agent is a system capable of learning how to make decisions through interaction with its environment. The agent updates its decision-making strategy based on observed environmental states (i.e., observations) and acquired rewards to maximize long-term cumulative rewards. Observations are the information the agent acquires from the environment, reflecting its state and changes. The agent perceives the environment and makes decisions based on these observations. The agent can continuously try different strategies by interacting with the environment and observe the impact of these strategies on the environment and the rewards obtained. The agent updates its decision-making strategy based on these experiences, i.e., learning which action, given a state, will yield the greatest long-term cumulative reward. Therefore, a thermal management agent can use vehicle state information as observations for iterative learning to output the optimal vehicle thermal management strategy, thereby controlling the thermal management system based on this strategy.
[0064] In some embodiments, the training device can determine the input and output data of the reduced-order model, thereby constructing a neural network model based on the mapping relationship between the input and output data, and using the input and output data to determine the training data and validation data, thereby training and adjusting the neural network structure based on the training data and validation data to construct the reduced-order model. Therefore, as... Figure 2 As shown, step S11 above, constructing the reduced-order model, can be specifically implemented as follows: steps S111-S114:
[0065] S111. Determine the input and output data of the reduced-order model.
[0066] As one possible implementation, the training device can determine the input data of the reduced-order model based on the parameters of key components in the thermal management system, and determine the output data of the reduced-order model based on the corresponding parameter indicators of the thermal management system and the reward definition requirements in the reinforcement learning algorithm. The input data includes: compressor speed, fan speed, water pump speed, fan speed setting, blower speed setting, and air intake grille setting. The output data includes: passenger compartment temperature, evaporator outlet temperature, compressor power consumption, fan power consumption, and water pump power consumption.
[0067] For example, the input data of the reduced-order model needs to be consistent with the action space of the vehicle's thermal management agent, i.e., it includes all the control signals of the thermal management agent. Therefore, the input data includes continuous control variables Xi and discrete control variables Yi. Compressor speed, fan speed, and coolant pump speed are continuous control variables, while fan speed, blower speed, and grille speed are discrete control variables. For discrete control variables, such as the fan having four speeds (0, 1, 2, 3), their discrete value ranges can be mapped to continuous ranges, converting the discrete control variables into continuous control variables, and then processing them accordingly. The output data of the reduced-order model needs to meet the reward definition requirements in the reinforcement learning algorithm of the thermal management agent, including thermal management performance (e.g., passenger compartment temperature, battery temperature, etc.) and the energy consumption of each energy-consuming component in the thermal management system. The training device can train each continuous control variable X... i Determine its range of values X i ∈[X i,min ,X i,max ] and maximum allowable rate of change X i ′, thereby determining the control variable X of the input data. i The number of control variables X iThe number of [variables] is denoted as m. After the training device determines the input data, the thermal management agent can directly control the compressor speed, fan speed, and water pump speed, thereby observing two key thermal management performance parameters: the vehicle's passenger compartment temperature and the evaporator outlet temperature, as well as the energy consumption of the compressor, fan, and water pump, and weighing the performance against energy consumption. Therefore, the training device can determine that the output data must include: passenger compartment temperature, evaporator outlet temperature, compressor power consumption, fan power consumption, and water pump power consumption.
[0068] Specifically, the process of mapping the discrete value range of a discrete control variable to a continuous range, and converting a discrete control variable into a continuous control variable, is as follows: For a vehicle's geared fan, for example, with four gears (0, 1, 2, 3), the training device can define a continuous control variable X. i (t)∈[0,100], and the following expression is defined to convert discrete control variables into continuous control variables:
[0069]
[0070] For each control variable X i The training device can determine its possible value range X. i ∈[X i,min ,X i,max For example: X 压缩机 ∈[1000,6500], X 风扇 ∈[850,2650], X 水泵 ∈[1000,4500]. Furthermore, the training device can determine the maximum permissible rate of change X for each control variable. i For example: the maximum rate of change of the compressor, X′. 压缩机 =170 revolutions per second, thus the corresponding input control variable X of the compressor i The number of them is denoted as m = 3.
[0071] S112. Based on the input and output data, determine the data to be trained and the data to be validated.
[0072] As one possible implementation, after the training device determines the input and output data of the reduced-order model, it can determine the training data and validation data of the reduced-order model based on the input and output data.
[0073] For example, the training device can determine the frequency conversion function of the input data and the frequency conversion function of the output data based on the value ranges of the input and output data, respectively, and generate the operating condition matrix of the frequency conversion function of the input data and the operating condition matrix of the frequency conversion function of the output data based on the Latin hypercube algorithm. Thus, the training device can determine the generation operating condition corresponding to the input data based on the frequency conversion function of the input data and the operating condition matrix of the frequency conversion function of the input data, determine the verification operating condition corresponding to the output data based on the frequency conversion function of the output data and the operating condition verification matrix of the frequency conversion function of the output data, and simulate the generation operating condition of the input data and the verification operating condition of the output data using a simulation model of the vehicle's thermal management system to determine the data to be trained and the data to be verified.
[0074] S113. Determine the mapping relationship between input data and output data, and construct the neural network structure.
[0075] As one possible implementation, after the training device determines the data to be trained and the data to be verified, it can also determine the mapping relationship between the input data and the output data, thereby constructing the corresponding neural network structure based on the mapping relationship between the input data and the output data.
[0076] For example, the training device can determine the compressor speed, fan speed, water pump speed, fan speed, blower speed, and air intake grille speed in the input data, and the passenger compartment temperature, evaporator outlet temperature, compressor power consumption, fan power consumption, and water pump power consumption in the output data. It can determine the one-to-one mapping relationship and many-to-many mapping relationship between each parameter in the input data and each parameter in the output data. For the one-to-one mapping relationship between the input data and the output data, it can construct an LSTM single-layer neural network structure, and for the many-to-many mapping relationship between the input data and the output data, it can construct a fully connected layer and an LSTM two-layer neural network structure.
[0077] S114. Based on the training data and the validation data, adjust the neural network structure and construct a reduced-order model.
[0078] As one possible implementation, the training device constructs a neural network structure based on the mapping relationship between input and output data. Then, it can adjust the neural network structure based on the data to be trained and the data to be verified, thereby constructing a reduced-order model.
[0079] For example, the training device can train the neural network structure based on the training data to obtain the trained neural network structure, and then verify the trained neural network structure based on the verification data to obtain the performance index of the trained neural network structure. If the performance index of the trained neural network structure does not meet a preset threshold, the training device can update the training data and verification data based on the input and output data, adjust the neural network structure, and retrain and verify the adjusted neural network structure based on the updated training data and verification data until the performance index of the neural network structure meets the preset threshold. A reduced-order model is then constructed based on the trained neural network structure. If the performance index of the trained neural network structure meets the preset threshold, the training device can directly construct a reduced-order model based on the trained neural network structure.
[0080] In other embodiments, the training device can determine the frequency conversion function of the input data and the frequency conversion function of the output data based on the value ranges of the input and output data, and determine the operating condition matrix of the frequency conversion function of the input data and the operating condition matrix of the frequency conversion function of the output data, thereby determining the generation operating condition corresponding to the input data and the verification operating condition corresponding to the output data. Using a simulation model of the vehicle's thermal management system, the generation operating condition of the input data and the verification operating condition of the output data are simulated to determine the data to be trained and the data to be verified. Therefore, as... Figure 3 As shown, step S112 above, which determines the training data and the validation data based on the input data and output data, can be specifically implemented as follows: steps S1121-S1125:
[0081] S1121. Based on the range of values of the input data and the range of values of the output data, determine the frequency conversion function of the input data and the frequency conversion function of the output data respectively.
[0082] As one possible implementation, the training device can determine the range of values for the input data and the range of values for the output data respectively, and then determine the frequency conversion function of the input data and the frequency conversion function of the output data based on the range of values for the input data and the range of values for the output data.
[0083] For example, the input and output data need to satisfy the reinforcement learning of the thermal management agent's exploration of space while avoiding excessive operational conditions that would complicate the process. Therefore, the training device can use a frequency conversion function and a random initial phase of the frequency conversion function to cover the action space and rate of change of the input and output data, thus reducing the number of operational conditions. For each control variable in the input and output data, the training device can define the frequency range F that the control variable needs to cover. i ∈[F i,min ,F i,max ], thereby designing the control variable signal in [F i,min,F i,max Frequency conversion within the range of [X] i,min ,X i,max The frequency conversion function varies within the upper and lower limits of the input data. The training device can represent the frequency conversion function of the input data or the output data using the following expression:
[0084]
[0085] Among them, X i (t) represents the frequency conversion function of the input data or the frequency conversion function of the output data, X i,max X represents the maximum value of the input or output data. i,min This represents the minimum value of the input or output data, sin(Ф(t)+Ф). i ) has initial phase Ф i ∈[0,2π), Ф(t) is used to implement frequency conversion of input or output data. Therefore, Ф(t) has a frequency coverage range [F...]. i,min ,F i,nax ], and it changes with a period of 2t0, with an initial phase
[0086] It should be noted that the minimum frequency F i,min It should tend towards 0 to meet the requirements of quasi-steady-state action changes, with a maximum frequency F. i,max The selection of X should make X i The maximum slope of (t) is not less than that of variable X. i Maximum rate of change X i The training device can be represented by the following expression to indicate the maximum rate of change of the input or output data:
[0087]
[0088] Among them, X i F' represents the maximum rate of change of the input or output data. i,max This indicates the maximum frequency of the input or output data.
[0089] Specifically, for the three control variables in the input data—compressor speed, fan speed, and water pump speed—each has X... 压缩机 ∈[1000,6500], X 风扇 ∈[850,2650], X 水泵 The input data must cover the range of values ∈ [1000, 4500], therefore, the generated input data needs to cover different combinations within this range. Taking a compressor as an example, the training device can use the following expression to represent the compressor's frequency conversion function:
[0090]
[0091] The frequency conversion occurs between the minimum frequency and the maximum frequency, with the minimum frequency F... 压缩机,min It should tend towards 0; in this embodiment, it is set to F. 压缩机,min =0.0001Hz, maximum frequency F 压缩机,max =0.01Hz, then the expression for the maximum compressor speed change rate covered is:
[0092]
[0093] To meet the requirement of a compressor's maximum rate of change of 170 rpm, the frequency converter's cycle is defined as 2t0 = 1400 s. Therefore:
[0094]
[0095] t0, F 压缩机,min and F 压缩机,max Substituting into the above expression, we get:
[0096]
[0097] Therefore, when At that time, the training device can achieve frequency conversion between a minimum frequency of 0.0001Hz and a maximum frequency of 0.01Hz based on the compressor's frequency conversion function, with a period of 1400s. Wherein, the minimum frequency F... 压缩机,min =0.0001Hz, maximum frequency F 压缩机,max =0.01Hz is an example of an embodiment of this application. The specific values of the minimum and maximum frequencies of the compressor are not limited in the embodiments of this application.
[0098] As an example, Figure 4 This is a schematic diagram of the frequency conversion function of a compressor according to an exemplary embodiment. When At that time, f 压缩机 The graph of (t) is as follows Figure 4 As shown, the horizontal axis represents time in seconds (S), and the vertical axis represents frequency in hertz (Hz). The frequency conversion function based on the compressor is used to achieve frequency conversion between the minimum frequency of 0.0001Hz and the maximum frequency of 0.01Hz, with a cycle of 1400s.
[0099] S1122. Based on the Latin hypercube algorithm, generate the operating condition matrix of the frequency conversion function of the input data and the operating condition matrix of the frequency conversion function of the output data.
[0100] As one possible implementation, after the training device determines the frequency conversion function of the input data and the frequency conversion function of the output data, it can generate the operating condition matrix of the frequency conversion function of the input data and the operating condition matrix of the frequency conversion function of the output data based on the Latin hypercube algorithm.
[0101] For example, for multiple control variables in the input data, to avoid frequency synchronization of the multiple control variable signals, the initial phase Ф of each control variable signal is... i and the initial phase of the periodic frequency conversion The parameters need to be randomly determined. Assuming the number of working conditions is n, the training device can use the Latin hypercube algorithm to generate a Latin hypercube matrix of size (n×2m), with elements ranging from [0, 2π), and each row having 2m parameters. Ф i Ф i , ..., Ф m By substituting the values in sequence, we can obtain n design conditions for training, each condition having m frequency conversion control signals X. i (y), i = 1, 2, ..., m. For multiple control variables in the input data, the training device can use the Latin hypercube algorithm to generate a Latin hypercube matrix of size (h × 2m), with elements ranging from [0, 2π). Similarly, according to... Ф i Ф i , ..., Ф m The sequence of values is used to form h design conditions for model verification. Each verification condition also has the characteristics of frequency conversion and random phase.
[0102] Specifically, the aforementioned X 压缩机 The expression for (t) also contains Ф 压缩机 and This needs to be determined. In this embodiment, the number of working conditions is set to n = 32. The training device uses the Latin hypercube algorithm to generate a Latin hypercube matrix of size (n × 2m), i.e., (32 × 6), with elements ranging from [0, 2π). Each row represents a working condition and has 6 parameters. Ф 压缩机 Ф 风扇 Ф 水泵 By substituting the values in sequence, 32 design scenarios can be generated for training. Each scenario has 3 control variables, namely X... 压缩机 , X 风扇 , X 水泵 For the output data, the training device can adopt a design method similar to the data generation scenario described above, designing h=4 verification scenarios, which also have the characteristics of frequency variation and random phase, to verify the effectiveness and accuracy of model training.
[0103] As an example, Figure 5 This is a schematic diagram illustrating a frequency conversion function of input data under different operating conditions according to an exemplary embodiment, such as... Figure 5 As shown, Figure 5This graph shows the changes in control variables under a given operating condition. The horizontal axis represents time (seconds), and the vertical axis represents speed (refreshers per minute, RPM). The trends of compressor speed, fan speed, and water pump speed are shown below. Figure 5 As shown, the compressor, cooling fan, and cooling water pump operate within their respective upper and lower limits and have frequency conversion capabilities. The maximum rate of change meets the requirements of subsequent action changes, and the phases of the three control variables are randomly different.
[0104] S1123. Based on the frequency conversion function of the input data and the operating condition matrix of the frequency conversion function of the input data, determine the generation operating condition corresponding to the input data.
[0105] As one possible implementation, after the training device determines the operating condition matrix of the frequency conversion function of the input data, it can determine the corresponding generation operating condition based on the frequency conversion function of the input data and the operating condition matrix of the frequency conversion function of the input data.
[0106] S1124. Based on the frequency conversion function of the output data and the operating condition matrix of the frequency conversion function of the output data, determine the verification operating condition corresponding to the output data.
[0107] As one possible implementation, after the training device determines the operating condition matrix of the frequency conversion function of the output data, it can determine the verification operating condition corresponding to the output data based on the frequency conversion function of the output data and the operating condition matrix of the frequency conversion function of the output data.
[0108] S1125. Based on the simulation model of the vehicle's thermal management system, simulate the generated operating conditions and the verification operating conditions to obtain the training data and the verification data.
[0109] As one possible implementation, after the training device determines the generation condition corresponding to the input data and the verification condition corresponding to the output data, it can simulate the generation condition and the verification condition based on the simulation model of the vehicle's thermal management system to obtain the training data and the verification data.
[0110] It should be understood that the training device can also establish a simulation model reflecting the performance of the vehicle's thermal management system. This simulation model includes components such as: compressor, condenser, expansion valve, evaporator, blower, fan, water pump, passenger compartment battery, and active air intake grille. It is used to reflect the changes in passenger compartment temperature and evaporator outlet temperature under different compressor speeds, fan speeds, and water pump speeds, as well as the compressor power consumption, fan power consumption, and water pump power consumption during the evaluation process.
[0111] In some other embodiments, the training device can determine the one-to-one and many-to-many mapping relationships in the input and output data, respectively. For the one-to-one mapping relationships between the input and output data, it can construct a single-layer LSTM neural network structure; for the many-to-many mapping relationships between the input and output data, it can construct a fully connected layer and a two-layer LSTM neural network structure. Therefore, as... Figure 6 As shown, step S113 above, determining the mapping relationship between input data and output data, and constructing the neural network structure, can be specifically implemented as follows: steps S1131-S1133:
[0112] S1131. Determine the one-to-one and many-to-many mapping relationships in the input and output data.
[0113] As one possible implementation, the training device can determine the one-to-one and many-to-many mapping relationships in the input and output data, respectively.
[0114] For example, the training device can determine the mapping relationship between five output data points—passenger compartment temperature, evaporator outlet temperature, compressor power consumption, fan power consumption, and water pump power consumption—and three input data points—compressor speed, fan speed, and water pump speed. Specifically, fan power consumption is only related to fan speed, and water pump power consumption is only related to water pump speed; therefore, there is a one-to-one mapping relationship between fan power consumption and fan speed, and between water pump power consumption and water pump speed. For passenger compartment temperature, evaporator outlet temperature, and compressor power consumption, these are the combined effects of compressor speed, fan speed, and water pump speed; therefore, there is a many-to-many mapping relationship between passenger compartment temperature, evaporator outlet temperature, and compressor speed, fan speed, and water pump speed.
[0115] S1132. Construct a single-layer LSTM neural network structure for a one-to-one mapping relationship.
[0116] As one possible implementation, the training device can construct a single-layer LSTM neural network structure based on the one-to-one mapping relationship between input and output data.
[0117] For example, the training device can construct corresponding LSTM single-layer neural network structures for the one-to-one mapping relationship between fan power consumption and fan speed and the one-to-one mapping relationship between water pump power consumption and water pump speed.
[0118] S1133. For many-to-many mapping relationships, construct a two-layer neural network structure consisting of a fully connected layer and an LSTM.
[0119] As one possible implementation, the training device can construct a two-layer neural network structure consisting of fully connected layers and LSTM, targeting the many-to-many mapping relationship between input and output data.
[0120] For example, given the many-to-many mapping relationship between the passenger compartment temperature, evaporator outlet air temperature, and compressor speed, fan speed, and water pump speed, the training device can construct the corresponding fully connected layer and LSTM two-layer neural network structure.
[0121] Specifically, Figure 7 This is a schematic diagram illustrating the construction of a neural network structure for a reduced-order model according to an exemplary embodiment, such as... Figure 7 As described above, for the one-to-one mapping relationship between fan power consumption and fan speed, and the one-to-one mapping relationship between water pump power consumption and water pump speed, a corresponding LSTM single-layer neural network structure LSTM(10), namely a long short-term recurrent neural network with a hidden size of 10, is constructed as reduced-order model B and reduced-order model C, respectively reflecting the mapping relationship between fan power consumption and fan speed, and the mapping relationship between water pump power consumption and water pump speed. For the many-to-many mapping relationship between passenger compartment temperature, evaporator outlet temperature and compressor speed, fan speed and water pump speed, a corresponding fully connected layer and LSTM double-layer neural network structure DENSE(10)+LSTM(15) is constructed, namely a fully connected layer with 10 neurons plus a long short-term recurrent neural network with a hidden size of 15, as reduced-order model A, with 3 outputs of passenger compartment temperature, evaporator outlet temperature and compressor power consumption, and 3 inputs of compressor speed, fan speed and water pump speed. It should be noted that all the reduced-order models as a whole reflect the relationship between all input data and output data. Each output data appears exactly once, while each input data can be used by multiple reduced-order model sub-modules.
[0122] In some other embodiments, the training device can train the neural network structure based on training data and validate the neural network structure based on validation data to obtain performance metrics. Based on these performance metrics, it can be determined whether a reduced-order model can be built based on the neural network structure. Therefore, as... Figure 8 As shown, step S114 above, which involves adjusting the neural network structure and constructing a reduced-order model based on the training and validation data, can be specifically implemented as follows: steps S1141-S1144:
[0123] S1141. Train the neural network structure based on the data to be trained.
[0124] As one possible approach, after the training device determines the neural network structure, it can train the neural network structure based on the data to be trained to obtain the trained neural network structure.
[0125] S1142. Verify the neural network structure based on the data to be verified, and obtain the performance indicators of the neural network structure.
[0126] As one possible implementation, after the training device trains the neural network structure based on the training data, it can verify the trained neural network structure based on the verification data, thereby obtaining the performance index of the trained neural network structure, so as to determine whether a reduced-order model can be constructed based on the performance index of the trained neural network structure.
[0127] S1143. If the performance indicators do not meet the preset threshold, update the training data and the verification data, adjust the neural network structure, train and verify the neural network structure based on the updated training data and verification data, and build a reduced-order model.
[0128] As one possible implementation, after obtaining the performance index of the trained neural network structure, the training device can compare the performance index with a preset threshold. If the performance index does not meet the preset threshold, the training data and verification data are updated, and the neural network structure is adjusted. Based on the updated training data and verification data, the neural network structure is trained and verified to build a reduced-order model.
[0129] For example, if the performance metrics of the trained neural network structure do not meet the preset threshold, it indicates that the accuracy of the trained neural network structure in processing input data has not yet met the requirements of the reduced-order model, and therefore the neural network structure needs to be retrained. The training device can update the training data and the data to be verified based on new input and output data, and adjust the neural network structure, for example, by increasing the size of the neural network structure. The adjusted neural network structure is then retrained and verified based on the updated training data and the data to be verified to determine the performance metrics. If the performance metrics again fail to meet the preset threshold, the above steps are iteratively executed until the performance metrics meet the preset threshold. The training device can then construct a reduced-order model based on the trained neural network structure. The performance metrics can be any of the following indicators representing the accuracy of the neural network structure: accuracy, recall, F1 score, etc. This application does not limit the specific performance metrics. The preset threshold is set by relevant management personnel according to needs and actual conditions, and this application does not limit the specific performance metrics.
[0130] S1144. When the performance indicators meet the preset threshold, construct a reduced-order model based on the neural network structure.
[0131] As one possible approach, if the performance metrics of the trained neural network structure meet a preset threshold, the training device can build a reduced-order model based on the neural network structure.
[0132] Figure 9 This is a flowchart illustrating the construction process of a reduced-order model according to an exemplary embodiment, such as... Figure 9As shown, the process includes the following steps: S901, defining the input of the reduced-order model according to the action space of the reinforcement learning algorithm, and defining the output of the reduced-order model according to the reward of the reinforcement learning algorithm. S902, establishing a simulation model reflecting the performance of the vehicle thermal management system, including all the inputs and outputs defined above (equivalent to step S111 above, determining the input and output data of the reduced-order model). S903, designing data generation and verification conditions using variable frequency functions and random phase technology (equivalent to step S112 above, determining the training data and verification data based on the input and output data). S904, identifying the causal relationship between input and output, establishing multiple neural networks based on the maximum causal relationship, covering all outputs (equivalent to step S113 above, determining the mapping relationship between input and output data, and constructing the neural network structure). S905, using the simulation model, performing simulations using the generation and verification conditions, generating the training data and verification data, and training the neural network. If the accuracy requirement is not met, repeat the above steps until the accuracy requirement of the reduced-order model is met (equivalent to step S114 above, adjusting the neural network structure and constructing the reduced-order model based on the training and verification data). S906, the reduced-order model replaces the original simulation model, and reinforcement learning algorithms such as DDPG, SAC, and PPO are used to train the agent to obtain the final trained agent, which is used for intelligent control of the thermal management system (equivalent to step S12 above, training the vehicle's thermal management agent based on the reduced-order model).
[0133] The foregoing mainly describes the solutions provided by the embodiments of this application from a methodological perspective. To achieve the above functions, the thermal management intelligent agent training device or vehicle includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should readily recognize that, based on the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0134] This application embodiment can, based on the above method, exemplarily divide a thermal management intelligent agent training device or vehicle into functional modules. For example, the thermal management intelligent agent training device or vehicle may include various functional modules corresponding to each functional division, or two or more functions may be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. It should be noted that the module division in this application embodiment is illustrative and only represents one logical functional division; in actual implementation, there may be other division methods.
[0135] Figure 10 This is a block diagram illustrating a thermal management agent training device according to an exemplary embodiment. (Refer to...) Figure 10 The thermal management intelligent agent training device 1000 includes: a construction module 1001 and a training module 1002.
[0136] The construction module 1001 is used to construct a reduced-order model; the reduced-order model is a neural network model constructed based on the mapping relationship between the parameters of the thermal management system; the training module 1002 is used to train the vehicle's thermal management agent based on the reduced-order model; the agent is a reinforcement learning system that learns based on observations to output the optimal decision; the thermal management agent is used to manage the vehicle's thermal management system based on the vehicle's state information.
[0137] In one possible implementation, the aforementioned construction module 1001 is specifically used to determine the input data and output data of the reduced-order model; based on the input data and output data, determine the training data and verification data; determine the mapping relationship between the input data and output data, and construct a neural network structure; based on the training data and verification data, adjust the neural network structure, and construct a reduced-order model.
[0138] In another possible implementation, the aforementioned construction module 1001 is specifically used to determine the frequency conversion function of the input data and the frequency conversion function of the output data based on the value range of the input data and the value range of the output data, respectively; generate the operating condition matrix of the frequency conversion function of the input data and the operating condition matrix of the frequency conversion function of the output data based on the Latin hypercube algorithm; determine the generation operating condition corresponding to the input data based on the frequency conversion function of the input data and the operating condition matrix of the frequency conversion function of the input data; determine the verification operating condition corresponding to the output data based on the frequency conversion function of the output data and the operating condition matrix of the frequency conversion function of the output data; and simulate the generation operating condition and the verification operating condition based on the simulation model of the vehicle's thermal management system to obtain the training data and the verification data.
[0139] In another possible implementation, the above-mentioned construction module 1001 is specifically used to determine the one-to-one mapping relationship and the many-to-many mapping relationship in the input data and output data; for the one-to-one mapping relationship, an LSTM single-layer neural network structure is constructed; for the many-to-many mapping relationship, a fully connected layer and an LSTM two-layer neural network structure are constructed.
[0140] In another possible implementation, the aforementioned construction module 1001 is specifically used to train the neural network structure based on the training data; to verify the neural network structure based on the verification data to obtain the performance index of the neural network structure; if the performance index does not meet the preset threshold, to update the training data and the verification data, and to adjust the neural network structure; to train and verify the neural network structure based on the updated training data and the verification data to construct a reduced-order model; and if the performance index meets the preset threshold, to construct a reduced-order model based on the neural network structure.
[0141] In another possible implementation, the input data includes: compressor speed, fan speed, water pump speed, fan speed, blower speed, and air intake grille speed; the output data includes: passenger compartment temperature, evaporator outlet temperature, compressor power consumption, fan power consumption, and water pump power consumption.
[0142] Based on the aforementioned technical methods, the reduced-order model, as a mathematical model for neural networks, is simpler than the physical simulation model in related technologies. Training the vehicle's thermal management agent using the reduced-order model improves the training efficiency. Furthermore, the reduced-order model preserves the mapping relationships between the parameters of the thermal management system, enabling the trained thermal management agent to manage the vehicle's thermal management system based on these relationships, thus improving the accuracy of the agent's decisions.
[0143] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0144] Figure 11 This is a block diagram illustrating a vehicle according to an exemplary embodiment. Figure 11 As shown, vehicle 1100 includes, but is not limited to, processor 1101 and memory 1102.
[0145] The aforementioned memory 1102 is used to store the executable instructions of the processor 1101. It is understood that the processor 1101 is configured to execute instructions to implement the thermal management agent training method described in the above embodiments.
[0146] It should be noted that those skilled in the art will understand that Figure 11 The vehicle structure shown does not constitute a limitation on the vehicle; a vehicle may include, but is not limited to, other types of vehicles. Figure 11 This may indicate more or fewer components, or a combination of certain components, or a different arrangement of components.
[0147] The processor 1101 is the control center of the vehicle, connecting various parts of the vehicle through various interfaces and lines. It performs various vehicle functions and processes data by running or executing software programs and / or modules stored in the memory 1102, and by calling data stored in the memory 1102, thereby providing overall vehicle monitoring. The processor 1101 may include one or more processing units. Optionally, the processor 1101 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may also not be integrated into the processor 1101.
[0148] The memory 1102 can be used to store software programs and various data. The memory 1102 may primarily include a program storage area and a data storage area. The program storage area may store the operating system, application programs required by at least one functional module (such as a determination unit, processing unit, etc.), etc. Furthermore, the memory 1102 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0149] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 1102 including instructions, which can be executed by a processor 1101 of a vehicle 1100 to implement the thermal management agent training method in the above embodiments.
[0150] In actual implementation, Figure 10 The functions of the building module 1001 and the training module 1002 can both be provided by Figure 11 The processor 1101 calls the computer program stored in the memory 1102 to implement the process. The specific execution process can be found in the method section of the previous embodiment, and will not be repeated here.
[0151] Optionally, the computer-readable storage medium may be a non-transitory computer-readable storage medium, such as a read-only memory (ROM), random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device.
[0152] In an exemplary embodiment, this application also provides a computer program product including one or more instructions, which can be executed by the vehicle's processor 1101 to complete the thermal management agent training method described above.
[0153] It should be noted that when one or more instructions in the computer-readable storage medium or computer program product are executed by the vehicle's processor, they implement the various processes of the above method embodiments and achieve the same technical effects as the above methods. To avoid repetition, they will not be described again here.
[0154] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0155] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another apparatus, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0156] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the classified units can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0157] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0158] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiments of this application, essentially, or the part that contributes to the prior art, or a complete or partial classification of the technical solution, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.
[0159] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A thermal management agent training method, characterized in that: The method comprises: Constructing a reduced-order model; the reduced-order model is a neural network model constructed based on a mapping relationship between parameters of the thermal management system; The thermal management agent of the vehicle is trained based on the reduced-order model; the agent is a system in a reinforcement learning system that learns based on observations to output optimal decisions; the thermal management agent is used to manage the thermal management system of the vehicle based on the status information of the vehicle.
2. The method according to claim 1, characterized in that The construction of the reduced-order model comprises: Determining input data and output data of the reduced-order model; Based on the input data and the output data, determine data to be trained and data to be verified; Determine the mapping relationship between the input data and the output data, and construct a neural network structure; Based on the data to be trained and the data to be verified, the neural network structure is adjusted to construct the reduced-order model.
3. The method according to claim 2, characterized in that The determining of the data to be trained and the data to be verified based on the input data and the output data includes: Based on the value range of the input data and the value range of the output data, respectively determining a frequency conversion function of the input data and a frequency conversion function of the output data; Based on the Latin hypercube algorithm, generating a working condition matrix of the variable frequency function of the input data and a working condition matrix of the variable frequency function of the output data; Determining a generation operating condition corresponding to the input data based on a variable frequency function of the input data and an operating condition matrix of the variable frequency function of the input data; Determining a verification operating condition corresponding to the output data based on a frequency conversion function of the output data and an operating condition matrix of the frequency conversion function of the output data; Based on the simulation model of the thermal management system of the vehicle, the generation condition and the verification condition are simulated to obtain the data to be trained and the data to be verified.
4. The method according to claim 2, characterized in that: The neural network structure includes a fully connected layer and an LSTM layer; the determining the mapping relationship between the input data and the output data to construct the neural network structure includes: Determining a one-to-one mapping relationship and a many-to-many mapping relationship among the input data and the output data; According to the one-to-one mapping relationship, a LSTM single-layer neural network structure is constructed; According to the many-to-many mapping relationship, a fully connected layer and LSTM double-layer neural network structure are constructed.
5. The method according to claim 2, characterized in that: The step of adjusting the neural network structure and constructing the reduced-order model based on the data to be trained and the data to be verified includes: Training the neural network structure based on the data to be trained; Verifying the neural network structure based on the data to be verified to obtain a performance indicator of the neural network structure; When the performance indicator does not meet the preset threshold, the data to be trained and the data to be verified are updated, and the neural network structure is adjusted, and the neural network structure is trained and verified based on the updated data to be trained and the data to be verified, so as to construct the reduced-order model; When the performance indicator meets a preset threshold, the reduced-order model is constructed based on the neural network structure.
6. The method according to any one of claims 2 to 5, characterized in that: The input data includes: compressor speed, fan speed, water pump speed, fan gear, blower gear and air intake grille gear; the output data includes: passenger compartment temperature, evaporator air outlet temperature, compressor power consumption, fan power consumption and water pump power consumption.
7. A thermal management agent training device, characterized in that: The device comprises: a construction module and a training module; The construction module is used to construct a reduced-order model; the reduced-order model is a neural network model constructed based on a mapping relationship between parameters of the thermal management system; The training module is used to train the thermal management agent of the vehicle based on the reduced-order model; the agent is a system in a reinforcement learning system that learns based on observations to output optimal decisions; the thermal management agent is used to manage the thermal management system of the vehicle based on the status information of the vehicle.
8. The device according to claim 7, characterized in that The construction module is specifically used to determine the input data and output data of the reduced-order model; based on the input data and the output data, determine the data to be trained and the data to be verified; Determine the mapping relationship between the input data and the output data, and construct a neural network structure; Based on the data to be trained and the data to be verified, the neural network structure is adjusted to construct the reduced-order model.
9. The device according to claim 8, characterized in that The construction module is specifically used to determine the frequency conversion function of the input data and the frequency conversion function of the output data respectively based on the value range of the input data and the value range of the output data; based on the Latin hypercube algorithm, generate the operating condition matrix of the frequency conversion function of the input data and the operating condition matrix of the frequency conversion function of the output data; Determining a generation operating condition corresponding to the input data based on a variable frequency function of the input data and an operating condition matrix of the variable frequency function of the input data; Determining a verification operating condition corresponding to the output data based on a frequency conversion function of the output data and an operating condition matrix of the frequency conversion function of the output data; Based on the simulation model of the thermal management system of the vehicle, the generation condition and the verification condition are simulated to obtain the data to be trained and the data to be verified.
10. A vehicle, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the method according to any one of claims 1 to 6.
11. A computer-readable storage medium, characterized in that: When the computer-executable instructions stored in the computer-readable storage medium are executed by a processor of a vehicle, the vehicle is capable of performing the method of any one of claims 1 to 6.
12. A computer program product, characterized in that The computer program product comprises computer instructions which, when executed on a vehicle, cause the vehicle to perform the method according to any one of claims 1 to 6.
Citation Information
Cited By
Complete vehicle thermal management model order reduction method and device, medium and equipment
CN121457294A
Whole vehicle thermal management model reduction method, device, medium and equipment
CN121457294B
