Abnormal data detection method and system for distribution network based on lightweight neural network

Through a method based on lightweight neural networks, combined with continuous wavelet transform and improved ShuffleNetV2, time-frequency features are extracted, which solves the shortcomings of distribution network abnormal data detection methods in complex data processing and network attack detection, and achieves a more efficient, More accurate detection results enhance the safety and stability of the distribution network.

CN118468192BActive Publication Date: 2024-10-11SHANDONG UNIV
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410916945.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-10-11
Estimated Expiration
2044-07-10

AI Technical Summary

Technical Problem

Existing distribution network abnormal data detection methods perform poorly when processing complex nonlinear data and large-scale data, and cannot effectively detect abnormal data caused by network attacks, resulting in poor detection accuracy and speed, which cannot meet the security requirements of smart grids. need.

Method used

Using a method based on lightweight neural networks, combined with continuous wavelet transform and improved ShuffleNetV2, time-frequency features are extracted to quickly and accurately detect abnormal data of the phasor measurement unit, replacing the global pooling layer of the traditional convolutional neural network to Reduce information loss and improve detection performance.

Benefits of technology

It achieves fast and accurate detection of abnormal data in the distribution network, makes up for the limitations of traditional methods in increasing data volume and network attack detection, improves detection accuracy and speed, and enhances the security and stability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118468192B_ABST
    Figure CN118468192B_ABST
Patent Text Reader

Abstract

The present invention proposes a distribution network abnormal data detection method and system based on a lightweight neural network, which relates to the field of distribution network abnormal data detection, including: obtaining PMU measurement data within a period of time in a wide-area measurement system and performing preprocessing; removing trend components in the PMU measurement data to obtain a target signal; using continuous wavelet transform to extract time-frequency features in the target signal; inputting the time-frequency features into a trained abnormal data detection model to determine whether an abnormality occurs; wherein the abnormal data detection model is a lightweight neural network constructed based on an improved ShuffleNetV2, and the improvement is to replace the last global pooling layer with a global depth-separable convolutional layer and a parametric linear rectification function; based on continuous wavelet transform and the improved ShuffleNetV2, the present invention constructs a lightweight network to detect abnormal data of a phasor measurement unit more quickly and accurately from the time-frequency features.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of abnormal data detection in distribution networks, and in particular relates to a method and system for detecting abnormal data in distribution networks based on a lightweight neural network. Background Art

