A method, device and apparatus for filtering monitoring data

The software filtering method that calculates the filter coefficient matrix and performs circular convolution and flipping solves the problem that the hardware filtering method cannot cope with unknown interference, reduces cost and power consumption, expands the applicable scope of monitoring terminals, and improves monitoring efficiency.

CN111740723BActive Publication Date: 2024-09-24WUHAN SUNSHINE POWER SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010536001.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-12
Publication Date
2024-09-24
Estimated Expiration
2040-06-12

AI Technical Summary

Technical Problem

In the existing technology, hardware filtering methods cannot effectively solve the impact of unknown interference or interference changes on equipment monitoring efficiency. At the same time, high bandwidth and high sampling rate requirements lead to increased cost and power consumption, limiting the scope of application of monitoring terminals.

Method used

By calculating the filter coefficient matrix and performing circular convolution and flipping, software filtering is implemented to solve the impact of unknown interference or interference changes, reduce costs and power consumption, and expand applicable scenarios.

Benefits of technology

It implements low-cost, low-power monitoring data filtering, is suitable for a variety of scenarios, and improves the efficiency and flexibility of monitoring terminals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111740723B
    Figure CN111740723B
Patent Text Reader

Abstract

The present application relates to a method, device and apparatus for filtering monitoring data, the method comprising the steps of: calculating a filter coefficient matrix; continuously collecting monitoring data; convolving the filter coefficient matrix and a column matrix formed by a number of continuous monitoring data to obtain a data point after initial filtering; forming an array of data points after initial filtering, and flipping it to obtain an array of flipped data points; selecting data points corresponding to the number of the filter coefficient matrix from the flipped data point array to form a flipped data point matrix, convolving the filter coefficient matrix and the flipped data point matrix to obtain data points after filtering again; forming an array of data points after filtering again, and flipping it to obtain a matrix of data points after flipping again, that is, obtaining the final filtered data points. The filtering method for monitoring data provided by the present application has low cost, low power consumption and a wide range of applications.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart grid technology, and in particular to a method, device and apparatus for filtering monitoring data. Background Art

[0002] At present, there are many types of online monitoring technologies, which have been widely used in various industries and fields. Taking the power system as an example, common online monitoring applications include: partial discharge monitoring, traveling wave monitoring, image and video monitoring, etc. Most of these monitoring technologies collect data on-site through monitoring terminals, and then upload the data to the central server for centralized processing, and finally output the diagnosis results. In some cases, the monitoring terminal can process the collected data locally through edge computing and directly output the final results, but due to the limitations of the data processing capabilities of the online monitoring terminal or the reliability of power supply, the prerequisite for this application is that the data processing is relatively simple and the algorithm complexity is not high.

[0003] In order to accurately monitor and extract the target quantity, before designing the hardware of the monitoring terminal, it is necessary to be familiar with key parameter indicators such as the measurement range and frequency band of the target quantity and environmental interference quantity, and then design the filtering circuit in a targeted manner. This approach can solve the impact of fixed-frequency interference on the measurement to a certain extent. However, the interference quantity in the actual environment is not fixed. This hardware filtering measure cannot solve the impact of unknown interference or interference changes, resulting in low equipment monitoring efficiency or even inability to monitor.

[0004] Another common practice is to ensure that the bandwidth of the monitoring terminal is wide enough to uniformly collect and upload target signals mixed with various interference signals, and filter out various interferences through various complex algorithms in the host computer server to finally obtain accurate target quantities. This method has very high requirements on the hardware of the monitoring terminal, requiring high-bandwidth sensors, conditioning circuits, and high-sampling rate acquisition systems. On the one hand, it significantly increases costs. On the other hand, while meeting high performance, it also brings about a significant increase in power consumption, and is not applicable to some occasions with stringent power supply requirements. Summary of the invention

[0005] The embodiments of the present application provide a method, device and apparatus for filtering monitoring data to solve the technical problems in related technologies that the filtering method on hardware cannot solve the impact of unknown interference or interference changes, as well as the high cost and high power consumption.

[0006] In a first aspect, a method for filtering monitoring data is provided, which comprises the steps of:

[0007] S1: Calculate a filter coefficient matrix according to the frequency response function of the filter, the filter parameters, and the sampling rate of the monitoring terminal, where the filter coefficient matrix is ​​a row matrix;

[0008] S2: continuously collect monitoring data and store the monitoring data in the form of a column matrix in the order of collection time;

[0009] S3: convolve the filter coefficient matrix and a column matrix formed by a plurality of continuous monitoring data to obtain a data point after initial filtering;

[0010] S4: after obtaining a number of data points after the initial filtering in sequence, forming a data point array after the initial filtering, and flipping the data point array after the initial filtering to obtain a flipped data point array;

[0011] S5: selecting data points corresponding to the number of the filter coefficient matrix from the flipped data point array to form a flipped data point matrix, and convolving the filter coefficient matrix and the flipped data point matrix to obtain re-filtered data points;

[0012] S6: After obtaining a number of re-filtered data points in sequence, a re-filtered data point array is formed, and the re-filtered data point array is flipped to obtain a re-flipped data point matrix, that is, the final filtered data points are obtained.

[0013] In some embodiments, the specific process of step S1 includes:

[0014] Setting filter parameters, wherein the filter parameters include filter order, high-pass cutoff frequency or low-pass cutoff frequency;

[0015] Normalizing the high-pass cutoff frequency or the low-pass cutoff frequency according to the monitoring terminal sampling rate;

[0016] The filter coefficient matrix is ​​calculated based on the window function and frequency response function of the filter.

[0017] In some embodiments, when the filter is a low-pass filter, the specific process of step S1 includes:

[0018] Setting filter parameters, wherein the filter parameters include filter order n1 and low-pass cutoff frequency fp2;

[0019] According to the sampling rate of the monitoring terminal, the low-pass cutoff frequency is normalized, and the calculation formula is as follows:

[0020]

[0021] Where Fs is the sampling rate of the monitoring terminal, fp2 is the low-pass cutoff frequency of the filter, and w is the normalized low-pass cutoff frequency;

[0022] The filter coefficient b(n) is calculated based on the filter's window function and frequency response function. The calculation formula is as follows:

[0023] when hour

[0024]

[0025] when hour,

[0026] Where b(n) is the filter coefficient, n1 is the filter order, and w is the normalized high-pass cutoff frequency. is the frequency response function of the low-pass filter, is the Hamming window function, n is a positive integer between 1 and n1+1;

[0027] After obtaining n1+1 filter coefficients, a filter coefficient matrix B=[b(1), b(2)...b(n1+1)] is formed.

[0028] In some embodiments, in step S3, the filter coefficient matrix is ​​convolved with a column matrix formed by a plurality of continuous monitoring data to obtain a calculation formula for a data point after initial filtering:

[0029] y(n)=B·X(n)

[0030]

[0031] Wherein, B is the filter coefficient matrix, n1 is the order of the filter, x(n) is the nth monitoring data, x(n1+n) is the n1+nth monitoring data, x(n1+n-1) is the n1+n-1th monitoring data, y(n) is the nth data point after initial filtering, and n is a positive integer greater than or equal to 1.

[0032] In some embodiments, the specific process of step S4 includes:

[0033] According to the preset data length N, N+n1 data points after the initial filtering are obtained in sequence, which are recorded as y(1), y(2), ... y(N+n1) respectively, forming an array Y of data points after the initial filtering;

[0034] When the length of the data point array Y reaches N+n1+1, the data point array Y is flipped to obtain the flipped data point array Y'. The calculation formula is:

[0035] Y'(n)=Y(N+n1+1-n)

[0036] Wherein, Y(N+n1+1-n) is the N+n1+1-nth value in the data point array after the initial filtering, and Y'(n) is the nth value in the data point array after the flip.

[0037] In some embodiments, the specific process of step S5 includes:

[0038] Select n1 data points sequentially from the flipped data point array Y' to form the flipped data point matrix C. The calculation formula is:

[0039]

[0040] Where C(n) is the nth flipped data point matrix, Y'(n) is the nth value in the flipped data point array, Y'(n1+n-1) is the n1+n-1th value in the flipped data point array, and Y'(n1+n) is the n1+nth value in the flipped data point array;

