A method for detecting abnormal discharge of a portable mobile power supply
By calculating the abnormality index and discrimination index of the voltage frame, a voltage abnormality discrimination vector is constructed to determine the discharge abnormality of the portable mobile power supply, which solves the problem of low detection accuracy in the existing technology and improves the accuracy of power supply voltage fluctuation abnormality assessment.
Patent Information
- Application Number
- CN202410788555.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-06-19
AI Technical Summary
The existing abnormal discharge detection methods of portable mobile power supplies have low accuracy, and it is easy to misjudge short-term changes in the power of electrical equipment as abnormal discharges, affecting the normal use of the power supply.
By collecting voltage data, calculate the abnormality index and differentiation index of the voltage frame, construct the voltage abnormality differentiation vector, obtain the abnormal discharge voltage frame, and calculate the power supply abnormal discharge index based on the voltage frame abnormality index within the abnormal discharge detection window to determine whether a discharge abnormality has occurred. .
It improves the accuracy of abnormal discharge detection of portable mobile power supplies, avoids misjudgment of normal voltage fluctuations, and enhances the assessment of the abnormality of power supply voltage fluctuations.
Smart Images

Figure CN118362932B
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method for detecting abnormal discharge of a portable mobile power source. Background Art
[0002] With the rapid development of modern science and technology, portable electronic and electrical equipment are closely integrated with people's lives and work. Portable mobile power supplies are widely used to solve power supply problems in emergency situations such as outdoor sports due to their stable performance, long service life, and high energy density. With the continuous development and research of control technology, the performance of portable mobile power supplies is getting closer to people's needs.
[0003] During the use of portable power banks, as the power bank continues to age, the electrochemical reaction becomes sluggish, and the internal resistance of the power bank increases, causing the output voltage and power to slowly decrease, or even to fluctuate severely. Abnormal discharge of portable power banks can not only damage electrical equipment, but can also cause a short circuit inside the power bank, leading to thermal runaway and causing serious safety issues.
[0004] The existing abnormal discharge detection method of portable mobile power supplies only analyzes the instantaneous changes in data, which can easily misjudge the short-term changes in the power of electrical equipment as abnormal discharge and perform power-off protection, resulting in low accuracy in abnormal discharge detection of portable mobile power supplies, affecting the normal use of portable mobile power supplies. Summary of the invention
[0005] In view of the above, it is necessary to provide a portable mobile power supply abnormal discharge detection method, which improves the accuracy of portable mobile power supply abnormal discharge detection compared with traditional portable mobile power supply abnormal discharge detection methods.
[0006] A portable mobile power supply abnormal discharge detection method of the present application adopts the following technical solution:
[0007] An embodiment of the present application provides a method for detecting abnormal discharge of a portable mobile power source, the method comprising the following steps:
[0008] Collecting portable power supply voltage data and obtaining power supply voltage data frames;
[0009] Calculate the voltage frame abnormality index of each mobile power supply voltage data frame based on the degree of deviation of the voltage of each data point in each mobile power supply voltage data frame from the average value;
[0010] Based on the difference of voltages of adjacent mobile power supply voltage data frames, a forward voltage discrimination index and a backward voltage discrimination index of each mobile power supply voltage data frame are calculated, and a voltage anomaly discrimination vector of each mobile power supply voltage data frame is constructed in combination with a voltage frame anomaly index of each mobile power supply voltage data frame;
[0011] Acquire an abnormal discharge voltage frame according to the difference in signs of a forward voltage discrimination index and a backward voltage discrimination index of each mobile power supply voltage data frame and a voltage abnormality discrimination vector;
[0012] Constructing an abnormal discharge detection window for each abnormal discharge voltage frame, and obtaining a window abnormal discharge index for each abnormal discharge voltage frame according to voltage frame abnormality indexes of all mobile power supply voltage data frames within the abnormal discharge detection window;
[0013] The power supply abnormal discharge index is calculated according to the window abnormal discharge index of all abnormal discharge voltage frames to determine whether the portable mobile power supply has abnormal discharge.
[0014] In one embodiment, the voltage frame abnormality index of each mobile power supply voltage data frame is calculated, and the specific method includes:
[0015] Record the average value of the voltages of all data points in each mobile power supply voltage data frame as the intra-frame average voltage of each mobile power supply voltage data frame, and record the absolute value of the difference between the voltage of any data point in any mobile power supply voltage data frame and the intra-frame average voltage of any mobile power supply voltage data frame as the voltage deviation factor of any data point in any mobile power supply voltage data frame;
[0016] A nonlinear function is used to expand the value range of the voltage deviation factor of any data point to obtain a voltage deviation amplification factor of any data point;
[0017] The voltage frame anomaly index of any mobile power supply voltage data frame is positively correlated with the voltage deviation amplification factor of all data points in the any mobile power supply voltage data frame.
[0018] In one embodiment, the forward voltage discrimination index and the backward voltage discrimination index of each mobile power supply voltage data frame are calculated, and the specific method includes:
[0019] Record the difference between the average voltage in each mobile power supply voltage data frame and the adjacent previous mobile power supply voltage data frame as the forward voltage discrimination index of each mobile power supply voltage data frame;
[0020] The difference between the average voltage in each mobile power supply voltage data frame and the adjacent next mobile power supply voltage data frame is recorded as the backward voltage distinction index of each mobile power supply voltage data frame.
[0021] In one embodiment, the method for constructing the voltage anomaly distinguishing vector of each mobile power supply voltage data frame is:
[0022] Obtaining a forward abnormal voltage difference index and a backward abnormal voltage difference index of each mobile power supply voltage data frame based on a forward voltage distinction index, a backward voltage distinction index and a voltage frame abnormality index of each mobile power supply voltage data frame;
[0023] A vector formed by a forward abnormal voltage difference index and a backward abnormal voltage difference index of any mobile power supply voltage data frame is used as a voltage abnormality distinguishing vector of the any mobile power supply voltage data frame.
[0024] In one embodiment, the method of obtaining the forward abnormal voltage difference index and the backward abnormal voltage difference index of each mobile power supply voltage data frame includes:
[0025] Recording the voltage frame abnormality index of the previous mobile power supply voltage data frame adjacent to any mobile power supply voltage data frame as the forward voltage abnormality index of any mobile power supply voltage data frame, and recording the product of the forward voltage distinction index of any mobile power supply voltage data frame and the forward voltage abnormality index as the forward abnormal voltage difference index of any mobile power supply voltage data frame;
[0026] For the backward voltage discrimination index of each mobile power supply voltage data frame, the backward abnormal voltage difference index of each mobile power supply voltage data frame is obtained by adopting the same acquisition method as the forward abnormal voltage difference index.
[0027] In one embodiment, the abnormal discharge voltage frame is obtained, and the specific method includes:
[0028] The voltage anomaly discrimination vectors of all mobile power supply voltage data frames are used as input of the anomaly detection algorithm, and abnormal mobile power supply voltage data frames are output. The abnormal mobile power supply voltage data frames with the same signs of the forward voltage discrimination index and the backward voltage discrimination index are determined as abnormal discharge voltage frames.
[0029] In one embodiment, the specific method of constructing the abnormal discharge detection window of each abnormal discharge voltage frame is:
[0030] The preset number of mobile power supply voltage data frames adjacent to each abnormal discharge voltage frame are used as neighborhood reference data frames of each abnormal discharge voltage frame, and each abnormal discharge voltage frame and all corresponding neighborhood reference data frames are arranged in ascending order of time as the abnormal discharge detection window of each abnormal discharge voltage frame.
[0031] In one embodiment, the step of obtaining the window abnormal discharge index of each abnormal discharge voltage frame includes:
[0032] calculating an abnormal reference weight of each abnormal discharge voltage frame based on the complexity of voltage fluctuations within an abnormal discharge detection window of each abnormal discharge voltage frame;
[0033] The sum of the products of the voltage frame abnormality indexes of all mobile power supply voltage data frames within the abnormal discharge detection window of any abnormal discharge voltage frame and the abnormal reference weight is used as the window abnormal discharge index of any abnormal discharge voltage frame.
[0034] In one embodiment, the calculating of the abnormal reference weight of each abnormal discharge voltage frame includes:
[0035] The information entropy of the voltage frame abnormality index of all mobile power supply voltage data frames within the abnormal discharge detection window of each abnormal discharge voltage frame is used as the discharge fluctuation complexity index of each abnormal discharge voltage frame;
[0036] The standard deviation of the voltage frame abnormality index of all mobile power supply voltage data frames within the abnormal discharge detection window of each abnormal discharge voltage frame is used as the discharge fluctuation discrete index of each abnormal discharge voltage frame;
[0037] The abnormal reference weight of any abnormal discharge voltage frame is negatively correlated with the discharge fluctuation complexity index and the discharge fluctuation dispersion index of any abnormal discharge voltage frame.
[0038] In one embodiment, the calculating of the abnormal power discharge index to determine whether the portable mobile power source has abnormal discharge includes:
[0039] The power supply abnormal discharge index is positively correlated with the number of abnormal discharge voltage frames and the window abnormal discharge index of all abnormal discharge voltage frames.
[0040] When the normalized value of the power abnormal discharge index is greater than or equal to the preset power abnormal discharge alarm threshold, it is determined that the portable mobile power supply has abnormal discharge; otherwise, it is determined that the portable mobile power supply is discharging normally.
[0041] This application has the following beneficial effects:
[0042] The embodiment of the present application provides a method for detecting abnormal discharge of a portable mobile power supply, the method comprising: calculating a voltage deviation factor of each data point in each mobile power supply voltage data frame based on the degree of voltage deviation of each data point in each mobile power supply voltage data frame from an average value; considering that in the early stage of a portable mobile power supply failure, the voltage fluctuation caused by abnormal discharge is relatively slight, in order to improve the sensitivity of abnormal discharge detection of the portable mobile power supply, a nonlinear function is used to expand the value range of the voltage deviation factor, thereby obtaining a voltage frame abnormality index of each mobile power supply voltage data frame, thereby improving the accuracy of subsequent abnormal degree assessment of the voltage fluctuation of the portable mobile power supply; in order to distinguish the voltage fluctuation caused by the load change of the portable mobile power supply from the voltage fluctuation caused by aging or failure, the trend characteristics and mutation characteristics of the voltage fluctuation of the portable mobile power supply are analyzed, and the forward voltage distinction index of each mobile power supply voltage data frame is calculated based on the voltage difference of adjacent mobile power supply voltage data frames. The forward voltage discrimination index and the backward voltage discrimination index are combined with the voltage frame abnormality index of each mobile power supply voltage data frame to construct the voltage abnormality discrimination vector of each mobile power supply voltage data frame, further increasing the difference between the mobile power supply voltage data frame without fluctuation and the abnormal mobile power supply voltage data frame; the abnormal discharge voltage frame is obtained according to the difference in the signs of the forward voltage discrimination index and the backward voltage discrimination index of each mobile power supply voltage data frame and the voltage abnormality discrimination vector, thereby improving the reliability of the abnormal discharge voltage frame acquisition; the window abnormal discharge index of each abnormal discharge voltage frame is obtained according to the voltage frame abnormality index of all mobile power supply voltage data frames in the neighborhood of each abnormal discharge voltage frame, different weights are set for the abnormal discharge detection window according to the voltage fluctuation, and then the power supply abnormal discharge index is calculated to judge whether the portable mobile power supply has abnormal discharge, thereby avoiding misjudging the short-term change of the power of the electrical equipment as abnormal discharge, and improving the accuracy of the abnormal degree assessment of the voltage fluctuation of the portable mobile power supply. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0044] Figure 1 A schematic flow chart of a method for detecting abnormal discharge of a portable mobile power supply provided in one embodiment of the present application;
[0045] Figure 2 This is a schematic diagram of obtaining the abnormal discharge index of the power supply. DETAILED DESCRIPTION
[0046] In the description of the embodiments of the present application, words such as "exemplary", "or", "for example" and the like are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "or", "for example" and the like is intended to present related concepts in a concrete manner.
[0047] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by technicians in the technical field in this application. The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application. It should be understood that, unless otherwise specified in this application, " / " means or. For example, A / B can represent A or B. "And / or" in this application is just a description of the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. "At least one" means one or more. "Multiple" means two or more than two. For example, at least one of a, b or c can represent: a, b, c, a and b, a and c, b and c, a, b and c seven situations.
[0048] It should also be noted that the terms "first" and "second" in this application are used to distinguish similar objects, rather than to describe a specific order or sequence. The method disclosed in the embodiments of this application or the method shown in the flow chart includes one or more steps for implementing the method. Without departing from the scope of the claims, the execution order of multiple steps can be interchanged with each other, and some steps can also be deleted.
[0049] See also Figure 1 , which shows a flow chart of a portable mobile power supply abnormal discharge detection method provided by an embodiment of the present application, the method comprising the following steps:
[0050] Step S001: Collecting portable power bank voltage data to obtain a power bank voltage data frame.
[0051] A voltmeter is used to collect the voltage of the portable mobile power supply during the use of the portable mobile power supply as the portable mobile power supply voltage data. Since the voltage data contains the power consumption characteristics of different loads, in order to distinguish the load characteristics of the portable mobile power supply in different time periods, the portable mobile power supply voltage data is framed to obtain the mobile power supply voltage data frame.
[0052] It should be noted that the frame processing is a well-known technology and will not be elaborated in this embodiment. The length of each mobile power supply voltage data frame and the sampling frequency of the voltage of the portable mobile power supply are both preset values. In this embodiment, the length of each mobile power supply voltage data frame is 1000, and the sampling frequency of the voltage of the portable mobile power supply is 100 Hz. For the value of the data frame length and the setting of the sampling frequency of the voltage of the portable mobile power supply, as other implementation methods, the implementer can choose them at his own discretion, and this application does not impose any special restrictions on this.
[0053] Step S002: Calculate the voltage frame abnormality index of each mobile power supply voltage data frame based on the degree to which the voltage of each data point in each mobile power supply voltage data frame deviates from the average value.
[0054] Since the voltage fluctuation caused by abnormal discharge is relatively slight in the early stage of a portable mobile power failure, in order to improve the sensitivity of abnormal discharge detection of the portable mobile power, it is necessary to expand the voltage fluctuation characteristics.
[0055] Specifically, the average value of the voltages of all data points in each mobile power supply voltage data frame is recorded as the intra-frame average voltage of each mobile power supply voltage data frame, the absolute value of the difference between the voltage of any data point in any mobile power supply voltage data frame and the intra-frame average voltage of any mobile power supply voltage data frame is recorded as the voltage deviation factor of any data point in any mobile power supply voltage data frame, and a nonlinear function is used to expand the value range of the voltage deviation factor of any data point to obtain the voltage deviation amplification factor of any data point. The voltage frame abnormality index of any mobile power supply voltage data frame is positively correlated with the voltage deviation amplification factor of all data points in any mobile power supply voltage data frame.
[0056] It should be noted that the nonlinear function can be a logarithmic function, an exponential function, etc. A positive correlation refers to the relationship between an independent variable and a dependent variable. When the independent variable increases or decreases, the dependent variable will also increase or decrease, that is, the two variables change in the same direction. The positive correlation can be a multiplication relationship, an addition relationship, a proportional relationship, etc., and this application does not impose any special restrictions.
[0057] As an embodiment of the present application, the calculation result of an exponential function with the voltage deviation factor of any data point as the base and a preset amplification factor as the exponent is used as the voltage deviation amplification factor of any data point, and the average value of the voltage deviation amplification factors of all data points in any mobile power supply voltage data frame is recorded as the voltage frame anomaly index of any mobile power supply voltage data frame.
[0058] It should be further explained that the amplification factor is a preset value, which is 10 in this embodiment. As other implementations, the implementer can select it at will, and this application does not impose any special restrictions on this. When the voltage of each data point in the mobile power supply voltage data frame deviates more from the average value, it means that the voltage fluctuation in the mobile power supply voltage data frame is more likely to be abnormal, and the voltage frame abnormality index value is larger.
[0059] Step S003: Calculate the forward voltage discrimination index and the backward voltage discrimination index of each mobile power supply voltage data frame based on the voltage differences of adjacent mobile power supply voltage data frames, and construct the voltage anomaly discrimination vector of each mobile power supply voltage data frame in combination with the voltage frame anomaly index of each mobile power supply voltage data frame.
[0060] It should be noted that when the load of the portable mobile power supply changes, the voltage of the portable mobile power supply will also fluctuate slightly. Considering that the voltage fluctuation caused by the load change of the portable mobile power supply has a certain trend characteristic, and the fluctuation of the portable mobile power supply voltage caused by power supply aging or failure has a mutation characteristic, in order to avoid the load change of the portable mobile power supply affecting the abnormal discharge detection of the portable mobile power supply, the mutation characteristics of the fluctuations of adjacent mobile power supply voltage data frames are analyzed.
[0061] Specifically, the difference between the average voltage in the frame of each mobile power supply voltage data frame and the adjacent previous mobile power supply voltage data frame is recorded as the forward voltage distinction index of each mobile power supply voltage data frame, and the difference between the average voltage in the frame of each mobile power supply voltage data frame and the adjacent next mobile power supply voltage data frame is recorded as the backward voltage distinction index of each mobile power supply voltage data frame.
[0062] Furthermore, in order to increase the difference between a mobile power supply voltage data frame without fluctuations and an abnormal mobile power supply voltage data frame and avoid misjudging a mobile power supply voltage data frame without fluctuations as abnormal, the voltage frame abnormality index of the adjacent previous mobile power supply voltage data frame of any mobile power supply voltage data frame is recorded as the leading voltage abnormality index of any mobile power supply voltage data frame, and the product of the forward voltage distinction index of any mobile power supply voltage data frame and the leading voltage abnormality index is recorded as the forward abnormal voltage difference index of any mobile power supply voltage data frame. The method for obtaining the backward abnormal voltage difference index and the forward abnormal voltage difference index of each mobile power supply voltage data frame is the same.
[0063] A vector formed by a forward abnormal voltage difference index and a backward abnormal voltage difference index of any mobile power supply voltage data frame is used as a voltage abnormality distinguishing vector of the any mobile power supply voltage data frame.
[0064] Step S004: acquiring an abnormal discharge voltage frame according to the difference in the signs of the voltage abnormality distinguishing vector, the forward voltage distinguishing index and the backward voltage distinguishing index of each mobile power supply voltage data frame.
[0065] It should be noted that when the power supply is discharged normally and the output power remains unchanged, the output voltage of the power supply remains basically stable, and the absolute values of the forward voltage discrimination index and the backward voltage discrimination index of the corresponding mobile power supply voltage data frame are small; the voltage fluctuation caused by the load change of the portable mobile power supply has a trend, and the absolute values of the forward voltage discrimination index and the backward voltage discrimination index of the corresponding mobile power supply voltage data frame are large and have opposite signs; the voltage fluctuation caused by power supply failure or aging is sudden, and the absolute values of the forward voltage discrimination index and the backward voltage discrimination index of the corresponding mobile power supply voltage data frame are large and have the same sign.
[0066] Specifically, the voltage anomaly discrimination vectors of all mobile power supply voltage data frames are used as input of the anomaly detection algorithm, and abnormal mobile power supply voltage data frames are output, and abnormal mobile power supply voltage data frames with the same signs of forward voltage discrimination index and backward voltage discrimination index are determined as abnormal discharge voltage frames.
[0067] It should be noted that the anomaly detection algorithm is a well-known technology. This embodiment selects the LOF anomaly detection algorithm to perform anomaly detection on the mobile power supply voltage data frame. As other implementation methods, implementers can select them at their own discretion, and this application does not impose any special restrictions on this.
[0068] Step S005: construct an abnormal discharge detection window for each abnormal discharge voltage frame, and obtain a window abnormal discharge index for each abnormal discharge voltage frame according to voltage frame abnormality indexes of all mobile power supply voltage data frames within the abnormal discharge detection window.
[0069] Taking into account the initial stage of a portable mobile power failure, the duration of the voltage fluctuation caused by abnormal discharge is short, in order to further improve the accuracy of abnormal discharge detection of the portable mobile power supply, the last M mobile power supply voltage data frames adjacent to each abnormal discharge voltage frame are used as the neighborhood reference data frames of each abnormal discharge voltage frame, and each abnormal discharge voltage frame and all corresponding neighborhood reference data frames are arranged in ascending chronological order as the abnormal discharge detection window of each abnormal discharge voltage frame.
[0070] It should be noted that, since some abnormal discharge voltage frames are located at the end of the portable mobile power supply voltage data, there are data value missing in the corresponding abnormal discharge detection window, and the missing value is filled in the abnormal discharge detection window. The number M of mobile power supply voltage data frames in each abnormal discharge detection window is a preset value, and the missing value filling is a well-known technology. In this embodiment, M is 100, and the linear interpolation method is selected for missing value filling. For the number of mobile power supply voltage data frames in each abnormal discharge detection window and the selection of the missing value filling algorithm, as other implementation methods, the implementer can select them at his own discretion, and this application does not impose any special restrictions on this.
[0071] It should be further explained that, since the voltage fluctuations in different abnormal discharge detection windows are different, when evaluating the abnormal degree of discharge of the portable mobile power supply as a whole, different weights should be set according to the voltage fluctuations in the abnormal discharge detection windows.
[0072] Specifically, the information entropy of the voltage frame abnormality index of all mobile power supply voltage data frames in the abnormal discharge detection window of each abnormal discharge voltage frame is used as the discharge fluctuation complexity index of each abnormal discharge voltage frame, and the standard deviation of the voltage frame abnormality index of all mobile power supply voltage data frames in the abnormal discharge detection window of each abnormal discharge voltage frame is used as the discharge fluctuation discrete index of each abnormal discharge voltage frame. The abnormal reference weight of any abnormal discharge voltage frame is negatively correlated with the discharge fluctuation complexity index and the discharge fluctuation discrete index of any abnormal discharge voltage frame, respectively.
[0073] It should be understood that a negative correlation relationship indicates that the dependent variable will decrease as the independent variable increases, and the dependent variable will increase as the independent variable decreases. It can be a subtraction relationship, a division relationship, etc., which is determined by actual application.
[0074] As an embodiment of the present application, the product of the discharge fluctuation complexity index and the discharge fluctuation discrete index of each abnormal discharge voltage frame plus the adjustment parameter factor is recorded as the adjustment fluctuation multiplier coefficient of each abnormal discharge voltage frame, and the normalized value of the inverse of the adjustment fluctuation multiplier coefficient is recorded as the abnormal reference weight of each abnormal discharge voltage frame.
[0075] It should be noted that, when the discharge fluctuation complexity index and the discharge fluctuation discrete index of the abnormal discharge voltage frame are larger, it means that the fluctuations of the mobile power supply voltage data frames in the neighborhood of the abnormal discharge voltage frame are more complex and changeable. When evaluating the abnormal degree of discharge of the portable mobile power supply as a whole, the lower the confidence level should be given to the abnormal degree of the abnormal discharge voltage frame, and the smaller the abnormal reference weight value.
[0076] Further, the sum of the products of the voltage frame abnormality indexes and the abnormal reference weights of all mobile power supply voltage data frames within the abnormal discharge detection window of any abnormal discharge voltage frame is taken as the window abnormal discharge index of any abnormal discharge voltage frame.
[0077] Step S006: Calculate the power supply abnormal discharge index according to the window abnormal discharge index of all abnormal discharge voltage frames to determine whether the portable mobile power supply has abnormal discharge.
[0078] The power supply abnormal discharge index is positively correlated with the number of abnormal discharge voltage frames and the window abnormal discharge index of all abnormal discharge voltage frames. When the normalized value of the power supply abnormal discharge index is greater than or equal to the power supply abnormal discharge alarm threshold, it is determined that the portable mobile power supply has abnormal discharge, otherwise, it is determined that the portable mobile power supply is discharging normally.
[0079] As an embodiment of the present application, the sum of the window abnormal discharge indexes of all abnormal discharge voltage frames multiplied by the number of abnormal discharge voltage frames is used as the power supply abnormal discharge index. Figure 2 shown.
[0080] It should be noted that the power supply abnormal discharge alarm threshold is a manually preset value ranging from 0 to 1. In this embodiment, the power supply abnormal discharge alarm threshold is 0.5. As other implementations, the implementer can select it at will, and this application does not impose any special restrictions on this. When the number of abnormal discharge voltage frames is greater and the window abnormal discharge index of each abnormal discharge voltage frame is greater, it means that the discharge of the portable mobile power supply is more likely to be abnormal, and the power supply abnormal discharge index value is greater.
[0081] The embodiment of the present application provides a method for detecting abnormal discharge of a portable mobile power supply, the method comprising: calculating a voltage deviation factor of each data point in each mobile power supply voltage data frame based on the degree of voltage deviation of each data point in each mobile power supply voltage data frame from an average value; considering that in the early stage of a portable mobile power supply failure, the voltage fluctuation caused by abnormal discharge is relatively slight, in order to improve the sensitivity of abnormal discharge detection of the portable mobile power supply, a nonlinear function is used to expand the value range of the voltage deviation factor, thereby obtaining a voltage frame abnormality index of each mobile power supply voltage data frame, thereby improving the accuracy of subsequent abnormal degree assessment of the voltage fluctuation of the portable mobile power supply; in order to distinguish the voltage fluctuation caused by the load change of the portable mobile power supply from the voltage fluctuation caused by aging or failure, the trend characteristics and mutation characteristics of the voltage fluctuation of the portable mobile power supply are analyzed, and the forward voltage distinction index of each mobile power supply voltage data frame is calculated based on the voltage difference of adjacent mobile power supply voltage data frames. The forward voltage discrimination index and the backward voltage discrimination index are combined with the voltage frame abnormality index of each mobile power supply voltage data frame to construct the voltage abnormality discrimination vector of each mobile power supply voltage data frame, further increasing the difference between the mobile power supply voltage data frame without fluctuation and the abnormal mobile power supply voltage data frame; the abnormal discharge voltage frame is obtained according to the difference in the signs of the forward voltage discrimination index and the backward voltage discrimination index of each mobile power supply voltage data frame and the voltage abnormality discrimination vector, thereby improving the reliability of the abnormal discharge voltage frame acquisition; the window abnormal discharge index of each abnormal discharge voltage frame is obtained according to the voltage frame abnormality index of all mobile power supply voltage data frames in the neighborhood of each abnormal discharge voltage frame, different weights are set for the abnormal discharge detection window according to the voltage fluctuation, and then the power supply abnormal discharge index is calculated to judge whether the portable mobile power supply has abnormal discharge, thereby avoiding misjudging the short-term change of the power of the electrical equipment as abnormal discharge, and improving the accuracy of the abnormal degree assessment of the voltage fluctuation of the portable mobile power supply.
[0082] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
[0083] It is obvious to those skilled in the art that the present application is not limited to the details of the above exemplary embodiments, and that the present application can be implemented in other specific forms without departing from the basic features of the present application. Therefore, no matter from which point of view, the above embodiments of the present application should be regarded as exemplary and non-restrictive.
Claims
1. A method for detecting abnormal discharge of a portable mobile power source, characterized in that: The method comprises the following steps: Collecting portable power supply voltage data and obtaining power supply voltage data frames; Calculate the voltage frame abnormality index of each mobile power supply voltage data frame based on the degree of deviation of the voltage of each data point in each mobile power supply voltage data frame from the average value; Based on the difference of voltages of adjacent mobile power supply voltage data frames, a forward voltage discrimination index and a backward voltage discrimination index of each mobile power supply voltage data frame are calculated, and a voltage anomaly discrimination vector of each mobile power supply voltage data frame is constructed in combination with a voltage frame anomaly index of each mobile power supply voltage data frame; Acquire an abnormal discharge voltage frame according to the difference in signs of a forward voltage discrimination index and a backward voltage discrimination index of each mobile power supply voltage data frame and a voltage abnormality discrimination vector; Constructing an abnormal discharge detection window for each abnormal discharge voltage frame, and obtaining a window abnormal discharge index for each abnormal discharge voltage frame according to voltage frame abnormality indexes of all mobile power supply voltage data frames within the abnormal discharge detection window; The power supply abnormal discharge index is calculated according to the window abnormal discharge index of all abnormal discharge voltage frames to determine whether the portable mobile power supply has abnormal discharge.
2. A portable mobile power source abnormal discharge detection method according to claim 1, characterized in that: The specific method of calculating the voltage frame abnormality index of each mobile power supply voltage data frame includes: Record the average value of the voltages of all data points in each mobile power supply voltage data frame as the intra-frame average voltage of each mobile power supply voltage data frame, and record the absolute value of the difference between the voltage of any data point in any mobile power supply voltage data frame and the intra-frame average voltage of any mobile power supply voltage data frame as the voltage deviation factor of any data point in any mobile power supply voltage data frame; A nonlinear function is used to expand the value range of the voltage deviation factor of any data point to obtain a voltage deviation amplification factor of any data point; The voltage frame anomaly index of any mobile power supply voltage data frame is positively correlated with the voltage deviation amplification factor of all data points in the any mobile power supply voltage data frame.
3. A portable mobile power source abnormal discharge detection method according to claim 2, characterized in that: The specific method of calculating the forward voltage discrimination index and the backward voltage discrimination index of each mobile power supply voltage data frame includes: Record the difference between the average voltage in each mobile power supply voltage data frame and the adjacent previous mobile power supply voltage data frame as the forward voltage discrimination index of each mobile power supply voltage data frame; The difference between the average voltage in each mobile power supply voltage data frame and the adjacent next mobile power supply voltage data frame is recorded as the backward voltage distinction index of each mobile power supply voltage data frame.
4. A portable mobile power source abnormal discharge detection method according to claim 1, characterized in that: The method for constructing the voltage anomaly distinguishing vector of each mobile power supply voltage data frame is as follows: Obtaining a forward abnormal voltage difference index and a backward abnormal voltage difference index of each mobile power supply voltage data frame based on a forward voltage distinction index, a backward voltage distinction index and a voltage frame abnormality index of each mobile power supply voltage data frame; A vector formed by a forward abnormal voltage difference index and a backward abnormal voltage difference index of any mobile power supply voltage data frame is used as a voltage abnormality distinguishing vector of the any mobile power supply voltage data frame.
5. A portable mobile power source abnormal discharge detection method according to claim 4, characterized in that: The specific method of obtaining the forward abnormal voltage difference index and the backward abnormal voltage difference index of each mobile power supply voltage data frame includes: Recording the voltage frame abnormality index of the previous mobile power supply voltage data frame adjacent to any mobile power supply voltage data frame as the forward voltage abnormality index of any mobile power supply voltage data frame, and recording the product of the forward voltage distinction index of any mobile power supply voltage data frame and the forward voltage abnormality index as the forward abnormal voltage difference index of any mobile power supply voltage data frame; For the backward voltage discrimination index of each mobile power supply voltage data frame, the backward abnormal voltage difference index of each mobile power supply voltage data frame is obtained by adopting the same acquisition method as the forward abnormal voltage difference index.
6. A portable mobile power source abnormal discharge detection method according to claim 1, characterized in that: The specific method of obtaining the abnormal discharge voltage frame includes: The voltage anomaly discrimination vectors of all mobile power supply voltage data frames are used as input of the anomaly detection algorithm, and abnormal mobile power supply voltage data frames are output. The abnormal mobile power supply voltage data frames with the same signs of the forward voltage discrimination index and the backward voltage discrimination index are determined as abnormal discharge voltage frames.
7. A portable mobile power source abnormal discharge detection method according to claim 1, characterized in that: The specific method of constructing the abnormal discharge detection window of each abnormal discharge voltage frame is: The preset number of mobile power supply voltage data frames adjacent to each abnormal discharge voltage frame are used as neighborhood reference data frames of each abnormal discharge voltage frame, and each abnormal discharge voltage frame and all corresponding neighborhood reference data frames are arranged in ascending order of time as the abnormal discharge detection window of each abnormal discharge voltage frame.
8. A portable mobile power source abnormal discharge detection method according to claim 1, characterized in that: The step of obtaining the window abnormal discharge index of each abnormal discharge voltage frame includes: calculating an abnormal reference weight of each abnormal discharge voltage frame based on the complexity of voltage fluctuations within an abnormal discharge detection window of each abnormal discharge voltage frame; The sum of the products of the voltage frame abnormality indexes of all mobile power supply voltage data frames within the abnormal discharge detection window of any abnormal discharge voltage frame and the abnormal reference weight is used as the window abnormal discharge index of any abnormal discharge voltage frame.
9. A portable mobile power source abnormal discharge detection method according to claim 8, characterized in that: The calculating of the abnormal reference weight of each abnormal discharge voltage frame includes: The information entropy of the voltage frame abnormality index of all mobile power supply voltage data frames within the abnormal discharge detection window of each abnormal discharge voltage frame is used as the discharge fluctuation complexity index of each abnormal discharge voltage frame; The standard deviation of the voltage frame abnormality index of all mobile power supply voltage data frames within the abnormal discharge detection window of each abnormal discharge voltage frame is used as the discharge fluctuation discrete index of each abnormal discharge voltage frame; The abnormal reference weight of any abnormal discharge voltage frame is negatively correlated with the discharge fluctuation complexity index and the discharge fluctuation dispersion index of any abnormal discharge voltage frame.
10. A portable mobile power source abnormal discharge detection method according to claim 1, characterized in that: The calculating of the abnormal power discharge index and judging whether the portable mobile power source has abnormal discharge include: The power supply abnormal discharge index is positively correlated with the number of abnormal discharge voltage frames and the window abnormal discharge index of all abnormal discharge voltage frames. When the normalized value of the power abnormal discharge index is greater than or equal to the preset power abnormal discharge alarm threshold, it is determined that the portable mobile power supply has abnormal discharge; otherwise, it is determined that the portable mobile power supply is discharging normally.