[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.

[0003] With the advent of the fourth industrial revolution, traditional distribution networks have gradually developed into cyber-physical integrated smart distribution networks. The large-scale access of power electronic devices such as distributed power sources has increased the demand for system monitoring capabilities, resulting in a large amount of measurement data pouring into the distribution network. As an advanced application integrated into the power system, the wide-area measurement system (WAMS) based on phasor measurement units (PMU) provides data collection, processing, analysis and decision support for the safe and stable operation of the system.

[0004] Due to the integration of information and power technologies, the boundaries between the network and physical fields have become blurred. Hackers can tamper with the synchronized phasor data in the phasor measurement unit through network attacks, resulting in reduced communication reliability of the wide-area measurement system. At the same time, the high proportion of new energy grid connection has aggravated the randomness and volatility of the power grid, and a large amount of abnormal data threatens the stable operation of the distribution network. Therefore, the detection method of abnormal data in the distribution network needs to be studied urgently.

[0005] The current research on abnormal data detection in distribution networks mainly adopts statistical methods, machine learning and deep learning technologies. Statistical methods such as mean variance detection and probability model-based methods perform well on simple problems, but have limited processing capabilities for complex nonlinear data patterns and large-scale data, and are insufficient to cope with the increase in the amount of data in actual power grids. Machine learning technology can better adapt to complex data relationships by training algorithms to learn rules from historical data, but it requires a large amount of labeled data and parameter adjustment. Deep learning technology has advantages in processing nonlinear complex data, but it requires high computing power, and current research is not enough to meet lightweight requirements.

[0006] In addition, the current threat of cyber attacks is increasing, resulting in traditional anomaly detection methods being insufficient to meet the detection accuracy requirements. Unlike traditional bad data that can be detected by outlier detection or setting thresholds, cyber attacks can avoid bad data detection based on the topology of the power grid, making them difficult to detect and manage, thus posing a security threat to the state estimation of smart grids. Machine learning and deep learning algorithms are widely used in the identification of abnormal data caused by cyber attacks, including feature extraction and attack identification. In the process of feature extraction of the attacked signal, traditional empirical mode decomposition and fast Fourier transform cannot provide rich two-dimensional information. In addition, due to the large amount of data in the phasor measurement unit and the continuous collection, the performance of traditional model-free deep learning attack identification is limited. Therefore, the existing distribution network abnormal data detection scheme has limitations, and the identification speed and accuracy are poor. Summary of the invention

[0007] In order to overcome the shortcomings of the above-mentioned prior art, the present invention provides a distribution network abnormal data detection method and system based on a lightweight neural network. Based on continuous wavelet transform (CWT) and the improved ShuffleNetV2, a lightweight network is constructed to detect abnormal data of phasor measurement units more quickly and accurately from time-frequency features, thereby making up for the limitations of traditional convolutional neural networks in PMU data anomaly detection.

[0008] To achieve the above objectives, one or more embodiments of the present invention provide the following technical solutions:

[0009] A first aspect of the present invention provides a method for detecting abnormal data in a distribution network based on a lightweight neural network.

[0010] The abnormal data detection method of distribution network based on lightweight neural network includes:

[0011] Obtain PMU measurement data in a wide-area measurement system over a period of time and perform preprocessing;

[0012] Remove the trend component in the PMU measurement data to obtain the target signal;

[0013] Continuous wavelet transform is used to extract the time-frequency features of the target signal;

[0014] Input the time-frequency features into the trained anomaly data detection model to determine whether an anomaly occurs;

[0015] Among them, the abnormal data detection model is a lightweight neural network built based on the improved ShuffleNetV2, and the improvement is to replace the last global pooling layer with a global depth separable convolution layer and a parametric linear rectification function.

[0016] Furthermore, the preprocessing adopts Lagrange polynomial interpolation method to complete the discrete missing values ​​in the PMU measurement data to obtain the PMU time series data.

[0017] Furthermore, the target signal is obtained based on the use of a Savitzky-Golay filter, using local least squares polynomial fitting to track fluctuations, and using a moving window to segment the signal, obtaining the trend component of the synchronized phasor data under the moving window, and subtracting the trend component from the preprocessed PMU time series data to obtain the target signal.

[0018] Furthermore, the extraction of the time-frequency features is specifically as follows:

[0019] The Gaussian wavelet function is used as the mother wavelet function of continuous wavelet transform, and the time-frequency characteristics of the target signal are obtained through continuous wavelet transform calculation.

[0020] Furthermore, the abnormal data detection model includes a convolution layer, several reorganization blocks, a global depth separable convolution layer, a parameter linear rectification function layer, and a softmax function layer connected in sequence, and uses time-frequency features as input to perform binary classification of whether an abnormality occurs.

[0021] Furthermore, the global depthwise separable convolutional layer is composed of a depthwise separable convolutional layer and a convolutional layer with a kernel size of 1×1;

[0022] The parameter linear rectification function layer is expressed by the formula:

[0023]

[0024] in, σ To control the output parameters, O g represents the output of the global depthwise separable convolutional layer, x i Represents data of different channels.

[0025] Furthermore, the PMU measurement data within the period of time is composed of PMU measurement data at several consecutive moments. After detecting that an abnormality occurs in the PMU measurement data within the period of time, a kNN method is used to detect the end time of the abnormality to further narrow the time range of the abnormality.

[0026] A second aspect of the present invention provides a distribution network abnormal data detection system based on a lightweight neural network.

[0027] The distribution network abnormal data detection system based on lightweight neural network includes data acquisition module, target acquisition module, feature extraction module and abnormality detection module:

[0028] The data acquisition module is configured to: acquire PMU measurement data in a wide area measurement system within a period of time and perform preprocessing;

[0029] The target acquisition module is configured to: remove the trend component in the PMU measurement data to obtain the target signal;

[0030] The feature extraction module is configured to: extract time-frequency features from the target signal using continuous wavelet transform;

[0031] The anomaly detection module is configured to: input the time-frequency features into the trained anomaly data detection model to determine whether an anomaly occurs;

[0032] Among them, the abnormal data detection model is a lightweight neural network built based on the improved ShuffleNetV2, and the improvement is to replace the last global pooling layer with a global depth separable convolution layer and a parametric linear rectification function.

[0033] The third aspect of the present invention provides a computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements the steps in the method for detecting abnormal data in a distribution network based on a lightweight neural network as described in the first aspect of the present invention.

[0034] The fourth aspect of the present invention provides an electronic device, including a memory, a processor, and a program stored in the memory and executable on the processor. When the processor executes the program, the steps in the method for detecting abnormal data in a distribution network based on a lightweight neural network as described in the first aspect of the present invention are implemented.

[0035] One or more of the above technical solutions have the following beneficial effects:

[0036] Aiming at PMU measurement data, the present invention proposes an abnormal data detection method based on lightweight neural network. Firstly, the Lagrange polynomial interpolation algorithm is used to fill the missing values ​​in the measurement data. The trend component is removed and the target signal is obtained through the Savitzky-Golay filter. The effects of continuous wavelet transform under various mother functions are compared and the best mother wavelet function is selected. Then, an abnormal data detection model based on the improved ShuffleNetV2 is built. The wavelet transform result is used as the input of the detection model, so as to detect the abnormal data of the phasor measurement unit more quickly and accurately.

[0037] The present invention replaces the last global pooling layer in ShuffleNetV2 with a global depthwise separable convolutional layer and a parametric linear rectification function. Compared with the global pooling layer, the feature types are richer and the output dimension is flexible and adjustable, thereby reducing information loss. The parametric linear rectification function effectively prevents the gradient from disappearing. When dealing with big data training, the number of layers can be flexibly adjusted, thereby making up for the limitations of traditional convolutional neural networks that the training speed and accuracy are reduced due to the increase in data volume, and making up for the vulnerability of WAMS caused by data anomalies.

[0038] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0040] Figure 1 This is a flow chart of the method of the first embodiment.