[0041] The filter coefficient matrix is ​​convolved with the flipped data point matrix to obtain the filtered data points again. The calculation formula is:

[0042] Z'(n)=B·C(n)

[0043] Where Z'(n) is the nth data point after filtering again, B is the filter coefficient matrix, and C(n) is the nth flipped data point matrix.

[0044] In some embodiments, the specific process of step S6 includes:

[0045] Obtain N re-filtered data points in sequence, which are denoted as Z'(1), Z'(2), ... Z'(N), to form a re-filtered data point array Z';

[0046] The re-filtered data point array Z' is flipped to obtain the flipped re-filtered data point array Z, and the calculation formula is:

[0047] Z(n)=Z'(N+1-n)

[0048] Z'(N+1-n) is the N+1-nth value in the data point array after re-filtering, and Z(n) is the nth value in the data point array after flipping and re-filtering;

[0049] Output the flipped and filtered data point array Z as the final filtered data point.

[0050] In some embodiments, the preset data length N is a positive integer greater than n1.

[0051] In a second aspect, a filtering device for monitoring data is provided, which comprises a processor, a memory, and a filtering program for monitoring data stored in the memory and executable by the processor, wherein when the filtering program for monitoring data is executed by the processor, the steps of the above-mentioned filtering method for monitoring data are implemented.

[0052] In a third aspect, a monitoring data filtering device is provided, comprising:

[0053] The host computer is used to calculate the filter coefficient matrix according to the frequency response function of the filter, the filter parameters, and the sampling rate of the monitoring terminal, wherein the filter coefficient matrix is ​​a row matrix;

[0054] A monitoring terminal is used to continuously collect monitoring data and store the monitoring data in the form of a column matrix in the order of collection time; convolve the filter coefficient matrix and the column matrix formed by a number of continuous monitoring data to obtain a data point after initial filtering; after obtaining a number of data points after initial filtering in sequence, form an array of data points after initial filtering, and flip the array of data points after initial filtering to obtain a flipped data point array; select data points corresponding to the number of the filter coefficient matrix from the flipped data point array to form a flipped data point matrix, convolve the filter coefficient matrix and the flipped data point matrix to obtain re-filtered data points; after obtaining a number of re-filtered data points in sequence, form a re-filtered data point array, and flip the re-filtered data point array to obtain a re-flipped data point matrix, that is, obtain the final filtered data points.

[0055] The technical solution provided by this application has the following beneficial effects: low cost, low power consumption, and wide application range.

[0056] An embodiment of the present application provides a method for filtering monitoring data, which first calculates the filter coefficient matrix, then performs circular convolution and flipping to obtain the final filtered data. Filtering is implemented in this software manner, which can solve the impact of unknown interference or interference changes. Moreover, software implementation has low cost, low power consumption, and a wider range of applicable scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments 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 creative work.

[0058] Figure 1A flowchart of a method for filtering monitoring data provided in an embodiment of the present application;

[0059] Figure 2 A specific flow chart of step S1 in the monitoring data filtering method provided in an embodiment of the present application;

[0060] Figure 3 A data schematic diagram of steps S2 to S6 in the monitoring data filtering method provided in an embodiment of the present application;

[0061] Figure 4 A schematic diagram of the structure of a filtering device for monitoring data provided in an embodiment of the present application. DETAILED DESCRIPTION

[0062] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0063] See also Figure 1 As shown, the present application provides a method for filtering monitoring data, which includes the steps of:

[0064] S1: Calculate a filter coefficient matrix according to the frequency response function of the filter, the filter parameters, and the sampling rate of the monitoring terminal, where the filter coefficient matrix is ​​a row matrix;

[0065] S2: continuously collect monitoring data and store the monitoring data in the form of a column matrix in the order of collection time;

[0066] S3: convolve the filter coefficient matrix and a column matrix formed by a plurality of continuous monitoring data to obtain a data point after initial filtering;

[0067] S4: after obtaining a number of data points after the initial filtering in sequence, forming a data point array after the initial filtering, and flipping the data point array after the initial filtering to obtain a flipped data point array;

[0068] S5: selecting data points corresponding to the number of the filter coefficient matrix from the flipped data point array to form a flipped data point matrix, and convolving the filter coefficient matrix and the flipped data point matrix to obtain re-filtered data points;

[0069] S6: After obtaining a number of re-filtered data points in sequence, a re-filtered data point array is formed, and the re-filtered data point array is flipped to obtain a re-flipped data point matrix, that is, the final filtered data points are obtained.

[0070] In an embodiment of the present application, the above-mentioned step S1 is executed by the host computer, and steps S2 to S6 are executed by the monitoring terminal. After completing step S1, the host computer obtains the filter coefficient matrix and sends the filter coefficient matrix to the monitoring terminal. The monitoring terminal then performs subsequent filtering operations based on the received filter coefficient matrix.

[0071] The monitoring data filtering method of the embodiment of the present application first calculates the filter coefficient matrix, and then performs circular convolution and flipping to obtain the final filtered data. By implementing filtering in this software manner, the impact of unknown interference or interference changes can be resolved. Moreover, software implementation has low cost, low power consumption, and a wider range of applicable scenarios.

[0072] See also Figure 2 As shown, further, in the embodiment of the present application, the specific process of step S1 includes:

[0073] S101: Setting filter parameters, where the filter parameters include filter order, high-pass cutoff frequency or low-pass cutoff frequency;

[0074] S102: normalizing the high-pass cutoff frequency or the low-pass cutoff frequency according to the monitoring terminal sampling rate;

[0075] S103: Calculate a filter coefficient matrix according to the window function and frequency response function of the filter.

[0076] In the embodiment of the present application, taking a low-pass filter as an example, when the filter is a low-pass filter, the specific process of step S1 includes:

[0077] Setting filter parameters, wherein the filter parameters include filter order n1 and low-pass cutoff frequency fp2;

[0078] According to the sampling rate of the monitoring terminal, the low-pass cutoff frequency is normalized, and the calculation formula is as follows:

[0079]

[0080] Where Fs is the sampling rate of the monitoring terminal, fp2 is the low-pass cutoff frequency of the filter, and w is the normalized low-pass cutoff frequency;

[0081] The filter coefficient b(n) is calculated based on the filter's window function and frequency response function. The calculation formula is as follows:

[0082] when hour

[0083]

[0084] when hour,

[0085] Where b(n) is the filter coefficient, n1 is the filter order, and W is the normalized high-pass cutoff frequency. is the frequency response function of the low-pass filter, is the Hamming window function, n is a positive integer between 1 and n1+1;

[0086] After obtaining n1+1 filter coefficients, they are recorded as b(1), b(2)…b(n1+1) respectively, forming a filter coefficient matrix B=[b(1), b(2)…b(n1+1)].

[0087] In practical applications, since there are many types of filters, different types of filters have corresponding Hamming window functions and different types of cutoff frequencies. For example, for a bandpass filter, the set parameters include the low-pass cutoff frequency and the high-pass cutoff frequency. Both cutoff frequencies are normalized, and the filter coefficient matrix is ​​obtained using the window function and frequency response function of the bandpass filter. The above steps can be adaptively modified.

[0088] See also Figure 3 As shown, further, in an embodiment of the present application, the implementation process of continuously collecting monitoring data in step S2 and storing the monitoring data in sequence in the form of a column matrix in the order of collection time is as follows: the monitoring terminal sets a cache with a storage capacity greater than n1+1 data points in the internal cache, where n1 is the order of the filter, starts continuous rolling collection of monitoring data, and saves the collected monitoring data into the internal cache area, and when the monitoring data in the cache area reaches n1+1, performs the subsequent step S3 operation. The monitoring data obtained in step S2 are recorded as x(1), x(2), ... x(n1+1), x(n1+2), x(n1+3), ... etc. in sequence. These monitoring data are represented by array X, X=(x(1), x(2), ... x(n1+1), x(n1+2), x(n1+3), ...), that is, X(1)=x(1), X(n1+1)=x(n1+1), X(n1+1) represents the n1+1th value in array X, and x(n1+1) is the n1+1th monitoring data collected. The monitoring data in this application should be understood as the collected data points.

[0089] Furthermore, in the embodiment of the present application, in step S3, the filter coefficient matrix is ​​convolved with a column matrix formed by a plurality of continuous monitoring data to obtain a calculation formula for a data point after initial filtering:

[0090] y(n)=B·X(n)

[0091]

[0092] Wherein, B is the filter coefficient matrix, n1 is the order of the filter, x(n) is the nth monitoring data, x(n1+n) is the n1+nth monitoring data, x(n1+n-1) is the n1+n-1th monitoring data, y(n) is the nth data point after initial filtering, and n is a positive integer greater than or equal to 1.

[0093] Correspondingly, the specific process of the above step S3 is:

[0094] When the monitoring data in the cache area reaches n1+1, the calculation of the data points after the initial filtering begins. The calculation formula for the first data after the initial filtering is:

[0095] y(1)=B·X(1)

[0096]

[0097] That is, y(1)=b(1)x(n1+1)+b(2)x(n1)+…+b(n1+1)x(1)

[0098] Where y(1) is the first data point after initial filtering, x(n1+1) is the n1+1th monitoring data, x(n1) is the n1th monitoring data, x(1) is the first monitoring data, and B is the filter coefficient matrix.

[0099] When the n1+2th monitoring data is obtained, a circular rolling storage mechanism is adopted, x(1) is cleared, and x(n1+2) enters the internal cache area, and so on, y(2), y(3), etc. can be calculated. The calculation formula is:

[0100] y(2)=b(1)x(n1+2)+b(2)x(n1+1)+...+b(n1+1)x(2)

[0101] y(3)=b(1)x(n1+3)+b(2)x(n1+2)+…+b(n1+1)x(3)

[0102] Furthermore, in the embodiment of the present application, the specific process of step S4 includes:

[0103] According to the preset data length N, N+n1 data points after the initial filtering are obtained in sequence, which are recorded as y(1), y(2), ... y(N+n1) respectively, forming an array Y of data points after the initial filtering;

[0104] When the length of the data point array Y reaches N+n1+1, the data point array Y is flipped to obtain the flipped data point array Y'. The calculation formula is:

[0105] Y'(n)=Y(N+n1+1-n)

[0106] Wherein, Y(N+n1+1-n) is the N+n1+1-nth value in the data point array after the initial filtering, and Y'(n) is the nth value in the data point array after the flip.

[0107] Specifically, taking the first flip as an example, the process of flipping the data point array Y to obtain the flipped data point array Y' is:

[0108] The obtained y(1), y(2), ... y(N+n1) form an array Y, and each value of the array Y corresponds to y(1), y(2), ... y(N+n1), that is, Y(1) = y(1), Y(N+n1) = y(N+n1), Y(N+n1) represents the N+n1th value of the array Y, and y(N+n1) is the N+n1th data point after the initial filtering;

[0109] The data point array Y is flipped from beginning to end, that is, the first value is swapped with the last value, the second value is swapped with the second to last value, and so on. Each value of the flipped data point array Y' is recorded as Y'(1), Y'(2), ... Y'(N+n1), where Y'(1) = Y(N+n1) = y(N+n1), Y'(2) = Y(N+n1-1) = y(N+n1-1).

[0110] Furthermore, in the embodiment of the present application, the specific process of step S5 includes:

[0111] Select n1 data points sequentially from the flipped data point array Y' to form the flipped data point matrix C. The calculation formula is:

[0112]

[0113] Where C(n) is the nth flipped data point matrix, Y'(n) is the nth value in the flipped data point array, Y'(n1+n-1) is the n1+n-1th value in the flipped data point array, and Y'(n1+n) is the n1+nth value in the flipped data point array;

[0114] The filter coefficient matrix is ​​convolved with the flipped data point matrix to obtain the filtered data points again. The calculation formula is:

[0115] Z'(n)=BC(n)

[0116] Where Z'(n) is the nth data point after filtering again, B is the filter coefficient matrix, and C(n) is the nth flipped data point matrix, as follows:

[0117] Z'(1)=b(1)Y'(n1+1)+b(2)Y'(n1)+...+b(n1+1)Y'(1);

[0118] Z'(2)=b(1)Y'(n1+2)+b(2)Y'(n1)+…+b(n1+1)Y'(2)

[0119] Z'(3)=b(1)Y'(n1+3)+b(2)Y'(n1)+…+b(n1+1)Y'(3)

[0120] …

[0121] Z'(N)=b(1)Y'(n1+N)+b(2)Y'(n1+N-1)+...+b(n1+1)Y'(N)

[0122] Furthermore, in the embodiment of the present application, the specific process of step S6 includes:

[0123] Obtain N re-filtered data points in sequence, which are denoted as Z'(1), Z'(2), ... Z'(N), to form a re-filtered data point array Z';

[0124] The re-filtered data point array Z' is flipped to obtain the flipped re-filtered data point array Z, and the calculation formula is:

[0125] Z(n)=Z'(N+1-n)

[0126] Z'(N+1-n) is the N+1-nth value in the data point array after re-filtering, and Z(n) is the nth value in the data point array after flipping and re-filtering;

[0127] Output the flipped and filtered data point array Z as the final filtered data point.

[0128] In the embodiment of the present application, completing the above steps S4 to S6 will obtain the final filtered data. In order to obtain the next final filtered data, Y(N+1)...Y(2N+n1) is selected during calculation, and the above operations of S4 to S6 are repeated to calculate the next final filtered data. This can be deduced by analogy. According to actual needs, multiple final filtered data can be obtained.

[0129] In the embodiment of the present application, n1 is the filter order, and n1 is a positive integer greater than or equal to 1. The larger n1 is, the better the filtering effect is, but the greater the amount of calculation is. Conversely, the smaller n1 is, the worse the filtering effect is, but the amount of calculation is lower. The appropriate n1 value is selected according to the actual situation and the actual situation.

[0130] In the embodiment of the present application, the preset data length N is a positive integer greater than n1, and can be set according to actual needs and is not limited here.

[0131] An embodiment of the present application also provides a filtering device for monitoring data, which includes a processor, a memory, and a filtering program for monitoring data stored in the memory and executable by the processor, wherein when the filtering program for monitoring data is executed by the processor, the steps of the above-mentioned filtering method for monitoring data are implemented.

[0132] See also Figure 4 As shown, an embodiment of the present application also provides a filtering device for monitoring data including a host computer and a monitoring terminal.

[0133] The host computer is used to calculate the filter coefficient matrix according to the frequency response function of the filter, the filter parameters, and the sampling rate of the monitoring terminal, and the filter coefficient matrix is ​​a row matrix;

[0134] A monitoring terminal is used to continuously collect monitoring data and store the monitoring data in the form of a column matrix in the order of collection time; convolve the filter coefficient matrix and the column matrix formed by a number of continuous monitoring data to obtain a data point after initial filtering; after obtaining a number of data points after initial filtering in sequence, form an array of data points after initial filtering, and flip the array of data points after initial filtering to obtain a flipped data point array; select data points corresponding to the number of the filter coefficient matrix from the flipped data point array to form a flipped data point matrix, convolve the filter coefficient matrix and the flipped data point matrix to obtain re-filtered data points; after obtaining a number of re-filtered data points in sequence, form a re-filtered data point array, and flip the re-filtered data point array to obtain a re-flipped data point matrix, that is, obtain the final filtered data points.

[0135] The filtering device for monitoring data in the embodiment of the present application calculates the filter coefficient matrix after setting the filter parameters on the host computer, and sends the filter coefficient matrix to the monitoring terminal, which then performs circular convolution and flipping to obtain the final filtered data. Filtering is achieved in this software manner, which can solve the impact of unknown interference or interference changes. Moreover, software implementation has low cost, low power consumption, and a wider range of applicable scenarios.

[0136] In the description of the present application, it should be noted that the terms "upper", "lower", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application. Unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be a connection between the two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances.

[0137] It should be noted that, in this application, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0138] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.

Claims

