Residual current type classification method, system, equipment and medium

The neural network model is used to extract and classify the residual current signals under different load conditions in the low-voltage power grid, which solves the problem of difficult classification of AC residual current types in the low-voltage power grid, improves the safety and reliability of the power grid, and achieves efficient Fault identification and operation and maintenance strategies.

CN118626933APending Publication Date: 2024-09-10STATE GRID BEIJING ELECTRIC POWER CO +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410795613.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

It is difficult to accurately classify different types of AC residual currents in low-voltage power grids, which leads to difficulties in understanding the operating status of the power grid and delays in fault identification, affecting the safety and reliability of the power grid.

Method used

Using a neural network model combined with feature extraction and data preprocessing, by collecting the residual current signal of the low-voltage power grid under different load conditions, extracting the peak-peak value, average value, rectified average value, variance and standard deviation of the signal to form a feature vector, and training BP The neural network model is used for classification to achieve accurate classification of different types of AC residual currents.

Benefits of technology

It achieves accurate classification of different types of AC residual currents in low-voltage power grids, improves the safety and reliability of the power grid, ensures the accuracy and real-time nature of data collection, and enhances the generalization ability and classification performance of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118626933A
    Figure CN118626933A
Patent Text Reader

Abstract

The invention relates to the field of power utilization of low-voltage power grids, in particular to a residual current type classification method, system and device and a medium. The method comprises the following steps: collecting residual current signals of a low-voltage power grid under different load conditions to obtain an original current data set; based on the obtained original current data set, key characteristic parameters reflecting signal characteristics are extracted, the key characteristic parameters comprise a peak-peak value, an average value, a rectification average value, a variance and a standard deviation of the signal, and a characteristic vector is formed; training a neural network model by using the obtained feature vector to obtain a trained neural network model; and classifying the feature vectors of the new residual current signals by using the trained neural network model to obtain a classification result. Accurate classification of different types of AC residual currents is realized, and the safety and reliability of power grid operation are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of low-voltage power grid electricity consumption, and in particular to a residual current type classification method, system, equipment and medium. Background Art

[0002] In the power system, the low-voltage power grid plays the role of a bridge between users and the distribution network, and is directly related to the power supply of end users such as homes and enterprises. However, the low-voltage power grid is often affected by various factors during operation, such as equipment failure, illegal electricity use, grounding faults, etc. These factors may cause different types of residual currents in the power grid. Therefore, it is particularly important to accurately classify the residual current in the low-voltage power grid.

[0003] First of all, residual current refers to the unbalanced current generated by various devices (such as electrical equipment, lines, etc.) in the power grid. These unbalanced currents may be caused by equipment failure, grounding problems, nonlinear loads, etc., and different types of residual currents reflect different problems in the power grid. By classifying these residual currents, we can better understand the operating status of the power grid, identify potential fault points in time, and improve the safety and reliability of the power grid. Secondly, traditional power grid monitoring systems are usually difficult to accurately identify and distinguish different types of residual currents, and therefore cannot effectively guide operation and maintenance personnel to perform targeted maintenance and repairs. In order to improve the level of intelligence in power grid operation, a classification method, system, equipment and medium for residual current types are urgently needed. Summary of the invention

[0004] The object of the present invention is to provide a residual current type classification method, system, device and medium to solve the problem of how to accurately classify different types of AC residual current in a low-voltage power grid.

[0005] To achieve the above purpose, the following technical solution is adopted.

[0006] A method for classifying residual current types comprises the following steps:

[0007] Collect the residual current signal of the low-voltage power grid under different load conditions to obtain the original current data set;

[0008] Based on the obtained original current data set, key characteristic parameters reflecting signal characteristics are extracted, wherein the key characteristic parameters include the peak-to-peak value, average value, rectified average value, variance and standard deviation of the signal to form a feature vector;

[0009] Using the obtained feature vector, the neural network model is trained to obtain a trained neural network model;

[0010] The trained neural network model is used to classify the feature vector of the new residual current signal to obtain the classification result.

[0011] Optionally, the step of collecting the residual current signal of the low-voltage power grid under different load conditions to obtain the original current data set specifically includes using a current transformer and an oscilloscope to collect the residual current signal under resistive load, inductive load and capacitive load conditions in real time to obtain the original current data set;

[0012] Optionally, after the step of collecting the residual current signal of the low-voltage power grid under different load conditions to obtain the original current data set, the step further includes preprocessing the obtained original current data set, including filtering to remove noise and baseline correction to eliminate noise and outliers in the data;

