Relay abnormity detection method and device, battery, vehicle and electronic equipment

By acquiring and reconstructing the voltage sequence across the relay, and utilizing the difference and dissimilarity calculations, the problem of low accuracy in relay anomaly identification was solved, achieving higher identification accuracy and power system stability.

CN121995201APending Publication Date: 2026-05-08BEIJING CHEHEJIA AUTOMOBILE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
BEIJING CHEHEJIA AUTOMOBILE TECH CO LTD
Filing Date
2024-11-04
Publication Date
2026-05-08

AI Technical Summary

Technical Problem

In existing technologies, the voltage signal changes across the relay exhibit hysteresis, and the hysteresis time at each sampling point is not fixed, resulting in a low accuracy rate for identifying relay malfunctions based on voltage differences at the same sampling time.

Method used

Obtain the voltage sequences at one end and the other end of the relay. Reconstruct the second voltage sequence using the first voltage sequence as a reference. Determine whether the relay is abnormal by calculating the difference and analyzing the discrepancies.

Benefits of technology

It improves the accuracy of relay anomaly identification, reduces errors caused by hysteresis, and ensures the stable operation of relays and the safety of power systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121995201A_ABST
    Figure CN121995201A_ABST
Patent Text Reader

Abstract

The invention discloses a relay abnormity detection method and device, a battery, a vehicle and electronic equipment, and relates to the technical field of data processing. A first voltage sequence and a second voltage sequence of a relay are acquired; reconstructing the second voltage sequence by taking the first voltage sequence as a reference to obtain a reconstructed second voltage sequence; and performing anomaly detection on the relay based on the first voltage sequence and the reconstructed second voltage sequence. Compared with the prior art, the embodiment of the invention obtains the first voltage sequence and the second voltage sequence of the relay, reconstructs the second voltage sequence to obtain the reconstructed second voltage sequence, and performs anomaly detection on the relay on the basis of the first voltage sequence and the reconstructed second voltage sequence, thereby achieving the purpose of detecting the anomaly of the relay on the basis of the voltage at one end of the relay. The voltage at the other end of the relay is reconstructed, the voltage hysteresis at the two ends of the relay is reduced, and the relay abnormity identification accuracy is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of data processing technology, and in particular to a method and apparatus for detecting relay malfunctions, batteries, vehicles, and electronic devices. Background Technology

[0002] Abnormal relay connection can lead to excessive contact resistance. Under the same current, the voltage drop at the contact point will be abnormal, resulting in abnormal heating. When the relay is loosely connected, the corresponding voltage drop is the difference between the voltages on both sides of the relay, that is, the difference between the voltage at one end of the relay and the voltage at the other end.

[0003] In the related technologies for detecting abnormal relay voltage, the voltage at the same sampling moment at both ends of the relay is usually used to identify the problem of excessive contact internal resistance. Due to signal acquisition issues, the voltage at both ends of the relay often changes asynchronously, that is, the signal change at one end of the relay is delayed relative to the signal change at the other end, and the delay time at each sampling point is not fixed. Directly identifying whether the relay is abnormal based on the voltage difference at the same sampling moment will result in a low accuracy rate in identifying relay abnormalities. Summary of the Invention

[0004] This disclosure provides a method and device for detecting relay malfunctions, as well as a battery, vehicle, and electronic equipment. Its main purpose is to address the problem that signal changes at one end of a relay lag behind signal changes at the other end, and that the lag time at each sampling point is not fixed. Directly identifying relay malfunctions based on voltage differences at the same sampling time leads to low accuracy in relay malfunction detection.

[0005] According to a first aspect of this disclosure, a method for detecting relay malfunctions is provided, comprising:

[0006] Obtain a first voltage sequence and a second voltage sequence of the relay; the first voltage sequence is a sequence composed of voltages collected at one end of the relay according to a period, and the second voltage sequence is a sequence composed of voltages collected at the other end of the relay according to the period.

[0007] Using the first voltage sequence as a reference, the second voltage sequence is reconstructed to obtain the reconstructed second voltage sequence;

[0008] Anomaly detection is performed on the relay based on the first voltage sequence and the reconstructed second voltage sequence.

[0009] Optionally, the step of reconstructing the second voltage sequence based on the first voltage sequence to obtain the reconstructed second voltage sequence includes:

[0010] Obtain a first voltage and a target calculation range centered on a second voltage; the target calculation range includes voltages in at least two second voltage sequences, where the first voltage is any voltage in the first voltage sequence and the second voltage is the voltage in the second voltage sequence at the same acquisition time as the first voltage;

[0011] The voltages within the target calculation range are respectively compared with the first voltage to calculate the difference, resulting in at least two first difference results;

[0012] The voltage corresponding to the minimum value among the at least two first difference results is determined as the reconstructed second voltage;

[0013] All the reconstructed second voltages are used to construct the reconstructed second voltage sequence.