[0041] Figure 2 This is an analysis diagram of the wavelet transform results of the first embodiment.

[0042] Figure 3 This is a structural diagram of the abnormal data detection model of the first embodiment.

[0043] Figure 4 This is a structural diagram of the reorganization block of the first embodiment. DETAILED DESCRIPTION

[0044] It should be noted that the following detailed descriptions are illustrative and are intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used in the present invention have the same meanings as those commonly understood by those skilled in the art to which the present application belongs.

[0045] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0046] Embodiment 1

[0047] In one embodiment of the present disclosure, a method for detecting abnormal data in a distribution network based on a lightweight neural network is provided. Figure 1As shown, the following steps are included:

[0048] Step S1: Acquire PMU measurement data within a period of time in the wide area measurement system and perform preprocessing.

[0049] Furthermore, the preprocessing adopts Lagrange polynomial interpolation method to complete the discrete missing values ​​in the PMU measurement data to obtain the PMU time series data.

[0050] A period of time T PMU measurement data within , measured by PMU at several consecutive moments Composition, that is , where M is the number of moments in time T, PMU measurement data at all times It is composed of PMU measurement data from different monitoring points; Lagrange polynomial interpolation method is used to complete PMU measurement data The discrete missing values ​​in the PMU time series data are obtained after data completion. , specifically:

[0051] The Lagrange interpolation principle is as follows: When m points and their corresponding values ​​on the function L are known ( x 0, y 0)、( x 1, y 1)…、( x m , y m ), we can get the approximate expression of the function L.

[0052] The basic method of Lagrange interpolation is:

[0053] First, find the Lagrange interpolation basis function:

[0054] (1)

[0055] On this basis, the Lagrange interpolation polynomial is obtained as follows:

[0056] (2)