[0013] Optionally, the step of using the obtained feature vector to train the neural network model to obtain a trained neural network model specifically includes using the obtained feature vector to train the neural network model, receiving the feature vector through the input layer, and performing nonlinear transformation and feature learning through the hidden layer, the output layer maps the learned features to a specific residual current type, completing the training of the model to obtain a trained neural network model.

[0014] Optionally, the neural network model is a BP neural network model.

[0015] Optionally, the step of using the obtained feature vector to train a neural network model, receiving the feature vector through an input layer, performing nonlinear transformation and feature learning through a hidden layer, and mapping the learned features to a specific residual current type through an output layer to complete the model training and obtain a trained neural network model specifically includes:

[0016] S1. Initialize the parameters of the neural network model, including the weights and biases of the input layer, hidden layer, and output layer;

[0017] S2, receiving the feature vector, inputting the feature vector into the input layer of the neural network model, and obtaining the output signal of the input layer;

[0018] S3, performing a linear transformation in the hidden layer, and transforming the output signal of the input layer using the weight and bias parameters of the hidden layer;

[0019] S4, applying a nonlinear activation function to the linear transformation result of step S3, performing nonlinear transformation, performing feature learning, and obtaining an activation output;

[0020] S5, passing the activation output to the output layer for further linear transformation to generate the original classification decision signal;

[0021] S6, applying a classification activation function at the output layer to map the original classification decision signal into a predicted probability signal representing the probability of each category;

[0022] S7, calculating the classification error between the predicted probability signal and the actual type of residual current;

[0023] S8. According to the calculated classification error, the weight and bias parameters of the neural network model are adjusted by the back propagation algorithm to minimize the classification error;

[0024] S9, iteratively execute steps S2 to S8 until the classification error of the neural network model drops to a preset range, completing the training of the neural network model and obtaining a trained neural network model.

[0025] Optionally, step S9 further includes:

[0026] Use the validation set to evaluate the performance of the trained neural network model and obtain the evaluation results;

[0027] Adjust the trained neural network model based on the performance evaluation results on the validation set.

[0028] A classification system for residual current types, including:

[0029] A data acquisition module is used to collect residual current signals of the low-voltage power grid under different load conditions to obtain an original current data set;

[0030] A feature extraction module extracts key feature parameters reflecting signal characteristics based on the obtained original current data set, wherein the key feature parameters include the peak-to-peak value, average value, rectified average value, variance and standard deviation of the signal to form a feature vector;

[0031] The model training module uses the obtained feature vector to train the neural network model to obtain a trained neural network model;

[0032] The classification module is used to classify the feature vector of the new residual current signal using the trained neural network model to obtain a classification result.

[0033] An electronic device comprises a processor and a memory, wherein the processor is used to execute a computer program stored in the memory to implement a residual current type classification method.

[0034] A computer-readable storage medium stores at least one instruction, and when the at least one instruction is executed by a processor, a residual current type classification method is implemented.

[0035] Compared with the prior art, the present invention has the following beneficial effects:

[0036] 1. The present invention realizes accurate classification of different types of AC residual currents by automatically collecting residual current signals of low-voltage power grids under different load conditions and extracting key characteristic parameters, thereby improving the safety and reliability of power grid operation.

[0037] 2. The present invention uses a current transformer and an oscilloscope to collect residual current signals under different load conditions in real time. This method ensures the accuracy and real-time performance of data collection and provides a high-quality original data set for subsequent feature extraction and model training.

[0038] 3. The filtering and noise removal and baseline correction in the preprocessing step of the present invention effectively eliminate the noise and outliers in the data, improve the accuracy of feature extraction, and provide a more accurate and reliable feature vector for training the neural network model.

[0039] 4. The method of the present invention realizes efficient classification of residual current types by training a neural network model, using a hidden layer to perform nonlinear transformation and feature learning, and an output layer to map the learned features to specific residual current types.

[0040] 5. The present invention adopts the BP neural network model as a classification tool. This method can automatically adjust the network weights and minimize the classification error through the back propagation algorithm, thereby improving the accuracy of classification and the generalization ability of the model.

[0041] 6. The present invention provides a systematic training process, which ensures that the neural network model can learn from the feature vector and make accurate classification decisions, thereby enhancing the training effect and classification performance of the model.

[0042] 7. The present invention uses a validation set to evaluate the performance of the model and adjusts the model according to the evaluation results. This method further improves the accuracy and reliability of the model and ensures the effectiveness of the model in practical applications.

