A method and system for temperature control of a battery pack
By calculating the temperature difference and confidence of the battery pack, the proportional coefficient in the PID algorithm is adaptively adjusted, which solves the problem of low temperature control accuracy in the existing technology, achieves more efficient and accurate temperature control, and reduces the temperature oscillation phenomenon. influence.
Patent Information
- Application Number
- CN202410928184.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-11
AI Technical Summary
Among the existing battery pack temperature control methods, the PID algorithm has a higher temperature under high-power working conditions and a lower temperature under low-power conditions, resulting in low accuracy of temperature control, and the artificially set proportional coefficient requires a lot of experiments to adapt. Different working conditions, unable to respond quickly to temperature changes.
By calculating the difference between the standard temperature and the actual temperature, the expected temperature difference is obtained, and based on the mean and difference of the weighted temperature expected difference, the adjustment factor of the initial proportional coefficient is calculated, the optimal proportional coefficient is adaptively obtained, and the fan power is adjusted using the PID algorithm. Improve the accuracy and response speed of temperature control.
It achieves faster response to temperature changes, reduces temperature fluctuations, improves the accuracy of temperature control, makes the battery pack temperature more in line with actual conditions, reduces temperature oscillations caused by overshoot, and improves the performance and safety of the battery pack. .
Smart Images

Figure CN118472500B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of battery packs, and in particular to a temperature control method and system for a battery pack. Background Art
[0002] With the development of battery technology, especially the widespread application of lithium-ion batteries, people's demand for battery temperature control is increasing. Batteries can perform best within a specific temperature range. Batteries operating at too high a temperature may cause safety hazards such as fire or explosion, while batteries operating at too low a temperature will cause the battery capacity to decrease, resulting in performance loss. Therefore, it is necessary to effectively control the temperature of the battery pack so that it can operate within the optimal temperature range.
[0003] In the prior art, the PID (Proportional-Integral-Derivative) algorithm is a feedback control algorithm that can be used for temperature control of battery packs. Temperature control is achieved by presetting control parameters. For example, a method, device and vehicle for regulating the internal temperature of a battery pack disclosed in the Chinese patent publication number CN108482168B pre-sets a to-be-determined proportional coefficient, that is, determines the first The preset value is used as the to-be-determined proportional coefficient. If the first temperature curve oscillates, Preset value and The average value of the preset values is used as the undetermined proportional coefficient, and the undetermined proportional coefficient is returned to obtain the undetermined proportional coefficient, that is, the value of the proportional coefficient needs to be tested one by one, which requires a large number of tests and consumes a lot of time.
[0004] The temperature of the battery pack is higher when it is working at high power and lower when it is not working. The main function of the proportional coefficient is to respond quickly to the deviation of the temperature control system and reduce transient errors. It takes a lot of time to obtain the proportional coefficient through tests one by one. This method is contrary to the function of responding quickly to the deviation of the temperature control system and cannot well adapt to the temperature changes of the battery under different working conditions. The accuracy of temperature control is low. Summary of the invention
[0005] In order to adaptively obtain the optimal proportional coefficient by adjusting the temperature change of the battery pack and improve the accuracy and efficiency of temperature control, the present application provides a temperature control method and system for a battery pack.
[0006] In a first aspect, the present application provides a temperature control method for a battery pack, which adopts the following technical solution:
[0007] A temperature control method for a battery pack comprises the following steps: using a PID algorithm to adjust the temperature of a battery pack according to a preset initial proportional coefficient, obtaining the actual temperature after adjustment, subtracting a preset standard temperature from the actual temperature to obtain an expected temperature difference at each moment; using the expected temperature difference and the corresponding moment as a two-dimensional data point, and using the product of the expected temperature difference at each moment and the confidence of the two-dimensional data point as the weighted expected temperature difference at each moment; calculating an adjustment factor of the initial proportional coefficient according to the mean of the weighted expected temperature difference, the difference of the weighted expected temperature differences at adjacent moments, the mean of the differences and a preset hyperparameter; using the product of the initial proportional coefficient and the adjustment factor as the optimal proportional coefficient, and using the PID algorithm to adjust the fan power of the battery pack.
[0008] The beneficial effects are: in order for the system to respond to temperature changes more quickly, reduce temperature fluctuations and improve the accuracy of temperature control, the difference between the standard temperature and the actual temperature is calculated to enable the system to more accurately respond to the temperature change trend, so that the actual temperature is as close to the standard temperature as possible. The adjustment factor of the proportional coefficient is adaptively obtained through the real-time temperature change of the battery pack, and the product of the initial proportional coefficient and the adjustment factor is used as the optimal proportional coefficient. According to the optimal proportional coefficient, the PID algorithm is used to adjust the fan power of the battery pack. Compared with the traditional temperature control using manually set proportional coefficients, it is more in line with the actual temperature of the battery pack, and the control effect is more accurate and efficient.
[0009] Optionally, the method for calculating the confidence of a two-dimensional data point includes the steps of: clustering the two-dimensional data points according to a clustering algorithm to obtain a plurality of clusters and a cluster center of each cluster; calculating the confidence of the two-dimensional data point at each moment, and the confidence calculation formula is:
[0010] ,in, Indicates Clusters in the cluster The confidence level of a two-dimensional data point, represents the normalization function, Indicates The total number of two-dimensional data points in clusters, Represents the total number of all two-dimensional data points in all clusters, Indicates The first The degree of outlier of a two-dimensional data point, Indicates The first The two-dimensional data points and The Euclidean distance between the cluster centers of clusters, Indicates All the two-dimensional data points in the clusters are The mean of the Euclidean distances between the cluster centers of the clusters.
[0011] The beneficial effect is: in the process of controlling the temperature of the battery pack in operation, changes in the external environment of the battery pack will cause inaccurate data collected by the temperature sensor. For example, affected by factors such as local heat sources, airflow, and heat dissipation, the temperature data collected by the sensor is inaccurate, thereby affecting the temperature control effect of the battery pack. Therefore, the present application clusters the temperature difference data in the time series, and calculates the degree of difference of the data collected at each moment based on the clustering results. Each two-dimensional data point in the cluster corresponds to the expected temperature difference corresponding to each moment. Therefore, the confidence of the expected temperature difference corresponding to each moment can be obtained based on the confidence of each two-dimensional data point in each cluster.
[0012] Optionally, the method for calculating the confidence of a two-dimensional data point includes the steps of: clustering the two-dimensional data points according to a clustering algorithm to obtain a plurality of clusters and a cluster center of each cluster; calculating the confidence of the two-dimensional data point at each moment, and the confidence calculation formula is:
[0013] ,in, Indicates Clusters in the cluster The confidence level of a two-dimensional data point, represents the normalization function, Indicates The first The degree of outlier of a two-dimensional data point, Indicates The first The two-dimensional data points and The Euclidean distance between the cluster centers of clusters, Indicates All the two-dimensional data points in the clusters are The mean of the Euclidean distances between the cluster centers of the clusters, Indicates The total number of two-dimensional data points in the clusters.
[0014] The beneficial effect is: relative to the above confidence calculation method, The normalized result of is used as the confidence level, which has a small amount of calculation and reduces the amount of data processing and workload.
[0015] Optionally, the clustering algorithm is an iterative self-organizing clustering algorithm.
[0016] Optionally, the normalization function adopts a standard normalization function.
[0017] Optionally, the adjustment factor of the initial proportional coefficient is calculated according to the mean of the weighted temperature expected difference, the difference of the weighted temperature expected differences at adjacent moments, the mean of the differences and the preset hyperparameters, including the steps of: subtracting the weighted temperature expected difference at the current moment from the weighted temperature expected difference at the previous moment to obtain the difference of the weighted temperature expected difference at the current moment, repeating the calculation to obtain the difference of the weighted temperature expected difference at each moment; and calculating the adjustment factor of the initial proportional coefficient, the calculation formula of the adjustment factor is: ,in, represents the adjustment factor, represents the mean of the weighted expected temperature differences at all times, represents the total number of differences, Indicates The difference in time, Indicates The difference in time, represents the mean of all differences, represents the preset hyperparameters, Represents the hyperbolic tangent curve.
[0018] The beneficial effect is: for the proportional coefficient in the PID algorithm, the larger its value, the stronger the system's response to the error, that is, once a temperature deviation occurs, the controller will output a stronger control signal faster, resulting in an excessively large proportional coefficient, which may cause the system to overreact and cause overshoot, that is, the system may exceed the set temperature after an initial rapid response, and then due to the continued control effect, the temperature will drop rapidly, resulting in oscillation. This unstable oscillation phenomenon is not conducive to the system's precise control of the battery pack temperature, and will damage the performance and life of the battery pack to a certain extent. Therefore, it is necessary to calculate the proportional coefficient adjustment factor based on the change in the expected weighted temperature difference in time series, which can reduce the impact of the oscillation phenomenon.
[0019] Optionally, including: disposing a chip temperature sensor on the surface of the battery pack.
[0020] The beneficial effects are: the chip temperature sensor is particularly suitable for occasions with high requirements on sensor volume, response speed and accuracy. It has obvious advantages in battery pack temperature monitoring, facilitates real-time and high-precision monitoring of battery pack temperature, and further improves the safety and reliability of the battery pack.
[0021] In a second aspect, the present application provides a temperature control system for a battery pack, which adopts the following technical solution:
[0022] A temperature control system for a battery pack, a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the temperature control method of the battery pack is implemented.
[0023] The beneficial effect is that the temperature control method of the battery pack is generated into a computer program and stored in a memory so as to be loaded and executed by a processor, thereby making a system based on the memory and the processor for easy use.
[0024] This application has the following technical effects:
[0025] 1. According to the temperature change of the battery pack collected by the sensor, the proportional coefficient is adaptively obtained. Based on the adaptively obtained proportional coefficient, the PID algorithm is used to control the temperature. The control process is more in line with the actual temperature of the battery pack, and the control effect is more accurate and efficient.
[0026] 2. Calculating the proportional coefficient adjustment factor based on the change in the expected weighted temperature difference in time series can reduce the impact of temperature oscillation caused by overshoot. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present application will become easily understood. In the accompanying drawings, several embodiments of the present application are shown in an exemplary and non-restrictive manner, and the same or corresponding numbers represent the same or corresponding parts.
[0028] Figure 1 It is a method flow chart of a temperature control method of a battery pack according to an embodiment of the present application. DETAILED DESCRIPTION
[0029] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0030] It should be understood that when the terms "first", "second", etc. are used in the claims, specification and drawings of the present application, they are only used to distinguish different objects, rather than to describe a specific order. The terms "include" and "comprise" used in the specification and claims of the present application indicate the presence of the described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or their collections.
[0031] The present application embodiment discloses a temperature control method for a battery pack, referring to Figure 1 , including steps S1 to S4, which are specifically as follows:
[0032] S1: Use the PID algorithm to adjust the temperature of the battery pack according to the preset initial proportional coefficient, obtain the actual temperature after adjustment, and subtract the preset standard temperature from the actual temperature to obtain the expected temperature difference at each moment.
[0033] The PID (Proportional-Integral-Derivative) algorithm is a feedback control algorithm that can be used for temperature control of battery packs by presetting control parameters.
[0034] In one embodiment, a patch temperature sensor is arranged on the surface of the battery pack to collect the actual temperature of the battery pack, and the collected data is stored in a preset data storage module. The collection cycle of the patch temperature sensor is 2 seconds. Other forms of temperature sensors can also be used to collect the actual temperature of the battery pack, which will not be described in detail here.
[0035] The proportional coefficient in the PID algorithm generates a response based on the deviation between the current standard temperature and the actual temperature. In order for the temperature control system to respond to temperature changes more quickly, reduce temperature fluctuations and improve the accuracy of temperature control, this application calculates the difference between the standard temperature and the actual temperature to enable the temperature control system to more accurately respond to temperature change trends, thereby making the actual temperature as close to the standard temperature as possible.
[0036] In one embodiment, the initial scale factor is preset , standard temperature ℃, in other embodiments, the implementer can set the initial proportionality coefficient and the standard temperature according to the actual situation.
[0037] The temperature of the battery pack is adjusted according to the preset initial proportional coefficient, and the temperature data collected at each moment after adjustment is recorded as the actual temperature at each moment. The actual temperature at each moment is subtracted from the standard temperature to obtain the expected temperature difference at each moment.
[0038] S2: The expected temperature difference and the corresponding time are regarded as a two-dimensional data point, and the product of the expected temperature difference at each time and the confidence of the two-dimensional data point is regarded as the weighted expected temperature difference at each time.
[0039] In the process of controlling the temperature of the battery pack during operation, changes in the external environment of the battery pack may cause inaccurate data collected by the temperature sensor. For example, the temperature data collected by the sensor may be inaccurate due to the influence of factors such as local heat source, airflow, and heat dissipation, thereby affecting the temperature control effect of the battery pack. Therefore, the present application clusters the temperature difference data in the time series, and calculates the difference degree of the data collected at each moment based on the clustering results.
[0040] In one embodiment, the expected temperature difference and the corresponding time are taken as a two-dimensional data point, and the two-dimensional data point is clustered according to a clustering algorithm to obtain multiple clusters and the cluster center of each cluster. Exemplarily, the clustering algorithm is an iterative self-organizing clustering algorithm, which is a prior art and will not be described in detail here.
[0041] Calculate the confidence of the two-dimensional data points at each moment.
[0042] In one embodiment, the confidence calculation formula is:
[0043] ,in, Indicates Clusters in the cluster The confidence level of a two-dimensional data point, Represents a normalization function. Exemplarily, the normalization function adopts a standard normalization function. The standard normalization function is a commonly used data preprocessing method, which can convert a set of data into a standard normal distribution with a mean of 0 and a standard deviation of 1. The standard normalization function is a prior art. In other embodiments, other normalization methods may also be used, which will not be described in detail here.
[0044] Indicates The total number of two-dimensional data points in clusters, Represents the total number of all two-dimensional data points in all clusters, The larger the The higher the reliability of the two-dimensional data points in a cluster, the higher the confidence of the cluster. Conversely, the lower the confidence of the cluster.
[0045] Indicates The first The smaller the outlier degree of a two-dimensional data point, the closer the distribution of the two-dimensional data point is to the center of the cluster, and the higher the confidence of the two-dimensional data point. Conversely, the lower the confidence of the two-dimensional data point.
[0046] Indicates The first The two-dimensional data points and The Euclidean distance between the cluster centers of clusters, Indicates All the two-dimensional data points in the clusters are The mean of the Euclidean distances between the cluster centers of the clusters.
[0047] The two-dimensional data points are clustered according to the two-dimensional data points composed of each moment and the expected temperature difference corresponding to the moment. Therefore, each two-dimensional data point in the cluster corresponds one-to-one to the expected temperature difference corresponding to each moment. Therefore, the confidence of the expected temperature difference corresponding to each moment can be obtained according to the confidence of each two-dimensional data point in each cluster.
[0048] In other embodiments, The normalized result of is directly used as the confidence.
[0049] S3: Calculate the adjustment factor of the initial proportional coefficient according to the mean of the weighted temperature expected difference, the difference of the weighted temperature expected differences at adjacent moments, the mean of the differences and the preset hyperparameters.
[0050] The larger the value of the proportional coefficient in the PID algorithm, the stronger the system's response to the error. That is, once a temperature deviation occurs, the controller will output a stronger control signal faster, resulting in an excessively large proportional coefficient, which may cause the system to overreact and cause overshoot. That is, the system may exceed the set temperature after an initial rapid response, and then the temperature will drop rapidly due to the continued control effect, resulting in oscillation. This instability is not conducive to the system's precise control of the battery pack temperature and will damage the performance and life of the battery pack to a certain extent. Therefore, this application needs to calculate the proportional coefficient adjustment factor based on the change in the expected weighted temperature difference in time series.
[0051] The weighted temperature expected difference at the current moment is subtracted from the weighted temperature expected difference at the previous moment to obtain the difference of the weighted temperature expected difference at the current moment, and the calculation is repeated to obtain the difference of the weighted temperature expected difference at each moment.
[0052] Calculate the adjustment factor of the initial proportional coefficient. The calculation formula of the adjustment factor is:
[0053] ,in, represents the adjustment factor, Represents the hyperbolic tangent curve.
[0054] The purpose of setting the hyperbolic tangent curve is:
[0055] make The value mapping is within the range.
[0056] represents the mean of the weighted expected temperature differences at all times, if , indicating that the average level of actual temperature is greater than the preset standard temperature; if , it means that the average level of actual temperature is lower than the preset standard temperature. , it means that the average level of actual temperature is equal to the preset standard temperature.
[0057] Represents the total number of differences, with the same value as equal, Indicates The difference in time, Indicates The difference in time, represents the mean of all differences, Represents the preset hyperparameters to prevent When it is zero, the score becomes meaningless. The value of can be set by the implementer according to the actual situation, for example, it can be set to 0.001.
[0058] It indicates the current system's sensitivity to errors. The larger the value, the higher the current temperature control system's sensitivity to errors. The higher the sensitivity, the easier it is to cause the temperature control system to oscillate. Conversely, it is less likely to cause the temperature control system to oscillate.
[0059] It indicates the change of the difference of the expected weighted temperature difference in the continuous time series. The larger the value is, the larger the expected weighted temperature difference is with the change of time, that is, the error of the current temperature control system is increasing. On the contrary, the error of the current temperature control system is decreasing.
[0060] In summary, The larger the value, The smaller the value, The larger the value, the larger the error of the current temperature control system is and the lower the response sensitivity is. That is, the temperature control system does not respond to the error in a timely manner. It is necessary to increase the proportional coefficient appropriately to improve the system's response speed to the error. On the contrary, The smaller the value, The larger the value, The smaller the value, the more it means that the current temperature control system has too high response sensitivity, causing the actual temperature to continue to hover around the standard temperature, resulting in oscillation. In this case, the sensitivity of the temperature control system needs to be reduced.
[0061] S4: The product of the initial proportional coefficient and the adjustment factor is used as the optimal proportional coefficient, and the fan power of the battery pack is adjusted using a PID algorithm.
[0062] In one embodiment, in order to prevent a large amount of computing load from being caused by constantly adjusting the proportional coefficient of the temperature control system, the proportional coefficient is set to be adjusted every 200 seconds.
[0063] An embodiment of the present application also discloses a temperature control system for a battery pack, including a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, a temperature control method for the battery pack according to the present application is implemented.
[0064] The above system also includes other components well known to those skilled in the art, such as a communication bus and a communication interface, and their configuration and functions are known in the art, so they will not be described in detail here.
[0065] In the present application, the aforementioned memory may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, apparatus, or device. For example, a computer-readable storage medium may be any appropriate magnetic storage medium or magneto-optical storage medium, such as a resistive random access memory RRAM (Resistive Random Access Memory), a dynamic random access memory DRAM (Dynamic Random Access Memory), a static random access memory SRAM (Static Random Access Memory), an enhanced dynamic random access memory EDRAM (Enhanced Dynamic Random Access Memory), a high bandwidth memory HBM (High Bandwidth Memory), a hybrid memory cube HMC (Hybrid Memory Cube), etc., or any other medium that can be used to store the required information and can be accessed by an application, a module, or both. Any such computer storage medium may be part of a device or accessible or connectable to a device.
[0066] Although this specification has shown and described a plurality of embodiments of the present application, it is obvious to those skilled in the art that such embodiments are provided by way of example only. Those skilled in the art will think of many changes, modifications and alternatives without departing from the thought and spirit of the present application. It should be understood that in the process of practicing the present application, various alternatives to the embodiments of the present application described herein may be adopted.
[0067] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Therefore, any equivalent changes made according to the structure, shape, and principle of the present application should be included in the protection scope of the present application.
Claims
1. A temperature control method for a battery pack, It is characterized in that Includes steps: Using the PID algorithm, the temperature of the battery pack is adjusted according to the preset initial proportional coefficient, the actual temperature after adjustment is obtained, and the expected temperature difference at each moment is obtained by subtracting the preset standard temperature from the actual temperature; The expected temperature difference and the corresponding time are taken as a two-dimensional data point, and the product of the expected temperature difference at each time and the confidence of the two-dimensional data point is taken as the weighted expected temperature difference at each time; the confidence calculation method of the two-dimensional data point includes the steps of: clustering the two-dimensional data points according to the clustering algorithm to obtain multiple clusters and the cluster center of each cluster; calculating the confidence of the two-dimensional data point at each time, and the confidence calculation formula is: ,in, Indicates Clusters in the cluster The confidence level of a two-dimensional data point, represents the normalization function, Indicates The total number of two-dimensional data points in clusters, Represents the total number of all two-dimensional data points in all clusters, Indicates The first The degree of outlier of a two-dimensional data point, Indicates The first The two-dimensional data points and The Euclidean distance between the cluster centers of clusters, Indicates All the two-dimensional data points in the clusters are The mean of the Euclidean distances between the cluster centers of the clusters; According to the mean of the weighted temperature expected difference, the difference of the weighted temperature expected difference at adjacent moments, the mean of the difference and the preset hyperparameters, the adjustment factor of the initial proportional coefficient is calculated, including the steps of: The weighted temperature expected difference at the current moment is subtracted from the weighted temperature expected difference at the previous moment to obtain the difference of the weighted temperature expected difference at the current moment, and the calculation is repeated to obtain the difference of the weighted temperature expected difference at each moment; the adjustment factor of the initial proportional coefficient is calculated, and the calculation formula of the adjustment factor is: ,in, represents the adjustment factor, represents the mean of the weighted expected temperature differences at all times, represents the total number of differences, Indicates The difference in time, Indicates The difference in time, represents the mean of all differences, represents the preset hyperparameters, represents the hyperbolic tangent curve; The product of the initial proportional coefficient and the adjustment factor is taken as the optimal proportional coefficient, and the fan power of the battery pack is adjusted using the PID algorithm.
2. The temperature control method of the battery pack according to claim 1, It is characterized in that The clustering algorithm is an iterative self-organizing clustering algorithm.
3. The temperature control method of the battery pack according to claim 1, It is characterized in that The method also includes the step of: the normalization function adopts a standard normalization function.
4. The temperature control method of the battery pack according to claim 1, It is characterized in that include: A chip temperature sensor is arranged on the surface of the battery pack.
5. A temperature control system for a battery pack, It is characterized in that include: A processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the temperature control method of the battery pack according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
A method, apparatus, and automobile for regulating the internal temperature of a battery pack.
CN108482168B
Battery pack internal temperature adjusting method and device and automobile
CN108482168A
Fan control method and device
CN116557322A
Intelligent unattended wagon balance abnormity monitoring system
CN117571107A
Intelligent security risk detection method and system based on digital twinning
CN118133059A
