CN112019188B - Method for filtering electric equipment based on improved mean filtering algorithm - Google Patents
Method for filtering electric equipment based on improved mean filtering algorithm Download PDFInfo
- Publication number
- CN112019188B CN112019188B CN202010884726.1A CN202010884726A CN112019188B CN 112019188 B CN112019188 B CN 112019188B CN 202010884726 A CN202010884726 A CN 202010884726A CN 112019188 B CN112019188 B CN 112019188B
- Authority
- CN
- China
- Prior art keywords
- list
- data
- filtering
- values
- mean value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03H—IMPEDANCE NETWORKS, e.g. RESONANT CIRCUITS; RESONATORS
- H03H17/00—Networks using digital techniques
- H03H17/02—Frequency selective networks
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R19/00—Arrangements for measuring currents or voltages or for indicating presence or sign thereof
- G01R19/04—Measuring peak values or amplitude or envelope of ac or of pulses
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Mathematical Physics (AREA)
- Power Engineering (AREA)
- Supply And Distribution Of Alternating Current (AREA)
- Emergency Protection Circuit Devices (AREA)
Abstract
The invention relates to the field of electrical equipment monitoring, in particular to a method for filtering electrical equipment based on an improved mean filtering algorithm, which can retain data after each filtering, improve important support for subsequent data analysis, simplify the filtering algorithm and improve adaptability. The scheme is that a voltage zero phase mean value V0 of the equipment is obtained; finding a zero phase point value V1 of the measured data voltage amplitude; calculating the ratio P of V0 to V1, multiplying the current amplitudes of the measured points by P and storing the multiplied values as a list L1; constructing a dictionary by taking the subscripts of the elements in the list L1 as keys and taking the list L2 initialized to be empty as values; in the list L1, a starting point is determined according to the step S, N points are sequentially selected for mean filtering, the filtered data are correspondingly added to the list L2, an empty list L3 is initialized, a dictionary is traversed, the mean A3 of the list L2 corresponding to each key is calculated, A3 is added to the list L3, and the data in the list L3 are the mean filtered data. The filter is suitable for filtering of electrical equipment.
Description
Technical Field
The invention relates to the field of electrical equipment monitoring, in particular to a method for filtering electrical equipment based on an improved mean value filtering algorithm.
Background
In recent years, with the development of economy in China, the demand for electric power is increasingly increased; the problem of voltage stability is gradually apparent due to interference from a number of factors. The stability of the voltage is related to the operation working data of the electrical equipment, and the accuracy of the data naturally has important influence on the analysis equipment; on the other hand, due to different operation environments of the equipment, such as temperature, humidity, and starting of other equipment, interference is generated on equipment data, and the difficulty of analyzing the state of the equipment is further influenced by noise data.
At present, no effective solution for voltage fluctuation exists, and generally, test analysis is performed through a UPS (uninterrupted power supply); the scheme which can be adopted for the interference caused by the operating environment comprises mean filtering, median filtering, amplitude limiting filtering, filtering by using an optimization algorithm or a machine learning algorithm and the like, but the schemes have some problems, for example, when the mean filtering and the median filtering are used for filtering the operating data of the electric appliance, the data change trend can be covered, which is very important for analyzing the data; and when the state of the equipment is complex, the filtering of an optimization algorithm and a machine learning algorithm is extremely difficult.
Disclosure of Invention
The invention aims to provide a method for filtering electrical equipment based on an improved mean filtering algorithm, which can retain data after each filtering, improve important support for subsequent data analysis, simplify the filtering algorithm and improve adaptability.
The invention adopts the following technical scheme to realize the purpose, and the method for filtering the electric equipment based on the improved mean value filtering algorithm comprises the following steps:
step (1), acquiring a voltage zero phase mean value V0 of equipment;
step (2), actually measuring and collecting current and voltage amplitude data of equipment in production, and searching for an actually measured data voltage amplitude zero phase point value V1;
step (3), calculating the ratio P of V0 to V1, multiplying the current amplitudes of each actually measured point by P, and storing the current amplitudes as a compensated current amplitude data list L1;
step (4), using element subscripts in the list L1 as keys, initializing to be an empty list L2 as values, and enabling the keys to correspond to the values one by one to construct a dictionary;
step (5), in the list L1, determining a starting point according to the step length S, then sequentially selecting N points for mean filtering, and correspondingly adding the filtered data into the list L2, wherein N is more than or equal to 1, and S is more than or equal to 1;
and (6) initializing an empty list L3, traversing the dictionary, calculating a mean value A3 of a list L2 corresponding to each key, adding A3 into a list L3, wherein data in the list L3 are mean value filtered data.
Further, in step (1), the obtaining of the voltage zero-phase mean value V0 of the device includes: the method comprises the steps of collecting a plurality of voltage amplitude data of equipment as sample data, respectively calculating voltage zero phase values corresponding to a plurality of voltage amplitude values, and carrying out weighted summation on the plurality of voltage zero phase values to calculate a voltage zero phase mean value V0.
Further, in step (5), the adding the filtered data to the list L2 includes:
A. calculating the average value of every N points as A1, and respectively calculating the amplitude data ratio of A1 to the corresponding N points;
B. recording the weighted sum value of the ratios as T, and calculating the mean value of the T as A2;
C. multiplying the data of the A2 and the data of the corresponding N points respectively to obtain corresponding N values;
D. the subscripts corresponding to the N values are used as keys to look up the corresponding list L2 in the dictionary, respectively, and the corresponding N values are added to the list L2.
The invention is based on the method for filtering the electric equipment by the improved mean value filtering algorithm, and obtains the voltage zero phase mean value V0 of the equipment; actually measuring and collecting current and voltage amplitude data of equipment in production, and searching for an actually measured data voltage amplitude zero phase point value V1; calculating the ratio P of V0 to V1, multiplying the current amplitudes of each measured point by P, and storing the current amplitudes as a compensated current amplitude data list L1; using the subscripts of the elements in the list L1 as keys, initializing the subscripts to be an empty list L2 as values, and constructing a dictionary by one-to-one correspondence of the keys and the values; the list L1 is increased according to the step length S to select N points for mean filtering, and the filtered data is correspondingly added to the list
In L2, N is more than or equal to 1, and S is more than or equal to 1; initializing an empty list L3, traversing the dictionary, calculating the mean A3 of the list L2 corresponding to each key, and comparing the values
A3 is added to the list L3, and the data in the list L3 is mean filtered data. The method and the device realize retention of data after each filtering, improve important support for subsequent data analysis, simplify filtering algorithm for electrical equipment and improve adaptability.
Drawings
Fig. 1 is a flow chart of a method for filtering an electrical device based on an improved mean filtering algorithm according to the present invention.
Detailed Description
The invention relates to a method for filtering electric equipment based on an improved mean value filtering algorithm, wherein the flow chart of the method is shown in figure 1, and the method comprises the following steps:
step 101: acquiring a voltage zero-phase mean value V0 of the equipment;
step 102: actually measuring and collecting current and voltage amplitude data of equipment in production, and searching for an actually measured data voltage amplitude zero phase point value V1;
step 103: calculating the ratio P of V0 to V1, multiplying the current amplitudes of each measured point by P, and storing the current amplitudes as a compensated current amplitude data list L1;
step 104: using the subscripts of the elements in the list L1 as keys, initializing the subscripts to be an empty list L2 as values, and constructing a dictionary by one-to-one correspondence of the keys and the values;
step 105: in the list L1, a starting point is determined according to the step length S, then N points are sequentially selected for mean filtering, and the filtered data are correspondingly added into the list L2, wherein N is more than or equal to 1, and S is more than or equal to 1;
step 106: initializing an empty list L3, traversing the dictionary, calculating the average value A3 of the list L2 corresponding to each key, and adding A3 into the list L3, wherein the data in the list L3 are average filtered data.
In step 101, the specific implementation steps of obtaining the voltage zero-phase mean value V0 of the device include: the method comprises the steps of collecting a plurality of voltage amplitude data of equipment as sample data, respectively calculating voltage zero phase values corresponding to a plurality of voltage amplitude values, and carrying out weighted summation on the plurality of voltage zero phase values to calculate a voltage zero phase mean value V0. Therefore, the data acquired each time are based on the sample data, the voltage fluctuation and the interference of the equipment operation environment are reduced, and the analysis of the equipment operation data is facilitated.
In step 104, the subscripts of the elements in list L1 are used as keys, where the subscripts may be integers starting from 0,1,2, 3.; or an integer starting from 1,2,3.
In step 105, the specific implementation step of adding the filtered data to the list L2 correspondingly includes:
A. calculating the average value of every N points as A1, and respectively calculating the amplitude data ratio of A1 to the corresponding N points;
B. recording the weighted sum value of the ratios as T, and calculating the mean value of the T as A2;
C. multiplying the data of the A2 and the data of the corresponding N points respectively to obtain corresponding N values;
D. the subscripts corresponding to the N values are used as keys to look up the corresponding list L2 in the dictionary, respectively, and the corresponding N values are added to the list L2.
In step 105, in the list L1, a starting point is determined according to the step length S, and then N points are sequentially selected for mean filtering, where the value of the step length S is smaller than the data length of the list L1. The step length S and the selected N data are fixed each time, the step length S determines the starting point of the selected data, the compensation of the adjacent point can be realized, and the error is reduced; n determines the number of picks per time.
In conclusion, the invention realizes the retention of the data after each filtering, improves the important support for the subsequent data analysis, simplifies the filtering algorithm aiming at the electrical equipment and improves the adaptability.
Claims (2)
1. The method for filtering the electric equipment based on the improved mean value filtering algorithm is characterized by comprising the following steps of:
step (1), acquiring a voltage zero phase mean value V0 of equipment;
step (2), actually measuring and collecting current and voltage amplitude data of equipment in production, and searching for an actually measured data voltage amplitude zero phase point value V1;
step (3), calculating the ratio P of V0 to V1, multiplying the current amplitudes of each actually measured point by P, and storing the current amplitudes as a compensated current amplitude data list L1;
step (4), using element subscripts in the list L1 as keys, initializing to be an empty list L2 as values, and enabling the keys to correspond to the values one by one to construct a dictionary;
step (5), in the list L1, determining a starting point according to the step length S, then sequentially selecting N points for mean filtering, and correspondingly adding the filtered data into the list L2, wherein N is more than or equal to 1, and S is more than or equal to 1;
step (6), initializing an empty list L3, traversing a dictionary, calculating a mean value A3 of a list L2 corresponding to each key, adding A3 into a list L3, wherein data in the list L3 are mean value filtered data;
in step (5), the specific method for adding the filtered data to the list L2 correspondingly includes:
A. calculating the average value of every N points as A1, and respectively calculating the amplitude data ratio of A1 to the corresponding N points;
B. recording the weighted sum value of the ratios as T, and calculating the mean value of the T as A2;
C. multiplying the data of the A2 and the data of the corresponding N points respectively to obtain corresponding N values;
D. the subscripts corresponding to the N values are used as keys to look up the corresponding list L2 in the dictionary, respectively, and the corresponding N values are added to the list L2.
2. The method for filtering an electric device based on the improved mean value filtering algorithm according to claim 1, wherein in the step (1), the obtaining the voltage zero-phase mean value V0 of the device comprises: the method comprises the steps of collecting a plurality of voltage amplitude data of equipment as sample data, respectively calculating voltage zero phase values corresponding to a plurality of voltage amplitude values, and carrying out weighted summation on the plurality of voltage zero phase values to calculate a voltage zero phase mean value V0.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010884726.1A CN112019188B (en) | 2020-08-28 | 2020-08-28 | Method for filtering electric equipment based on improved mean filtering algorithm |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010884726.1A CN112019188B (en) | 2020-08-28 | 2020-08-28 | Method for filtering electric equipment based on improved mean filtering algorithm |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112019188A CN112019188A (en) | 2020-12-01 |
CN112019188B true CN112019188B (en) | 2022-03-08 |
Family
ID=73503802
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010884726.1A Active CN112019188B (en) | 2020-08-28 | 2020-08-28 | Method for filtering electric equipment based on improved mean filtering algorithm |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112019188B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101105411A (en) * | 2007-08-10 | 2008-01-16 | 中国航天科技集团公司第四研究院第四十四研究所 | Self-adaptive filtering method of dynamic axle weighing signal of vehicle |
CN109062861A (en) * | 2018-07-19 | 2018-12-21 | 淮海工学院 | A kind of data processing method based on sliding recursion limit filtration |
CN110635781A (en) * | 2019-09-26 | 2019-12-31 | 北京兴达智联科技有限公司 | Digital filtering calculation method |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102141403B (en) * | 2010-12-17 | 2012-12-19 | 北京航空航天大学 | Real-time mixed denoising method based on wavelet threshold, median filtering and mean filtering |
CN105093327B (en) * | 2015-06-24 | 2017-12-01 | 中国科学院地球化学研究所 | The vector mean filter method of multi-component earthquake data |
CN105105737B (en) * | 2015-08-03 | 2018-03-02 | 南京盟联信息科技股份有限公司 | Motion state rhythm of the heart method based on photoplethaysmography and spectrum analysis |
CN111532090B (en) * | 2020-05-12 | 2022-06-17 | 格陆博科技有限公司 | Four-wheel indirect tire pressure detection method based on electric vehicle motor wheel speed |
-
2020
- 2020-08-28 CN CN202010884726.1A patent/CN112019188B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101105411A (en) * | 2007-08-10 | 2008-01-16 | 中国航天科技集团公司第四研究院第四十四研究所 | Self-adaptive filtering method of dynamic axle weighing signal of vehicle |
CN109062861A (en) * | 2018-07-19 | 2018-12-21 | 淮海工学院 | A kind of data processing method based on sliding recursion limit filtration |
CN110635781A (en) * | 2019-09-26 | 2019-12-31 | 北京兴达智联科技有限公司 | Digital filtering calculation method |
Also Published As
Publication number | Publication date |
---|---|
CN112019188A (en) | 2020-12-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Wichakool et al. | Smart metering of variable power loads | |
WO2015047520A1 (en) | Electrical power grid monitoring apparatus, articles of manufacture, and methods of monitoring equipment of an electrical power grid | |
CN107480386B (en) | Test excitation optimization method based on response aliasing measurement and genetic algorithm | |
CN100353169C (en) | Method for testing electronic component and its instrument | |
WO2008020667A1 (en) | Method and apparatus for estimating electric load composition considering transformer and digital power meter adopting same | |
D'Arco et al. | ANOVA-based approach for DAC diagnostics | |
CN111639586A (en) | Non-invasive load identification model construction method, load identification method and system | |
CN111596254B (en) | Anomaly detection method, device, equipment and medium for energy metering chip | |
CN112396007A (en) | Non-invasive three-threshold detection method and system for load sudden change event of residents | |
CN112701675A (en) | Distribution station user phase identification method and system based on screening voltage data | |
Kallel et al. | On the design of multisine signals for maintaining stability condition in impedance spectroscopy measurements of batteries | |
CN112019188B (en) | Method for filtering electric equipment based on improved mean filtering algorithm | |
CN110781450B (en) | Bad data detection method and system for distribution feeder voltage measurement data | |
CN116070302A (en) | Cable insulation state prediction method and device | |
CN117748507A (en) | Distribution network harmonic access uncertainty assessment method based on Gaussian regression model | |
CN114016041A (en) | Oil-gas pipeline potential detection method and device for cathodic protection | |
CN110018417B (en) | Motor fault diagnosis method, system and medium based on radial stray magnetic flux detection | |
CN115660507B (en) | Intelligent load detection method and system for regional power | |
CN115343579B (en) | Power grid fault analysis method and device and electronic equipment | |
CN109327026B (en) | Low-voltage distribution network interval state estimation method | |
CN108880726B (en) | A kind of time deviation measurement method and system | |
CN109490625B (en) | Harmonic signal analysis method based on sliding window and semi-definite programming | |
CN111580016A (en) | Transformer direct-current magnetic bias detection device and method through vibration signal analysis | |
CN111737645A (en) | Power signal reconstruction method and system by using prediction matrix | |
CN110244144A (en) | A kind of arrester state monitoring method and AC Data Acquisition method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |