Fault diagnosis method based on adaptive change sampling strategy
By adopting the fault diagnosis method of adaptively changing sampling strategies in new energy vehicles and dynamically adjusting the data transmission interval, the problems of fault diagnosis accuracy and data transmission efficiency in the existing technology are solved, and more efficient fault identification and data management are achieved.
Patent Information
- Application Number
- CN202410810848.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-11-05
AI Technical Summary
Existing new energy vehicle fault diagnosis methods cannot effectively identify rare faults, and a single algorithm cannot adapt to complex operating conditions, vehicle-cloud coordination is not deep enough, and data sampling intervals cannot be adaptable, resulting in insufficient data accuracy when thermal runaway or failure.
Using the fault diagnosis method based on adaptive change sampling strategy, the CAN bus data is read through the vehicle T-BOX, outliers and empty values are eliminated, and fault diagnosis is performed using the communication protocol and the vehicle algorithm library. The data transmission interval is dynamically adjusted according to the fault level to Cloud platform, including 60s/frame, 30s/frame, 10s/frame and 1s/frame.
It improves the accuracy of fault diagnosis and data transmission efficiency, slows down the storage pressure of cloud platforms, optimizes storage space, and enhances the comprehensive ability of fault diagnosis of new energy vehicles.
Smart Images

Figure CN118893980A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of new energy vehicles, and in particular to a fault diagnosis method based on adaptively changing sampling strategies. Background Art
[0002] The existing national standard for new energy vehicles is only effective for some common faults, such as internal short-circuit faults, external short-circuit faults, and diagnosis and identification through data-driven methods, while some rare faults cannot be effectively identified; and the operating conditions of new energy vehicles are complex and changeable, and a single algorithm cannot effectively adapt to various conditions; vehicle-side edge computing has not been effectively utilized, and the depth of vehicle-cloud collaboration is not deep enough, and further research and analysis is needed; GB / T32960 currently has a data sampling interval of 10s / frame, which cannot effectively optimize the platform storage space; the existing data sampling interval cannot achieve adaptive sampling, and the data sampling accuracy is insufficient when new energy vehicles experience thermal runaway / failure. Summary of the invention
[0003] The present invention aims at solving the problems in the prior art and provides a fault diagnosis method based on adaptively changing the sampling strategy. To achieve the above object, the technical solution adopted by the present invention is as follows:
[0004] A fault diagnosis method based on adaptively changing sampling strategy includes the following steps: S1, data acquisition: a vehicle-mounted T-BOX reads CAN bus data and stores battery data in vehicle data; S2, data processing: a built-in data processing module of the vehicle-mounted T-BOX performs a removal operation on abnormal values and null values in battery data; S3, fault diagnosis: the vehicle-mounted T-BOX performs vehicle fault diagnosis on the removed battery data based on a communication protocol or a vehicle-mounted algorithm library, wherein the judgment items for vehicle fault diagnosis are divided into threshold type and state type, and the threshold type judgment results are divided into primary alarm, secondary alarm and tertiary alarm; the alarm is diagnosed by using extreme value method, change rate, standard deviation and data drive; S4, data transmission: according to the vehicle The judgment result of the T-BOX is transmitted to the cloud platform at the set sampling interval, wherein the set sampling intervals include 60s / frame, 30s / frame, 10s / frame and 1s / frame; if the fault diagnosis does not trigger the corresponding level of alarm, the data is transmitted to the cloud platform at 60s / frame; if the fault diagnosis module triggers a level 1 alarm, the data is transmitted to the cloud platform at 30s / frame; if the fault diagnosis module triggers a level 2 alarm, the data is transmitted to the cloud platform at 10s / frame; if the fault diagnosis module triggers a level 3 alarm, the data is transmitted to the cloud platform at 1s / frame; if the fault diagnosis module triggers a status alarm, the data is transmitted to the cloud platform at 1s / frame; S5, the cloud platform stores all data and displays the vehicle fault level.
[0005] Based on the above technical solution, further, the battery data includes single cell voltage data of the battery system. When the battery data exceeds the value of a preset range, it is considered to be an abnormal value; if the battery data collected by the sensor is not reported in time, resulting in data loss, a null value appears; and then the abnormal values and null values are eliminated.
[0006] Based on the above technical solution, further, in S3, the judgment items for vehicle fault diagnosis are divided into threshold type and state type, wherein the threshold type judgment results are divided into level one alarm, level two alarm and level three alarm. According to the set threshold, the level one alarm vehicle fault degree is lower than the level two alarm vehicle fault degree, and the level two alarm vehicle fault degree is lower than the level three alarm vehicle fault degree; the state type alarm trigger is identified as a level three alarm of the vehicle.
[0007] Based on the above technical solution, further, in said S3, the determination items for fault diagnosis based on the communication protocol at least include temperature alarm items, voltage alarm items, SOC alarm items and other alarm items, wherein the communication protocol is the GB / T32960 communication protocol; the temperature alarm items at least include temperature difference alarm, battery high temperature alarm, DC-DC temperature alarm, drive motor controller temperature alarm and drive motor temperature alarm; the voltage alarm items at least include on-board energy storage overvoltage alarm, on-board energy storage undervoltage alarm, single cell undervoltage alarm, single cell overvoltage alarm and on-board energy storage device type overcharge; SOC The alarm items include at least SOC low alarm, SOC high alarm and SOC jump alarm; other alarm items include rechargeable energy storage system mismatch alarm, battery cell consistency poor alarm, insulation alarm, brake system alarm, DC-DC status alarm and high-voltage interlock status alarm; among them, the temperature alarm item, voltage alarm item and SOC alarm item all belong to the threshold type, the battery cell consistency poor alarm in other alarm items belongs to the threshold type, and the rechargeable energy storage system mismatch alarm, insulation alarm, brake system alarm, DC-DC status alarm and high-voltage interlock status alarm in other alarm items belong to the status type.
[0008] Based on the above technical solution, further, the judgment items for fault diagnosis based on the on-board algorithm library include at least single cell voltage difference alarm, maximum temperature change rate alarm, total voltage change rate alarm, maximum single cell voltage change rate alarm, temperature standard deviation alarm, voltage standard deviation alarm, Shannon entropy, multi-scale entropy, variance entropy, compromise entropy, coefficient of variation, discrete wavelet, isolation forest and battery health status SOH.
[0009] Based on the above technical solution, further, the extreme value method is used to diagnose the single cell voltage difference alarm, and the diagnosis process is: according to the set sampling interval, the vehicle-mounted T-BOX is sampled, wherein the data sampling includes the highest single cell voltage value V max and the minimum cell voltage value V min , the voltage difference between the two is V d :V d =V max -V min ; If the voltage difference is within [0.29,0.30)V, it is a level 1 alarm; if the voltage difference is within [0.30,0.31)V, it is a level 2 alarm; if the voltage difference is greater than 0.31V, it is a level 3 alarm.
[0010] Based on the above technical solution, the maximum temperature change rate alarm, the total voltage change rate alarm, and the maximum single voltage change rate alarm are further diagnosed using the change rate. The diagnosis process is as follows: the vehicle data collected by the vehicle-mounted T-BOX at each moment includes at least the maximum temperature change rate, the total voltage change rate, and the maximum single voltage change rate; wherein the calculation process of the maximum temperature change rate is as follows: the maximum temperature change rate Set the time interval to the temperature change between two samples, or any fixed time period temperature change, where T maax1 is the maximum temperature value of the battery system sampled last time, T max2 is the highest temperature value of the battery system at the last sampling, Δt is the time difference between the two samplings; if the temperature change rate is [1.5,2)℃ / s, it is set as a first-level alarm; if the temperature change rate is [2,3.5)℃ / s, it is set as a second-level alarm; if the temperature change rate is greater than 3.5℃ / s, it is set as a third-level alarm.
[0011] Based on the above technical solution, further, the calculation process of the total voltage change rate is: Set the time interval to the total voltage value change between two samples, or the total voltage change in a fixed time period, where V tv1 is the total voltage value of the battery system sampled last time, V tv2 is the total voltage value of the battery system at the last sampling, Δt is the time difference between the two samplings; if the total voltage change rate is in [0.01,,0.10)V / s, it is set to a first-level alarm; if the total voltage change rate is in [0.10,0.22)V / s, it is set to a second-level alarm; if the temperature change rate is greater than 0.22V / s, it is set to a third-level alarm.
[0012] Based on the above technical solution, further, the calculation process of the maximum single cell voltage change rate is: the maximum single cell voltage change rate Set the time interval to the highest single cell voltage value change between two samples, or the highest voltage change in a fixed time period, where V max1 is the highest single cell voltage value of the battery system sampled last time, V max2 is the highest single cell voltage value of the battery system sampled last time, Δt is the time difference between the two samples; if the highest single cell voltage change rate is [0.001,0.03)V / s, it is set to a first-level alarm; if the highest single cell voltage change rate is [0.03,0.08)V / s, it is set to a second-level alarm; if the highest single cell voltage change rate is greater than 0.08V / s, it is set to a third-level alarm.
[0013] Based on the above technical solution, the standard deviation is further used to diagnose the temperature standard deviation alarm and the voltage standard deviation alarm. The diagnosis process is as follows: The process of the temperature standard deviation alarm is as follows: The vehicle-mounted T-BOX collects the data of all temperature sensors placed in the battery data, selects any time, and calculates the standard deviation of all battery temperature probe data at that time:
[0014] At any given moment, if the temperature standard deviation is within [1.0, 1.3), it is set as a first-level alarm; if the temperature standard deviation is within [1.3, 1.6), it is set as a second-level alarm; if the temperature standard deviation is greater than 1.6, it is set as a third-level alarm; where T i represents the temperature of the i-th probe, It represents the average temperature of the battery probe at a certain moment; n represents the number of temperature probes at this moment.
[0015] Based on the above technical solution, the process of voltage standard deviation alarm is as follows: the vehicle-mounted T-BOX collects the sensor data of all the single cells placed in the battery data, and at a certain moment, calculates the standard deviation of the voltage data of all the single cells at that moment:
[0016] At any given moment, if the cell voltage standard deviation is within [1.0, 1.2), it is set as a first-level alarm; if the temperature standard deviation is within [1.2, 1.5), it is set as a second-level alarm; if the temperature standard deviation is greater than 1.5, it is set as a third-level alarm; In order to facilitate the setting of specific thresholds, the voltage standard deviation calculation results are enlarged by 10 times. In the formula, V ci Indicates the voltage of the i-th single cell at that moment; It represents the average voltage of all single cells at that moment; n represents the number of single cells.
[0017] Based on the above technical solution, further, the Shannon entropy and variance entropy are diagnosed based on data-driven, wherein the first-level alarm range of Shannon entropy is [2.5, 2.75), the second-level alarm range is [2.75, 3), and the third-level alarm range is [3, +∞); the first-level alarm range of variance entropy is [2.5, 2.6), the second-level alarm range is [2.6, 2.8), and the third-level alarm range is [2.8, +∞); the first-level alarm range of the coefficient of variation is [0.8, 0.9), the second-level alarm range is [0.9, 1.0), and the third-level alarm is 1.0.
[0018] Based on the above technical solution, further, the coefficient of variation is diagnosed based on data drive, and the diagnosis process is: Step 1: logarithmically transform the battery data; Step 2: calculate the coefficient of variation of the battery data after logarithmic transformation; Step 3: calculate the Z score value of the coefficient of variation; when the Z score value of the coefficient of variation is in the range of [0.8, 0.9), it is set as the first-level alarm of the coefficient of variation; when the Z score value is in the range of [0.9, 1.0), it is set as the second-level alarm of the coefficient of variation; when the Z score value is 1.0, it is set as the third-level alarm of the coefficient of variation.
[0019] Based on the above technical solution, further, the battery health status SOH diagnosis process is as follows:
[0020] Among them, ΔSOC represents the change of SOC during a charging process, that is, the SOC value at the end of charging minus the SOC value at the beginning of charging, Q 当前 That is the battery capacity in the current state, Q 初始 It is the total battery capacity in the initial state of the battery system, and I(t) is the time.
[0021] Based on the above technical solution, further, the single cell voltage difference alarm, maximum temperature change rate alarm, total voltage change rate alarm, maximum single cell voltage change rate alarm, temperature standard deviation alarm, voltage standard deviation alarm, Shannon entropy, multi-scale entropy, variance entropy, compromise entropy, coefficient of variation, discrete wavelet, isolation forest, support vector machine and battery health status SOH all belong to the threshold category.
[0022] Compared with the prior art, the present invention has the following beneficial effects:
[0023] The present invention can effectively alleviate the storage pressure of the cloud platform and optimize the storage space through the design of adaptive variable sampling interval; and the judgment conditions for whether a car fails are more perfect than those of traditional ones; at the same time, the present invention can effectively improve the accuracy of new energy vehicle fault diagnosis by combining GB / T32960 communication protocol and vehicle-side algorithm library in multiple ways. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 This is the vehicle-mounted adaptive variable sampling strategy diagram of the present invention;
[0025] Figure 2 This is a schematic diagram of the national standard alarm project of the present invention;
[0026] Figure 3 This is a schematic diagram of the vehicle-mounted algorithm library project of the present invention. DETAILED DESCRIPTION
[0027] The present invention is further described and illustrated below in conjunction with the accompanying drawings and specific embodiments. The technical features of each embodiment of the present invention can be combined accordingly without conflicting with each other.
[0028] In order to make the above-mentioned purpose, features and advantages of the present invention more obvious and easy to understand, the specific implementation mode of the present invention is described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below. The technical features in each embodiment of the present invention can be combined accordingly without conflicting with each other.
[0029] Example
[0030] Combination Figure 1-Figure 3 As shown, this embodiment implements a fault diagnosis method based on adaptively changing the sampling strategy, which specifically includes the following steps:
[0031] S1. Data collection: The vehicle-mounted T-BOX reads the CAN bus data and stores the battery data in the vehicle data through the data storage module in the vehicle-mounted T-BOX;
[0032] S2. Data processing: The built-in data processing module of the vehicle-mounted T-BOX performs a removal operation on abnormal values and null values in the battery data; wherein, the battery data includes the single cell voltage data of the battery system; for example, the voltage is 0V due to sensor reasons, generally phosphate battery 3.2V / ternary lithium 3.7V, or the voltage data collected by the sensor is 10V. If the value exceeds the required preset range or normal range, it is considered an abnormal value. If the data collected by the sensor is not reported in time, resulting in data loss, null values will appear. Among them, the removal operation can use the function of deleting null values in python, the dropna() function, to detect and delete according to the timeline.
[0033] S3. Fault diagnosis: The vehicle-mounted T-BOX performs vehicle fault diagnosis on the battery data after removal based on the communication protocol or the vehicle-mounted algorithm library; wherein, it is sufficient to satisfy the judgment result of the communication protocol or the judgment result of the vehicle-mounted algorithm library, and the communication protocol may preferably be the GB / T32960 communication protocol.
[0034] Specifically, the judgment items for vehicle fault diagnosis are divided into threshold type and state type. The judgment results of the threshold type are divided into level 1 alarm, level 2 alarm and level 3 alarm. According to the set threshold, the fault degree of the vehicle with level 1 alarm is lower than that of the vehicle with level 2 alarm, and the fault degree of the vehicle with level 2 alarm is lower than that of the vehicle with level 3 alarm. The triggering of the state type alarm is considered as the vehicle with level 3 alarm. Among them, the judgment items for fault diagnosis based on the communication protocol include at least temperature alarm items, voltage alarm items, SOC alarm items and other alarm items; the temperature alarm items include at least temperature difference alarm, battery high temperature alarm, DC-DC temperature alarm, drive motor controller temperature alarm and drive motor temperature alarm; the voltage alarm items include at least on-board energy storage overvoltage alarm, on-board energy storage undervoltage alarm, single cell undervoltage alarm, single cell overvoltage alarm and on-board energy storage device type overcharge; the SOC alarm items include at least SOC low alarm, SOC high alarm and SOC jump alarm; other alarm items include rechargeable energy storage system mismatch alarm, battery cell consistency difference alarm, insulation alarm, brake system alarm, DC-DC status alarm and high-voltage interlock status alarm; among them, the temperature alarm item, voltage alarm item and SOC alarm item all belong to the threshold category, the battery cell consistency difference alarm in other alarm items belongs to the threshold category, and the rechargeable energy storage system mismatch alarm, insulation alarm, brake system alarm, DC-DC status alarm and high-voltage interlock status alarm in other alarm items belong to the status category. The judgment items for fault diagnosis based on the on-board algorithm library include at least single cell voltage difference alarm, maximum temperature change rate alarm, total voltage change rate alarm, maximum single cell voltage change rate alarm, temperature standard deviation alarm, voltage standard deviation alarm, Shannon entropy, multi-scale entropy, variance entropy, compromise entropy, coefficient of variation, discrete wavelet, isolation forest, support vector machine and battery health state SOH; wherein, the single cell voltage difference alarm, maximum temperature change rate alarm, total voltage change rate alarm, maximum single cell voltage change rate alarm, temperature standard deviation alarm, voltage standard deviation alarm, Shannon entropy, multi-scale entropy, variance entropy, compromise entropy, coefficient of variation, discrete wavelet, isolation forest, support vector machine and battery health state SOH all belong to the threshold class.
[0035] Specifically, 1. The single cell voltage difference alarm adopts the extreme value method for diagnosis, and the diagnosis process is as follows: the vehicle-mounted T-BOX performs data sampling according to the set sampling interval, that is, at each corresponding moment, the battery system in the battery data will collect the single cell voltage data of the battery, and the data collection items include at least the highest single cell voltage value V max And the minimum single cell voltage data V min At a certain moment, more than 100 battery cells will have more than 100 battery voltages (3.6, 3.65, 3.62, etc.). These voltage data have the highest and lowest corresponding data. The calculation formula is: V d =V max -V min ; If the voltage difference between the highest and lowest voltages is within the range of [0.29,0.30)V, it is set as a first-level alarm; if the voltage difference is within the range of [0.30,0.31)V, it is set as a second-level alarm; if the voltage difference is greater than 0.31V, it is set as a third-level alarm.
[0036] 2. At each moment, the data collected by the vehicle-mounted T-BOX battery system includes at least the highest temperature, total voltage, highest single cell voltage and other specific values. The change rate is used to diagnose the alarm of the highest temperature change rate, the total voltage change rate and the highest single cell voltage change rate. The diagnosis process is as follows:
[0037] 1) The calculation process of the maximum temperature change rate is: Set the time interval to the temperature change between two samples, or any fixed time period temperature change, where T max1 is the maximum temperature value of the battery system sampled last time, T max2 is the highest temperature value of the battery system at the last sampling, Δt is the time difference between the two samplings; if the temperature change rate is in [1.5,2)℃ / s, it is set as a first-level alarm; if the temperature change rate is in [2,3.5)℃ / s, it is set as a second-level alarm; if the temperature change rate is greater than 3.5℃ / s, it is set as a third-level alarm.
[0038] 2) The calculation process of the total voltage change rate is: Set the time interval to the total voltage value change between two samples, or the total voltage change in a fixed time period, where V tv1 is the total voltage value of the battery system sampled last time, V tv2 is the total voltage value of the battery system at the last sampling, and Δt is the time difference between the two samplings; if the total voltage change rate is in [0.01, 0.10) V / s, it is set to a first-level alarm; if the total voltage change rate is in [0.10, 0.22) V / s, it is set to a second-level alarm; if the temperature change rate is greater than 0.22 V / s, it is set to a third-level alarm.
[0039] 3) The calculation process of the maximum single cell voltage change rate is: Set the time interval to the highest single cell voltage value change between two samples, or the highest voltage change in a fixed time period, where V max1 is the highest single cell voltage value of the battery system sampled last time, V max2 The highest cell voltage value of the battery system sampled last, Δt, is the time difference between the two samples; if the highest cell voltage change rate is in [0.001, 0.03) V / s, it is set to a first-level alarm; if the highest cell voltage change rate is in [0.03, 0.08) V / s, it is set to a second-level alarm; if the highest cell voltage change rate is greater than 0.08 V / s, it is set to a third-level alarm.
[0040] 3. Use the standard deviation to diagnose the temperature standard deviation alarm and voltage standard deviation alarm. The diagnostic process is as follows:
[0041] (1) The process of temperature standard deviation alarm is as follows: In the battery system collection project, the vehicle-mounted T-BOX will collect data from all temperature sensors placed in the battery system, such as temperature sensor 1, temperature sensor 2, temperature sensor 3, etc. The specific calculation process is to calculate the standard deviation of all battery temperature probe data at a certain moment: At a certain moment, if the temperature standard deviation is within the range of [1.0,1.3), it is set as a first-level alarm; if the temperature standard deviation is within the range of [1.3,1.6), it is set as a second-level alarm; if the temperature standard deviation is greater than 1.6, it is set as a third-level alarm. ST represents the temperature standard deviation calculation formula of the battery system at a certain moment. T i represents the temperature of the i-th probe, It represents the average temperature of the battery probe at a certain moment. n represents the number of temperature probes at this moment.
[0042] (2) The process of voltage standard deviation alarm is as follows: In the battery system collection project, the vehicle-mounted T-BOX will collect the data of all single-cell battery sensors placed in the battery system, such as single-cell voltage 1, single-cell voltage 2, voltage voltage 3, etc., which correspond to the data of several single-cell voltage sensors. The specific calculation process is to calculate the standard deviation of all single-cell battery voltage data at a certain moment: At a certain moment, if the single cell voltage standard deviation is within the range of [1.0,1.2), it is set as a first-level alarm; if the temperature standard deviation is within the range of [1.2,1.5), it is set as a second-level alarm; if the temperature standard deviation is greater than 1.5, it is set as a third-level alarm; in order to facilitate the setting of specific thresholds, the voltage standard deviation calculation results are all expanded by 10 times. In the formula, V ci Indicates the voltage of the i-th single cell at that moment; It represents the average voltage of all single cells at that moment; n represents the number of single cells.
[0043] 4. Diagnose Shannon entropy, variance entropy and coefficient of variation based on data-driven:
[0044] The data of the high CAN line in the CAN bus is read through the T-BOX, and the single cell voltage data within 10 minutes of n battery cells in the battery pack is obtained every 10 minutes, and a voltage data sequence X is established. n×l and voltage data matrix B m , the voltage data sequence X n×l Stored in the storage module of T-BOX. l represents the number of records of voltage data, x n,l That is, the lth voltage data of the nth battery cell; k represents the total number of voltage data groups, b k,n is the kth group voltage data of the nth battery cell. Further,
[0045] b c,j is the number of occurrences of the j-th voltage in the a-th group of voltage data of the c-th battery, c=1, 2, ..., n, a=1, 2, ..., k.
[0046] (1) The diagnostic process of Shannon entropy includes the following steps: Calculate the standard deviation of the battery cell voltage. is the average voltage of the battery cells at a certain moment. Xc represents the voltage value of the Cth battery cell at a certain moment; n represents the number of batteries in the battery system, that is, how many batteries there are.
[0047] Call voltage data matrix B m According to the formula: Calculate the probability P of voltage occurrence c,j .
[0048] Then through the formula: Calculate the Shannon entropy. Use the Z score to process the calculated Shannon entropy and calculate the abnormal coefficient F of the battery cell, that is, the first result. Among them, y is the data of the modified overall Shannon entropy, It is the average of all voltage data.
[0049] Calculate the standard deviation M of the abnormal coefficient F of each battery cell: in, is the average value of the abnormal coefficient of all battery cells, F cis the abnormal coefficient of the cth battery cell, n represents the number of single cells in the battery system, that is, how many single cells there are. The first-level alarm range of Shannon entropy is [2.5, 2.75), the second-level alarm range is [2.75, 3), and the third-level alarm range is [3, +∞). When the standard deviation M falls into the corresponding range, the corresponding level alarm is generated.
[0050] (2) The calculation process of variance entropy includes the following steps: t =[x 1,t …x n,t ] Generate a data series X at time t without removing uniform fluctuations t , and then through the formula: Remove common fluctuations in the single-cell voltage data and generate a data series of time t after removing uniform fluctuations In the formula, c indicates the cth battery cell. e Set a smaller variance calculation window X in v , according to the calculated variance σ 2 With the preset threshold σ Th Comparison of the situation, eliminating the voltage signal with smaller fluctuation.
[0051] Among them, the variance σ 2 The calculation formula is as follows: Where N is the variance calculation window X v The total amount of data in; x is the data sequence Data in Calculate the variance window X v The average of the data in . 2 >σ Th , indicating that the voltage fluctuation degree meets the requirements, and the data is added to the distribution statistics sequence; otherwise, it indicates that the voltage fluctuation degree is small and is not added to the distribution statistics sequence.
[0052] Through the formula: E = -∑ i X s (i)log2X s (i) Calculate the entropy value E, where X s (i) represents the voltage data distribution sequence X s The i-th voltage data in . The consistency of the battery pack is generally good, and the entropy value of each battery cell in the battery pack is relatively close, so it is necessary to amplify the entropy value to facilitate the identification of the characteristics of the battery cell.
[0053] By formula: The Z score is calculated in a way that maximizes the difference between the entropy values of the battery cells. c,t represents the Z score value of the cth battery cell at time t, Ec,t represents the entropy value of the cth battery cell at time t, E t It represents the entropy value of the battery cell at time t. By observing the calculated Z score value, it is easy to understand the situation of the battery cell and formulate an early warning strategy. The first-level alarm range of variance entropy is [2.5, 2.6), the second-level alarm range is [2.6, 2.8), and the third-level alarm range is [2.8, +∞); when Z c,t When it is within the corresponding range, the corresponding level of alarm will be triggered. The alarm risk increases with the increase of the alarm level, that is, the alarm risk of the first alarm level is the lowest, and the alarm risk of the third alarm level is the highest.
[0054] 5. Diagnosis of coefficient of variation: In probability theory and statistics, the coefficient of variation, also known as the "coefficient of dispersion", is a normalized measure of the degree of dispersion of a probability distribution, which is defined as the ratio of the standard deviation to the mean: σ is the standard deviation of the sample, and μ is the mean of the sample. The coefficient of variation is only defined when the mean is not zero, and is generally applicable when the mean is greater than zero. The coefficient of variation is a dimensionless number that can be used to compare the discreteness of populations with different means. Assuming that the battery cell voltage represents a column of data, this σ is the standard deviation of this column of data, and μ is the mean of this column of data.
[0055] If the calculation target has n columns of battery cell data, each column of data is x i,j , where i represents the row index and j represents the column index. The coefficient of variation calculation process is as follows:
[0056] a. Calculate the mean of each column of data under the kth window in the calculation window and standard deviation σ k,j ;
[0057] In the formula, μ k,j represents the voltage of the jth single cell in the kth window; x ij represents the average voltage of the single cell in row i and column j; σ k,j It represents the standard deviation of the voltage of the jth single cell in the kth window.
[0058] b. Use standard deviation σ k,j and mean Calculate the coefficient of variation CV of each column of data in the kth window j ;
[0059]
[0060] c. Calculate the number of windows: Where m represents the sliding step size, and p represents the total number of data rows;
[0061] d. Overall coefficient of variation results: By adjusting the value of the sliding step size m and the size of the calculation window k, the interval and overlap between windows can be controlled. Specifically, you can start from the first window and move the window with a sliding step size m until all windows are processed. In each window, the mean, standard deviation, and coefficient of variation of each column of data are calculated according to the above formula.
[0062] Perform Z-score transformation using the formula: The Z score is calculated in a way that increases the difference in the coefficient of variation between battery cells. i,t represents the Z score value of the ith battery cell at time t, CV i,t Indicates the coefficient of variation of the ith battery cell at time t. ∑CV t represents the average value of the coefficient of variation of the ith battery cell at time t, σ(∑CV t ) represents the standard deviation of the coefficient of variation of the battery cell at time t. By observing the calculated Z score value, it is convenient to understand the situation of the battery cell and formulate an early warning strategy.
[0063] Logarithmic transformation formula: a b =N;log a N=b; it means that the battery cell voltage data is subjected to a logarithmic transformation. Assuming that the single cell battery data is x, the logarithmic transformation is X=logax, where X is the transformed data.
[0064] The specific coefficient of variation fault diagnosis is as follows: Step 1: First, perform a logarithmic transformation on the battery data; Step 2: Calculate the coefficient of variation of the battery data after logarithmic transformation; Step 3: Calculate the Z score value of the coefficient of variation; Among them, the first-level alarm range of the coefficient of variation is [0.8, 0.9), the second-level alarm range is [0.9, 1.0), and the third-level alarm is 1.0.
[0065] 6. The battery health status SOH diagnosis process is as follows:
[0066] Among them, Q 当前 Indicates the total amount of electricity that can be charged into the battery at the current time, that is, the battery capacity in the current state; Q 初始 Indicates the total battery capacity in the initial state of the battery system. 一次充电充入的电量Represents the amount of electricity charged into the battery during the current charge, and ΔSOC represents the amount of SOC change caused by the amount of electricity charged during a charge. t represents the start time of charging, and t0 represents the end time of charging. I(t) represents the function of charging current changing with time. ΔSOC represents the amount of SOC change during a charge, which is the difference between the SOC at the end of charging and the SOC at the start of charging. The specific calculation process is as follows: First, take the current segment during each electric vehicle charging process for integral calculation. The specific selection rule is that during this charging segment, the SOC change must be about 30%; second, divide the current integral by the SOC change during this charging segment to calculate the battery capacity during this charging process; third, take the initial capacity of the battery pack when it leaves the factory as the benchmark, and divide the battery capacity calculated during the current charging process by the initial battery pack capacity, which is the current health status of the battery pack.
[0067] S4. Data transmission: According to the judgment result of the vehicle-mounted T-BOX, all data are transmitted to the cloud platform at the set sampling interval; the set sampling intervals include 60s / frame, 30s / frame, 10s / frame and 1s / frame; if the fault diagnosis does not trigger the corresponding level of alarm, the data is transmitted to the cloud platform at 60s / frame; if the fault diagnosis module triggers a level 1 alarm, the data is transmitted to the cloud platform at 30s / frame; if the fault diagnosis module triggers a level 2 alarm, the data is transmitted to the cloud platform at 10s / frame; if the fault diagnosis module triggers a level 3 alarm, the data is transmitted to the cloud platform at 1s / frame; if the fault diagnosis module triggers a status alarm, the data is transmitted to the cloud platform at 1s / frame.
[0068] S5. The cloud platform stores all data and displays the vehicle fault level. Specifically, the vehicle-mounted T-BOX reads the data of the high CAN line in the CAN bus and stores 10 minutes of vehicle operation in the vehicle-mounted T-BOX data storage module. Among them, the CAN bus is the internal local area network of the car, which can quickly transmit information between the actuator and the controller of the vehicle. The vehicle-mounted T-BOX is connected to the DCAN bus through the CAN interface and collects data through the CAN network. It mainly collects and analyzes data such as vehicle information, drive motor information, fuel cell information, engine data, and vehicle location information. The high CAN line refers to a channel with faster data transmission, which is the communication method for some key components of the car (motor, battery). The data read is the data of the battery system, which is the basic data for subsequent fault judgment. It can store the data, and then process this part of the stored data, and other time periods can be set.
[0069] Finally, it should be noted that the above content is only used to illustrate the technical solution of the present invention, rather than to limit the scope of protection of the present invention. Simple modifications or equivalent substitutions of the technical solution of the present invention by ordinary technicians in this field do not deviate from the essence and scope of the technical solution of the present invention.
Claims
1. A fault diagnosis method based on adaptively changing sampling strategy, characterized in that: The following steps are involved: S1. Data collection: The vehicle-mounted T-BOX reads the CAN bus data and stores the battery data in the vehicle data; S2, data processing: The built-in data processing module of the vehicle-mounted T-BOX performs a removal operation on abnormal values and null values in the battery data; S3, Fault diagnosis: The vehicle-mounted T-BOX performs vehicle fault diagnosis on the battery data after elimination based on the communication protocol or the vehicle-mounted algorithm library; the judgment items for vehicle fault diagnosis are divided into threshold type and state type, and the threshold type judgment results are divided into first-level alarm, second-level alarm and third-level alarm; the alarm is diagnosed using extreme value method, change rate, standard deviation and data drive; S4. Data transmission: According to the judgment result of the vehicle-mounted T-BOX, all data are transmitted to the cloud platform at the set sampling interval; the set sampling intervals include 60s / frame, 30s / frame, 10s / frame and 1s / frame; if the fault diagnosis does not trigger the corresponding level of alarm, the data is transmitted to the cloud platform at 60s / frame; if the fault diagnosis module triggers a level 1 alarm, the data is transmitted to the cloud platform at 30s / frame; if the fault diagnosis module triggers a level 2 alarm, the data is transmitted to the cloud platform at 10s / frame; if the fault diagnosis module triggers a level 3 alarm, the data is transmitted to the cloud platform at 1s / frame; if the fault diagnosis module triggers a status alarm, the data is transmitted to the cloud platform at 1s / frame; S5. The cloud platform stores all data and displays the vehicle fault level.
2. A fault diagnosis method based on adaptively changing sampling strategy according to claim 1, characterized in that: In S2, the battery data at least includes the single cell voltage data of the battery system. When the single cell voltage data exceeds the value within a preset range, it is considered to be an abnormal value. If the single cell voltage data collected by the sensor is not reported in time, resulting in data loss, a null value will appear. Then, the abnormal values and null values are eliminated.
3. A fault diagnosis method based on adaptively changing sampling strategy according to claim 1, characterized in that: In S3, according to the set threshold, the fault degree of the vehicle with the first-level alarm is lower than that of the vehicle with the second-level alarm, and the fault degree of the vehicle with the second-level alarm is lower than that of the vehicle with the third-level alarm; the status alarm trigger is recognized as a third-level alarm of the vehicle.
4. A fault diagnosis method based on adaptively changing sampling strategy according to claim 3, characterized in that: In said S3, the determination items for fault diagnosis based on the communication protocol at least include a temperature alarm item, a voltage alarm item, a SOC alarm item and other alarm items, wherein the communication protocol is a GB / T32960 communication protocol; The temperature alarm items include at least temperature difference alarm, battery high temperature alarm, DC-DC temperature alarm, drive motor controller temperature alarm and drive motor temperature alarm; Voltage alarm items include at least on-board energy storage overvoltage alarm, on-board energy storage undervoltage alarm, single cell undervoltage alarm, single cell overvoltage alarm and on-board energy storage device type overcharge; The SOC alarm items include at least SOC low alarm, SOC high alarm and SOC jump alarm; Other alarm items include rechargeable energy storage system mismatch alarm, battery cell consistency poor alarm, insulation alarm, brake system alarm, DC-DC status alarm and high-voltage interlock status alarm; Among them, the temperature alarm item, voltage alarm item and SOC alarm item all belong to the threshold category, the battery cell poor consistency alarm in other alarm items belongs to the threshold category, and the rechargeable energy storage system mismatch alarm, insulation alarm, braking system alarm, DC-DC status alarm and high-voltage interlock status alarm in other alarm items belong to the status category.
5. A fault diagnosis method based on adaptively changing sampling strategy according to claim 3, characterized in that: The judgment items for fault diagnosis based on the on-board algorithm library include at least single cell voltage difference alarm, maximum temperature change rate alarm, total voltage change rate alarm, maximum single cell voltage change rate alarm, temperature standard deviation alarm, voltage standard deviation alarm, Shannon entropy, multi-scale entropy, variance entropy, compromise entropy, coefficient of variation, discrete wavelet, isolation forest and battery health status SOH.
6. A fault diagnosis method based on adaptively changing sampling strategy according to claim 5, characterized in that: The extreme value method is used to diagnose the single cell voltage difference alarm. The diagnosis process is as follows: The vehicle-mounted T-BOX is sampled according to the set sampling interval, where the data sampling includes the highest single cell voltage value V max and the minimum cell voltage value V min , the voltage difference between the two is V d : V d =V max -V min ; If the voltage difference V d If the voltage difference is within [0.29, 0.30) V, it is a level 1 alarm. d If the voltage difference is within [0.30,0.31)V, it is a level 2 alarm. d If it is greater than 0.31V, it is a level 3 alarm.
7. A fault diagnosis method based on adaptively changing sampling strategy according to claim 5, characterized in that: The change rate is used to diagnose the highest temperature change rate alarm, the total voltage change rate alarm, and the highest single cell voltage change rate alarm. The diagnosis process is as follows: The vehicle data collected by the vehicle T-BOX at each moment includes at least the maximum temperature change rate, the total voltage change rate and the maximum single cell voltage change rate; Among them, the calculation process of the maximum temperature change rate is: Maximum temperature change rate Set the time interval to the temperature change between two samples, or any fixed time period temperature change, where T max1 is the maximum temperature value of the battery system sampled last time, T max2 is the highest temperature value of the battery system at the last sampling, and Δt is the time difference between the two samplings. If the temperature change rate is [1.5, 2)℃ / s, it is set as a first-level alarm; if the temperature change rate is [2, 3.5)℃ / s, it is set as a second-level alarm; if the temperature change rate is greater than 3.5℃ / s, it is set as a third-level alarm. Among them, the calculation process of the total voltage change rate is: Total voltage change rate Set the time interval to the total voltage value change between two samples, or the total voltage change in a fixed time period, where V tv1 is the total voltage value of the battery system sampled last time, V tv2 is the total voltage value of the battery system at the last sampling, Δy is the time difference between the two samplings; if the total voltage change rate is [0.01, 0.10) V / s, it is set as a first-level alarm; if the total voltage change rate is [0.10, 0.22) V / s, it is set as a second-level alarm; if the temperature change rate is greater than 0.22 V / s, it is set as a third-level alarm; The calculation process of the maximum monomer voltage change rate is: Maximum single cell voltage change rate Set the time interval to the highest single cell voltage value change between two samples, or the highest voltage change in a fixed time period, where V max1 is the highest single cell voltage value of the battery system sampled last time, V max2 is the highest single cell voltage value of the battery system at the last sampling, Δt is the time difference between the two samplings; if the highest single cell voltage change rate is within [0.001,0.03)V / s, it is set to a first-level alarm; if the highest single cell voltage change rate is within [0.03,0.08)V / s, it is set to a second-level alarm; if the highest single cell voltage change rate is greater than 0.08V / s, it is set to a third-level alarm.
8. A fault diagnosis method based on adaptively changing sampling strategy according to claim 5, characterized in that: The standard deviation is used to diagnose the temperature standard deviation alarm and the voltage standard deviation alarm. The diagnosis process is as follows: Among them, the process of temperature standard deviation alarm is: The vehicle-mounted T-BOX collects data from all temperature sensors placed in the battery data, selects any moment, and calculates the standard deviation of all battery temperature probe data at that moment: At any given moment, if the temperature standard deviation is within [1.0, 1.3), it is set as a first-level alarm; if the temperature standard deviation is within [1.3, 1.6), it is set as a second-level alarm; if the temperature standard deviation is greater than 1.6, it is set as a third-level alarm; where T i represents the temperature of the i-th probe, represents the average temperature of the battery probe at a certain moment; n represents the number of temperature probes at this moment; the process of voltage standard deviation alarm is: The vehicle-mounted T-BOX collects the data of all the single-cell sensors placed in the battery data, selects any moment, and calculates the standard deviation of all the single-cell voltage data at that moment: At any time, if the cell voltage standard deviation is within [1.0, 1.2), it is set as a first-level alarm; if the temperature standard deviation is within [1.2, 1.5), it is set as a second-level alarm; if the temperature standard deviation is greater than 1.5, it is set as a third-level alarm; Where, V ci Indicates the voltage of the i-th single cell at that moment; It represents the average voltage of all single cells at that moment; n represents the number of single cells.
9. A fault diagnosis method based on adaptively changing sampling strategy according to claim 5, characterized in that: Shannon entropy and variance entropy are diagnosed based on data-driven, where the first-level alarm range of Shannon entropy is [2.5, 2.75), the second-level alarm range is [2.75, 3), and the third-level alarm range is [3, +∞); the first-level alarm range of variance entropy is [2.5, 2.6), the second-level alarm range is [2.6, 2.8), and the third-level alarm range is [2.8, +∞); the first-level alarm range of the coefficient of variation is [0.8, 0.9), the second-level alarm range is [0.9, 1.0), and the third-level alarm is 1.
0.
10. A fault diagnosis method based on adaptively changing sampling strategy according to claim 5, characterized in that: The coefficient of variation is diagnosed based on data-driven, and the diagnostic process is: Step 1: Logarithmically transform the battery data; Step 2: Calculate the coefficient of variation of the logarithmic transformed battery data; Step 3: Calculate the Z score value of the coefficient of variation; When the Z score value of the coefficient of variation is within the range of [0.8, 0.9), it is set as the first-level alarm of the coefficient of variation; when the Z score value is within the range of [0.9, 1.0), it is set as the second-level alarm of the coefficient of variation; when the Z score value is 1.0, it is set as the third-level alarm of the coefficient of variation.
11. A fault diagnosis method based on adaptively changing sampling strategy according to claim 5, characterized in that: The battery health status SOH diagnosis process is as follows: Among them, ΔSOC represents the change of SOC during a charging process, that is, the SOC value at the end of charging minus the SOC value at the beginning of charging, Q 当前 That is the battery capacity in the current state, Q 初始 It is the total battery power in the initial state of the battery system, and I(t) is the time.
12. A fault diagnosis method based on adaptively changing sampling strategy according to claim 7, characterized in that: The single cell voltage difference alarm, maximum temperature change rate alarm, total voltage change rate alarm, maximum single cell voltage change rate alarm, temperature standard deviation alarm, voltage standard deviation alarm, Shannon entropy, multi-scale entropy, variance entropy, compromise entropy, coefficient of variation, discrete wavelet, isolation forest, support vector machine and battery health status SOH all belong to the threshold category.
Citation Information
Cited By
Intelligent Fault Prediction System and Method
TWI937654B