[0014] Optionally, the abnormality detection of the relay based on the first voltage sequence and the reconstructed second voltage sequence includes:

[0015] The difference between the first voltage sequence and the reconstructed second voltage sequence is calculated to obtain the difference degree;

[0016] If the difference is greater than the first threshold, then the relay is determined to be abnormal.

[0017] Optionally, the step of calculating the difference between the first voltage sequence and the reconstructed second voltage sequence to obtain the degree of difference includes:

[0018] Calculate the difference between each first voltage in the first voltage sequence and the corresponding reconstructed second voltage to obtain at least one second difference result;

[0019] The at least one second difference result is ranked according to its numerical value to obtain the ranking result corresponding to each second difference result;

[0020] The second difference result corresponding to the target ranking result in the ranking results is determined as the difference degree.

[0021] Optionally, the step of calculating the difference between the first voltage sequence and the reconstructed second voltage sequence to obtain the degree of difference further includes:

[0022] The mean of the at least one second difference result is calculated to obtain the mean result;

[0023] The mean result is determined as the degree of difference;

[0024] And / or, perform variance calculation on the at least one second difference result to obtain the variance result;

[0025] The variance result is determined as the degree of difference.

[0026] Optionally, after calculating the difference between each first voltage in the first voltage sequence and the corresponding reconstructed second voltage to obtain at least one second difference result, the method further includes:

[0027] The second difference result is compared with the third difference result; the third difference result is the voltage difference across the relay when the relay is normal.

[0028] If the difference between the second difference result and the third difference result is greater than the second threshold, then the relay is determined to be abnormal.

[0029] According to a second aspect of this disclosure, a relay fault detection device is provided, comprising:

[0030] An acquisition unit is used to acquire a first voltage sequence and a second voltage sequence of a relay; the first voltage sequence is a sequence composed of voltages collected at one end of the relay according to a period, and the second voltage sequence is a sequence composed of voltages collected at the other end of the relay according to the period.

[0031] The reconstruction unit is used to reconstruct the second voltage sequence based on the first voltage sequence to obtain the reconstructed second voltage sequence.

[0032] The detection unit is used to perform anomaly detection on the relay based on the first voltage sequence and the reconstructed second voltage sequence.

[0033] Optionally, the reconfiguration unit includes:

[0034] An acquisition module is used to acquire a first voltage and a target calculation range centered on a second voltage; the target calculation range includes voltages in at least two second voltage sequences, the first voltage being any voltage in the first voltage sequence, and the second voltage being the voltage in the second voltage sequence at the same acquisition time as the first voltage;

[0035] The first calculation module is used to calculate the difference between the voltage in the target calculation range and the first voltage to obtain at least two first difference results;

[0036] The first determining module is used to determine the voltage corresponding to the minimum value among the at least two first difference results as the reconstructed second voltage;

[0037] A construction module is used to construct all the reconstructed second voltages into the reconstructed second voltage sequence.

[0038] Optionally, the detection unit includes:

[0039] The second calculation module is used to calculate the difference between the first voltage sequence and the reconstructed second voltage sequence to obtain the degree of difference.

[0040] The second determining module is used to determine that the relay is abnormal when the difference is greater than the first threshold.

[0041] Optionally, the second calculation module is also used for,

[0042] Calculate the difference between each first voltage in the first voltage sequence and the corresponding reconstructed second voltage to obtain at least one second difference result;

[0043] The at least one second difference result is ranked according to its numerical value to obtain the ranking result corresponding to each second difference result;

[0044] The second difference result corresponding to the target ranking result in the ranking results is determined as the difference degree.

[0045] Optionally, the second calculation module is also used for,

[0046] The mean of the at least one second difference result is calculated to obtain the mean result;

[0047] The mean result is determined as the degree of difference;

[0048] And / or, perform variance calculation on the at least one second difference result to obtain the variance result;

[0049] The variance result is determined as the degree of difference.

[0050] Optionally, the device further includes:

[0051] The comparison unit is used to calculate the difference between each first voltage in the first voltage sequence and the corresponding reconstructed second voltage to obtain at least one second difference result, and then compare the second difference result with a third difference result; the third difference result is the voltage difference between the two ends of the relay when the relay is not abnormal;

[0052] The determining unit is configured to determine that the relay is abnormal when the difference between the second difference result and the third difference result is greater than a second threshold.

[0053] According to a third aspect of this disclosure, a battery is provided, wherein the vehicle includes a relay malfunction detection device as described in the second aspect above.

[0054] According to a fourth aspect of this disclosure, a vehicle is provided, the vehicle including a relay malfunction detection device as described in the second aspect above or a battery as described in the third aspect above.

[0055] According to a fifth aspect of this disclosure, an electronic device is provided, comprising:

[0056] At least one processor; and

[0057] A memory communicatively connected to the at least one processor; wherein,

[0058] The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method described in the first aspect above.