[0043] 8. The classification system of the present invention integrates data collection, feature extraction, model training and classification into one system, providing an integrated solution that is convenient and practical, and improves the efficiency and accuracy of grid residual current classification.

[0044] 9. The present invention implements the classification method through electronic devices, and uses a processor to execute a computer program in a memory. The method can be efficiently run on modern electronic devices, and is easy to promote and apply.

[0045] 10. The computer-readable storage medium of the present invention stores instructions for implementing the classification method, so that the method can be easily adopted and executed by various computer systems, thereby improving the popularity and flexibility of the method. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 The figure is a flow chart of an embodiment of a method for classifying residual current types according to the present invention.

[0047] Figure 2 The figure is a schematic diagram of residual current waveform under resistive load conditions in an embodiment of a residual current type classification method of the present invention.

[0048] Figure 3 The figure is a schematic diagram of a residual current waveform under inductive load conditions according to an embodiment of a residual current type classification method of the present invention.

[0049] Figure 4 This is a diagram of prediction results of a training set for an embodiment of a residual current type classification method of the present invention.

[0050] Figure 5 This is a diagram of prediction results of a test set of an embodiment of a residual current type classification method of the present invention.

[0051] Figure 6 The present invention is a structural block diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0052] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.

[0053] The following detailed description is an exemplary description, which is intended to provide further detailed description of the present invention. Unless otherwise specified, all technical terms used in the present invention have the same meaning as those generally understood by those skilled in the art to which the present application belongs. The terms used in the present invention are only for describing specific embodiments, and are not intended to limit exemplary embodiments according to the present invention.

[0054] Example 1

[0055] like Figure 1 As shown, a classification method of residual current types includes the following steps:

[0056] Collect the residual current signal of the low-voltage power grid under different load conditions to obtain the original current data set;

[0057] Based on the obtained original current data set, key characteristic parameters reflecting signal characteristics are extracted, wherein the key characteristic parameters include the peak-to-peak value, average value, rectified average value, variance and standard deviation of the signal to form a feature vector;

[0058] Using the obtained feature vector, the neural network model is trained to obtain a trained neural network model;

[0059] The trained neural network model is used to classify the feature vector of the new residual current signal to obtain the classification result.

[0060] Specifically, Figure 1 As shown in FIG, the classification method for different types of AC residual current is divided into the following four steps, namely, operation data collection, original feature parameter extraction, BP neural network algorithm, analysis and processing.

[0061] Operation data collection provides raw data for feature parameter extraction. Feature parameter extraction is the extraction of effective information in operation data collection to obtain the features that can most concentratedly reflect the residual current data under different load conditions, reduce the amount of data for subsequent calculation and processing, and speed up the calculation. At the same time, feature parameter extraction serves as the input of the machine learning algorithm. The machine learning algorithm obtains the output result through feature parameter extraction and calculation, and finally obtains the classification results of different types of residual currents.

[0062] Specifically, feature parameter extraction mainly involves extracting five key feature parameters, namely, mean value, peak-to-peak value, rectified mean value, variance, and standard deviation.

[0063] The peak-to-peak value is the difference between the maximum and minimum values ​​in a set of data, which is used to indicate the fluctuation range of the data and can be expressed as

[0064] Peak(X)=max(x i )-min(x i ) (1)

[0065] The mean value is also called the mathematical expectation, which can be used to measure the content of the DC component in a set of data. It is expressed as

[0066]

[0067] The rectified mean is the average of the absolute values ​​of a set of data, which is expressed as

[0068]

[0069] Variance is used to indicate the degree of fluctuation of a set of data, which is expressed as

[0070]

[0071] The standard deviation is the square root of the sum of the squares of the data deviations from the mean, which is expressed as

[0072]

[0073] The machine learning algorithm used is the BP neural network algorithm. The five key feature parameters, namely, mean value, peak-to-peak value, rectified mean value, variance, and standard deviation, obtained by extracting the feature parameters in step ② are used as basic elements to form the feature vector X, which can be expressed as:

[0074] X=(x 1, x 2, x3,x4,x5) (6)

[0075] X is used as the input of the machine learning algorithm, and different types of residual current data are labeled with values ​​1, 2, and 3. Then, by training the input data, the classification results of the residual current under different load conditions are obtained.

[0076] Analysis and processing,The error analysis of the output results of the classification of residual current under different load conditions obtained in the machine learning algorithm is carried out to determine the reliability of the method.