1. A method for filtering monitoring data, characterized in that: It includes the steps of: S1: Calculate a filter coefficient matrix according to the frequency response function of the filter, the filter parameters, and the sampling rate of the monitoring terminal, where the filter coefficient matrix is ​​a row matrix; S2: continuously collect monitoring data and store the monitoring data in the form of a column matrix in the order of collection time; S3: convolve the filter coefficient matrix and a column matrix formed by a plurality of continuous monitoring data to obtain a data point after initial filtering; S4: after obtaining a number of data points after the initial filtering in sequence, forming a data point array after the initial filtering, and flipping the data point array after the initial filtering to obtain a flipped data point array; S5: selecting data points corresponding to the number of the filter coefficient matrix from the flipped data point array to form a flipped data point matrix, and convolving the filter coefficient matrix and the flipped data point matrix to obtain re-filtered data points; S6: after obtaining a number of re-filtered data points in sequence, forming a re-filtered data point array, and flipping the re-filtered data point array to obtain a re-flipped data point matrix, that is, obtaining the final filtered data points; In step S3, the filter coefficient matrix is ​​convolved with a column matrix formed by a plurality of continuous monitoring data to obtain a calculation formula for a data point after initial filtering: y(n)=B·X(n) Wherein, B is the filter coefficient matrix, n1 is the order of the filter, x(n) is the nth monitoring data, x(n1+n) is the n1+nth monitoring data, x(n1+n-1) is the n1+n-1th monitoring data, y(n) is the nth data point after initial filtering, and n is a positive integer greater than or equal to 1; The specific process of step S3 is: When the monitoring data in the cache area reaches n1+1, the calculation of the data points after the initial filtering begins. The calculation formula for the first data after the initial filtering is: y(1)=B·X(1) y(1)=b(1)x(n1+1)+b(2)x(n1)+…+b(n1+1)x(1) Where y(1) is the first data point after initial filtering, x(n1+1) is the n1+1th monitoring data, x(n1) is the n1th monitoring data, x(1) is the first monitoring data, and B is the filter coefficient matrix; When the n1+2th monitoring data is obtained, a circular rolling storage mechanism is adopted, x(1) is cleared, x(n1+2) enters the cache area, and so on, y(2) and y(3) are calculated, and the calculation formula is: y(2)=b(1)x(n1+2)+b(2)x(n1+1)+...+b(n1+1)x(2) y(3)=b(1)x(n1+3)+b(2)x(n1+2)+…+b(n1+1)x(3).

2. The method for filtering monitoring data according to claim 1, characterized in that: The specific process of step S1 includes: Setting filter parameters, wherein the filter parameters include filter order, high-pass cutoff frequency or low-pass cutoff frequency; Normalizing the high-pass cutoff frequency or the low-pass cutoff frequency according to the monitoring terminal sampling rate; The filter coefficient matrix is ​​calculated based on the window function and frequency response function of the filter.

3. The method for filtering monitoring data according to claim 2, characterized in that: When the filter is a low-pass filter, the specific process of step S1 includes: Setting filter parameters, wherein the filter parameters include filter order n1 and low-pass cutoff frequency fp2; According to the sampling rate of the monitoring terminal, the low-pass cutoff frequency is normalized, and the calculation formula is as follows: Where Fs is the sampling rate of the monitoring terminal, fp2 is the low-pass cutoff frequency of the filter, and w is the normalized low-pass cutoff frequency; The filter coefficient b(n) is calculated based on the filter's window function and frequency response function. The calculation formula is as follows: when hour when hour, Where b(n) is the filter coefficient, n1 is the filter order, and w is the normalized high-pass cutoff frequency. is the frequency response function of the low-pass filter, is the Hamming window function, n is a positive integer between 1 and n1+1; After obtaining n1+1 filter coefficients, a filter coefficient matrix B=[b(1), b(2)...b(n1+1)] is formed.

4. The method for filtering monitoring data according to claim 1, characterized in that: The specific process of step S4 includes: According to the preset data length N, N+n1 data points after the initial filtering are obtained in sequence, which are recorded as y(1), y(2), ... y(N+n1) respectively, forming an array Y of data points after the initial filtering; When the length of the data point array Y reaches N+n1+1, the data point array Y is flipped to obtain the flipped data point array Y'. The calculation formula is: Y'(n)=Y(N+n1+1-n) Wherein, Y(N+n1+1-n) is the N+n1+1-nth value in the data point array after the initial filtering, and Y'(n) is the nth value in the data point array after the flip.