[0059] According to a sixth aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions, wherein the computer instructions are configured to cause the computer to perform the method described in the first aspect above.

[0060] According to a seventh aspect of this disclosure, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the method described in the first aspect above.

[0061] This disclosure provides a method and apparatus for detecting relay anomalies, as well as a battery, vehicle, and electronic device. It acquires a first voltage sequence and a second voltage sequence of a relay. The first voltage sequence is a sequence composed of voltages collected periodically at one end of the relay, and the second voltage sequence is a sequence composed of voltages collected periodically at the other end of the relay. Using the first voltage sequence as a reference, the second voltage sequence is reconstructed to obtain a reconstructed second voltage sequence. Based on the first voltage sequence and the reconstructed second voltage sequence, anomaly detection is performed on the relay. Compared with related technologies, this disclosure, by acquiring the first and second voltage sequences of the relay and reconstructing the second voltage sequence to obtain the reconstructed second voltage sequence, and then performing anomaly detection on the relay based on the first voltage sequence and the reconstructed second voltage sequence, achieves the reconstruction of the voltage at the other end of the relay using the voltage at one end as a reference, reducing voltage hysteresis across the relay and thus improving the accuracy of relay anomaly identification.

[0062] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this application, nor is it intended to limit the scope of this application. Other features of this application will become readily apparent from the following description. Attached Figure Description

[0063] The accompanying drawings are provided to better understand this solution and do not constitute a limitation of this disclosure. Wherein:

[0064] Figure 1 This is a schematic flowchart of a relay fault detection method provided in an embodiment of the present disclosure;

[0065] Figure 2 A schematic flowchart illustrating a voltage reconstruction method provided in an embodiment of this disclosure;

[0066] Figure 3 This is a comparison diagram of the distribution of voltage difference before and after voltage reconstruction when a relay malfunctions, provided in an embodiment of this disclosure.

[0067] Figure 4 This is a comparison diagram of the distribution of voltage difference before and after voltage reconstruction when a relay is in normal operation, provided by an embodiment of this disclosure.

[0068] Figure 5 A schematic diagram of the structure of a relay malfunction detection device provided in an embodiment of this disclosure;

[0069] Figure 6 A schematic diagram of another relay fault detection device provided in an embodiment of this disclosure;

[0070] Figure 7 A schematic block diagram of an example electronic device provided for embodiments of this disclosure. Detailed Implementation

[0071] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.

[0072] The following description, with reference to the accompanying drawings, describes a method and apparatus for detecting relay malfunctions, a battery, a vehicle, and electronic equipment according to embodiments of the present disclosure.

[0073] Figure 1 This is a schematic flowchart illustrating a relay fault detection method provided in an embodiment of the present disclosure.

[0074] like Figure 1 As shown, this method is applied to a relay anomaly detection algorithm, and the method includes the following steps:

[0075] Step 101: Obtain the first voltage sequence and the second voltage sequence of the relay; the first voltage sequence is a sequence composed of voltages collected at one end of the relay according to a period, and the second voltage sequence is a sequence composed of voltages collected at the other end of the relay according to the period.

[0076] The period can be any value, such as 1 minute. However, it should be clear that this statement is not intended to limit the period to only 1 minute. It can also be other values. The specific value can be handled according to the actual business needs. This disclosure does not limit the value of the period.

[0077] The first and second voltage sequences of the relay can be obtained by deploying a sensor at each end of the relay. One sensor periodically collects the voltage at one end of the relay, and the other sensor periodically collects the voltage at the other end of the relay. The voltages at one end of the relay are combined into a sequence, which is the first voltage sequence, and the voltages at the other end of the relay are combined into a sequence, which is the second voltage sequence. Alternatively, the voltages at both ends of the relay can be collected in real time by sensors. The specific method can be processed according to the actual business needs. This disclosure does not limit the method of collecting the voltages at both ends of the relay.

[0078] By acquiring the first and second voltage sequences of the relay, the operating status of the relay can be monitored in real time, potential faults or performance degradation can be detected in a timely manner, and maintenance or repair can be carried out to ensure the stable operation of the relay.

[0079] Step 102: Using the first voltage sequence as a reference, reconstruct the second voltage sequence to obtain the reconstructed second voltage sequence.

[0080] By calling the voltage reconstruction algorithm, the second voltage sequence is reconstructed based on the first voltage sequence to obtain the reconstructed second voltage sequence. The voltage reconstruction algorithm can be a pre-defined algorithm or an algorithm stored in the algorithm library. The algorithm in the algorithm library can be used directly through the application programming interface.

[0081] For ease of understanding, an example is provided, assuming the first voltage sequence is [v 11 ,v 12 ,v 13 ...v 1n The second voltage sequence is [v] 21 v 22 v 23 ...v 2n Based on the first voltage sequence, the target calculation range for the second voltage in the second voltage sequence is 11. For each v in the first voltage sequence... 1i(i = 5, 6, 7 ... n-5), calculate [v] in the second voltage sequence. 2,i-5 v 2,i-4 v 2,i-3 v 2,i-2 v 2,i-1 v 2,i v 2,i+1 v 2,i+2 v 2,i+3 v 2,i+4 v 2,i+5 ] and v 1i The difference is calculated, and the minimum value of the difference is determined as v' in the reconstructed second voltage sequence. 2,i The reconstructed second voltage sequence is obtained by analogy, denoted as [v']. 2,1 v' 2,2 v' 2,3 ……v' 2,n ].

[0082] The voltage signals across the relay may experience transmission delays, resulting in temporal differences between the acquired voltage sequences. Voltage reconstruction algorithms can minimize these physical transmission delays, aligning the voltage sequences across the relay in time and thus more accurately reflecting the relay's state.

[0083] Step 103: Based on the first voltage sequence and the reconstructed second voltage sequence, perform anomaly detection on the relay.

[0084] As a crucial component in a circuit, the operating state of a relay directly affects the circuit's stability and safety. By acquiring the voltage sequence across the relay, we can obtain the voltage changes during relay operation. However, due to the lag in voltage acquisition in real-world environments, directly analyzing the raw voltage sequence may be affected by interference, leading to inaccurate relay anomaly detection.

[0085] The hysteresis between the reconstructed second voltage sequence and the first voltage sequence is reduced. Based on the first voltage sequence and the reconstructed second voltage sequence, anomaly detection can be performed. This typically involves comparing the waveform, amplitude, phase, and other characteristics of the two voltage sequences to determine whether they conform to the expected operating mode or pattern. If the difference between the two voltage sequences exceeds a threshold, it may indicate an abnormality in the relay, such as poor contact, damage, or circuit fault. The threshold can be any value, and this disclosure does not limit it.

[0086] The relay anomaly detection method disclosed herein acquires a first voltage sequence and a second voltage sequence of the relay. The first voltage sequence is a sequence composed of voltages collected periodically at one end of the relay, and the second voltage sequence is a sequence composed of voltages collected periodically at the other end of the relay. Using the first voltage sequence as a reference, the second voltage sequence is reconstructed to obtain a reconstructed second voltage sequence. Based on the first voltage sequence and the reconstructed second voltage sequence, anomaly detection is performed on the relay. Compared with related technologies, the embodiments of this disclosure, by acquiring the first and second voltage sequences of the relay, reconstructing the second voltage sequence to obtain a reconstructed second voltage sequence, and then performing anomaly detection on the relay based on the first and reconstructed second voltage sequences, achieves the reconstruction of the voltage at the other end of the relay using the voltage at one end as a reference, reducing voltage hysteresis across the relay and thus improving the accuracy of relay anomaly identification.

[0087] As a refinement of step 102, when reconstructing the second voltage sequence based on the first voltage sequence to obtain the reconstructed second voltage sequence, it can be implemented in, but is not limited to, the following ways: Figure 2 As shown, Figure 2 A schematic flowchart of a voltage reconstruction method provided in an embodiment of this disclosure includes:

[0088] Step 201: Obtain a first voltage and a target calculation range centered on a second voltage; the target calculation range includes voltages in at least two second voltage sequences, where the first voltage is any voltage in the first voltage sequence and the second voltage is the voltage in the second voltage sequence at the same acquisition time as the first voltage.

[0089] The target calculation range is a range centered on the second voltage and including voltage values ​​from at least two second voltage sequences.

[0090] To facilitate understanding, an example is provided, assuming the second voltage is v. 2,i If the target calculation range is 11, then the target calculation range includes [v]. 2,i-5 v 2,i-4 v 2,i-3 v 2,i-2 v 2,i-1 v 2,i v 2,i+1 v 2,i+2 v 2,i+3 v 2,i+4 v 2,i+5 ].

[0091] The purpose of obtaining the first voltage and the target calculation range is to calculate the reconstructed second voltage sequence so that the sequence can match the first voltage sequence as closely as possible, thereby providing a more accurate data basis for subsequent detection of relay anomalies.

[0092] Step 202: Calculate the difference between the voltage in the target calculation range and the first voltage to obtain at least two first difference results.

[0093] By calculating the difference, the voltage values ​​of the second voltage sequence can be calibrated relative to the voltage values ​​of the first voltage sequence to eliminate voltage deviations caused by factors such as equipment drift or environmental changes.

[0094] To facilitate understanding, an example is provided. Suppose the first voltage is a, and the voltages in the target calculation range are b, c, and d. Calculate the difference between b, c, and d and a, respectively, to obtain ba, ca, and da.

[0095] Step 203: Determine the voltage corresponding to the minimum value among the at least two first difference results as the reconstructed second voltage.

[0096] Within the target calculation range, the voltage closest to the first voltage is found so that the reconstructed second voltage sequence can reflect the characteristics and trends of the original data as much as possible. Selecting the voltage corresponding to the smallest difference as the reconstructed second voltage ensures that the voltage value that best matches the first voltage is found within the entire target calculation range, thereby improving the accuracy and reliability of the reconstructed second voltage sequence.

[0097] To facilitate understanding, an example is provided. Suppose there are three first difference results, namely ba, ca, and da, where b, c, and d are the voltages in the target calculation range, a is the first voltage, ba is the minimum value, and then b is the reconstructed second voltage.

[0098] Step 204: Construct all the reconstructed second voltages into the reconstructed second voltage sequence.

[0099] Each reconstructed second voltage is based on the voltage in the original second voltage sequence, and is obtained by calculating the difference between the second and first voltages, finding the voltage value with the smallest difference. This process can eliminate or reduce noise, interference, or measurement errors in the original voltage data, making the reconstructed voltage value closer to the true voltage value.

[0100] The reconstructed second voltage sequence has higher data quality and accuracy compared to the original second voltage sequence, thus more accurately reflecting the voltage difference across the relay at the same acquisition time. This is crucial for assessing the relay's operational status, detecting anomalies, and predicting potential problems.

[0101] As a refinement of step 103, when performing the abnormal detection of the relay based on the first voltage sequence and the reconstructed second voltage sequence, it can be implemented in the following way, but is not limited to: calculating the difference between the first voltage sequence and the reconstructed second voltage sequence to obtain the difference degree; if the difference degree is greater than a first threshold, then the relay is determined to be abnormal.

[0102] Relays are critical protection and control devices, and their operating status directly affects the safety and reliability of power systems. When a relay malfunctions or experiences an abnormal condition, the voltage across its terminals may change. This change can be detected by comparing a first voltage sequence (usually the voltage sequence on one side of the relay) with a reconstructed second voltage sequence (usually the processed and optimized voltage sequence on the other side of the relay).

[0103] For example, difference can be calculated in various ways, such as by calculating the difference, variance, and standard deviation between two voltage sequences. These statistics can quantify the degree of difference between the two sequences, thus obtaining a difference index. The greater the difference, the more significant the difference between the two voltage sequences, and the higher the probability that the relay is malfunctioning.

[0104] The first threshold is a threshold set based on system requirements and experience, used to determine whether the degree of difference has reached a level requiring attention or action. When the degree of difference exceeds the first threshold, the system can determine that the relay is abnormal and take corresponding measures, such as issuing an alarm, recording fault information, and activating backup equipment, to ensure the safety and reliability of the power system.

[0105] Therefore, by calculating the difference between the first voltage sequence and the reconstructed second voltage sequence, and judging whether the relay is abnormal based on the degree of difference, the working status of the relay can be effectively monitored and diagnosed, and potential problems can be discovered and dealt with in a timely manner.

[0106] As a refinement of the above embodiments, when performing the difference calculation between the first voltage sequence and the reconstructed second voltage sequence to obtain the difference degree, it can be implemented in the following manner, but is not limited to: calculating the difference between each first voltage in the first voltage sequence and the corresponding reconstructed second voltage to obtain at least one second difference result; ranking the at least one second difference result according to its numerical value to obtain a ranking result corresponding to each second difference result; and determining the target second difference result corresponding to the target ranking result in the ranking results as the difference degree. In different application scenarios, the sensitivity to anomalies and the fault tolerance range may vary. Ranking allows for adjustments to the difference degree calculation method according to specific needs, making it more suitable for specific application scenarios. The ranking can be the 75th percentile of the ranking results; however, it should be clarified that this statement is not intended to limit the ranking to only the 75th percentile of the ranking results, and other values ​​are also possible. The ranking can be processed according to actual business needs, and this disclosure does not limit the specific ranking.

[0107] To facilitate understanding, an example is provided. Suppose there are four first voltages in the first voltage sequence, namely A, B, C, and D, and four second voltages in the reconstructed second voltage sequence, namely E, F, G, and H, where A corresponds to E, B corresponds to F, C corresponds to G, and D corresponds to H. Then the second difference results include AE, BF, CG, and DH. The ranking of each difference in the second difference results from smallest to largest is AE, BF, CG, and DH, and the ranking is the 75th percentile of the ranking results. Therefore, the target second difference result is CG.

[0108] As a refinement of the above embodiments, when performing the difference calculation between the first voltage sequence and the reconstructed second voltage sequence to obtain the difference degree, it can be implemented in the following ways, but not limited to: calculating the mean of the at least one second difference result to obtain a mean result; determining the mean result as the difference degree; by calculating the mean of the second difference results, the average value of at least one second difference result can be obtained. The mean result reflects the average level of at least one second difference result, which can help to understand the average degree of difference between the first voltage sequence and the reconstructed second voltage sequence. Determining the mean result as the difference degree allows a specific numerical value to represent the average degree of difference, which helps to intuitively understand the difference in the data. And / or, calculating the variance of the at least one second difference result to obtain a variance result; determining the variance result as the difference degree. By calculating the variance of the second difference results, the dispersion or volatility of at least one second difference result can be understood. Determining the variance result as the difference degree can comprehensively consider the volatility of the data and provide another perspective for measuring the difference.