[0077] The present application comprehensively considers five characteristic parameters of the current signal in the time domain, and the prediction result has high reliability and accuracy.

[0078] The feature extraction method of this application is relatively simple and easy to operate.

[0079] This application reduces the amount of computation of the BP neural network algorithm through feature extraction, the algorithm runs faster, and the efficiency is improved.

[0080] This application can be integrated into the low-voltage power grid operation and maintenance platform for real-time monitoring of residual current of different loads.

[0081] As a preferred example, the step of collecting the residual current signal of the low-voltage power grid under different load conditions to obtain the original current data set specifically includes using a current transformer and an oscilloscope to collect the residual current signal under resistive load, inductive load and capacitive load conditions in real time to obtain the original current data set;

[0082] Specifically, the operation data collection mainly collects the data of the residual current under resistive load conditions, inductive load conditions, and capacitive load conditions, which can be collected through current transformers, oscilloscopes and other equipment.

[0083] Specifically, in the low-voltage power grid system, resistive loads, inductive loads and capacitive loads are marked respectively, and it is ensured that each type of load is under controllable and safe experimental conditions.

[0084] Deploy current transformers and oscilloscopes, ensuring that the equipment has sufficient accuracy and sampling rate to capture the details of the residual current signal. The current transformer is used to convert the current in the grid to a level suitable for measurement, while the oscilloscope is used to record the waveform of the current signal.

[0085] Under different types of load conditions, the residual current signal is collected in real time through the current transformer and oscilloscope. The signal output by the current transformer is sent to the data acquisition system, and the oscilloscope records detailed time series data.

[0086] Ensure that the data collected by the current transformer and the oscilloscope are synchronized in time so that subsequent analysis can accurately correspond to the signal status at the same time.

[0087] Store the collected residual current signal data in an appropriate data storage medium, such as a hard disk, solid-state drive, or cloud storage platform, ensuring data integrity and accessibility.

[0088] The stored raw current data sets are annotated, and the load type and acquisition conditions corresponding to each set of data are recorded to provide necessary metadata information for subsequent feature extraction and model training.

[0089] The collected raw current data sets were preliminarily reviewed to check the integrity and quality of the data, remove obvious errors or incomplete data records, and ensure the reliability of the data sets.

[0090] As a preferred example, after the step of collecting the residual current signal of the low-voltage power grid under different load conditions to obtain the original current data set, the step further includes preprocessing the obtained original current data set, including filtering to remove noise and baseline correction to eliminate noise and outliers in the data;

[0091] Specifically, the types of noise that may exist in the original current data set are first identified, including but not limited to electrical interference, equipment noise, and environmental noise.

[0092] Use appropriate filtering algorithms to remove noise from the data set. For example, a bandpass filter can be used to retain the frequency components related to the residual current signal while filtering out low-frequency drift and high-frequency noise.

[0093] Baseline correct the signals in the data set to remove long-term drift or bias effects. This may involve centering the signal or by fitting a straight line or curve and subtracting the baseline from the original signal.

[0094] Identify outliers in a data set using statistical methods or machine learning techniques. For example, a threshold can be set to mark signal points that exceed the normal range as outliers.

[0095] Possible methods for processing identified outliers include removing them or replacing them with the average value of neighboring points to ensure the accuracy of the data set.

[0096] The preprocessed data is normalized to ensure that the data is within the appropriate range to facilitate subsequent feature extraction and model training.

[0097] The preprocessed data set is verified to ensure that filtering and outlier processing have not introduced new errors and that the data set retains the important features of the original signal.

[0098] Through the above steps, this implementation effectively improves the quality of the original current data set and provides a more accurate and reliable data basis for subsequent feature extraction and model training.

[0099] As a preferred example, the step of using the obtained feature vector to train the neural network model to obtain a trained neural network model specifically includes using the obtained feature vector to train the neural network model, receiving the feature vector through the input layer, and performing nonlinear transformation and feature learning through the hidden layer, and the output layer maps the learned features to the specific residual current type, completing the training of the model and obtaining the trained neural network model.

[0100] Specifically, the appropriate neural network architecture is selected, including determining the number of neurons in the input layer, hidden layer, and output layer. The weights and bias parameters of the model are initialized, usually using a random initialization method to break the symmetry and promote network learning.

[0101] Connect the input layer of the initialized neural network model to the feature vector obtained in the feature extraction step, ensuring that the dimension of the input data matches the number of neurons in the input layer.

[0102] After the feature vector is received at the input layer, it is passed to the hidden layer. In the hidden layer, nonlinearity is introduced through the linear combination of the weight matrix and the bias vector combined with the activation function to achieve high-level feature abstraction and capture of complex patterns.

[0103] Apply activation functions such as Sigmoid, ReLU, or Tanh functions to each neuron in the hidden layer to introduce nonlinear characteristics and enhance the expressiveness of the model.

[0104] The output of the hidden layer is passed to the output layer, which is usually designed to be fully connected, and the number of neurons corresponds to the number of residual current types. The activation function of the output layer uses the softmax function to convert the output value into a probability distribution, indicating the possibility of each category.

[0105] Define a loss function, such as cross entropy loss, to measure the difference between the probability distribution predicted by the model and the true labels.

[0106] Using the gradient information of the loss function, the gradient of each parameter is calculated through the back-propagation algorithm. An optimization algorithm such as gradient descent or its variants (e.g. Adam or RMSprop) is used to update the weights and biases of the model to minimize the loss function.

[0107] Repeat the above steps for multiple rounds of iterative training until the performance of the model on the validation set no longer improves significantly or reaches the predetermined number of iterations.

[0108] Use an independent test set to evaluate the trained neural network model, select the model parameters with the best performance, and ensure that the model has good generalization ability.

[0109] The final trained neural network model can receive new input feature vectors, calculate and output the corresponding probability prediction of residual current type through forward propagation.

[0110] Through the above steps, this implementation ensures that the neural network model can effectively learn from the feature vector and accurately classify the residual current type, thereby realizing automatic identification of the residual current type of the low-voltage power grid.

[0111] As a preferred example, the neural network model is a BP neural network model.

[0112] As a preferred example, the step of using the obtained feature vector to train the neural network model, receiving the feature vector through the input layer, performing nonlinear transformation and feature learning through the hidden layer, and mapping the learned features to the specific residual current type through the output layer to complete the model training and obtain the trained neural network model specifically includes:

[0113] S1. Initialize the parameters of the neural network model, including the weights and biases of the input layer, hidden layer, and output layer;

[0114] S2, receiving the feature vector, inputting the feature vector into the input layer of the neural network model, and obtaining the output signal of the input layer;

[0115] S3, performing a linear transformation in the hidden layer, and transforming the output signal of the input layer using the weight and bias parameters of the hidden layer;

[0116] S4, applying a nonlinear activation function to the linear transformation result of step S3, performing nonlinear transformation, performing feature learning, and obtaining an activation output;

[0117] S5, passing the activation output to the output layer for further linear transformation to generate the original classification decision signal;

[0118] S6, applying a classification activation function at the output layer to map the original classification decision signal into a predicted probability signal representing the probability of each category;

[0119] S7, calculating the classification error between the predicted probability signal and the actual type of residual current;

[0120] S8. According to the calculated classification error, the weight and bias parameters of the neural network model are adjusted by the back propagation algorithm to minimize the classification error;

[0121] S9, iteratively execute steps S2 to S8 until the classification error of the neural network model drops to a preset range, completing the training of the neural network model and obtaining a trained neural network model.

[0122] Specifically, S1, parameter initialization: assign initial values ​​to the weights and biases of the input layer, hidden layer, and output layer of the neural network model. Usually, small random numbers are used for initialization to break the symmetry of the weights and promote the convergence of the network.

[0123] S2. Feature vector input: The preprocessed and extracted feature vector is used as input data and input into the input layer of the neural network model. Each feature value corresponds to a neuron in the input layer.

[0124] S3, Linear transformation: In the hidden layer, the output signal of the input layer is linearly combined through the weight matrix, and the bias term is added to complete the linear transformation of the signal.

[0125] S4, nonlinear activation: The linear transformation result obtained in step S3 is passed to the activation function, such as ReLU or Sigmoid function, for nonlinear transformation. This step introduces nonlinearity, enabling the network to learn and simulate complex function mappings.

[0126] S5, activation output transfer: The activation output obtained in step S4 is used as the input signal of the next layer, and is further transferred to the next hidden layer or directly to the output layer.

[0127] S6. Classification decision generation: In the output layer, the activation output of the hidden layer is linearly transformed again to generate the original classification decision signals, which are the model’s preliminary predictions for classifying the input feature vector.

[0128] S7, Probability mapping: Apply classification activation functions such as softmax in the output layer to convert the original classification decision signal into a predicted probability signal representing the probability of each category, so that the output can be interpreted as a probability distribution.

