Fault diagnosis method, electronic device and storage medium based on vehicle-side T-BOX

By acquiring and processing voltage data on the vehicle-side T-BOX, and using Shannon entropy and variance entropy algorithms for fault judgment, the problem of fault diagnosis lag in the existing technology is solved, and real-time monitoring and accurate judgment of vehicle faults are achieved.

CN118447600BActive Publication Date: 2024-10-15BEIJING CHENGGONG LINGHANG AUTOMOBILE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410852083.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-15
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

The existing vehicle fault diagnosis system based on T-BOX performs data verification in the laboratory or offline environment, resulting in lag in fault diagnosis and the inability to monitor the fault conditions of the vehicle in real time.

Method used

By acquiring unit voltage data from the vehicle T-BOX, establishing voltage data sequences and matrices, screening outliers, using Shannon entropy and variance entropy algorithms for fault judgment, and storing and displaying alarm information through the cloud platform, we can understand vehicle fault conditions in real time. .

Benefits of technology

It realizes real-time monitoring of vehicle faults, shortens the lag of fault diagnosis, and improves the accuracy and efficiency of fault judgment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118447600B_ABST
    Figure CN118447600B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of electrical variable measurement systems, and in particular to a fault diagnosis method, electronic device and storage medium based on a vehicle-side T-BOX, the method comprising the following steps: obtaining single-cell voltage data and establishing a voltage data sequence; screening out abnormal values ​​and null values ​​in the voltage data sequence and removing them; obtaining a first result based on a Shannon entropy algorithm, and obtaining a second result based on a variance entropy algorithm; determining whether a vehicle has a fault; obtaining output first normal information, second normal information, first alarm information and second alarm information through a cloud platform, storing them, and outputting the first alarm information and the second alarm information to a cloud platform terminal, which outputs and displays the alarm level. The present invention has the effect of shortening the lag in vehicle fault diagnosis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electric variable measurement systems, and in particular to a fault diagnosis method, electronic equipment and storage medium based on a vehicle-side T-BOX. Background Art

[0002] T-BOX refers to Telematics Box, a remote communication terminal, based on Android and Linux operating systems, and integrates vehicle body network and wireless communication functions. It communicates with the vehicle through the CAN communication module and Ethernet, and obtains real-time vehicle information including real-time fuel consumption, engine water temperature, engine speed, vehicle mileage, current vehicle speed, battery voltage, intake pressure, coolant temperature, oxygen sensor voltage, engine load, throttle opening, air flow, GPS vehicle location information, etc., to monitor vehicle driving data in real time.

[0003] At present, there are some systems that obtain vehicle driving information through T-BOX and output vehicle fault diagnosis results based on the vehicle driving information. However, these systems only conduct experiments on battery modules in the laboratory, or perform offline verification after obtaining real vehicle data, resulting in a lag in vehicle fault diagnosis. Summary of the invention

[0004] In order to shorten the lag in vehicle fault diagnosis, the present invention provides a fault diagnosis method, electronic device and storage medium based on a vehicle-side T-BOX.

[0005] The present invention provides a fault diagnosis method based on vehicle-side T-BOX, which adopts the following technical solution:

[0006] A fault diagnosis method based on a vehicle-side T-BOX comprises the following steps:

[0007] Obtain single cell voltage data and establish voltage data sequence and voltage data matrix;

[0008] According to the type of battery and the preset voltage threshold, outliers and null values ​​in the voltage data sequence and voltage data matrix are screened out and removed;

[0009] Obtain a first result based on a Shannon entropy algorithm, and obtain a second result based on a variance entropy algorithm;

[0010] According to the preset Shannon entropy and variance entropy alarm ranges, determine whether the vehicle has a fault, if not, output the first normal information and the second normal information; if there is a fault, output the first alarm information and / or the second alarm information;

[0011] The first normal information, the second normal information, the first alarm information and the second alarm information are obtained and stored through the cloud platform, and the first alarm information and the second alarm information are output to the cloud platform terminal, and the cloud platform terminal outputs and displays the alarm level.