[0109] In practical applications, after calculating the difference between each first voltage in the first voltage sequence and its corresponding reconstructed second voltage to obtain at least one second difference result, the second difference result can be compared with the voltage difference across the relay when the relay is functioning normally to determine whether the relay is abnormal. This can be achieved, but is not limited to, by comparing the second difference result with a third difference result; the third difference result is the voltage difference across the relay when the relay is functioning normally; if the difference between the second difference result and the third difference result is greater than a second threshold, then the relay is determined to be abnormal. To detect relay abnormalities, under normal operating conditions, the voltage difference across the relay (the third difference result) should be expected and stable. When the relay malfunctions, such as due to poor contact, coil damage, or reverse voltage, the voltage difference across the relay will change. This change can be detected by comparing it with the voltage difference under normal conditions (the third difference result).

[0110] By calculating the difference between the voltage difference when the relay is actually working (the second difference result) and the voltage difference when it is operating normally (the third difference result), it can be determined whether the relay is malfunctioning. If this difference is greater than a second threshold, then the relay is considered to be malfunctioning and may require further inspection or replacement. The second threshold can be any value, and this embodiment does not limit the specific value of the second threshold.

[0111] To better understand the voltage difference between the two ends of a relay when it is functioning normally and when it is malfunctioning, such as... Figure 3 , Figure 4 As shown, Figure 3 This is a comparison diagram of the distribution of voltage difference before and after voltage reconstruction when a relay malfunctions, provided in an embodiment of this disclosure. Figure 4 This is a comparison diagram of the distribution of voltage difference before and after voltage reconstruction when a relay is in normal operation, provided by an embodiment of this disclosure. Figure 3 and Figure 4 The comparison reveals that when the relay is functioning normally, the voltage difference is relatively concentrated, while when the relay malfunctions, the voltage difference is relatively dispersed.

[0112] In summary, the embodiments disclosed herein can achieve the following effects:

[0113] This embodiment of the present disclosure obtains a first voltage sequence and a second voltage sequence of a relay, and reconstructs the second voltage sequence to obtain a reconstructed second voltage sequence. Based on the first voltage sequence and the reconstructed second voltage sequence, anomaly detection is performed on the relay. This realizes the reconstruction of the voltage at the other end of the relay based on the voltage at one end of the relay, reducing the voltage hysteresis at both ends of the relay and thus improving the accuracy of relay anomaly identification.

[0114] Corresponding to the relay fault detection method described above, this invention also proposes a relay fault detection device. Since the device embodiment of this invention corresponds to the method embodiment described above, details not disclosed in the device embodiment can be referred to in the method embodiment described above, and will not be repeated here.

[0115] Figure 5 This is a schematic diagram of the structure of a relay fault detection device provided in an embodiment of the present disclosure, as shown below. Figure 5 As shown, it includes:

[0116] The acquisition unit 31 is used to acquire a first voltage sequence and a second voltage sequence of the relay; the first voltage sequence is a sequence composed of voltages collected at one end of the relay according to a period, and the second voltage sequence is a sequence composed of voltages collected at the other end of the relay according to the period.

[0117] The reconstruction unit 32 is used to reconstruct the second voltage sequence based on the first voltage sequence to obtain the reconstructed second voltage sequence;

[0118] The detection unit 33 is used to perform anomaly detection on the relay based on the first voltage sequence and the reconstructed second voltage sequence.

[0119] The relay anomaly detection device provided in this disclosure acquires a first voltage sequence and a second voltage sequence of the relay. The first voltage sequence is a sequence composed of voltages collected periodically at one end of the relay, and the second voltage sequence is a sequence composed of voltages collected periodically at the other end of the relay. Using the first voltage sequence as a reference, the second voltage sequence is reconstructed to obtain a reconstructed second voltage sequence. Based on the first voltage sequence and the reconstructed second voltage sequence, anomaly detection is performed on the relay. Compared with related technologies, the embodiments of this disclosure, by acquiring the first and second voltage sequences of the relay, reconstructing the second voltage sequence to obtain a reconstructed second voltage sequence, and then performing anomaly detection on the relay based on the first voltage sequence and the reconstructed second voltage sequence, achieves the reconstruction of the voltage at the other end of the relay using the voltage at one end as a reference, reducing voltage hysteresis across the relay and thus improving the accuracy of relay anomaly identification.

[0120] Furthermore, in one possible implementation of the embodiments of this disclosure, such as Figure 6 As shown, the reconstruction unit 32 includes:

[0121] The acquisition module 321 is used to acquire a first voltage and acquire a target calculation range centered on a second voltage; the target calculation range includes voltages in at least two second voltage sequences, the first voltage being any voltage in the first voltage sequence, and the second voltage being the voltage in the second voltage sequence at the same acquisition time as the first voltage;

[0122] The first calculation module 322 is used to calculate the difference between the voltage in the target calculation range and the first voltage to obtain at least two first difference results;

[0123] The first determining module 323 is used to determine the voltage corresponding to the minimum value among the at least two first difference results as the reconstructed second voltage;

[0124] Module 324 is used to construct all the reconstructed second voltages into the reconstructed second voltage sequence.

[0125] Furthermore, in one possible implementation of the embodiments of this disclosure, such as Figure 6 As shown, the detection unit 33 includes:

[0126] The second calculation module 331 is used to perform difference calculation between the first voltage sequence and the reconstructed second voltage sequence to obtain the difference degree;

[0127] The second determining module 332 is used to determine that the relay is abnormal when the difference is greater than the first threshold.

[0128] Furthermore, in one possible implementation of the embodiments of this disclosure, such as Figure 6 As shown, the second calculation module 331 is also used for,

[0129] Calculate the difference between each first voltage in the first voltage sequence and the corresponding reconstructed second voltage to obtain at least one second difference result;

[0130] The at least one second difference result is ranked according to its numerical value to obtain the ranking result corresponding to each second difference result;

[0131] The second difference result corresponding to the target ranking result in the ranking results is determined as the difference degree.

[0132] Furthermore, in one possible implementation of the embodiments of this disclosure, such as Figure 6As shown, the second calculation module 331 is also used for,

[0133] The mean of the at least one second difference result is calculated to obtain the mean result;

[0134] The mean result is determined as the degree of difference;

[0135] And / or, perform variance calculation on the at least one second difference result to obtain the variance result;

[0136] The variance result is determined as the degree of difference.

[0137] Furthermore, in one possible implementation of the embodiments of this disclosure, such as Figure 6 As shown, the device further includes:

[0138] The comparison unit 34 is used to calculate the difference between each first voltage in the first voltage sequence and the corresponding reconstructed second voltage to obtain at least one second difference result, and then compare the second difference result with a third difference result; the third difference result is the voltage difference between the two ends of the relay when the relay is not abnormal;

[0139] The determining unit 35 is used to determine that the relay is abnormal when the difference between the second difference result and the third difference result is greater than a second threshold.

[0140] It should be noted that the foregoing explanation of the method embodiments also applies to the apparatus of the embodiments of this disclosure, and the principle is the same. Therefore, the embodiments of this disclosure are not limited thereto.

[0141] According to embodiments of this disclosure, this disclosure also provides a battery that includes a relay malfunction detection device as described in the foregoing embodiments.

[0142] According to embodiments of this disclosure, this disclosure also provides a vehicle that includes a relay malfunction detection device as described in the foregoing embodiments;

[0143] Or the battery described in the foregoing embodiments.

[0144] According to embodiments of this disclosure, this disclosure also provides an electronic device, a readable storage medium, and a computer program product.

[0145] Figure 7A schematic block diagram of an example electronic device 400 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0146] like Figure 7 As shown, device 400 includes a computing unit 401, which can perform various appropriate actions and processes based on a computer program stored in ROM (Read-Only Memory) 402 or a computer program loaded from storage unit 408 into RAM (Random Access Memory) 403. RAM 403 may also store various programs and data required for the operation of device 400. The computing unit 401, ROM 402, and RAM 403 are interconnected via bus 404. I / O (Input / Output) interface 405 is also connected to bus 404.

[0147] Multiple components in device 400 are connected to I / O interface 405, including: input unit 406, such as keyboard, mouse, etc.; output unit 407, such as various types of monitors, speakers, etc.; storage unit 408, such as disk, optical disk, etc.; and communication unit 409, such as network card, modem, wireless transceiver, etc. Communication unit 409 allows device 400 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0148] The computing unit 401 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, CPUs (Central Processing Units), GPUs (Graphics Processing Units), various special-purpose AI (Artificial Intelligence) computing chips, various computing units running machine learning model algorithms, DSPs (Digital Signal Processors), and any suitable processor, controller, microcontroller, etc. The computing unit 401 performs the various methods and processes described above, such as the relay fault detection method. For example, in some embodiments, the relay fault detection method may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on device 400 via ROM 402 and / or communication unit 409. When the computer program is loaded into RAM 403 and executed by the computing unit 401, one or more steps of the methods described above may be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to perform the aforementioned relay fault detection method by any other suitable means (e.g., by means of firmware).

