Battery pack cell grouping method, apparatus, medium, and electronic device
By calculating the Pearson correlation coefficient between individual cells, the N individual cells with the largest Pearson correlation coefficient are grouped into a battery pack. This solves the problem of low accuracy in grouping individual cells in the existing technology, improves the accuracy of data acquisition from individual cells within the battery pack, and reduces sensor costs.
Patent Information
- Application Number
- CN202111082878.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-15
- Publication Date
- 2026-02-13
- Estimated Expiration
- 2041-09-15
AI Technical Summary
In existing technologies, when grouping individual cells within a battery pack based on the energy efficiency difference of individual cells, the grouping accuracy is low, resulting in insufficient battery pack safety and inaccurate battery data monitoring.
By calculating the Pearson correlation coefficient between individual cells, the N individual cells with the largest Pearson correlation coefficient are grouped into a battery group, which improves the accuracy of grouping. The battery data of other individual cells in the group can be characterized by the battery data of any individual cell in the group.
It improves the accuracy of individual battery grouping and the accuracy of data acquisition from individual batteries within the battery pack, while reducing sensor deployment costs and saving internal space in the battery pack.
Smart Images

Figure CN115810810B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of new energy vehicle battery monitoring, in particular to a single battery grouping method and device for a battery pack, a medium and an electronic device. BACKGROUND
[0002] A battery pack of a new energy vehicle usually has a plurality of single batteries connected in series. A large amount of battery data is generated during charging, driving and standing of the new energy vehicle, which is conducive to monitoring the safety state of the battery pack and improving the arrangement of the single batteries in the battery pack. The single batteries in the battery pack are usually arranged in groups. In related scenarios, the single batteries in the battery pack are subjected to capacity testing, and the capacity difference, energy efficiency difference and internal resistance difference at the peak of the characteristic curve are calculated according to the capacity testing. The open-circuit voltage difference of the single batteries is measured. The single batteries in the battery pack are grouped according to the energy efficiency difference standard by using parameters such as the capacity difference, energy efficiency difference, internal resistance difference and open-circuit voltage difference. SUMMARY
[0003] The purpose of the present disclosure is to provide a single battery grouping method and device for a battery pack, a medium and an electronic device. By taking the N single batteries with the largest Pearson correlation coefficients as a battery group, the accuracy of single battery grouping can be improved.
[0004] To achieve the above-mentioned purpose, in a first aspect, the present disclosure provides a single battery grouping method for a battery pack, which comprises:
[0005] determining the quantity requirement for grouping the single batteries in the battery pack, wherein the quantity requirement comprises the quantity requirement for the single batteries capable of forming a battery group;
[0006] grouping each single battery in the battery pack according to the Pearson correlation coefficient of each single battery relative to other single batteries in the battery pack and the quantity requirement, to obtain a plurality of battery groups;
[0007] wherein the number N of single batteries in each battery group meets the quantity requirement, N is a positive integer greater than 0, and for a battery group comprising a plurality of single batteries, any number of single batteries in the battery group are target single batteries, and the other N-1 single batteries in the battery group are the N-1 single batteries with the largest Pearson correlation coefficients relative to the target single batteries in the battery pack.
[0008] Optionally, the grouping of each single battery in the battery pack according to the Pearson correlation coefficient of each single battery relative to other single batteries in the battery pack and the quantity requirement to obtain a plurality of battery groups comprises:
[0009] The following operations are performed cyclically:
[0010] Any monomer battery in the battery pack that is not grouped is taken as a target monomer battery;
[0011] M monomer batteries with the largest Pearson correlation coefficients of the target monomer battery are selected from the battery pack as candidate monomer batteries, where the initial value of M is such that M+1 is the largest value that satisfies the quantity requirement;
[0012] For each candidate monomer battery, it is determined whether the other candidate monomer batteries and the target monomer battery are the M monomer batteries with the largest Pearson correlation coefficients of the candidate monomer battery in the battery pack;
[0013] If, for each candidate monomer battery, the other candidate monomer batteries and the target monomer battery are the M monomer batteries with the largest Pearson correlation coefficients of the candidate monomer battery in the battery pack, then the M candidate monomer batteries and the target monomer battery are taken as a battery group.
[0014] Optionally, the method further comprises:
[0015] If, for any candidate monomer battery, the other candidate monomer batteries and the target monomer battery are not the M monomer batteries with the largest Pearson correlation coefficients of the candidate monomer battery in the battery pack, then the value of M is reduced, and the step of selecting M monomer batteries with the largest Pearson correlation coefficients of the target monomer battery from the battery pack as candidate monomer batteries is performed again.
[0016] Optionally, the method further comprises:
[0017] If, after the value of M is reduced to a minimum value, for any candidate monomer battery, the other candidate monomer batteries and the target monomer battery are not the M monomer batteries with the largest Pearson correlation coefficients of the candidate monomer battery, then the target monomer battery is taken as a battery group alone.
[0018] Optionally, the method further comprises:
[0019] The number of sensors in the battery pack and the number of monomer batteries in the battery pack are obtained, where at least one of the sensors is used to detect a battery group after grouping;
[0020] The quantity requirement is determined according to the number of sensors and the number of monomer batteries.
[0021] Optionally, the grouping each of the single batteries in the battery pack according to the quantity requirement comprises:
[0022] grouping each of the single batteries in the battery pack according to the quantity requirement;
[0023] counting the quantity of the battery groups obtained by the grouping;
[0024] determining whether the quantity matches the quantity of the sensors;
[0025] in the case that the quantity matches the quantity of the sensors, taking the group as a target group to obtain the battery groups; or,
[0026] in the case that the quantity does not match the quantity of the sensors, adjusting the quantity requirement, and regrouping each of the single batteries in the battery pack according to the Pearson correlation coefficient of each of the single batteries relative to other single batteries in the battery pack according to the adjusted quantity requirement until the quantity of the battery groups obtained by the regrouping matches the quantity of the sensors.
[0027] Optionally, the determining the quantity requirement for grouping the single batteries in the battery pack comprises:
[0028] obtaining the quantity requirement preset by a user according to the quantity of the single batteries in the battery pack;
[0029] The method further comprises:
[0030] outputting prompt information according to the quantity of the battery groups obtained by the grouping, the prompt information being used to prompt the quantity of the sensors required to be configured for the battery pack.
[0031] Optionally, the Pearson correlation coefficient is calculated by at least one of a battery voltage, a battery state of charge (SOC) change rate, and a battery temperature.
[0032] In a second aspect, the disclosure provides a single battery grouping device for a battery pack, the device comprising:
[0033] a determining module configured to determine a quantity requirement for grouping single batteries in the battery pack, the quantity requirement comprising a quantity requirement for single batteries capable of forming a battery group;
[0034] a grouping module configured to group each of the single batteries in the battery pack according to a Pearson correlation coefficient of each of the single batteries relative to other single batteries in the battery pack according to the quantity requirement to obtain a plurality of battery groups;
[0035] wherein the number N of the single batteries in each of the battery groups meets the number requirement, N is a positive integer greater than 0, for a battery group comprising a plurality of single batteries, any number of single batteries in the battery group is a target single battery, and other N-1 single batteries in the battery group are N-1 single batteries in the battery pack having the largest Pearson correlation coefficient with the target single battery.
[0036] Optionally, the grouping module is configured to cyclically perform the following operations:
[0037] taking any single battery in the battery pack that is not grouped as a target single battery;
[0038] selecting, from the battery pack, M single batteries having the largest Pearson correlation coefficient with the target single battery as candidate single batteries, wherein the initial value of M is a value such that M+1 is the largest value meeting the number requirement;
[0039] for each candidate single battery, determining whether other candidate single batteries and the target single battery are M single batteries in the battery pack having the largest Pearson correlation coefficient with the candidate single battery;
[0040] if, for each candidate single battery, the other candidate single batteries and the target single battery are M single batteries in the battery pack having the largest Pearson correlation coefficient with the candidate single battery, then taking the M candidate single batteries and the target single battery as a battery group.
[0041] Optionally, the grouping module is further configured to, if there is any candidate single battery for which the other candidate single batteries and the target single battery are not M single batteries in the battery pack having the largest Pearson correlation coefficient with the candidate single battery, decrease the value of M and return to perform the step of selecting, from the battery pack, M single batteries having the largest Pearson correlation coefficient with the target single battery as candidate single batteries.
[0042] Optionally, the grouping module is further configured to, if there is any candidate single battery for which the other candidate single batteries and the target single battery are not M single batteries in the battery pack having the largest Pearson correlation coefficient with the candidate single battery, decrease the value of M and return to perform the step of selecting, from the battery pack, M single batteries having the largest Pearson correlation coefficient with the target single battery as candidate single batteries.
[0043] Optionally, the determination module is configured to: acquire the number of sensors in the battery pack and the number of single batteries in the battery pack, wherein at least one of the sensors is used to detect a battery group after grouping.
[0044] determine the quantity requirement according to the sensor quantity and the cell quantity.
[0045] Optionally, the grouping module is further configured to:
[0046] group each cell in the battery pack according to the quantity requirement;
[0047] count the grouping quantity of the plurality of battery groups obtained by grouping;
[0048] determine whether the grouping quantity matches the sensor quantity;
[0049] in a case where the grouping quantity matches the sensor quantity, take the grouping as a target grouping to obtain the plurality of battery groups; or
[0050] in a case where the grouping quantity does not match the sensor quantity, adjust the quantity requirement, and regroup each cell in the battery pack according to the adjusted quantity requirement and a Pearson correlation coefficient of each cell relative to other cells in the battery pack, until the grouping quantity after regrouping matches the sensor quantity, to obtain the plurality of battery groups.
[0051] Optionally, the determining module is configured to: obtain the quantity requirement preset by a user according to the cell quantity in the battery pack;
[0052] The grouping module is further configured to output prompt information according to the grouping quantity of the plurality of battery groups obtained by grouping, the prompt information being used to prompt the sensor quantity required by the battery pack.
[0053] Optionally, the Pearson correlation coefficient is calculated by at least one of a battery voltage, a battery state of charge (SOC) change rate, and a battery temperature.
[0054] In a third aspect, the present disclosure provides a computer-readable storage medium having a computer program stored thereon, the computer program being executed by a processor to implement the steps of the method in any one of the first aspect.
[0055] In a fourth aspect, the present disclosure provides an electronic device including a controller, the controller including a memory and a processor, the memory having a computer program stored therein, the processor implementing the steps of the method in any one of the first aspect when executing the computer program.
[0056] By the technical solution, the quantity requirement of grouping the single batteries in the battery pack is determined, the quantity requirement including the quantity requirement of the single batteries capable of constituting one battery group; the single batteries in the battery pack are grouped according to the Pearson correlation coefficients of each single battery relative to other single batteries in the battery pack, and the plurality of battery groups are obtained; wherein the quantity N of the single batteries in each battery group meets the quantity requirement, and for the battery group including a plurality of single batteries, any quantity of single batteries in the battery group are target single batteries, and other N-1 single batteries in the battery group are the N-1 single batteries having the largest Pearson correlation coefficients with the target single batteries in the battery pack. By taking the N single batteries having the largest Pearson correlation coefficients with each other as one battery group, the accuracy of grouping the single batteries can be improved.
[0057] Other features and advantages of the present disclosure will be described in detail in the following detailed description section. BRIEF DESCRIPTION OF DRAWINGS
[0058] The accompanying drawings are included to provide a further understanding of the present disclosure and constitute a part of the specification, which together with the following detailed description, serve to explain the present disclosure. In the drawings:
[0059] Figure 1 is a flow chart of a single battery grouping method of a battery pack according to an exemplary embodiment;
[0060] Figure 2 is a flow chart of a method for implementing step S12 in Figure 1
[0061] Figure 3 is a flow chart of a method for implementing step S11 in Figure 1
[0062] Figure 4 is a flow chart of another single battery grouping method of a battery pack according to an exemplary embodiment;
[0063] Figure 5 is a block diagram of a single battery grouping device of a battery pack according to an exemplary embodiment;
[0064] Figure 6 is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0065] The exemplary embodiments will be described in detail herein with reference to the attached drawings. In the following description, like reference numerals refer to like elements, unless the context clearly dictates otherwise. The following description of exemplary embodiments is not representative of all possible embodiments consistent with the present disclosure. Instead, they are merely examples of apparatuses and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0066] It is worth mentioning that, for the method embodiments provided by the present disclosure, in order to simply describe, they are all expressed as a series of action combinations, but those skilled in the art should know that the present disclosure is not limited by the order of the described actions. Secondly, those skilled in the art should know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the present disclosure.
[0067] The inventor found that, according to the capacity difference, energy efficiency difference, internal resistance difference and open circuit voltage difference between single batteries, the single batteries in the battery pack are grouped by the energy efficiency difference standard, and since the grouping method is only based on the energy efficiency difference standard, the accuracy of the single battery grouping is low, resulting in low accuracy of monitoring the safety of the battery pack and collecting battery data.
[0068] Therefore, the present disclosure provides a single battery grouping method of a battery pack, which aims to improve the accuracy of single battery grouping, and through the battery data of any single battery in the battery pack representing the battery data of other single batteries in the group, the accuracy of collecting the battery data of single batteries in the battery pack can be improved, and without arranging sensors and the like for each single battery, the arrangement cost of sensors and the like is reduced, and the internal space of the battery pack is saved.
[0069] Figure 1 is a flowchart of a single battery grouping method of a battery pack according to an exemplary embodiment, referring to Figure 1 The method comprises the following steps:
[0070] In step S11, the number requirement of grouping the single batteries in the battery pack is determined.
[0071] The number requirement includes the number requirement of single batteries that can form a battery group.
[0072] The number requirement of grouping the single batteries can be different, for example, the number requirement of some groups is 4, and the number requirement of some groups is 5.
[0073] Optionally, the number requirement of grouping can be determined according to the number of sensors of the battery pack, or can be determined according to the number requirement set by the user in advance.
[0074] In step S12, each of the single batteries in the battery pack is grouped according to the Pearson correlation coefficient of each single battery relative to other single batteries in the battery pack, and a plurality of battery groups are obtained according to the quantity requirement.
[0075] The Pearson correlation coefficient of each single battery relative to other single batteries in the battery pack can be calculated by at least one of the battery voltage, the battery state of charge SOC change rate, and the battery temperature in the battery parameters.
[0076] In an embodiment, the Pearson correlation coefficient of each single battery relative to other single batteries in the battery pack can be calculated using the built-in correlation function "df1.corr(df2)" of pandas, for example, calling the function exec("corr_coe=f.%s.corr(f.%s)"%(col_name1,col_name2), and iterating to calculate the Pearson correlation coefficient of the battery data of any single battery in the battery pack relative to the open circuit voltage of other single batteries in the battery pack. The battery data includes at least one of the battery voltage, the battery state of charge SOC change rate, and the battery temperature. name1 is any single battery in the battery pack, and name2 is one of the other single batteries.
[0077] Specifically, the battery parameters of any single battery and the corresponding types of battery parameters of other single batteries are substituted into the following formula to calculate the quotient of the covariance and the standard deviation between the two battery parameters, and the Pearson correlation coefficient p is obtained. (x,y) :
[0078]
[0079] Wherein x is the battery parameter of any single battery, y is the battery parameter of any other single battery in the battery group, μ x is the overall mean of the battery parameter of any single battery, μ y is the overall mean of the battery parameter of any other single battery in the battery group, E[(x-μ x )(y-μ y )] is the covariance between the two battery parameters, σ x is the standard deviation of the battery parameter of any single battery, σ y is the standard deviation of the battery parameter of any other single battery in the battery group.
[0080] For example, if the battery pack includes 96 single batteries, if the Pearson correlation coefficient of single battery #1 relative to the other 95 single batteries is calculated, name1 is the battery data of single battery #1, and name2 is the battery data of single batteries #2 to #96, respectively, and 95 Pearson correlation coefficients of single battery #1 are calculated.
[0081] In this way, the direction and degree of the change trend between the battery data of the two single batteries can be determined by the correlation function "df1.corr(df2)", and the single batteries can be grouped accordingly. The Pearson correlation coefficient has a value range of [-1, +1], 0 indicates that the battery data of the two single batteries is not correlated, a positive value indicates that the battery data of the two single batteries is positively correlated, and a negative value indicates that the battery data of the two single batteries is negatively correlated. The greater the absolute value of the value, the stronger the correlation between the battery data of the two single batteries, i.e. the greater the positive value, the stronger the positive correlation between the battery data of the two single batteries, and the smaller the negative value, the stronger the negative correlation between the battery data of the two single batteries.
[0082] Wherein, the number N of single batteries in each battery group meets the number requirement, N is a positive integer greater than 0, for a battery group including multiple single batteries, any number of single batteries in the battery group are target single batteries, and the other N-1 single batteries in the battery group are the N-1 single batteries with the largest Pearson correlation coefficient of the target single batteries in the battery pack.
[0083] It can be understood that for a battery group including multiple single batteries, the N-1 single batteries with the largest Pearson correlation coefficient of the target single batteries in the battery group are all in the battery group, and the N-1 single batteries with the largest Pearson correlation coefficient are sorted in descending order of the value of the Pearson correlation coefficient.
[0084] Wherein, any number of single batteries as target single batteries can be part of the single batteries as target single batteries, i.e. the N-1 single batteries with the largest Pearson correlation coefficient of the part of the single batteries are in the battery group, or all single batteries as target single batteries, i.e. the N-1 single batteries with the largest Pearson correlation coefficient of each single battery are in the battery group.
[0085] For example, if the battery pack A includes 4 single batteries, i.e. the number N of single batteries in the battery pack is equal to 4, the 4 single batteries are denoted as #1, #2, #3 and #4, wherein for the single battery #1, the other N-1 (3) single batteries #2, #3 and #4 in the battery pack A are necessarily the 3 single batteries with the largest Pearson correlation coefficients of the single battery #1 in the battery pack, i.e. the 3 single batteries with the largest Pearson correlation coefficients of the single battery #1 are all in the battery pack A; if part of the single batteries are target single batteries, for the single battery #2, the other N-1 (3) single batteries #1, #3 and #4 in the battery pack A are the 3 single batteries with the largest Pearson correlation coefficients of the single battery #2 in the battery pack, while for the single battery #3 or #4, the 3 single batteries with the largest Pearson correlation coefficients may have one or more not in the battery pack A; similarly, for the single battery #3, the other N-1 (3) single batteries #1, #2 and #4 in the battery pack A are the 3 single batteries with the largest Pearson correlation coefficients of the single battery #3 in the battery pack, while for the single battery #2 or #4, the 3 single batteries with the largest Pearson correlation coefficients may have one or more not in the battery pack A.
[0086] If all the single batteries are target single batteries, i.e. for each single battery in the battery pack including multiple single batteries, the other N-1 single batteries in the battery pack are the N-1 single batteries with the largest Pearson correlation coefficients of the single battery in the battery pack, using the above embodiment for illustration, for the single battery #2, the other N-1 (3) single batteries #1, #3 and #4 in the battery pack A are necessarily the 3 single batteries with the largest Pearson correlation coefficients of the single battery #2 in the battery pack; at the same time, for the single battery #3, the other N-1 (3) single batteries #1, #2 and #4 in the battery pack A are necessarily the 3 single batteries with the largest Pearson correlation coefficients of the single battery #3 in the battery pack; at the same time, for the single battery #4, the other N-1 (3) single batteries #1, #2 and #3 in the battery pack A are necessarily the 3 single batteries with the largest Pearson correlation coefficients of the single battery #4 in the battery pack.
[0087] In the technical solution, the N-1 single batteries with the largest Pearson correlation coefficients of all the single batteries in the battery pack are all in the battery pack, compared to the N-1 single batteries with the largest Pearson correlation coefficients of part of the single batteries in the battery pack being in the battery pack, the accuracy of the battery grouping can be further improved.
[0088] It can be explained that the number of single batteries in each battery pack in the multiple battery packs can be different.
[0089] In a specific implementation, the battery packs can be output in the form of a classification table, so that a designer can make assembly instructions for the single batteries according to the grouping represented in the classification table, or assemble the single batteries according to the grouping represented in the classification table.
[0090] The technical solution described above determines the quantity requirement for grouping the single batteries in the battery pack, the quantity requirement including the quantity requirement for the single batteries that can form a battery pack; groups the single batteries in the battery pack according to the Pearson correlation coefficients of each single battery relative to other single batteries in the battery pack and the quantity requirement, to obtain a plurality of battery packs; wherein the number N of the single batteries in each battery pack meets the quantity requirement, and for each single battery in a battery pack including a plurality of single batteries, the other N-1 single batteries in the battery pack are the N-1 single batteries with the largest Pearson correlation coefficients with the single battery in the battery pack. By taking the N single batteries with the largest Pearson correlation coefficients with each other as a battery pack, the accuracy of grouping the single batteries can be improved. Moreover, by taking the N single batteries with the largest Pearson correlation coefficients with each other as a battery pack, the aggregation state of the battery data can be represented, providing a basis for identifying abnormal single batteries.
[0091] On the basis of the above-described embodiments, Figure 2 is a flowchart of step S12 according to an example embodiment, in which step S12, grouping the single batteries in the battery pack according to the Pearson correlation coefficients of each single battery relative to other single batteries in the battery pack and the quantity requirement, to obtain a plurality of battery packs, includes cyclically performing the following operations: Figure 1 In step S121, any single battery in the battery pack that has not been grouped is taken as a target single battery.
[0092] The above
[0093] The above Figure 1 The above
[0094] In step S122, the M single batteries with the largest Pearson correlation coefficients with the target single battery are selected from the battery pack as candidate single batteries, wherein the initial value of M is a value that makes M+1 the largest value meeting the quantity requirement.
[0095] For example, in the case where the target single battery is #1, 95 Pearson correlation coefficients relative to the other 95 single batteries are calculated, the M largest ones are selected from the 95 Pearson correlation coefficients, and the single batteries corresponding to the M Pearson correlation coefficients are taken as candidate single batteries.
[0096] For example, if the quantity requirement is 4, M+1 is the maximum value satisfying the quantity requirement 4, then M is equal to 3. Further, 3 largest Pearson correlation coefficients are selected from the 95 Pearson correlation coefficients, and the monomer batteries #2, #3 and #4 corresponding to the 3 Pearson correlation coefficients are taken as candidate monomer batteries.
[0097] In a specific implementation, the 95 Pearson correlation coefficients corresponding to the monomer battery #1 can be sorted in descending order, and then the monomer batteries corresponding to the M largest Pearson correlation coefficients are selected as candidate monomer batteries.
[0098] In step S123, for each candidate monomer battery, it is determined whether the other candidate monomer batteries and the target monomer battery are the M monomer batteries with the largest Pearson correlation coefficients of the candidate monomer battery in the battery pack.
[0099] For the candidate monomer batteries #2, #3 and #4, it is determined whether the 3 largest Pearson correlation coefficients of the candidate monomer battery #2 are the monomer batteries #1, #3 and #4; similarly, it is determined whether the 3 largest Pearson correlation coefficients of the candidate monomer battery #3 are the monomer batteries #1, #2 and #4, and whether the 3 largest Pearson correlation coefficients of the candidate monomer battery #4 are the monomer batteries #1, #2 and #3.
[0100] In step S124, if for each candidate monomer battery, the other candidate monomer batteries and the target monomer battery are the M monomer batteries with the largest Pearson correlation coefficients of the candidate monomer battery in the battery pack, then the M candidate monomer batteries and the target monomer battery are taken as a battery group.
[0101] In the above embodiment, if the 3 largest Pearson correlation coefficients of the candidate monomer battery #2 are the monomer batteries #1, #3 and #4, and the 3 largest Pearson correlation coefficients of the candidate monomer battery #3 are the monomer batteries #1, #2 and #4, and the 3 largest Pearson correlation coefficients of the candidate monomer battery #4 are the monomer batteries #1, #2 and #3, then the 3 candidate monomer batteries #2, #3 and #4 and the target monomer battery #1 are taken as a battery group.
[0102] Further, any one of the remaining 92 monomer batteries is selected as a target monomer battery, and the monomer batteries are grouped according to M=3, until all the monomer batteries are in a battery group.
[0103] In this way, the multiple monomer batteries in each battery group are the M monomer batteries with the largest Pearson correlation coefficients, and the battery data of any monomer battery in the battery group can represent the battery data of other monomer batteries in the group, which can improve the accuracy of battery data acquisition of the monomer batteries in the battery group.
[0104] On the basis of the above-mentioned embodiments, referring to Figure 2 As shown in FIG. 13, the method further comprises:
[0105] In step S125, if there is any candidate monomer battery, the other candidate monomer battery and the target monomer battery are not the M monomer batteries with the largest Pearson correlation coefficient of the candidate monomer battery in the battery pack, the value of M is reduced, and the step of selecting the M monomer batteries with the largest Pearson correlation coefficient of the target monomer battery from the battery pack as the candidate monomer battery is returned to be executed.
[0106] On the basis of the above-mentioned embodiments, referring to
[0107] If the value of M is reduced to 2, there is any candidate monomer battery, and the other candidate monomer battery and the target monomer battery are not the 2 monomer batteries with the largest Pearson correlation coefficient of the candidate monomer battery in the battery pack, the value of M is reduced again.
[0108] Further, any monomer battery that is not grouped is taken as the target monomer battery, the 2 monomer batteries with the largest Pearson correlation coefficient of the target monomer battery are selected from the battery pack as the candidate monomer battery, and steps S123 and S124 are continued. Until all monomer batteries are grouped into battery groups.
[0109] By using the above technical solutions, in the case that the correlation between the battery data of the monomer batteries in the battery group does not meet the requirements, the ungrouped monomer batteries can be grouped according to the reduced value of M, which can ensure the strong correlation of the battery data of the monomer batteries in the battery group and improve the accuracy of the grouping of the monomer batteries and the accuracy of the collection of the battery data of the monomer batteries in the battery group.
[0110] On the basis of the above-mentioned embodiments, referring to Figure 2 As shown in FIG. 13, the method further comprises:
[0111] In step S126, in the case that the value of M is reduced to the minimum value, if there is still any candidate monomer battery, the other candidate monomer battery and the target monomer battery are not the M monomer batteries with the largest Pearson correlation coefficient of the candidate monomer battery, the target monomer battery is taken as a battery group alone.
[0112] Specifically, the minimum value of M is 1, in the case where M is reduced to 1, i.e. the monomer battery with the largest Pearson correlation coefficient is selected as the candidate monomer battery, if two monomer batteries in the battery pack are not the monomer batteries with the largest Pearson correlation coefficient with each other, the target monomer battery is taken as a battery pack alone.
[0113] For example, if monomer battery #1 is the target monomer battery, its candidate monomer battery is #2, however, the candidate monomer battery of monomer battery #2 is #3, not monomer battery #1, then monomer battery #1 is taken as a battery pack alone.
[0114] With the above technical solution, in the case where any monomer battery and other monomer batteries are not the monomer batteries with the largest Pearson correlation coefficient with each other, the monomer battery is taken as a group alone, and the battery data of the monomer battery is collected and detected alone.
[0115] On the basis of the above embodiment, Figure 3 is a flowchart of step S11 in the method for determining the number requirement of grouping monomer batteries in the battery pack according to an example embodiment. Figure 1 In step S11, the number requirement of grouping monomer batteries in the battery pack is determined, including the following steps.
[0116] In step S111, the number of sensors in the battery pack and the number of monomer batteries in the battery pack are obtained.
[0117] At least one sensor is used to detect one battery pack after grouping.
[0118] It is worth noting that the number of sensors here refers to the number of sensors of the same type, i.e. one sensor is used to detect one battery pack after grouping refers to one sensor of the same type is used to detect one battery pack after grouping. For example, voltage sensor, current sensor and temperature sensor are three types of sensors, and one battery pack can be configured with one sensor of each type.
[0119] In step S112, the number requirement is determined according to the number of sensors and the number of monomer batteries.
[0120] According to the number of sensors and the number of monomer batteries, the number requirement is determined according to the equal number of monomer batteries in each battery pack. For example, in the case where the number of sensors is 24 and the number of monomer batteries is 96, the number requirement is determined to be 96 / 24=4 according to the equal number of monomer batteries in each battery pack.
[0121] If the number of sensors of each type is different, the number requirement can be determined according to the minimum number of sensors and the number of monomer batteries.
[0122] On the basis of the above-mentioned embodiments, in step S12, grouping each of the single batteries in the battery pack according to the quantity requirement to obtain a plurality of battery groups comprises:
[0123] Grouping each of the single batteries in the battery pack according to the quantity requirement;
[0124] Counting the grouping quantity of the plurality of battery groups obtained by grouping;
[0125] Determining whether the grouping quantity matches the sensor quantity, specifically comprising: determining whether the grouping quantity is less than or equal to the sensor quantity.
[0126] In the case that the grouping quantity matches the sensor quantity, taking the grouping as a target grouping to obtain the plurality of battery groups.
[0127] On the basis of the above-mentioned embodiments, the method further comprises:
[0128] In the case that the grouping quantity does not match the sensor quantity, adjusting the quantity requirement.
[0129] Specifically, in the case that the grouping quantity is less than the sensor quantity, reducing the quantity requirement, so that the number of single batteries in the battery group can be reduced, the grouping quantity can be increased, and the positive correlation between the single batteries in the battery group is stronger, which can improve the accuracy of the battery data of other single batteries represented by the battery data of any single battery in the battery group; in the case that the grouping quantity is greater than the sensor quantity, increasing the quantity requirement, so that the number of single batteries in the battery group can be increased, and the grouping quantity can be reduced.
[0130] According to the Pearson correlation coefficient of each of the single batteries relative to other single batteries in the battery pack, re-grouping each of the single batteries in the battery pack according to the adjusted quantity requirement until the grouping quantity after re-grouping matches the sensor quantity to obtain the plurality of battery groups.
[0131] In a possible case, if the grouping quantity is less than the sensor quantity, the quantity requirement can be reduced, and then according to the Pearson correlation coefficient of each of the single batteries relative to other single batteries in the battery pack, re-grouping each of the single batteries in the battery pack according to the reduced quantity requirement until the grouping quantity after re-grouping matches the sensor quantity to obtain the plurality of battery groups.
[0132] Specifically, the number of groups after re-grouping is equal to the number of sensors, or the difference between the number of groups after re-grouping and the number of sensors is less than the difference between the original number of groups and the number of sensors. For example, the original number of groups is 21, the number of sensors is 24, and the number of groups after re-grouping is increased to 23, which can reduce the number of idle sensors in the battery pack, or even there is no idle sensor in the battery pack. If there is always an idle sensor, the idle sensor can be used as a backup sensor.
[0133] In another possible case, if the number of groups is greater than the number of sensors, the number requirement can be increased, and then each single battery in the battery pack is re-grouped according to the Pearson correlation coefficient of each single battery relative to other single batteries in the battery pack according to the increased number requirement, until the number of groups after re-grouping is less than or equal to the number of sensors, to obtain a plurality of battery groups. In this way, the number of groups of battery groups can be avoided to exceed the number of sensors, resulting in that part of the battery groups have no sensors for detection.
[0134] On the basis of the above embodiment, the number requirement for grouping the single batteries in the battery pack comprises:
[0135] The number requirement is pre-set by a user according to the number of single batteries in the battery pack;
[0136] The method further comprises:
[0137] According to the number of groups of the plurality of battery groups obtained by grouping, outputting prompt information, the prompt information is used to prompt the number of sensors required to be configured in the battery pack.
[0138] It can be explained that in the scenario of designing the battery pack, the designer needs to determine the number of sensors required to be configured in the battery pack. At this time, the user can pre-set the number of single batteries included in the battery group at most, and then group the single batteries in the battery pack according to the number, so as to determine the final number of groups, and obtain the number of sensors required to be configured in the battery pack.
[0139] The above technical solution can obtain a plurality of battery groups by grouping the single batteries according to the number requirement pre-set by the user according to the number of single batteries, so as to provide a basis for configuring the number of sensors and the installation position of the battery pack.
[0140] The method steps of the present disclosure will be described below through a specific embodiment. Referring to FIG. 1, Figure 4 The method comprises:
[0141] Firstly, a script file is established with Python as the programming language, and the Pandas package is introduced. Thus, the open source of Pandas can improve the extensibility, and the high performance, easy-to-use data structure and accurate data analysis of Pandas can guarantee the accuracy of calculating the Pearson correlation coefficient.
[0142] Further, the battery data of the single battery in the battery pack, such as the charging data and the discharging data of the battery pack, are obtained. The null and abnormal values of the battery data are cleaned to obtain the effective battery data. The built-in function of Pandas is called to calculate the Pearson correlation coefficient between the effective battery data of each single battery and the effective battery data of other single batteries, and the Pearson correlation coefficient between each two single batteries is obtained.
[0143] Further, the number requirement of grouping the single batteries in the battery pack is determined, and the number requirement of the single battery with the largest Pearson correlation coefficient is obtained. It is judged whether the other candidate single battery and the target single battery are the M single batteries with the largest Pearson correlation coefficient of the candidate single battery in the battery pack.
[0144] If the other candidate single battery and the target single battery are the M single batteries with the largest Pearson correlation coefficient of the candidate single battery in the battery pack for each candidate single battery, the M candidate single batteries and the target single battery are taken as a battery group.
[0145] If the other candidate single battery and the target single battery are not the M single batteries with the largest Pearson correlation coefficient of the candidate single battery in the battery pack for any candidate single battery, the value of M is reduced, and the step of selecting the M single batteries with the largest Pearson correlation coefficient of the target single battery from the battery pack as the candidate single battery is returned.
[0146] Based on the same inventive concept, the disclosure also provides a single battery grouping device for a battery pack. The device can realize all or part of the steps of the single battery grouping method for the battery pack in the form of software, hardware or a combination of both. Figure 5 is a block diagram of a single battery grouping device 100 for a battery pack according to an exemplary embodiment, as shown in Figure 5 The device 100 includes a determination module 110 and a grouping module 120.
[0147] The determination module 110 is configured to determine the number requirement of grouping the single batteries in the battery pack, and the number requirement includes the number requirement of the single batteries that can form a battery group.
[0148] grouping module 120 is configured to group each of the single batteries in the battery pack according to the Pearson correlation coefficient of each of the single batteries relative to other single batteries in the battery pack, to obtain a plurality of battery groups, according to the quantity requirement.
[0149] wherein the number N of single batteries in each of the battery groups meets the quantity requirement, N is a positive integer greater than 0, for a battery group including a plurality of single batteries, any number of single batteries in the battery group are target single batteries, and other N-1 single batteries in the battery group are N-1 single batteries in the battery pack having the largest Pearson correlation coefficient with the target single batteries.
[0150] The above device can improve the accuracy of single battery grouping by taking N single batteries having the largest Pearson correlation coefficient with each other as a battery group.
[0151] Optionally, the grouping module 120 is configured to cyclically perform the following operations:
[0152] taking any single battery in the battery pack that has not been grouped as a target single battery;
[0153] selecting M single batteries having the largest Pearson correlation coefficient with the target single battery from the battery pack as candidate single batteries, wherein the initial value of M is a value such that M+1 is the largest value meeting the quantity requirement;
[0154] for each candidate single battery, determining whether other candidate single batteries and the target single battery are M single batteries in the battery pack having the largest Pearson correlation coefficient with the candidate single battery;
[0155] if, for each candidate single battery, the other candidate single batteries and the target single battery are M single batteries in the battery pack having the largest Pearson correlation coefficient with the candidate single battery, then taking the M candidate single batteries and the target single battery as a battery group.
[0156] Optionally, the grouping module 120 is further configured to, if there is any candidate single battery for which the other candidate single batteries and the target single battery are not M single batteries in the battery pack having the largest Pearson correlation coefficient with the candidate single battery, then decrease the value of M and return to perform the step of selecting M single batteries having the largest Pearson correlation coefficient with the target single battery from the battery pack as candidate single batteries.
[0157] Optionally, the grouping module 120 is further configured to, in the case that the value of M decreases to a minimum value, if there still exists any candidate single battery, the other candidate single battery and the target single battery are not the M single batteries with the largest Pearson correlation coefficient of the candidate single battery, then the target single battery is grouped as a battery pack alone.
[0158] Optionally, the determining module 110 is configured to acquire the number of sensors in the battery pack and the number of single batteries in the battery pack, wherein at least one of the sensors is used to detect one battery pack after grouping.
[0159] According to the number of sensors and the number of single batteries, determine the number requirement.
[0160] Optionally, the grouping module 120 is further configured to:
[0161] Group each single battery in the battery pack according to the number requirement;
[0162] Count the number of battery packs obtained by grouping;
[0163] Determine whether the number of groups matches the number of sensors;
[0164] In the case that the number of groups matches the number of sensors, the grouping is taken as a target grouping, and a plurality of battery packs are obtained; or,
[0165] In the case that the number of groups does not match the number of sensors, adjust the number requirement, and re-group each single battery in the battery pack according to the Pearson correlation coefficient of each single battery relative to other single batteries in the battery pack according to the adjusted number requirement, until the number of groups after re-grouping matches the number of sensors, and a plurality of battery packs are obtained.
[0166] Optionally, the determining module 110 is configured to acquire the number requirement preset by a user according to the number of single batteries in the battery pack;
[0167] The grouping module 120 is further configured to output prompt information according to the number of battery packs obtained by grouping, the prompt information being used to prompt the number of sensors required to be configured in the battery pack.
[0168] Optionally, the Pearson correlation coefficient is calculated by at least one of battery voltage, battery state of charge SOC change rate, and battery temperature.
[0169] As to the apparatus in the above-mentioned embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments related to the method, and thus will not be described in detail here.
[0170] In addition, it is worth mentioning that the modules in the above-mentioned embodiments can be independent apparatuses or the same apparatus when implemented, for example, the determining module 110 and the grouping module 120 can be the same module or two modules, and the present disclosure does not limit this.
[0171] The present disclosure also provides a computer-readable storage medium having stored thereon a computer program, which, when executed by a processor, implements the steps of the method of any one of the preceding embodiments.
[0172] The present disclosure also provides a controller comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method of any one of the preceding embodiments when executing the computer program.
[0173] The present disclosure also provides an electronic device comprising the foregoing controller.
[0174] Figure 6 is a block diagram of an electronic device 700 according to an exemplary embodiment. The electronic device can be configured as a controller, such as Figure 6 As shown, the electronic device 700 can include a processor 701 and a memory 702. The electronic device 700 can also include one or more of a multimedia component 703, an input / output (I / O) interface 704, and a communication component 705.
[0175] The processor 701 is configured to control overall operations of the electronic device 700 to complete all or part of the steps of the method of grouping cells of a battery pack described above.
[0176] The memory 702 is used to store various types of data to support the operation of the electronic device 700, which can include, for example, instructions for operating any application or method on the electronic device 700, and application-related data, such as the number of monoblocs, the number of sensors, and the like. The memory 702 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.
[0177] The multimedia component 703 can include a screen and an audio component. The screen, for example, can be a touch screen, and the audio component is used to output and / or input audio signals. For example, the audio component can include a microphone for receiving external audio signals. The received audio signals can be further stored in the memory 702 or transmitted through the communication component 705. The audio component also includes at least one speaker for outputting audio signals, such as the number of sensors represented by the prompt information through audio playback.
[0178] The I / O interface 704 provides an interface between the processor 701 and other interface modules, which can be a keyboard, a mouse, a button, and the like. These buttons can be virtual buttons or physical buttons.
[0179] The communication component 705 is used for wired or wireless communication between the electronic device 700 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, near field communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, and the like, or a combination of one or more of them, is not limited herein. Therefore, the corresponding communication component 705 can include a Wi-Fi module, a Bluetooth module, an NFC module, and the like.
[0180] In an exemplary embodiment, the electronic device 700 can be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for performing the above-described method of grouping cells of a battery pack.
[0181] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, which, when executed by a processor, implement the steps of the above-described method of grouping cells of a battery pack. For example, the computer-readable storage medium can be the above-described memory 702 including program instructions, which can be executed by the processor 701 of the electronic device 700 to complete the above-described method of grouping cells of a battery pack.
[0182] The preferred embodiments of the present disclosure are described in detail above with reference to the accompanying drawings, but the present disclosure is not limited to the specific details of the above-described embodiments. Various simple modifications can be made to the technical solutions of the present disclosure within the scope of the technical concept of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure.
[0183] In addition, it should be noted that each specific technical feature described in the above specific embodiments can be combined in any appropriate manner without contradiction. In order to avoid unnecessary repetition, various possible combinations are not described again in the present disclosure.
[0184] Furthermore, any combination of the various different embodiments of the present disclosure can also be made, as long as it does not deviate from the idea of the present disclosure, and it should also be considered as disclosed by the present disclosure.
Claims
1. A method for grouping individual cells in a battery pack, characterized in that, The method includes: Determine the required number of individual cells in the battery pack to be grouped, the required number of individual cells that can form a battery pack. Based on the Pearson correlation coefficient of each individual cell relative to the other individual cells in the battery pack, the individual cells in the battery pack are grouped according to the quantity requirements to obtain multiple battery packs; the Pearson correlation coefficient is calculated by at least one of battery voltage, battery state of charge (SOC) rate of change, and battery temperature. Wherein, the number N of individual cells in each battery pack meets the quantity requirement, and N is a positive integer greater than 0. For a battery pack including multiple individual cells, any number of individual cells in the battery pack are taken as target individual cells, and the other N-1 individual cells in the battery pack are the N-1 individual cells in the battery pack with the largest Pearson correlation coefficient of the target individual cell.
2. The method according to claim 1, characterized in that, The method involves grouping the individual cells in the battery pack according to the quantity requirements based on the Pearson correlation coefficient of each individual cell relative to the other individual cells in the battery pack, resulting in multiple battery packs, including: Repeat the following operations: Take any ungrouped individual cell in the battery pack as the target individual cell; The M cells with the largest Pearson correlation coefficients among the target cells in the battery pack are selected as candidate cells, wherein the initial value of M is the value that makes M+1 the maximum value that satisfies the quantity requirement. For each candidate cell, determine whether the other candidate cells and the target cell are the M cells in the battery pack with the largest Pearson correlation coefficient for that candidate cell; If, for each candidate cell, the other candidate cells and the target cell are the M cells in the battery pack with the highest Pearson correlation coefficient for that candidate cell, then the M candidate cells and the target cell are considered as a battery pack.
3. The method according to claim 2, characterized in that, The method further includes: If any candidate cell exists, and neither the other candidate cells nor the target cell are among the M cells in the battery pack with the highest Pearson correlation coefficient for that candidate cell, then the value of M is reduced, and the process returns to the step of selecting the M cells from the battery pack with the highest Pearson correlation coefficient for the target cell as candidate cells.
4. The method according to claim 3, characterized in that, The method further includes: If, when the value of M is reduced to its minimum, there still exists any candidate single cell, and the other candidate single cells and the target single cell are not among the M single cells with the largest Pearson correlation coefficient of the candidate single cell, then the target single cell is treated as a separate battery pack.
5. The method according to any one of claims 1-4, characterized in that, Determining the required number of individual cells in the battery pack to be grouped includes: The number of sensors in the battery pack and the number of individual cells in the battery pack are obtained, wherein at least one of the sensors is used to detect a battery pack after grouping. The quantity requirement is determined based on the number of sensors and the number of individual battery cells.
6. The method according to claim 5, characterized in that, The step of grouping the individual cells in the battery pack according to the quantity requirements to obtain multiple battery packs includes: The individual cells in the battery pack are grouped according to the quantity requirements; The number of groups obtained from the statistical grouping of the multiple battery packs; Determine whether the number of groups matches the number of sensors; If the number of groups matches the number of sensors, the group is used as the target group to obtain the plurality of battery packs; or, If the number of groups does not match the number of sensors, the quantity requirement is adjusted, and the individual cells in the battery pack are regrouped according to the Pearson correlation coefficient of each individual cell relative to the other individual cells in the battery pack, until the number of groups after regrouping matches the number of sensors, thus obtaining the multiple battery packs.
7. The method according to any one of claims 1-4, characterized in that, Determining the required number of individual cells in the battery pack to be grouped includes: Obtain the quantity requirement preset by the user based on the number of individual batteries in the battery pack; The method further includes: Based on the number of groups of the multiple battery packs obtained from the grouping, a prompt message is output, which is used to indicate the number of sensors that need to be configured for the battery pack.
8. A battery pack individual cell grouping device, characterized in that, The device includes: The determination module is configured to determine the quantity requirement for grouping individual cells in the battery pack, the quantity requirement including the quantity requirement for individual cells that can form a battery pack. The grouping module is configured to group the individual cells in the battery pack according to the quantity requirements based on the Pearson correlation coefficient of each individual cell relative to the other individual cells in the battery pack, to obtain multiple battery packs; the Pearson correlation coefficient is calculated by at least one of battery voltage, battery state of charge (SOC) rate of change, and battery temperature. Wherein, the number N of individual cells in each battery pack meets the quantity requirement, and N is a positive integer greater than 0. For a battery pack including multiple individual cells, any number of individual cells in the battery pack are taken as target individual cells, and the other N-1 individual cells in the battery pack are the N-1 individual cells in the battery pack with the largest Pearson correlation coefficient of the target individual cell.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the steps of the method described in any one of claims 1-7.
10. An electronic device, characterized in that, The method includes a controller, which includes a memory and a processor, wherein the memory stores a computer program, and the processor, when executing the computer program, implements the steps of the method as described in any one of claims 1-7.
Citation Information
Patent Citations
Grouping method and grouping system of single batteries
CN104868180A