[0129] S8, error calculation and back propagation: Calculate the error between the predicted probability signal obtained in step S7 and the actual residual current type label, and quantify the error using the cross entropy loss function. Then, use the back propagation algorithm to adjust the weights and biases of the model according to the error gradient.

[0130] S9, iterative optimization: Repeat steps S2 to S8 and perform multiple iterative training until the classification error of the model on the validation set drops to within a preset threshold, indicating that the model training converges and achieves the expected performance.

[0131] Through the above steps, the training of the neural network model is completed, and a well-trained model is obtained. The model can accurately map the new input feature vector to the specific residual current type, and realize efficient and accurate classification.

[0132] As a preferred example, step S9 further includes:

[0133] Use the validation set to evaluate the performance of the trained neural network model and obtain the evaluation results;

[0134] Adjust the trained neural network model based on the performance evaluation results on the validation set.

[0135] Specifically, after completing the training of the neural network model, a portion of independent data is divided as a validation set, which contains multiple samples of known residual current types for evaluating model performance.

[0136] Use the prepared validation set to evaluate the trained neural network model. Input the feature vectors in the validation set into the model and obtain the predicted classification results through forward propagation.

[0137] Calculate relevant performance indicators of the evaluation results, such as accuracy, precision, recall, and F1 score, to quantify the classification performance of the model.

[0138] Analyze the performance of the model on the validation set, identify samples or categories with high classification errors, and evaluate whether the model has overfitting or underfitting problems.

[0139] According to the evaluation results, the neural network model is adjusted. The adjustment may include changing the network structure, increasing or decreasing the number of neurons in the hidden layer, adjusting the learning rate, modifying the activation function or loss function, etc.

[0140] Use methods such as grid search, random search, or Bayesian optimization to optimize the model's hyperparameters to find the best model configuration.

[0141] After completing model tuning and hyperparameter optimization, retrain the neural network model using the original training set and the updated model configuration.

[0142] Iterative validation: Repeat the above steps until the performance of the model on the validation set reaches the expected target or the further performance improvement is lower than the preset value.

[0143] After multiple iterations of training and validation, the model parameters with the best performance were selected as the final model, which showed good generalization ability and stability on the validation set.

[0144] Through the above steps, it is ensured that the neural network model not only performs well on the original training set during training, but also has high classification accuracy and robustness on the independent validation set.

[0145] Example 2

[0146] A classification system for residual current types, including:

[0147] A data acquisition module is used to collect residual current signals of the low-voltage power grid under different load conditions to obtain an original current data set;

[0148] A feature extraction module extracts key feature parameters reflecting signal characteristics based on the obtained original current data set, wherein the key feature parameters include the peak-to-peak value, average value, rectified average value, variance and standard deviation of the signal to form a feature vector;

[0149] The model training module uses the obtained feature vector to train the neural network model to obtain a trained neural network model;

[0150] The classification module is used to classify the feature vector of the new residual current signal using the trained neural network model to obtain a classification result.

[0151] Specifically, the data acquisition module may include a current transformer and an oscilloscope connected to the low voltage power grid, and is used to collect residual current signals in real time under different load conditions. The collected signals are converted into digital format and stored as raw current data sets.

[0152] The feature extraction module can receive the original current data set obtained by the data acquisition module and extract key feature parameters through digital signal processing technology. These parameters include the peak-to-peak value, average value, rectified average value, variance and standard deviation of the signal. These parameters comprehensively reflect the time domain characteristics of the signal and are combined to form a feature vector.

[0153] The model training module is responsible for designing and training the neural network model. Using the feature vector obtained by the feature extraction module as input, through forward propagation and calculation of the loss function, the network weights and biases are adjusted using the back propagation algorithm to train a neural network model with good performance.

[0154] The classification module uses the trained neural network model obtained by the model training module to classify the feature vector of the new residual current signal. The new feature vector is input into the model, and the classification result is obtained through forward propagation calculation to realize the rapid identification of the residual current type.

[0155] System integration: The above modules are integrated into a unified system, and the automated process of data collection, processing, model training and classification is realized through the collaborative work of software and hardware.

[0156] The system provides a user interface that allows users to monitor data collection status, feature extraction results, model training progress, and classification results. Users can use the interface to set parameters, select models, and analyze results.

[0157] The system has data management functions and can store, retrieve and maintain the collected raw current data, extracted feature vectors, training model parameters and classification results.