[0012] In a specific possible implementation, the cell voltage data is obtained from the high CAN line in the CAN bus through the T-BOX.

[0013] In a specific implementation scheme, before calculating the variance entropy, the formula is used:

[0014]

[0015] Generate the time without removing uniform fluctuations Data series ,in, Indicates the total number of battery cells, Indicates time, Indicates that the first battery cell is Voltage at the moment;

[0016] Then through the formula:

[0017]

[0018] Remove common fluctuations in the cell voltage data and generate the time to remove uniform fluctuations Data series , where Indicates The calculation of variance entropy is based on the data sequence The data in.

[0019] In a specific implementation scheme, before calculating the variance entropy, the formula is:

[0020]

[0021] Calculate the variance, where Window for variance calculation The total amount of data in The single cell voltage data of the battery cell; Window for variance calculation The average of the single cell voltage data of the battery cells;

[0022] The variance With the preset threshold For comparison, if , indicating that the voltage fluctuation degree meets the requirements, 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;

[0023] The calculation of variance entropy is based on the data in the distribution statistics series.

[0024] In a specific implementation scheme, during the calculation of variance entropy, the entropy calculation formula is:

[0025]

[0026] In the formula, Represents the voltage data distribution sequence The Voltage data, voltage data distribution sequence Obtained from the distribution statistics sequence.

[0027] In a specific implementation scheme, after the calculation of the variance entropy is completed, the formula is:

[0028]

[0029] Calculate each entropy value result The value of the score, where Indicates Battery cells in Moment , Indicates Battery cells in The entropy value at the moment, Indicates that the battery cell is Entropy value at the moment.

[0030] In a specific implementation scheme, Shannon entropy has a three-level alarm range, the first level alarm range is [2.5, 2.75), the first level two alarm range is [2.75, 3), and the first level three alarm range is [3, +∞), and the alarm risk increases with the increase of the alarm level.

[0031] In a specific implementation scheme, the variance entropy has a three-level alarm range, the second first level alarm range is [2.5, 2.6), the second second level alarm range is [2.6, 2.8), and the second third level alarm range is [2.8, +∞), and the alarm risk increases with the increase of the alarm level.

[0032] The present invention also provides an electronic device, which adopts the following technical solution:

[0033] An electronic device includes: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned vehicle-side T-BOX-based fault diagnosis method.

[0034] The present invention also provides a non-transitory computer-readable storage medium storing computer instructions, which adopts the following technical solution:

[0035] A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the above-mentioned vehicle-side T-BOX-based fault diagnosis method.

[0036] In summary, the present invention includes at least one of the following beneficial technical effects:

[0037] 1. By obtaining the single cell voltage data during vehicle driving and calculating and judging through variance entropy and Shannon entropy, the vehicle fault condition can be understood in real time, shortening the lag in vehicle fault diagnosis.

[0038] 2. Variance entropy and Shannon entropy jointly monitor the situation during vehicle driving and judge the vehicle fault condition, which can more accurately judge the vehicle fault condition.

[0039] 3. Before calculating the variance entropy, the single-cell voltage data is screened multiple times to remove abnormal values ​​and null values ​​in the single-cell voltage data, reduce the amount of data involved in the calculation, and improve the calculation efficiency and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 It is a flow chart of the fault diagnosis method.

[0041] Figure 2 is a histogram of voltage and the number of times the voltage occurs. DETAILED DESCRIPTION

[0042] The following is combined with Figure 1-2 The present invention is described in further detail.

[0043] The fault diagnosis method based on the vehicle-side T-BOX includes the following steps:

[0044] S100, data acquisition.