[0057] against PMU measurement data at all times The missing value of a monitoring point in x i , select the data of three moments before and after, a total of six data [ x i-3 , x i-2 , xi-1 , x i+1 , x i+2 , x i+3 ]; Assume that there are seven data including missing values, which are functions f The function values ​​on the horizontal axis 1 to 7 are used to construct the function based on these six data. f ,satisfy f (l)= x i-3 , f (2)= x i-2 , f (3)= x i-1 , f (5)= x i+1 , f (6)= x i+2 , f (7)= x i+3 , then the Lagrange interpolation basis function l k ( x ) can be expressed as:

[0058] (3)

[0059] Lagrange interpolation polynomial f It can be expressed as:

[0060] (4)

[0061] Obtain f After the approximate expression of f (4) can be regarded as x i Approximate values ​​of are used to replace missing values.

[0062] Through the above method, the PMU measurement data After filling the missing values ​​in, we get the complete time series data after preprocessing .

[0063] Step S2: Remove the trend component in the PMU measurement data to obtain the target signal.

[0064] Furthermore, the target signal is obtained based on the use of a Savitzky-Golay filter, using local least squares polynomial fitting to track fluctuations, and using a moving window to segment the signal, obtaining the trend component of the synchronized phasor data under the moving window, and subtracting the trend component from the preprocessed PMU time series data to obtain the target signal.

[0065] Specifically, due to the synchronization of the AC power system, the measurements in the same interconnection are highly similar, so the common component (i.e., trend component) of each measurement data must be removed to obtain the representative component. Compared with the commonly used mean filter and Kalman filter, the Savitzky-Golay filter is based on the local least squares polynomial LSP, has zero phase and does not introduce signal time shift.

[0066] In the Savitzky-Golay filter, a local least squares polynomial fit is used to track the fluctuations and a moving window is used to segment the signal. Represents the measured data value of the synchronized phasor data at time t after completion, for the local symmetric data window , the length is 2M+1, you can get the window t The common component of the synchronized phasor data is:

[0067] (5)

[0068] in, p is the order of the LSP ( p <2 M ), b k are the polynomial coefficients.

[0069] The goal of the SG filter is to minimize the following errors:

[0070] (6)

[0071] When using local window and LSP fitting x ( t ) and then, from the completed original data x pre ( t ) minus the common data component r ( t ) to obtain the filtered measurement data value X ( t )= x pre ( t )- r ( t ), that is, the target signal at time t, and the target signal for the entire time period T is obtained .

[0072] Step S3: Using continuous wavelet transform to extract the time-frequency features of the target signal.

[0073] Furthermore, the extraction of the time-frequency features is specifically as follows:

[0074] The Gaussian wavelet function is used as the mother wavelet function of continuous wavelet transform, and the time-frequency characteristics of the target signal are obtained through continuous wavelet transform calculation.

[0075] Continuous wavelet transform is used to simultaneously reflect the time domain and frequency domain characteristics of the signal. Compared with the traditional single time domain or frequency domain analysis algorithm, continuous wavelet transform CWT can provide richer information for the target signal at time t. X ( t ), the result of continuous wavelet transform CWT is expressed as:

[0076] (7)

[0077] in, is the mother wavelet, used to create a set of wavelet functions; * is the complex conjugate operation; and s are the location and scale parameters respectively; is a complex matrix whose modulus Can be used to detect classifiers.

[0078] The time information of the signal can be obtained by translating the mother wavelet. The result of CWT is a complex matrix. For the convenience of calculation, the amplitude matrix of CWT is used to represent the time-frequency characteristics of the target signal. Its amplitude matrix can be expressed as C x ( a , b ) = | ω x ( τ , s )| 2 , in a and b Represent the number of rows and columns of the matrix respectively.

[0079] The decomposition performance of the continuous wavelet transform depends on the mother wavelet function. Therefore, this embodiment needs to select the best mother wavelet function from a group of wavelets for different PMU data, including Morlet, Gaussian (Cgau8) and Shannon (Shannon) wavelet functions. Time and frequency resolution are two key indicators that determine the decomposition performance. Resolution represents the ability to distinguish different component signals, so the higher the resolution, the better the result; for example, if the boundary between two components is clearer, the result usually has better time resolution; at the same time, because energy can be used to filter the result, more concentrated energy usually has higher resolution, which can be expressed as:

[0080] (8)

[0081] like Figure 2 As shown in (a), the data between the time period [2, 18]s was tampered. After analyzing the abnormal data in (a), it was found that the three continuous wavelet transforms can detect the time-frequency characteristics of the oscillation. As shown in (b) and (c), before 20s, the high frequency ( f >2.5Hz) is significantly higher than the data after 20s, while the high-frequency results in Figure (d) are not obvious; the low-frequency part ( f <2.5Hz) Gaussian and Morlet wavelet results are relatively close, but in the part close to 0Hz between [0, 20]s, the CWT result based on Gaussian wavelet has richer details; in the high-frequency part, the elliptical shape of Morlet wavelet is more delicate when viewed from the frequency axis, indicating that the time resolution of Morlet wavelet in the high-frequency part is low, which is not conducive to the judgment of the occurrence time of frequency components; in addition, the energy of Gaussian wavelet is slightly higher than that of Morlet wavelet, indicating that its energy is more concentrated in the case of similar spectrum leakage; therefore, Gaussian wavelet function is selected as the mother wavelet function in this embodiment.

[0082] The time-frequency characteristics of the target signal are obtained by continuous wavelet transform using Gaussian wavelet function as the mother wavelet function. C x ( a , b ).

[0083] Step S4: input the time-frequency features into the trained abnormal data detection model to determine whether an abnormality occurs;

[0084] Among them, the abnormal data detection model is a lightweight neural network built based on the improved ShuffleNetV2, and the improvement is to replace the last global pooling layer with a global depth separable convolution layer and a parametric linear rectification function.

[0085] Specifically, when obtaining the time-frequency characteristics of the target signal Finally, to implement lightweight abnormal data detection based on the proposed abnormal data detection model, it is necessary to further judge in real time: 1) whether the data is abnormal, 2) when the abnormality ends, which are explained below:

[0086] 1. Whether an abnormality occurs

[0087] Ordinary CNN mainly includes convolutional layers, pooling layers and fully connected layers. The convolutional layers are used to extract input data features, the pooling layers are used to compress data, and the fully connected layers are used to identify whether the signal is abnormal.

[0088] The abnormal data detection model is a lightweight network based on the improved ShuffleNetV2. Compared with the traditional CNN, ShuffleNetV2 has the following advantages: small number of parameters and computational complexity, suitable for mobile deployment, channel features can be reorganized to reduce feature redundancy, and the model has high accuracy.

[0089] The abnormal data detection model, such as Figure 3 As shown, it includes connecting a convolution layer, several reorganization blocks, a global depth separable convolution layer, a parameter linear rectification function layer, and a softmax function layer in sequence, taking the time-frequency features as input to perform a binary classification of whether an abnormality occurs.

[0090] The main structure of ShuffleNetV2 is the reorganization block, which has the following structure: Figure 4 As shown in the figure, the input features of the reorganization block are divided into two channels. The upper channel is used to extract various features and then spliced ​​with the lower residual connection channel. Finally, the channel reorganization layer realizes the fusion between shallow and deep features.

[0091] The last layer of the existing ShuffleNetV2 uses a global pooling layer, which only extracts the maximum value of each channel, which easily leads to information loss and is not conducive to the identification of various attacks.

[0092] In the abnormal data detection model, this embodiment improves the last layer of ShuffleNetV2 and replaces the global pooling layer with a global depth-wise convolution layer (GDW) and a parametric rectified linear unit (PReLU).

[0093] Among them, the GDW convolution layer consists of a depth-wise separable convolution layer and a convolution layer with a kernel size of 1×1. Compared with the global pooling layer, it has richer feature types and the output dimension is flexible and adjustable, thereby reducing information loss.

[0094] Assume that the GDW layer output is O g, then the output of the PReLU layer becomes:

[0095] (9)

[0096] In the formula, σ To control the output parameters, x i Represents data of different channels. PReLU can effectively prevent the gradient from disappearing, so the number of layers can be flexibly adjusted when dealing with big data training.