[0158] The system also includes a performance monitoring module, which is used to monitor the operating status of the system in real time to ensure the accuracy of data collection, the effectiveness of model training and the reliability of classification results.

[0159] The system has an exception handling mechanism that can automatically trigger an alarm and take appropriate corrective measures when data quality issues or model performance degradation are detected.

[0160] Through the collaborative work of the above modules, the system can efficiently and accurately complete the classification task of different types of AC residual currents, providing technical support for the monitoring and maintenance of low-voltage power grids.

[0161] Example 3

[0162] A classification method for residual current types, a specific embodiment is as follows:

[0163] During the operation data collection phase, 90 sets of residual current data under different loads were obtained, including 30 sets of residual current data under resistive load, inductive load and capacitive load respectively. Figure 2 The current waveform of the residual current under resistive load conditions is given. Figure 3 The current waveform of the residual current under inductive load conditions is given. It can be seen from the figure that the residual current begins to be generated at t = 0.6s. In the feature extraction stage of step ②, the current waveform data under different load conditions after t = 0.6s is first extracted, and the data before t = 0.6s is discarded to reduce the amount of calculation. Then the characteristic values ​​of the original data are extracted, including five characteristic parameters such as peak-to-peak value, average value, and rectified average value. Formulas (7), (8), and (9) are some of the characteristic parameter formulas.

[0164] The peak-to-peak value is the difference between the maximum and minimum values ​​in a set of data, which is used to indicate the fluctuation range of the data and can be expressed as

[0165] Peak(X)=max(x i )-min(x i) (7)

[0166] The mean value is also called the mathematical expectation, which can be used to measure the content of the DC component in a set of data. It is expressed as

[0167]

[0168] The rectified mean is the average of the absolute values ​​of a set of data, which is expressed as

[0169]

[0170] The five key characteristic parameters are the basic elements that form the characteristic vector X, which can be expressed as:

[0171] X=(x 1, x 2, x3,x4,x5) (10)

[0172] Take X as the input of the machine learning algorithm, and label different types of residual current data with values ​​of 1, 2, and 3. Then, through the training of the input data, step ③ uses the BP neural network algorithm to classify the feature data. The topological structure of the BP neural network model includes an input layer, a hidden layer, and an output layer. The learning process of the BP network consists of two processes: forward propagation of information and back propagation of errors. Take the feature vector X as the input signal. The feature vector X is given in formula (10). After the three-layer neural network model is trained, the classification results of different residual currents are obtained. Figure 4 and Figure 5 The comparison diagrams of the prediction results of the training set and the test set are shown respectively. The accuracy can reach more than 90%, which has a good classification effect, high reliability and accuracy. In practical applications, by inputting the residual current data of different load types, the specific type of residual current data can be determined according to the algorithm.

[0173] The present invention proposes a classification method for residual current types, which can realize the classification function of residual current types under different load conditions. By classifying residual current, the present invention can more accurately identify potential safety hazards in the power grid, take targeted measures, and improve the safety of the power grid. At the same time, by monitoring and classifying residual current, a more effective operation and maintenance strategy can be established to improve the overall efficiency and maintainability of the power system.

[0174] Example 4

[0175] like Figure 6 As shown, an electronic device includes a processor and a memory, wherein the processor is used to execute a computer program stored in the memory to implement a residual current type classification method.

[0176] The present invention also provides an electronic device 100 for implementing a residual current type classification method of the above embodiment; the electronic device 100 includes a memory 101, at least one processor 102, a computer program 103 stored in the memory 101 and executable on the at least one processor 102, and at least one communication bus 104. The memory 101 can be used to store the computer program 103, and the processor 102 implements the steps of the residual current type classification method of embodiment 1 by running or executing the computer program stored in the memory 101 and calling the data stored in the memory 101. The memory 101 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data (such as audio data) created according to the use of the electronic device 100, etc. In addition, the memory 101 may include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices. At least one processor 102 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 102 may be a microprocessor or the processor 102 may also be any conventional processor, etc. The processor 102 is the control center of the electronic device 100, and uses various interfaces and lines to connect various parts of the entire electronic device 100. The memory 101 in the electronic device 100 stores multiple instructions to implement a classification method for residual current types.

[0177] Example 5

[0178] A computer-readable storage medium stores at least one instruction. When the at least one instruction is executed by a processor, a residual current type classification method is implemented.