[0149] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, FPGAs (Field Programmable Gate Arrays), ASICs (Application-Specific Integrated Circuits), ASSPs (Application-Specific Standard Products), SOCs (System-on-Chips), CPLDs (Complex Programmable Logic Devices), computer hardware, firmware, software, and / or combinations thereof. These various implementations may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0150] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0151] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, RAM, ROM, EPROM (Electrically Programmable Read-Only Memory) or flash memory, optical fiber, CD-ROM (Compact Disc Read-Only Memory), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0152] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (Cathode-Ray Tube) or LCD (Liquid Crystal Display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0153] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include LANs (Local Area Networks), WANs (Wide Area Networks), the Internet, and blockchain networks.

[0154] Computer systems can include clients and servers. Clients and servers are generally geographically separated and typically interact via communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. A server can be a cloud server, also known as a cloud computing server or cloud host, a hosting product within the cloud computing service ecosystem, addressing the shortcomings of traditional physical hosts and VPS (Virtual Private Server, or simply "VPS") services, such as high management difficulty and weak business scalability. Servers can also be servers for distributed systems or servers incorporating blockchain technology.

[0155] It's important to note that artificial intelligence (AI) is the study of enabling computers to simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, and planning). It encompasses both hardware and software technologies. AI hardware technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, and big data processing. AI software technologies primarily include computer vision, speech recognition, natural language processing, machine learning / deep learning, big data processing, and knowledge graph technologies.

[0156] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.

[0157] The specific embodiments described above do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.

Claims

1. A method for detecting relay malfunctions, characterized in that, include: Obtain a first voltage sequence and a second voltage sequence of the relay; the first voltage sequence is a sequence composed of voltages collected at one end of the relay according to a period, and the second voltage sequence is a sequence composed of voltages collected at the other end of the relay according to the period. Using the first voltage sequence as a reference, the second voltage sequence is reconstructed to obtain the reconstructed second voltage sequence; Anomaly detection is performed on the relay based on the first voltage sequence and the reconstructed second voltage sequence.

2. The method according to claim 1, characterized in that, The step of reconstructing the second voltage sequence based on the first voltage sequence to obtain the reconstructed second voltage sequence includes: Obtain a first voltage and a target calculation range centered on a second voltage; the target calculation range includes voltages in at least two second voltage sequences, where the first voltage is any voltage in the first voltage sequence and the second voltage is the voltage in the second voltage sequence at the same acquisition time as the first voltage; The voltages within the target calculation range are respectively compared with the first voltage to calculate the difference, resulting in at least two first difference results; The voltage corresponding to the minimum value among the at least two first difference results is determined as the reconstructed second voltage; All the reconstructed second voltages are used to construct the reconstructed second voltage sequence.

3. The method according to claim 2, characterized in that, The abnormality detection of the relay based on the first voltage sequence and the reconstructed second voltage sequence includes: The difference between the first voltage sequence and the reconstructed second voltage sequence is calculated to obtain the difference degree; If the difference is greater than the first threshold, then the relay is determined to be abnormal.

4. The method according to claim 3, characterized in that, The step of calculating the difference between the first voltage sequence and the reconstructed second voltage sequence to obtain the degree of difference includes: Calculate the difference between each first voltage in the first voltage sequence and the corresponding reconstructed second voltage to obtain at least one second difference result; The at least one second difference result is ranked according to its numerical value to obtain the ranking result corresponding to each second difference result; The second difference result corresponding to the target ranking result in the ranking results is determined as the difference degree.

5. The method according to claim 4, characterized in that, The step of calculating the difference between the first voltage sequence and the reconstructed second voltage sequence to obtain the degree of difference also includes: The mean of the at least one second difference result is calculated to obtain the mean result; The mean result is determined as the degree of difference; And / or, perform variance calculation on the at least one second difference result to obtain the variance result; The variance result is determined as the degree of difference.

6. The method according to claim 4, characterized in that, After calculating the difference between each first voltage in the first voltage sequence and the corresponding reconstructed second voltage to obtain at least one second difference result, the method further includes: The second difference result is compared with the third difference result; the third difference result is the voltage difference across the relay when the relay is normal. If the difference between the second difference result and the third difference result is greater than the second threshold, then the relay is determined to be abnormal.

7. A device for detecting relay malfunctions, characterized in that, include: An acquisition unit is used to acquire a first voltage sequence and a second voltage sequence of a relay; the first voltage sequence is a sequence composed of voltages collected at one end of the relay according to a period, and the second voltage sequence is a sequence composed of voltages collected at the other end of the relay according to the period. The reconstruction unit is used to reconstruct the second voltage sequence based on the first voltage sequence to obtain the reconstructed second voltage sequence. The detection unit is used to perform anomaly detection on the relay based on the first voltage sequence and the reconstructed second voltage sequence.

8. A battery, characterized in that, The battery includes the relay malfunction detection device as described in claim 7.

9. A vehicle, characterized in that, The vehicle includes a relay malfunction detection device as described in claim 7; Or the battery as described in claim 8.

10. An electronic device, characterized in that, include: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.

11. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-6.

12. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method according to any one of claims 1-6.