[0097] like Figure 3 As shown in Figure 2, the processing of the abnormal data detection model is as follows:

[0098] Time-frequency feature data After a 3×3 convolutional layer, connect p The ASCNN output layer is connected using GDW and PReLU. Finally, the features are transformed into 1D data and sent to the softmax function for attack binary classification detection. Among them, the output category S i = [1, 2], indicating that the output is either normal or attacked. Compared with ShuffleNetV2, ASCNN has the advantages of fewer parameters and richer features.

[0099] In order to fully simulate the impact of different anomalies, four types of abnormal data are selected to train the model, including false oscillation anomaly (L1), substitution anomaly (L2), noise anomaly (L3) and data loss anomaly (L4).

[0100] 2. The moment of abnormal ending

[0101] After detecting that the PMU measurement data within this period is abnormal, the kNN method is used to detect the end time of the abnormality to further narrow the time range of the abnormality.

[0102] For the complete time series data after completion Perform kNN detection to determine whether the PMU measurement data at each moment is abnormal; then count the number of abnormal moments in the data. When the last abnormal moment contains more than 3 consecutive abnormal moments, it can be determined as an abnormal end and recorded as t e , the specific time range of the abnormality is [ t 0, t e ], thereby further narrowing the time frame in which the anomaly occurs.

[0103] Anomaly detection based on kNN is based on the idea that "anomalies are sample points far away from most normal points". It is believed that anomalies must be far away from most sample points. The average distance between each sample point and its K nearest sample points is calculated in turn, and then the calculated average distance is compared with the threshold to identify anomalies.

[0104] This paper provides a method for determining abnormal moments based on kNN, using time series data For a data set, take the PMU measurement data at each moment as a point in the data set and perform the following operations in sequence:

[0105] 1) Calculate the distance between the current point and each point in the data set;

[0106] 2) Sort in ascending order of distance;

[0107] 3) Select k points with the smallest distance to the current point;

[0108] 4) Calculate the distance between the current point and K neighbors and take the average;

[0109] 5) When the mean is greater than the preset threshold, the current point is considered an outlier.

[0110] Embodiment 2

[0111] In one embodiment of the present disclosure, a distribution network abnormal data detection system based on a lightweight neural network is provided, including a data acquisition module, a target acquisition module, a feature extraction module and an abnormality detection module:

[0112] The data acquisition module is configured to: acquire PMU measurement data in a wide area measurement system within a period of time and perform preprocessing;

[0113] The target acquisition module is configured to: remove the trend component in the PMU measurement data to obtain the target signal;

[0114] The feature extraction module is configured to: extract time-frequency features from the target signal using continuous wavelet transform;

[0115] The anomaly detection module is configured to: input the time-frequency features into the trained anomaly data detection model to determine whether an anomaly occurs;

[0116] Among them, the abnormal data detection model is a lightweight neural network built based on the improved ShuffleNetV2, and the improvement is to replace the last global pooling layer with a global depth separable convolution layer and a parametric linear rectification function.

[0117] Embodiment 3

[0118] The purpose of this embodiment is to provide a computer-readable storage medium.

[0119] A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in the method for detecting abnormal data in a distribution network based on a lightweight neural network as described in the first embodiment of the present disclosure.

[0120] Embodiment 4

[0121] The purpose of this embodiment is to provide an electronic device.

[0122] An electronic device includes a memory, a processor, and a program stored in the memory and executable on the processor. When the processor executes the program, the steps in the method for detecting abnormal data in a distribution network based on a lightweight neural network as described in Embodiment 1 of the present disclosure are implemented.