[0179] If the module / unit integrated in the electronic device 100 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the process in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device that can carry computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory and read-only memory (ROM, Read-Only Memory). It should be understood by those skilled in the art that the embodiments of the present invention can be provided as a method, system, or computer program product. Therefore, the present invention can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0180] It is known from common technical knowledge that the present invention can be implemented by its embodiments without departing from its spirit or essential features. Therefore, the embodiments disclosed above are only illustrative in all respects and are not exclusive. All changes within the scope of the present invention or within the scope equivalent to the present invention are included in the present invention.

Claims

1. A method for classifying residual current types, characterized in that: The following steps are involved: Collect the residual current signal of the low-voltage power grid under different load conditions to obtain the original current data set; Based on the obtained original current data set, key characteristic parameters reflecting signal characteristics are extracted, wherein the key characteristic parameters include the peak-to-peak value, average value, rectified average value, variance and standard deviation of the signal to form a feature vector; Using the obtained feature vector, the neural network model is trained to obtain a trained neural network model; The trained neural network model is used to classify the feature vector of the new residual current signal to obtain the classification result.

2. The method according to claim 1, characterized in that The step of collecting the residual current signal of the low-voltage power grid under different load conditions to obtain the original current data set specifically includes using a current transformer and an oscilloscope to collect the residual current signal under resistive load, inductive load and capacitive load conditions in real time to obtain the original current data set.

3. The method according to claim 1, characterized in that After the step of collecting the residual current signal of the low-voltage power grid under different load conditions to obtain the original current data set, the method further includes preprocessing the obtained original current data set, including filtering to remove noise and baseline correction to eliminate noise and abnormal values ​​in the data.

4. The method according to claim 1, characterized in that: The step of using the obtained feature vector to train the neural network model to obtain the trained neural network model specifically includes using the obtained feature vector to train the neural network model, receiving the feature vector through the input layer, and performing nonlinear transformation and feature learning through the hidden layer, and the output layer maps the learned features to the specific residual current type, completing the model training and obtaining the trained neural network model.

5. The method according to claim 1, characterized in that: The neural network model is a BP neural network model.

6. The method according to claim 4, characterized in that The steps of using the obtained feature vector to train the neural network model, receiving the feature vector through the input layer, performing nonlinear transformation and feature learning through the hidden layer, and mapping the learned features to the specific residual current type through the output layer to complete the model training and obtain the trained neural network model specifically include: S1. Initialize the parameters of the neural network model, including the weights and biases of the input layer, hidden layer, and output layer; S2, receiving the feature vector, inputting the feature vector into the input layer of the neural network model, and obtaining the output signal of the input layer; S3, performing a linear transformation in the hidden layer, and transforming the output signal of the input layer using the weight and bias parameters of the hidden layer; S4, applying a nonlinear activation function to the linear transformation result of step S3, performing nonlinear transformation, performing feature learning, and obtaining an activation output; S5, passing the activation output to the output layer for further linear transformation to generate the original classification decision signal; S6, applying a classification activation function at the output layer to map the original classification decision signal into a predicted probability signal representing the probability of each category; S7, calculating the classification error between the predicted probability signal and the actual type of residual current; S8. According to the calculated classification error, the weight and bias parameters of the neural network model are adjusted by the back propagation algorithm to minimize the classification error; S9, iteratively execute steps S2 to S8 until the classification error of the neural network model drops to a preset range, completing the training of the neural network model and obtaining a trained neural network model.

7. The method according to claim 6, characterized in that Step S9 also includes: Use the validation set to evaluate the performance of the trained neural network model and obtain the evaluation results; Adjust the trained neural network model based on the performance evaluation results on the validation set.

8. A classification system for residual current types, characterized in that include: A data acquisition module is used to collect residual current signals of the low-voltage power grid under different load conditions to obtain an original current data set; A feature extraction module extracts key feature parameters reflecting signal characteristics based on the obtained original current data set, wherein the key feature parameters include the peak-to-peak value, average value, rectified average value, variance and standard deviation of the signal to form a feature vector; The model training module uses the obtained feature vector to train the neural network model to obtain a trained neural network model; The classification module is used to classify the feature vector of the new residual current signal using the trained neural network model to obtain a classification result.

9. An electronic device, characterized in that: It comprises a processor and a memory, wherein the processor is used to execute a computer program stored in the memory to implement a residual current type classification method as claimed in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction, and when the at least one instruction is executed by a processor, a residual current type classification method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Sparse representation-based residual current waveform automatically identifying method

    CN107578016A

  • Electrical equipment operation data classification method based on BP neural network

    CN114492578A