5. The method for filtering monitoring data according to claim 4, characterized in that: The specific process of step S5 includes: Select n1 data points sequentially from the flipped data point array Y' to form the flipped data point matrix C. The calculation formula is: Where C(n) is the nth flipped data point matrix, Y'(n) is the nth value in the flipped data point array, Y'(n1+n-1) is the n1+n-1th value in the flipped data point array, and Y'(n1+n) is the n1+nth value in the flipped data point array; The filter coefficient matrix is ​​convolved with the flipped data point matrix to obtain the filtered data points again. The calculation formula is: Z'(n)=B·C(n) Where Z'(n) is the nth data point after filtering again, B is the filter coefficient matrix, and C(n) is the nth flipped data point matrix.

6. The method for filtering monitoring data according to claim 5, characterized in that: The specific process of step S6 includes: Obtain N re-filtered data points in sequence, which are denoted as Z'(1), Z'(2), ... Z'(N), to form a re-filtered data point array Z'; The re-filtered data point array Z' is flipped to obtain the flipped re-filtered data point array Z, and the calculation formula is: Z(n)=Z'(N+1-n) Z'(N+1-n) is the N+1-nth value in the data point array after re-filtering, and Z(n) is the nth value in the data point array after flipping and re-filtering; Output the flipped and filtered data point array Z as the final filtered data point.

7. The method for filtering monitoring data according to claim 4, characterized in that: The preset data length N is a positive integer greater than n1.

8. A filtering device for monitoring data, characterized in that: The monitoring data filtering device includes a processor, a memory, and a monitoring data filtering program stored in the memory and executable by the processor, wherein when the monitoring data filtering program is executed by the processor, the steps of the monitoring data filtering method as described in any one of claims 1 to 7 are implemented.

9. A filtering device for monitoring data, characterized in that: include: The host computer is used to calculate the filter coefficient matrix according to the frequency response function of the filter, the filter parameters, and the sampling rate of the monitoring terminal, wherein the filter coefficient matrix is ​​a row matrix; A monitoring terminal, which is used to continuously collect monitoring data and store the monitoring data in the form of a column matrix in the order of collection time; convolve the filter coefficient matrix and the column matrix formed by a number of continuous monitoring data to obtain a data point after initial filtering; after obtaining a number of data points after initial filtering in sequence, form an array of data points after initial filtering, and flip the array of data points after initial filtering to obtain a flipped data point array; select data points corresponding to the number of the filter coefficient matrix from the flipped data point array to form a flipped data point matrix, convolve the filter coefficient matrix and the flipped data point matrix to obtain re-filtered data points; after obtaining a number of re-filtered data points in sequence, form a re-filtered data point array, and flip the re-filtered data point array to obtain a re-flipped data point matrix, that is, obtain the final filtered data points; The filter coefficient matrix is ​​convolved with a column matrix formed by a number of continuous monitoring data to obtain a calculation formula for a data point after initial filtering: y(n)=B·X(n) Wherein, B is the filter coefficient matrix, n1 is the order of the filter, x(n) is the nth monitoring data, x(n1+n) is the n1+nth monitoring data, x(n1+n-1) is the n1+n-1th monitoring data, y(n) is the nth data point after initial filtering, and n is a positive integer greater than or equal to 1; The specific process of convolving the filter coefficient matrix with a column matrix formed by a number of continuous monitoring data to obtain a data point after initial filtering is: When the monitoring data in the cache area reaches n1+1, the calculation of the data points after the initial filtering begins. The calculation formula for the first data after the initial filtering is: y(1)=B·X(1) y(1)=b(1)x(n1+1)+b(2)x(n1)+…+b(n1+1)x(1) Where y(1) is the first data point after initial filtering, x(n1+1) is the n1+1th monitoring data, x(n1) is the n1th monitoring data, x(1) is the first monitoring data, and B is the filter coefficient matrix; When the n1+2th monitoring data is obtained, a circular rolling storage mechanism is adopted, x(1) is cleared, x(n1+2) enters the cache area, and so on, y(2) and y(3) are calculated, and the calculation formula is: y(2)=b(1)x(n1+2)+b(2)x(n1+1)+...+b(n1+1)x(2) y(3)=b(1)x(n1+3)+b(2)x(n1+2)+…+b(n1+1)x(3)。