[0123] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for detecting abnormal data in distribution network based on lightweight neural network, characterized in that: include: Obtain PMU measurement data in a wide-area measurement system over a period of time and perform preprocessing; Remove the trend component in the PMU measurement data to obtain the target signal; Continuous wavelet transform is used to extract the time-frequency features of the target signal; Input the time-frequency features into the trained anomaly data detection model to determine whether an anomaly occurs; The abnormal data detection model is a lightweight neural network built on the basis of the improved ShuffleNetV2, which includes a convolution layer, several reorganization blocks, a global depth separable convolution layer, a parameter linear rectification function layer, and a softmax function layer connected in sequence, and uses time-frequency features as input to perform binary classification of whether an abnormality occurs; The improvement is to replace the last global pooling layer with a global depth-separable convolution layer and a parametric linear rectification function, and the global depth-separable convolution layer is composed of a depth-separable convolution layer and a convolution layer with a kernel size of 1×1; The parameter linear rectification function layer is expressed by the formula: Among them, σ is the parameter for controlling the output, O g represents the output of the global depthwise separable convolutional layer, x i Represents data of different channels.

2. The method for detecting abnormal data in a distribution network based on a lightweight neural network according to claim 1, characterized in that: The preprocessing adopts Lagrange polynomial interpolation method to complete the discrete missing values ​​in the PMU measurement data to obtain the PMU time series data.

3. The method for detecting abnormal data in a distribution network based on a lightweight neural network according to claim 1, characterized in that: The target signal is obtained based on the use of a Savitzky-Golay filter, using local least squares polynomial fitting to track fluctuations, and using a moving window to segment the signal, obtaining the trend component of the synchronized phasor data under the moving window, and subtracting the trend component from the preprocessed PMU time series data to obtain the target signal.

4. The method for detecting abnormal data in a distribution network based on a lightweight neural network according to claim 1, characterized in that: The extraction of the time-frequency features is specifically as follows: The Gaussian wavelet function is used as the mother wavelet function of continuous wavelet transform, and the time-frequency characteristics of the target signal are obtained through continuous wavelet transform calculation.

5. The method for detecting abnormal data in a distribution network based on a lightweight neural network according to claim 1, characterized in that: It also includes that the PMU measurement data within the period of time is composed of PMU measurement data at several consecutive moments. After detecting that an abnormality occurs in the PMU measurement data within the period of time, a kNN method is used to detect the end time of the abnormality to further narrow the time range of the abnormality.

6. The distribution network abnormal data detection system based on lightweight neural network is characterized by: Including data acquisition module, target acquisition module, feature extraction module and anomaly detection module: The data acquisition module is configured to: acquire PMU measurement data in a wide area measurement system within a period of time and perform preprocessing; The target acquisition module is configured to: remove the trend component in the PMU measurement data to obtain the target signal; The feature extraction module is configured to: extract time-frequency features from the target signal using continuous wavelet transform; The anomaly detection module is configured to: input the time-frequency features into the trained anomaly data detection model to determine whether an anomaly occurs; The abnormal data detection model is a lightweight neural network built on the basis of the improved ShuffleNetV2, which includes a convolution layer, several reorganization blocks, a global depth separable convolution layer, a parameter linear rectification function layer, and a softmax function layer connected in sequence, and uses time-frequency features as input to perform binary classification of whether an abnormality occurs; The improvement is to replace the last global pooling layer with a global depth-separable convolution layer and a parametric linear rectification function, and the global depth-separable convolution layer is composed of a depth-separable convolution layer and a convolution layer with a kernel size of 1×1; The parameter linear rectification function layer is expressed by the formula: Among them, σ is the parameter for controlling the output, O g represents the output of the global depthwise separable convolutional layer, x i Represents data of different channels.

7. An electronic device, comprising: a memory for non-transitory storage of computer readable instructions; a processor for executing the computer-readable instructions; Wherein, when the computer-readable instructions are executed by the processor, the method according to any one of claims 1 to 5 is executed.

8. A storage medium, characterized in that: The computer-readable instructions are non-transitorily stored, wherein when the computer-readable instructions are executed by a computer, the method according to any one of claims 1 to 5 is performed.

Citation Information

Patent Citations

  • Power distribution network fault diagnosis method based on cloud side architecture and wavelet neural network

    CN111537830A

  • Flow field state fault detection method based on deep neural network

    CN113537152A

  • PMU data driving-based rail transit power system fault event detection method

    CN115577807A

  • Electric power internet of things data anomaly detection method and system

    CN117851920A

  • Method, system and equipment for predicting residual life of bearing and medium

    CN117892116A