[0045] Read the data of the high CAN line in the CAN bus through T-BOX, and obtain the data of the battery pack every 10 minutes. The single cell voltage data within 10 minutes of each battery cell is collected and a voltage data sequence is established. and voltage data matrix , the voltage data sequence Stored in the storage module of T-BOX. , Represents the number of records of voltage data, That is the The first battery cell Voltage data; , Represents the total number of voltage data groups, For the The first battery cell Group voltage data.

[0046] Furthermore, , For the The battery The first The number of voltage occurrences, , .

[0047] S200, data screening.

[0048] The data processing module of T-BOX obtains the single cell voltage data in the storage module and filters out the voltage data sequence based on the Python environment. and voltage data matrix Remove outliers and null values.

[0049] According to the type of battery, the voltage threshold is preset, and the voltage data sequence is The voltage value in is compared with the preset threshold value to determine the voltage data sequence and voltage data matrix The outliers in the data are detected and removed. By removing outliers and null values, the amount of calculation in the subsequent data processing can be reduced and the data accuracy can be improved. For ease of understanding, the following example is given. For lithium iron phosphate batteries, when the voltage value is lower than 2.5V or higher than 4.0V, it is considered an outlier. For ternary lithium batteries, when the battery voltage is lower than 3.2V or the voltage value is higher than 4.8V, it is considered an outlier. When a null value appears in the data list of the transmission collection, the data of this frame is considered to be null.

[0050] S300, data processing.

[0051] The data processing module obtains the first result calculated by the Shannon entropy according to the preset Shannon entropy algorithm and variance entropy algorithm. , and the second result calculated by variance entropy .

[0052] A301, the calculation process of Shannon entropy includes the following steps:

[0053] By formula:

[0054]

[0055] Calculate the standard deviation of the battery cell voltage. , is the average voltage of the battery cell at a certain moment.

[0056] Calling the voltage data matrix According to the formula:

[0057]

[0058] Calculate the probability of voltage occurrence .

[0059] Then through the formula:

[0060]

[0061] Calculate the Shannon entropy. Use the Z score to process the calculated Shannon entropy and calculate the abnormal coefficient of the battery cell. , which is the first result.

[0062]

[0063] in, To correct the overall Shannon entropy data, It is the average of all voltage data.

[0064] Calculate the abnormal coefficient of each battery cell Standard Deviation .

[0065]

[0066] in, , is the average value of the abnormal coefficients of all battery cells, For the The abnormal coefficient of each battery cell.

[0067] A302, the calculation process of variance entropy includes the following steps:

[0068] By formula:

[0069]

[0070] Generate the time without removing uniform fluctuations Data series , and then through the formula:

[0071]

[0072] Remove common fluctuations in the cell voltage data and generate the time to remove uniform fluctuations Data series , where Indicates By using the entropy calculation window Set a smaller variance calculation window in , according to the calculated variance With the preset threshold The comparison of the variance is to eliminate the voltage signal with smaller fluctuation. The calculation formula is as follows:

[0073]

[0074] Where N is the variance calculation window The total amount of data in For data series Data in Window for variance calculation The average of the data in . , 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.

[0075] The distribution statistics sequence records the number of times different voltages appear. A coordinate system is established based on the voltage change and the number of times it appears, with the voltage as the horizontal axis and the number of times as the vertical axis. The data in the distribution statistics sequence is classified according to the horizontal axis of the coordinate system, and a histogram is generated based on the classification of the data.

[0076] For the sake of explanation, Figure 2 For further explanation, the voltage data in the distribution statistics sequence are grouped with the endpoints of the horizontal axis as the interval of the maximum and minimum values, and arranged in order from small to large. The number of data in each group is the value corresponding to the number of times on the vertical axis, and a histogram is generated. After that, the number of data in each group is counted and normalized to obtain the voltage data distribution sequence. .

[0077] By formula:

[0078]

[0079] Calculating entropy ,in Represents the voltage data distribution sequence The The consistency of battery packs is generally good, and the entropy value of each battery cell in the battery pack is relatively close, so the entropy value needs to be amplified to facilitate the identification of the characteristics of the battery cell.

[0080] By formula:

[0081]

[0082] calculate The value of the fraction can increase the difference between the entropy values ​​of the battery cells. Indicates Battery cells in Moment , Indicates Battery cells in The entropy value at the moment, Indicates that the battery cell is The entropy value at the moment. Observation is carried out to understand the condition of battery cells and develop early warning strategies.

[0083] It can be understood that there is no order of precedence between Shannon entropy and variance entropy in actual calculation, and step A301 and step A302 are only used to distinguish different calculation processes of Shannon entropy and variance entropy.

[0084] S400, fault diagnosis. According to the preset three-level alarm range of Shannon entropy and variance entropy, determine whether the vehicle has a fault and output the result.

[0085] After the standard deviation is calculated, the vehicle fault is first judged based on the standard deviation calculation result. The standard deviation is enlarged by 10 times, and the enlarged standard deviation is compared with the preset critical value Q. In this specific implementation, Q=1, the standard deviation calculation result is in the range of [1.0, 1.2) for the first level alarm; the calculation result is in the range of [1.2, 1.5) for the second level alarm; the calculation result is in the range of [1.5, +∞) for the third level alarm. If the standard deviation triggers an alarm, different levels of fault alarms are automatically generated and output according to different levels of alarms.

[0086] Complete the standard deviation in step A301 After calculating the standard deviation and the anomaly coefficient If , it indicates that the battery cell is abnormal and a battery failure alarm is output.

[0087] The first level alarm range of Shannon entropy is [2.5, 2.75), the first level alarm range is [2.75, 3), and the first level alarm range is [3, +∞). The second level alarm range of variance entropy is [2.5, 2.6), the second level alarm range is [2.6, 2.8), and the second level alarm range is [2.8, +∞). The alarm risk increases with the increase of the alarm level, that is, the alarm risk of the first level alarm is the lowest, and the alarm risk of the third level alarm is the highest.

[0088] The first result you will get Compare with the first level alarm range, the first level alarm range, and the first level alarm range respectively. If <2.5, indicating that the vehicle has no fault and outputs the first normal information; if ≥2.5, the first alarm information is output according to the alarm range to which the first result belongs.

[0089] The second result will be Compare with the second level alarm range, the second level alarm range, and the second level alarm range respectively. If <2.5, indicating that the vehicle has no fault and outputs the second normal information; if ≥2.5, then output the second alarm information according to the alarm range to which the second result belongs.

[0090] For ease of understanding, the following uses , , Give an example.

[0091] When the data processing module calculates When , it indicates that the vehicle has no fault and outputs the second normal information; if the calculation obtains ,and , indicating that the vehicle has a fault and is within the second level alarm range, and the second alarm information containing the second level alarm is output; if the calculation obtains , indicating that the vehicle has a fault and is within the second or third level alarm range, and the second alarm information containing the second or third level alarm is output. First result The judgment logic is the same as the second result and will not be repeated here.

[0092] S500, fault level display.

[0093] The cloud platform obtains the data uploaded by T-BOX at a frequency of 10s / frame. If the first normal information or the second normal information is obtained, it will continue to obtain data at a frequency of 10s / frame and store the data on the cloud platform. If the cloud platform obtains a fault alarm, a battery fault alarm, the first alarm information or the second alarm information, it will obtain data at a frequency of 1s / frame, and the cloud platform terminal will output the alarm level of the first alarm information or the second alarm information. If the cloud platform obtains the first alarm information and the second alarm information at the same time, the alarm levels in the first alarm information and the second alarm information are compared, and the cloud platform terminal outputs the alarm level with the higher alarm level and displays it.

[0094] This specific embodiment also discloses an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned vehicle-side T-BOX-based fault diagnosis method.

[0095] This specific embodiment also discloses a non-transitory computer-readable storage medium storing computer instructions, where the computer instructions are used to enable a computer to execute the above-mentioned vehicle-side T-BOX-based fault diagnosis method.

[0096] The above are all preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Therefore, any equivalent changes made based on the structure, shape, and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A fault diagnosis method based on vehicle-side T-BOX, characterized in that: The steps include: Obtain single cell voltage data and establish voltage data sequence and voltage data matrix; According to the type of battery and the preset voltage threshold, outliers and null values ​​in the voltage data sequence and voltage data matrix are screened out and removed; Obtain a first result based on a Shannon entropy algorithm, and obtain a second result based on a variance entropy algorithm; According to the preset Shannon entropy and variance entropy alarm ranges, it is determined whether the vehicle has a fault, and if there is no fault, the first normal information and the second normal information are output; If there is a fault, output the first alarm information and / or the second alarm information; The first normal information, the second normal information, the first alarm information and the second alarm information are obtained through the cloud platform, stored, and the first alarm information and the second alarm information are output to the cloud platform terminal, and the cloud platform terminal outputs and displays the alarm level; Before calculating the variance entropy, use the formula: Generate the time without removing uniform fluctuations Data series ,in, Indicates the total number of battery cells, Indicates time, Indicates that the first battery cell is Voltage at the moment; Then through the formula: Remove common fluctuations in the cell voltage data and generate the time to remove uniform fluctuations Data series , where Indicates The calculation of variance entropy is based on the data sequence Data in After completing the calculation of variance entropy, the formula is: Calculate each entropy value result The value of the score, i.e. the second result, where Indicates Battery cells in Moment , Indicates Battery cells in The entropy value at the moment, Indicates that the battery cell is Entropy value at the moment; Calling the voltage data matrix According to the formula: Calculate the probability of voltage occurrence ; Then through the formula: Calculate Shannon entropy; use Z score to process the calculated Shannon entropy and calculate the abnormal coefficient of the battery cell , which is the first result; where the voltage data matrix , Represents the total number of voltage data groups, For the The first battery cell Group voltage data.

2. The fault diagnosis method based on vehicle-side T-BOX according to claim 1 is characterized in that: The cell voltage data is obtained from the high CAN line in the CAN bus through the T-BOX.

3. The fault diagnosis method based on vehicle-side T-BOX according to claim 1 is characterized in that: Before calculating the variance entropy, use the formula: Calculate the variance, where Window for variance calculation The total amount of data in The single cell voltage data of the battery cell; Window for variance calculation The average of the single cell voltage data of the battery cells; The variance With the preset threshold For comparison, if , indicating that the voltage fluctuation degree meets the requirements, 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; The calculation of variance entropy is based on the data in the distribution statistics series.

4. The fault diagnosis method based on vehicle-side T-BOX according to claim 3 is characterized in that: In the calculation process of variance entropy, the entropy calculation formula is: In the formula, Represents the voltage data distribution sequence The Voltage data, voltage data distribution sequence Obtained from the distribution statistics sequence.

5. The fault diagnosis method based on vehicle-side T-BOX according to claim 1 is characterized in that: Shannon entropy has a three-level alarm range. The first level alarm range is [2.5, 2.75), the first level two alarm range is [2.75, 3), and the first level three alarm range is [3, +∞). The alarm risk increases with the increase of the alarm level.

6. The fault diagnosis method based on vehicle-side T-BOX according to claim 1 is characterized in that: The variance entropy has a three-level alarm range. The second-level alarm range is [2.5, 2.6), the second-level alarm range is [2.6, 2.8), and the second-level alarm range is [2.8, +∞). The alarm risk increases with the increase of the alarm level.

7. An electronic device, characterized in that: include: at least one processor; And a memory communicatively connected to at least one processor; wherein the memory stores instructions executable by at least one processor, and the instructions are executed by at least one processor so that at least one processor can execute the vehicle-side T-BOX-based fault diagnosis method described in any one of claims 1-6.

8. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to enable a computer to execute the vehicle-side T-BOX-based fault diagnosis method described in any one of claims 1 to 6.