Fault diagnosis method, system, equipment and storage medium for metering device at plant and station
Through the collection and analysis of metering data at factory and station gates, combined with fault analysis models and power transmission characteristics, accurate and reliable diagnosis of faults in metering devices at factory and station gates is achieved, solving the manual dependence and multi-parameter complex fault diagnosis capabilities in the existing technology. Insufficient problems are solved, and fault diagnosis efficiency and system reliability are improved.
Patent Information
- Application Number
- CN202410751724.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-06-12
AI Technical Summary
Existing fault diagnosis methods for metering devices at factory and station gates rely on manual inspections and empirical judgments, which are inefficient and inaccurate. They also lack comprehensive diagnostic capabilities for multi-parameters and complex fault types, affecting the reliability of fault confirmation.
By collecting and dividing plant and station gate measurement data, a monitoring parameter matrix is constructed, and a pre-built fault analysis model is used to make preliminary fault type judgments. A predicted change trend is generated based on future transmission characteristics, compared with the actual change trend, and iteratively optimized until it reaches Preset thresholds to diagnose fault types.
It improves the accuracy and reliability of fault diagnosis, reduces the influence of human factors, improves the objectivity and consistency of diagnosis, significantly improves fault diagnosis efficiency, reduces maintenance costs, and ensures the stable operation and economic benefits of the power system.
Smart Images

Figure CN118332476B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power metering, and in particular to a method, system, equipment and storage medium for diagnosing faults of a metering device at a power station gateway. Background Art
[0002] With the continuous development of power systems, metering devices at power stations play a vital role in the process of power transmission and distribution. These metering devices are responsible for real-time monitoring and recording of key parameters such as electric energy, voltage, current, power factor, waveform distortion rate and frequency deviation to ensure the stable operation and accurate billing of the power system. However, due to equipment aging, environmental factors or human operation, metering devices at power stations often fail, thus affecting the reliability and economic benefits of the power system.
[0003] The existing fault diagnosis method for metering devices at power stations mainly relies on manual inspection and empirical judgment, which is not only inefficient but also easily affected by human factors, resulting in inaccurate diagnosis results. In addition, with the rapid development of big data and machine learning technology, although some fault diagnosis methods have been proposed in power systems, these methods often only focus on the analysis of a single parameter or fault type, lacking the ability to comprehensively diagnose multiple parameters and complex fault types. At the same time, the comparison and verification mechanism between fault prediction and actual operation data is not sound, affecting the reliability of the final fault confirmation. Summary of the invention
[0004] In order to solve the above technical problems, the present invention provides a method, system, equipment and storage medium for diagnosing faults of a plant gateway metering device, which helps to diagnose faults more comprehensively and improve the accuracy and reliability of diagnosis.
[0005] In a first aspect, the present invention provides a method for diagnosing faults of a metering device at a plant or station, the method comprising:
[0006] Collect the metering data set of the plant and station gateways of the metering equipment to be diagnosed within the past set time window;
[0007] Dividing the plant and station gateway metering data set within a past set time window into units according to a preset time span to obtain a number of plant and station gateway metering data set units;
[0008] Align the characteristic parameters of several metering data sets at the plant and station gateways in chronological order to obtain the monitoring parameter matrix of the metering device;
[0009] Input the metering device monitoring parameter matrix into the pre-built metering device fault analysis model, and output the preliminary fault type of the metering device;
[0010] Obtain the power transmission characteristics of the power plant in the future set time window, and generate the predicted change trend of each parameter in the power plant gateway metering data set based on the initial fault type of the metering device and the power transmission characteristics of the power plant in the future set time window;
[0011] Continuously collect the plant and station gateway metering data set within the future set time window, and generate the actual change trend of each parameter in the plant and station gateway metering data set;
[0012] The predicted change trend and the actual change trend are compared and matched. If the comparison result is higher than the preset threshold, the initial fault type of the metering device is used as the confirmed fault type of the metering device;
[0013] If the comparison result is not higher than the preset threshold, the plant and station gateway metering data set collected within the future set time window and the plant and station gateway metering data set within the past set time window will be summarized as the historical plant and station gateway metering data set, and the preliminary fault type of the metering device will be re-analyzed based on the historical plant and station gateway metering data set until the comparison result is higher than the preset threshold, and the preliminary fault type of the metering device obtained by re-analysis will be used as the confirmed fault type of the metering device.
[0014] Furthermore, the plant gateway metering data set includes active power, reactive power, voltage, current, power factor, waveform distortion rate and frequency deviation, wherein each plant gateway metering data set unit includes active power, reactive power, voltage, current, power factor, waveform distortion rate and frequency deviation within a corresponding time span.
[0015] Furthermore, the power transmission characteristics of the plant include load forecasting, power generation plan, power grid maintenance and transformation plan, and environmental factors.
[0016] Furthermore, the matching comparison between the predicted change trend and the actual change trend includes trend shape comparison and numerical difference analysis;
[0017] The trend shape comparison is used to evaluate the trend similarity between the predicted change trend and the actual change trend in morphology;
[0018] The numerical difference analysis is used to quantify the deviation between the predicted value in the predicted change trend and the actual value in the actual change trend;
[0019] The comprehensive calculation formula for the matching comparison is as follows: ;
[0020] Among them, F represents the comprehensive score of the matching, and They represent the weight coefficients for trend shape comparison and numerical difference analysis respectively; Indicates trend similarity; Indicates the degree of data deviation.
[0021] Furthermore, the trend similarity calculation formula is:
[0022] in, represents the minimum path distance, represents the maximum path distance;
[0023] The data deviation calculation formula is:
[0024] in, represents the mean square error, Represents the mean square error threshold.
[0025] Furthermore, the method for obtaining the minimum path distance includes:
[0026] For the predicted change trend X and the actual change trend Y, a distance matrix d is constructed, where d ij Indicates the predicted change trend X i The actual change trend Y j The distance between
[0027] The minimum cumulative distance is calculated recursively, taking into account the minimum distance of the previous step plus the distance of the current step;
[0028] Find the minimum path distance in the cumulative distance matrix by backtracking.
[0029] Furthermore, the metering device fault analysis model includes the following structure:
[0030] Input layer: The input layer receives data as the monitoring parameter matrix of the metering device;
[0031] Convolutional layer: The convolutional layer is set with 32 filters, the width of each filter is set to 3, the step size of the filter is set to 1, and ReLU is used as the activation function to enhance the nonlinear expression ability of the metering device fault analysis model for various parameters;
[0032] Pooling layer: The pooling window size is set to 2×7 and the step size is set to 2 to reduce the time series dimension of the metering device monitoring parameter matrix;
[0033] Fully connected layer: The fully connected layer includes the first fully connected layer and the second fully connected layer. The number of neurons in the first fully connected layer is set to 128, and the number of neurons in the second fully connected layer is set to 64. Both the first and second fully connected layers use ReLU as the activation function;
[0034] Output layer: The number of neurons in the output layer is equal to the total number of fault types. The output layer converts the output of the fully connected layer into the fault type of the metering device and its probability, and outputs the fault type with the highest probability as the preliminary fault type of the metering device.
[0035] On the other hand, the present application also provides a fault diagnosis system for a metering device at a plant station, the system comprising:
[0036] A data collection module is used to collect a set of metering data at the plant and station gateway of the metering equipment to be diagnosed within a set time window in the past; the metering data at the plant and station gateway includes active power, reactive power, voltage, current, power factor, waveform distortion rate and frequency deviation;
[0037] The data division module is used to divide the collected plant and station gateway metering data set into units according to a preset time span to generate a number of plant and station gateway metering data set units; each plant and station gateway metering data set unit contains active power, reactive power, voltage, current, power factor, waveform distortion rate and frequency deviation within the corresponding time span;
[0038] The parameter alignment module is used to align the characteristic parameters of the divided plant and station gateway metering data set units in chronological order to construct a metering device monitoring parameter matrix;
[0039] A fault analysis module is used to input the metering device monitoring parameter matrix into a pre-built metering device fault analysis model and output a preliminary fault type of the metering device;
[0040] The trend prediction module is used to obtain the power transmission characteristics of the plant and station within the future set time window, and generate the predicted change trend of various parameters in the plant and station gateway metering data set in combination with the initial fault type;
[0041] A fault determination module is used to continuously collect actual plant and station gateway metering data within a future set time window to generate an actual change trend; and to match and compare the predicted change trend with the actual change trend; if the comparison result is higher than a preset threshold, the preliminary fault type of the metering device is used as the confirmed fault type of the metering device; if the comparison result is not higher than the preset threshold, the plant and station gateway metering data set collected within the future set time window and the plant and station gateway metering data set within the past set time window are summarized as a historical plant and station gateway metering data set, and the preliminary fault type of the metering device is re-analyzed based on the historical plant and station gateway metering data set until the comparison result is higher than the preset threshold, and the preliminary fault type of the metering device obtained by the re-analysis is used as the confirmed fault type of the metering device;
[0042] The result output module is used to output the confirmed fault type of the metering device, providing a basis for the maintenance and repair of the power system.
[0043] In a third aspect, the present application provides an electronic device, comprising a bus, a transceiver, a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the transceiver, the memory, and the processor are connected via the bus, and the computer program, when executed by the processor, implements the steps of any one of the above methods.
[0044] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps in any one of the above-mentioned methods when executed by a processor.
[0045] Compared with the prior art, the present invention has the following beneficial effects: by dividing the data in the past set time window into units and aligning the characteristic parameters, a monitoring parameter matrix of the metering device is constructed, which can capture the time series characteristics of the data, and thus better analyze the causes and trends of the faults; the method not only makes a preliminary judgment on the fault type, but also predicts the parameter change trend in combination with the power transmission characteristics of the plant station in the future set time window, and compares it with the actual collected data; this prediction and verification mechanism can ensure the accuracy of the diagnosis result and improve the reliability of fault confirmation; when the predicted change trend does not match the actual change trend, the method will re-analyze the fault type and continue to iterate and optimize until the comparison result meets the requirements; this adaptive characteristic enables the method to maintain a high diagnostic accuracy when facing complex and changeable fault types; compared with traditional manual inspections and experience judgments, this method performs fault analysis based on a machine learning model, reduces the influence of human factors, and improves the objectivity and consistency of the diagnosis; through an automated and intelligent diagnosis process, the method significantly improves the efficiency of fault diagnosis, reduces maintenance costs, and contributes to the stable operation of the power system and the improvement of economic benefits. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 is a logic flow chart of the present invention;
[0047] Figure 2 It is a flow chart for predicting the trend of changes in a set time window in the future;
[0048] Figure 3 It is the structural diagram of the fault diagnosis system of the metering device at the plant and station gateway. DETAILED DESCRIPTION
[0049] In the description of this application, those skilled in the art should know that this application can be implemented as a method, an apparatus, an electronic device, and a computer-readable storage medium. Therefore, this application can be specifically implemented in the following forms: complete hardware, complete software (including firmware, resident software, microcode, etc.), a combination of hardware and software. In addition, in some embodiments, this application can also be implemented in the form of a computer program product in one or more computer-readable storage media, and the computer-readable storage medium contains computer program code.
[0050] The above-mentioned computer-readable storage medium may adopt any combination of one or more computer-readable storage media. Computer-readable storage media include: electrical, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or devices, or any combination of the above. More specific examples of computer-readable storage media include: portable computer disks, hard disks, random access memories, read-only memories, erasable programmable read-only memories, flash memories, optical fibers, optical disc read-only memories, optical storage devices, magnetic storage devices, or any combination of the above. In the present application, computer-readable storage media can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device, or device.
[0051] The acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws.
[0052] The present application describes the provided methods, devices, and electronic devices through flowcharts and / or block diagrams.
[0053] It should be understood that each box in the flowchart and / or block diagram and the combination of boxes in the flowchart and / or block diagram can be implemented by computer-readable program instructions. These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine, and these computer-readable program instructions are executed by a computer or other programmable data processing device to produce a device that implements the functions / operations specified by the boxes in the flowchart and / or block diagram.
[0054] These computer-readable program instructions may also be stored in a computer-readable storage medium that enables a computer or other programmable data processing device to work in a specific manner. In this way, the instructions stored in the computer-readable storage medium produce an instruction device product including functions / operations specified in the blocks in the flowchart and / or block diagram.
[0055] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device, so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby enabling the instructions executed on the computer or other programmable data processing apparatus to provide a process for implementing the functions / operations specified in the blocks in the flowchart and / or block diagram.
[0056] The present application is described below in conjunction with the drawings in the present application.
[0057] Embodiment 1: Figure 1 to Figure 2 As shown, the fault diagnosis method of the plant and station gateway metering device of the present invention specifically includes the following steps:
[0058] S1. Collect the metering data set of the power plant and station gateway of the metering equipment to be diagnosed within the past set time window; the metering data set of the power plant and station gateway includes active power, reactive power, voltage, current, power factor, waveform distortion rate and frequency deviation;
[0059] Step S1 is used to collect necessary metering data to lay a solid data foundation for subsequent fault analysis; it specifically includes the following steps:
[0060] S11. Data source determination: The data source specifically comes from smart meters and sensors or SCADA systems;
[0061] Smart meters and sensors: In modern power systems, power stations are usually equipped with high-precision smart meters and various sensors. The above equipment can monitor and record key parameters such as power, voltage, current, power factor, waveform distortion rate and frequency deviation in real time. Smart meters are usually connected to data acquisition systems through communication interfaces (such as RS-485, Ethernet or wireless).
[0062] SCADA system: The supervisory control and data acquisition system is widely used in power systems. It can collect data from measurement points distributed throughout the plant and station, and perform preliminary processing to provide data support for higher-level analysis;
[0063] S12. Data item definition: Data items are a set of metering data at the plant and station gateway, including active power, reactive power, voltage, current, power factor, waveform distortion rate and frequency deviation;
[0064] Active power and reactive power: reflect the actual consumption of electric energy (active power) and the change of energy storage (reactive power) during the energy exchange process. They are important indicators for measuring power efficiency and power quality.
[0065] Voltage and current: directly determine the safety and stability of power transmission. Abnormal fluctuations may indicate line failure or equipment damage.
[0066] Power factor: An indicator that measures the efficiency of electric energy utilization. A low power factor indicates the presence of nonlinear or inductive loads, which may lead to increased system losses.
[0067] Waveform distortion rate: that is, harmonic content, reflecting the degree to which the current or voltage waveform deviates from the sine wave. A high distortion rate will reduce equipment efficiency, increase heat generation, interfere with communications, etc.
[0068] Frequency deviation: The stability of the grid frequency is the key to ensure the synchronous operation of the power system. Excessive frequency deviation may cause the generator to be disconnected or equipment to be damaged;
[0069] S13. Data collection strategy: According to the operating characteristics of the power system and the fault occurrence cycle, the length of the data collection time window should be reasonably set, such as 24 hours, one week or one month, to ensure that the collected data can not only reflect the immediate status of the equipment, but also capture potential periodic problems; ensure the integrity and accuracy of the collected data, and implement data quality monitoring, including but not limited to checking data continuity, eliminating outliers, and verifying data logical consistency.
[0070] In this step, by collecting multiple key parameters including active power, reactive power, voltage, current, power factor, waveform distortion rate and frequency deviation, we ensure comprehensive coverage of the working status evaluation of the metering device, which helps to capture subtle signs of various potential faults, whether it is electrical performance degradation or power quality problems; setting flexible time window lengths to adapt to different power system operating characteristics and the periodicity of fault occurrence can not only monitor the immediate situation, but also discover long-term trends or periodic problems, and enhance the pertinence and effectiveness of fault diagnosis; by implementing strict data quality monitoring measures, we ensure the reliability and accuracy of the data used for analysis.
[0071] S2. Divide the plant and station gateway metering data set within the past set time window into units according to a preset time span to obtain a plurality of plant and station gateway metering data set units; each plant and station gateway metering data set unit includes active power, reactive power, voltage, current, power factor, waveform distortion rate and frequency deviation within the corresponding time span;
[0072] Step S2 aims to form a series of data units with a fixed time span by slicing the continuous historical measurement data in time; by converting the long-term, continuous data stream into a series of relatively independent and easy-to-manage data segments, it is convenient for subsequent processing and analysis; the specific unit division includes the following steps:
[0073] S21. Determination of time span: First, a suitable time span needs to be set according to the characteristics of the power system and the general cycle of fault occurrence; the time span determines how the data in the time window will be segmented; the selection of the time span should take into account the volatility of the data and the duration of the fault mode. If the data fluctuates greatly, a shorter time span may be required to capture the changes; based on the known fault mode, determine the time length that can reflect the fault characteristics;
[0074] S22, data slicing: according to the determined time span, the plant and station gateway metering data set within the time window collected in step S1 is divided into units, and the data within each time span becomes an independent data unit; this process is like cutting a long time period of data stream into multiple small segments, each small segment is a "plant and station gateway metering data set unit"; each unit contains the measured values of all relevant parameters such as active power, reactive power, voltage, current, power factor, waveform distortion rate and frequency deviation, which reflect the operating status of the metering device within the time period;
[0075] S23. Data sorting: After completing the unit division, the data set units obtained by the division need to be sorted to ensure the integrity and accuracy of the data; this includes checking for missing data, outliers, etc., and performing necessary cleaning and processing; the sorted data set units can be stored for use in subsequent steps.
[0076] In this step, by setting a suitable time span, step S2 can capture short-term changes in the operating state of the metering device, which helps to timely discover and respond to sudden faults or abnormal conditions; dividing the data set into units according to the time span can convert continuous data streams into discrete data units, which helps to reduce the amount of calculation and storage requirements during data processing; at the same time, each data unit contains a complete set of parameter information, which is convenient for subsequent analysis and comparison; the setting of the time span can be adjusted according to different application scenarios and needs; for fault types that require rapid response, a shorter time span can be selected; for situations where long-term operating trends need to be analyzed, a longer time span can be selected; the flexibility of the above time span setting enables this method to adapt to different diagnostic needs.
[0077] S3, aligning characteristic parameters of several plant and station gateway metering data set units in chronological order to obtain a metering device monitoring parameter matrix;
[0078] Step S3 is used to align the characteristic parameters of the collected plant and station gateway metering data set units in chronological order, so as to construct a metering device monitoring parameter matrix for subsequent analysis; the following is a detailed step-by-step introduction to step S3:
[0079] S31. Clarify the parameter items contained in each metering data set unit, namely active power, reactive power, voltage, current, power factor, waveform distortion rate and frequency deviation, etc.; in the metering device monitoring parameter matrix, each row represents all parameter measurement values under a metering data set unit, which means that the data in the same row records the status of all key parameters within the time span; and each column represents a specific parameter, the measurement value under different time spans, and the order of the columns is arranged according to the time sequence;
[0080] S32. Considering that there may be slight time offsets or sampling frequency differences between different units, it is necessary to use time interpolation or data resampling technology to accurately align the time series of each parameter on the time axis; this step ensures that the parameters at different time points can be directly compared horizontally;
[0081] S33. According to the above rules, the parameter values within each time span are arranged vertically according to the parameter type to form a column of the metering device monitoring parameter matrix; as different types of parameters are filled, new columns are added in sequence until the data of all data collection units are integrated into the metering device monitoring parameter matrix.
[0082] Example description: Assume that there are data units with three time spans, each unit contains the measured values of the above seven parameters; the first row of the metering device monitoring parameter matrix will contain all parameter values of the first time span, which are active power, reactive power, voltage, current, power factor, waveform distortion rate and frequency deviation at that moment; the second row corresponds to the parameter values of the second time span, and so on, to form a complete matrix; after completing the construction of the metering device monitoring parameter matrix, review the data again to ensure that there are no missing or duplicate records, and that the data at each time point is complete and accurate.
[0083] In this step, the data with different time spans and different parameters are integrated into a unified matrix structure to improve the organization and processability of the data. The time alignment strategy adopted in S3 solves the time offset problem between different units through time interpolation or data resampling technology, ensuring the consistency of all parameters on the same time axis. The constructed metering device monitoring parameter matrix provides a directly available input format for the subsequent machine learning model, avoiding the tedious data conversion and preprocessing work before model input. The above structured data format can accelerate the training and reasoning process of the algorithm and improve the response speed of the overall diagnostic system. By arranging the parameters in chronological order in the column direction, the changing trend of each parameter over time can be intuitively observed, which helps to discover the correlation between parameters and potential failure modes.
[0084] S4, inputting the metering device monitoring parameter matrix into the pre-built metering device fault analysis model, and outputting the preliminary fault type of the metering device;
[0085] Constructing the fault analysis model of the metering device is the key link of step S4. The model is mainly used to analyze the monitoring parameter matrix and output the initial fault type. The following is a detailed step-by-step introduction to the construction process of the fault analysis model of the metering device:
[0086] S41. Data collection and preprocessing: Collect a large amount of historical metering device data, including data under normal operating conditions and various fault conditions; these data should cover a variety of parameters, such as active power, reactive power, voltage, current, power factor, waveform distortion rate and frequency deviation; preprocess the collected data, including data cleaning, standardization and feature extraction; data cleaning aims to remove outliers, missing values and duplicate values; standardization is to convert data to the same scale for subsequent analysis; feature extraction is to extract features useful for fault identification from the original data;
[0087] S42. Model selection and algorithm design: According to the characteristics of the data and the requirements of the problem, select the appropriate machine learning algorithm to build the fault analysis model; commonly used algorithms include decision trees, random forests, neural networks, etc.; these algorithms can learn the fault mode from the data and use it for subsequent fault identification; when designing the algorithm, it is necessary to consider factors such as model complexity, training time, prediction accuracy, etc. to find the best balance;
[0088] S43, Model training and optimization: Use preprocessed historical data to train the model; during the training process, optimize the model performance by adjusting the model parameters and structure; cross-validation, grid search and other techniques can be used to select the best model parameters to improve the generalization ability and prediction accuracy of the model;
[0089] S44, Model evaluation and verification: Use an independent test data set to evaluate the trained model to verify its performance in practical applications; evaluation indicators may include accuracy, recall, F1 value, etc.; if the model performance is poor, you can return to steps 2 and 3 to adjust the algorithm or reselect the model until satisfactory performance is achieved;
[0090] S45, model deployment and integration: deploy the trained model with excellent performance so that it can be integrated with the actual metering device data interface; in step S4, input the metering device monitoring parameter matrix collected in real time into the deployed fault analysis model, and the model will infer and judge the input data based on the learned knowledge, and finally output the preliminary fault type.
[0091] In this step, by adopting a machine learning algorithm, the fault analysis model of the metering device takes into account multiple parameters including active power, reactive power, voltage, current, power factor, waveform distortion rate and frequency deviation, and can realize a comprehensive analysis of multiple parameters, thereby more comprehensively reflecting the operating status of the metering device and improving the comprehensiveness of fault identification.
[0092] Specifically, the metering device fault analysis model adopts a convolutional neural network, and the metering device fault analysis model includes the following structure:
[0093] Input layer: The input data is the monitoring parameter matrix of the metering device. Each row contains 7 parameters, including active power, reactive power, voltage, current, power factor, waveform distortion rate and frequency deviation. Assuming that T time units are divided according to the set time span in the time window, and each time unit corresponds to a metering data set unit at the plant station, the dimension of the input matrix is (T, 7);
[0094] Convolutional layer: The convolutional layer is equipped with 32 filters, and the width of each filter is set to 3, which can effectively capture the parameter change trend and interaction between three consecutive time units. It is especially suitable for local feature learning of time series data and helps to discover potential fault modes. The step size of the filter is set to 1 to maintain fine-grained analysis of the input matrix. ReLU is used as the activation function to enhance the model's ability to express nonlinearity, so that the model can fit more complex nonlinear fault types and the relationship between parameters, and improve the model's expressiveness.
[0095] Pooling layer: used to reduce the time series dimension of the input matrix. Through dimensionality reduction operations, the amount of data is reduced while retaining key features, optimizing computational efficiency and memory usage, and avoiding excessive computational burden. The pooling window size is set to 2×7, and the step size is set to 2. Pooling operations are performed on every two consecutive time units in the time series. A step size of 2 means that one value is taken for every two time units to represent the area, thereby halving the output time series length. Therefore, the amount of time series data is actually reduced while retaining the key features of each time period.
[0096] Fully connected layer: The fully connected layer includes the first fully connected layer and the second fully connected layer. After convolution and pooling, the data is flattened and sent to the first fully connected layer. The number of neurons in the first fully connected layer is set to 128, and ReLU is used as the activation function to further abstract and integrate features. A Dropout layer is added between the fully connected layers to reduce the risk of overfitting by discarding some neurons with a probability of 0.5. The number of neurons in the second fully connected layer is set to 64, and ReLU activation is also used to further abstract and integrate features.
[0097] Output layer: The number of neurons in the output layer is equal to the total number of fault types. Assuming there are n types of faults, the output layer has n neurons. Use the Softmax function to convert the output of the fully connected layer into the probability distribution of each fault type, that is, the fault type and its probability of the metering device. The fault type with the highest probability is output as the preliminary fault type of the metering device.
[0098] Through the above structure, the metering device fault analysis model can effectively learn the mapping relationship from the metering device monitoring parameter matrix to the fault type from the time series data, and then accurately diagnose the initial fault type of the metering device.
[0099] S5. Obtain the power transmission characteristics of the plant and station within the future set time window, and generate the predicted change trend of each parameter in the plant and station gateway metering data set based on the initial fault type of the metering device and the power transmission characteristics of the plant and station within the future set time window;
[0100] In step S5, the power transmission characteristics of the power plant refer to a series of key factors that can affect the future changes of the power plant gateway metering data. The power transmission characteristics of the power plant help the model to more accurately predict the trend of future parameter changes; the acquisition method mainly includes but is not limited to the following aspects:
[0101] Load forecasting: forecasting electricity demand in future time windows based on historical load data, seasonal changes, special events (such as holidays, extreme weather), and economic activity indicators. Load forecasting is usually done using time series analysis and machine learning models (such as random forests and neural networks).
[0102] Power generation plan: Consider the uncertainty of renewable energy generation (such as the intermittency of wind and solar energy), the scheduling plan of traditional energy (such as thermal power and hydropower), and the power market transaction situation, which will affect the power supply structure and stability of the power grid, and thus affect the power quality parameters;
[0103] Grid maintenance and transformation plans: planned grid maintenance work, equipment upgrades or new transmission lines, which will have short-term or long-term impacts on the operating parameters of the grid;
[0104] Environmental factors: Climate conditions such as temperature and humidity can significantly affect transmission efficiency and power demand. Especially for temperature-sensitive equipment and transmission lines, the potential impact of these factors on voltage drop and current changes needs to be considered.
[0105] Step S5 is used to generate the predicted change trend of various parameters in the plant-station gateway metering data set according to the initial fault type of the metering device and the plant-station transmission characteristics within the future set time window; in specific implementation, it is necessary to fully consider various plant-station transmission characteristics such as load forecasting, power generation plan, power grid maintenance and transformation plan, and environmental factors, and combine machine learning models or other prediction algorithms to perform trend prediction; the following is a detailed introduction:
[0106] S51. Integrate fault type and transmission characteristic data: Before starting the prediction, first encode or convert the initial fault type of the metering device obtained in step S4 into a feature form that can be recognized by the model; the fault type can be regarded as an indicator variable, indicating specific problems that may currently exist in the metering device, such as sensor failure, line aging, etc., which is crucial for understanding future parameter changes; merge this fault feature with the plant transmission characteristics (load forecast, power generation plan, grid maintenance and transformation plan, environmental factors) mentioned in step S5; this means that the input of each prediction model not only includes conventional transmission characteristic data, but also specifically includes information about the current health status of the equipment, so that the model can consider the potential impact of the fault type on the parameter change trend;
[0107] S52. Build a prediction model: In the feature engineering stage, consider the interaction between fault type and transmission characteristics; for example, if a device is predicted to have a sensor failure, the predicted trends of current and voltage may be different under the same load forecast; when designing the model, cross features can be introduced to capture this interaction;
[0108] S53, training and adjusting the model: During the model training phase, ensure that the input data contains both specific fault type information and detailed transmission characteristic data; this requires the model structure or algorithm to be able to accept and effectively process such composite inputs; through training, the model learns the expected change pattern of various parameters (such as voltage, current, etc.) in the metering data of the power station under given fault types and transmission characteristics; this step involves a multi-output model, each output corresponds to a key parameter that needs to be predicted;
[0109] S54. Forecast and trend generation: Use a trained and verified model, input the transmission characteristic data of the future time period and the determined fault type, and the model output will be the predicted value of each parameter in the time period, which is reflected as the trend of parameter change; analyze the prediction results to ensure that the prediction trend is logically reasonable and consistent with historical data and known physical laws; at the same time, by comparing the prediction results under different fault types, the specific impact of different faults on the parameter prediction trend can be evaluated.
[0110] In this step, step S5 not only considers the transmission characteristic data of the plant, such as load forecast, power generation plan, power grid maintenance and transformation plan, and environmental factors, but also specifically incorporates the initial fault type of the metering device; this comprehensive consideration makes the prediction result more accurate and comprehensive, and can better reflect the actual operation situation; by taking the initial fault type of the metering device as the input feature, the prediction model in step S5 can learn the impact of the fault on the change trend of the metering data; this enables the model to more accurately predict the changes of various parameters in the future under a specific fault type; the prediction model in step S5 can handle composite inputs, including specific fault type information and detailed transmission characteristic data; this flexibility enables the model to adapt to different application scenarios and data characteristics, and improves the versatility and practicality of the model; by generating predicted change trends, step S5 can provide an important basis for subsequent fault diagnosis and confirmation; when there is a significant difference between the actual metering data and the predicted data, it may mean that there is an unrecognized or unconsidered fault type, thereby triggering further fault troubleshooting and confirmation processes.
[0111] S6. Continuously collect the plant and station gateway metering data set within the future set time window, and generate the actual change trend of each parameter in the plant and station gateway metering data set;
[0112] Specifically, step S6 includes the following contents:
[0113] S61. Real-time data collection: Automatically collect real-time data from metering devices at plant and substation gateways within a set time window in the future (e.g., the next week or month); use modern communication technology and Internet of Things (IoT) devices, such as smart meters, remote terminal units (RTUs), and supervisory control and data acquisition (SCADA) systems to ensure high-frequency and uninterrupted collection of key parameters such as active power, reactive power, voltage, current, power factor, waveform distortion rate, and frequency deviation;
[0114] S62. Data preprocessing: Clean and format the newly collected data as necessary to ensure that it is consistent with the input format of historical data and forecasting models; including removing outliers (such as identifying and eliminating extreme readings caused by transient interference), filling missing values (using interpolation or other estimation methods), and standardizing or normalizing data to eliminate dimensional effects and improve the applicability of the model;
[0115] S63. Parameter trend generation: Based on the continuously collected data, the actual parameter change trend is generated for comparison with the predicted trend; time series analysis is performed on each parameter (such as voltage, current, etc.), and statistical indicators such as average value, fluctuation range, trend line, etc. are calculated; moving average, exponential smoothing or more complex time series prediction models (such as ARIMA, seasonal decomposition time series prediction model, etc.) are applied to fit the change trend of the actual data to intuitively display the evolution of each parameter over time;
[0116] S64, trend comparison preparation: organize and format the actual change trend data so that it can be directly compared with the predicted change trend generated in step S5; convert the actual parameter trend into a data set consistent with the output format of the prediction model, ensuring that the time axis and parameter dimensions of the two are completely aligned to facilitate subsequent direct comparison analysis.
[0117] In this step, through real-time data collection, the working status of the metering devices at the plant and station gateways can be timely grasped to ensure the ability to respond quickly to faults; the continuous data stream provides a rich information basis for analysis and helps to capture subtle signs of faults.
[0118] S7. Compare the predicted change trend with the actual change trend. If the comparison result is higher than the preset threshold, the preliminary fault type of the metering device is used as the confirmed fault type of the metering device. If the comparison result is not higher than the preset threshold, the plant and station gateway metering data set collected within the future set time window and the plant and station gateway metering data set within the past set time window are summarized as the historical plant and station gateway metering data set, and the preliminary fault type of the metering device is re-analyzed based on the historical plant and station gateway metering data set until the comparison result is higher than the preset threshold, and the preliminary fault type of the metering device obtained by the re-analysis is used as the confirmed fault type of the metering device.
[0119] Step S7 involves comparing the predicted change trend with the actual change trend to determine the final fault type of the metering device; in step S6, the actual change trend of each parameter is generated; at the same time, in step S5, the predicted change trend is generated; the following is a detailed step-by-step introduction to step S7:
[0120] S71. Comparison analysis: Comparison of the predicted trend and the actual trend, including the following two aspects of analysis and comparison:
[0121] Trend shape comparison: compare the curve shapes of the predicted trend and the actual trend to see if they are similar, including whether the rising, falling, fluctuating and other characteristics are consistent;
[0122] Numerical difference analysis: Calculate the difference or error rate between the predicted value and the actual value, and analyze whether these differences are within an acceptable range;
[0123] S72, threshold judgment: After the comparison is completed, the analysis results need to be compared with the preset threshold; the preset threshold can be set based on historical data, expert experience or statistical methods to determine whether the predicted trend and the actual trend are consistent enough; according to the result of the threshold judgment, there are two possible situations:
[0124] High degree of agreement: If the comparison result shows that the predicted trend is highly consistent with the actual trend (i.e., the difference is above the preset threshold), the preliminary fault type of the metering device output in step S4 is confirmed as the final confirmed fault type; this means that the fault diagnosis model accurately predicts the fault manifestation and the diagnosis result is credible;
[0125] Low consistency: If the comparison result does not reach the preset threshold, it means that the current prediction model or preliminary diagnosis may be biased and the fault diagnosis process needs to be iterated. At this time, the new data collected in the future time window is merged with the previous historical data to form a more comprehensive "historical plant and station gateway metering data set". Based on this updated data set, the process from "unit division" to "matching of predicted change trend and actual change trend" is re-executed (steps S2 to S7) until a diagnosis result with a satisfactory consistency is found.
[0126] S73. Recording and optimization: After each iteration, record the comparison results and adjustments to the diagnostic process to accumulate data for subsequent model optimization and fault case library. For faults that cannot be confirmed for a long time, consider introducing expert systems or more advanced machine learning algorithms for in-depth analysis, or adjusting model parameters, optimizing feature selection, etc., to improve the model's diagnostic accuracy and generalization ability.
[0127] In this step, by matching and comparing the predicted change trend with the actual change trend, step S7 can more accurately determine the fault type of the metering device; when the comparison result does not reach the preset threshold, step S7 does not simply accept the preliminary diagnosis result, but adopts an iterative method to continuously optimize the accuracy and reliability of fault diagnosis by merging new data and re-analyzing, which can effectively cope with complex and changeable fault conditions and improve the robustness of diagnosis; in the iterative process, step S7 makes full use of historical data and newly collected data to form a more comprehensive data set, which helps to improve the performance of the diagnostic model and accumulate data resources for subsequent model optimization and fault case library; the preset threshold in step S7 can be adjusted according to actual conditions to meet different fault diagnosis needs; in addition, for faults that cannot be confirmed for a long time, more advanced algorithms or expert systems can be introduced for in-depth analysis, showing high flexibility and adjustability.
[0128] More specifically, a multi-dimensional comprehensive analysis is used to compare the predicted change trend with the actual change trend. The multi-dimensional comprehensive analysis includes trend shape comparison and numerical difference analysis. The comparison process is as follows:
[0129] Trend shape comparison aims to evaluate the similarity between the predicted change trend and the actual change trend in overall shape. Even if there may be a slight offset or speed difference between the predicted change trend and the actual change trend on the time axis, the dynamic time warping algorithm can effectively capture the nonlinear alignment relationship between the two.
[0130] Specifically, based on S5 and S6, the data series of predicted change trends and actual change trends are sorted out; the dynamic time warping algorithm is applied to find the optimal matching path by calculating the minimum cumulative distance between the two sequences, so as to quantify the shape similarity of the trend; the dynamic time warping algorithm distance is converted into a similarity score, and the smaller the distance means the higher the shape matching degree;
[0131] For example, for the predicted change trend X and the actual change trend Y, a distance matrix d is constructed, where d ij Represents X i With Y j The distance between them is usually calculated using Euclidean distance or absolute difference distance, and the calculation formula is as follows: ;
[0132] The minimum cumulative distance is calculated recursively, considering the minimum distance of the previous step plus the distance of the current step; the minimum path distance in the cumulative distance matrix is found by backtracking, and the minimum path is the best alignment path for the two sequences; the minimum path distance is converted to trend similarity and normalized using the maximum path distance; the maximum path distance refers to the cumulative distance when all points in the predicted change trend X are paired with their farthest points in the actual change trend Y; that is, without considering time alignment, each point is simply paired with the farthest point in the other sequence, and the cumulative distance obtained is the maximum path distance; the calculation formula for trend similarity is:
[0133] in, Indicates trend similarity, represents the minimum path distance, Indicates the maximum path distance.
[0134] Numerical difference analysis is to quantify the deviation between the predicted value and the actual value, and determine the prediction accuracy and the size of the error; it is usually calculated using mean square error, mean absolute error or root mean square error. Specifically:
[0135] Align the future actual change trend data collected in step S6 with the change trend data predicted in step S5 to form a comparison data set; for each parameter (such as voltage, current, etc.), calculate the above mean square error, mean absolute error or root mean square error; mean square error, mean absolute error or root mean square error provide error metrics from different perspectives. Mean square error focuses more on global error, while mean absolute error and root mean square error are more inclined to intuitive perception; based on business needs and historical data analysis, set an acceptable error threshold; for example, if the mean square error <0.1MW^2 or the mean absolute error <0.05MW, the error is considered to be within an acceptable range; taking the mean square error as an example, the calculation formula for normalizing the numerical difference analysis results is as follows:
[0136] in, Indicates the data deviation, represents the mean square error, Represents the mean square error threshold.
[0137] In summary, the comprehensive calculation formula for matching comparison is as follows: ;
[0138] Among them, F represents the comprehensive score of the matching, and They represent the weight coefficients for trend shape comparison and numerical difference analysis respectively.
[0139] By combining the two comparison methods of trend shape and numerical difference, the comprehensive analysis not only considers the overall morphological similarity of the data, but also takes into account the accuracy between the predicted value and the actual value, providing a more comprehensive evaluation dimension for fault diagnosis; the calculation of the comprehensive score F takes into account the performance of both trends and values, and by setting reasonable weights to comprehensively evaluate the degree of fit, it can more accurately distinguish the reliability of the prediction results and improve the accuracy of fault diagnosis; the above-mentioned framework of comprehensive calculation of fit comparison is easy to expand, and comparison indicators of other dimensions can be added as needed, such as key point comparison, to further enhance the diagnostic ability of the model.
[0140] Embodiment 2, as Figure 3 As shown, the plant and station gateway metering device fault diagnosis system of the present invention specifically includes the following modules:
[0141] The data collection module is used to collect the metering data set of the power plant and station gateway of the metering equipment to be diagnosed within the past set time window; the metering data set of the power plant and station gateway includes active power, reactive power, voltage, current, power factor, waveform distortion rate and frequency deviation;
[0142] The data division module is used to divide the collected plant and station gateway metering data set into units according to a preset time span to generate a number of plant and station gateway metering data set units; each plant and station gateway metering data set unit contains active power, reactive power, voltage, current, power factor, waveform distortion rate and frequency deviation within the corresponding time span;
[0143] The parameter alignment module is used to align the characteristic parameters of the divided plant and station gateway metering data set units in chronological order to construct a metering device monitoring parameter matrix;
[0144] A fault analysis module is used to input the metering device monitoring parameter matrix into a pre-built metering device fault analysis model and output a preliminary fault type of the metering device;
[0145] The trend prediction module is used to obtain the power transmission characteristics of the plant and station within the future set time window, and generate the predicted change trend of various parameters in the plant and station gateway metering data set in combination with the initial fault type;
[0146] A fault determination module is used to continuously collect actual plant and station gateway metering data within a future set time window to generate an actual change trend; and to match and compare the predicted change trend with the actual change trend; if the comparison result is higher than a preset threshold, the preliminary fault type of the metering device is used as the confirmed fault type of the metering device; if the comparison result is not higher than the preset threshold, the plant and station gateway metering data set collected within the future set time window and the plant and station gateway metering data set within the past set time window are summarized as a historical plant and station gateway metering data set, and the preliminary fault type of the metering device is re-analyzed based on the historical plant and station gateway metering data set until the comparison result is higher than the preset threshold, and the preliminary fault type of the metering device obtained by the re-analysis is used as the confirmed fault type of the metering device;
[0147] The result output module is used to output the confirmed fault type of the metering device, providing a basis for the maintenance and repair of the power system.
[0148] In this embodiment, through automated data collection and analysis, the reliance on manual inspections and empirical judgments is significantly reduced, human errors are reduced, and the speed and accuracy of fault diagnosis are improved; the system can simultaneously consider multiple parameters and complex fault types, and is no longer limited to the analysis of a single parameter or a simple fault mode, thereby improving the ability to identify and handle comprehensive faults; a trend prediction module is introduced, and the predicted data of a future set time window is compared with the actual operation data, thereby realizing forward-looking diagnosis of faults, which helps to take measures in advance and reduce the impact of sudden faults on the operation of the power system; the fault determination module automatically adjusts and optimizes the fault diagnosis model by continuously comparing the prediction with the actual situation. When the prediction does not match the actual data well, it can actively backtrack and re-analyze, so that the system has the ability to learn and evolve, and the diagnostic accuracy continues to improve over time; through a strict prediction and actual data comparison and verification mechanism, the reliability of fault diagnosis is ensured, false alarms and missed alarms are reduced, and a strong guarantee is provided for the stable and economic operation of the power system, avoiding unnecessary maintenance costs and power outage losses; the advantages of modern technology are fully utilized to process massive data, extract key features, and build an efficient fault analysis model, demonstrating the practical application value of advanced technology in power system operation and maintenance.
[0149] The various variations and specific embodiments of the plant gateway metering device fault diagnosis method in the aforementioned embodiment 1 are also applicable to the plant gateway metering device fault diagnosis system of this embodiment. Through the aforementioned detailed description of the plant gateway metering device fault diagnosis method, those skilled in the art can clearly know the implementation method of the plant gateway metering device fault diagnosis system in this embodiment, so for the sake of brevity of the specification, it will not be described in detail here.
[0150] In addition, the present application also provides an electronic device, including a bus, a transceiver, a memory, a processor, and a computer program stored in the memory and executable on the processor. The transceiver, the memory, and the processor are respectively connected via a bus. When the computer program is executed by the processor, each process of the above-mentioned method for controlling output data is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0151] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for diagnosing faults of a metering device at a plant station, characterized in that: The method comprises: Collect the metering data set of the plant and station gateways of the metering equipment to be diagnosed within the past set time window; Dividing the plant and station gateway metering data set within a past set time window into units according to a preset time span to obtain a number of plant and station gateway metering data set units; Align the characteristic parameters of several metering data sets at the plant and station gateways in chronological order to obtain the monitoring parameter matrix of the metering device; Input the metering device monitoring parameter matrix into the pre-built metering device fault analysis model, and output the preliminary fault type of the metering device; Obtain the power transmission characteristics of the power plant in the future set time window, and generate the predicted change trend of each parameter in the power plant gateway metering data set based on the initial fault type of the metering device and the power transmission characteristics of the power plant in the future set time window; Continuously collect the plant and station gateway metering data set within the future set time window, and generate the actual change trend of each parameter in the plant and station gateway metering data set; The predicted change trend and the actual change trend are compared and matched. If the comparison result is higher than the preset threshold, the initial fault type of the metering device is used as the confirmed fault type of the metering device; If the comparison result is not higher than the preset threshold, the plant and station gateway metering data set collected within the future set time window and the plant and station gateway metering data set within the past set time window are summarized as the historical plant and station gateway metering data set, and the preliminary fault type of the metering device is re-analyzed based on the historical plant and station gateway metering data set until the comparison result is higher than the preset threshold, and the preliminary fault type of the metering device obtained by the re-analysis is used as the confirmed fault type of the metering device; The matching comparison between the predicted change trend and the actual change trend includes trend shape comparison and numerical difference analysis; The trend shape comparison is used to evaluate the trend similarity between the predicted change trend and the actual change trend in morphology; The numerical difference analysis is used to quantify the deviation between the predicted value in the predicted change trend and the actual value in the actual change trend; The comprehensive calculation formula for the matching comparison is as follows: ; Among them, F represents the comprehensive score of the matching, and They represent the weight coefficients for trend shape comparison and numerical difference analysis respectively; Indicates trend similarity; Indicates the degree of data deviation; The trend similarity calculation formula is: ; in, represents the minimum path distance, represents the maximum path distance; The data deviation calculation formula is: ; in, represents the mean square error, Represents the mean square error threshold.
2. The method for diagnosing faults of a metering device at a plant station according to claim 1, characterized in that: The plant gateway metering data set includes active power, reactive power, voltage, current, power factor, waveform distortion rate and frequency deviation, wherein each plant gateway metering data set unit includes active power, reactive power, voltage, current, power factor, waveform distortion rate and frequency deviation within a corresponding time span.
3. The fault diagnosis method for a metering device at a plant station gateway as claimed in claim 2, characterized in that: The power transmission characteristics of the plant include load forecasting, power generation plan, power grid maintenance and transformation plan, and environmental factors.
4. The method for diagnosing faults of a metering device at a plant or station gateway according to claim 1, characterized in that: The method for obtaining the minimum path distance includes: For the predicted change trend X and the actual change trend Y, a distance matrix d is constructed, where d ij Indicates the predicted change trend X i The actual change trend Y j The distance between The minimum cumulative distance is calculated recursively, taking into account the minimum distance of the previous step plus the distance of the current step; Find the minimum path distance in the cumulative distance matrix by backtracking.
5. The method for diagnosing faults of a metering device at a plant or station gateway as claimed in claim 1, characterized in that: The metering device fault analysis model includes the following structure: Input layer: The input layer receives data as the monitoring parameter matrix of the metering device; Convolutional layer: The convolutional layer is set with 32 filters, the width of each filter is set to 3, the step size of the filter is set to 1, and ReLU is used as the activation function to enhance the nonlinear expression ability of the metering device fault analysis model for various parameters; Pooling layer: The pooling window size is set to 2×7 and the step size is set to 2 to reduce the time series dimension of the metering device monitoring parameter matrix; Fully connected layer: The fully connected layer includes the first fully connected layer and the second fully connected layer. The number of neurons in the first fully connected layer is set to 128, and the number of neurons in the second fully connected layer is set to 64. Both the first and second fully connected layers use ReLU as the activation function; Output layer: The number of neurons in the output layer is equal to the total number of fault types. The output layer converts the output of the fully connected layer into the fault type of the metering device and its probability, and outputs the fault type with the highest probability as the preliminary fault type of the metering device.
6. A fault diagnosis system for metering devices at plant and substation gateways, characterized in that: The system comprises: A data collection module is used to collect a set of metering data at the plant and station gateway of the metering equipment to be diagnosed within a set time window in the past; the metering data at the plant and station gateway includes active power, reactive power, voltage, current, power factor, waveform distortion rate and frequency deviation; The data division module is used to divide the collected plant and station gateway metering data set into units according to a preset time span to generate a number of plant and station gateway metering data set units; each plant and station gateway metering data set unit contains active power, reactive power, voltage, current, power factor, waveform distortion rate and frequency deviation within the corresponding time span; The parameter alignment module is used to align the characteristic parameters of the divided plant and station gateway metering data set units in chronological order to construct a metering device monitoring parameter matrix; A fault analysis module is used to input the metering device monitoring parameter matrix into a pre-built metering device fault analysis model and output a preliminary fault type of the metering device; The trend prediction module is used to obtain the power transmission characteristics of the plant and station within the future set time window, and generate the predicted change trend of various parameters in the plant and station gateway metering data set in combination with the initial fault type; A fault determination module is used to continuously collect actual plant and station gateway metering data within a future set time window to generate an actual change trend; and to compare the predicted change trend with the actual change trend; if the comparison result is higher than a preset threshold, the preliminary fault type of the metering device is used as the confirmed fault type of the metering device; if the comparison result is not higher than the preset threshold, the plant and station gateway metering data set collected within the future set time window and the plant and station gateway metering data set within the past set time window are summarized as a historical plant and station gateway metering data set, and the preliminary fault type of the metering device is re-analyzed based on the historical plant and station gateway metering data set until the comparison result is higher than the preset threshold, and the preliminary fault type of the metering device obtained by the re-analysis is used as the confirmed fault type of the metering device; The result output module is used to output the confirmed fault type of the metering device, providing a basis for the maintenance and repair of the power system; The matching comparison between the predicted change trend and the actual change trend includes trend shape comparison and numerical difference analysis; The trend shape comparison is used to evaluate the trend similarity between the predicted change trend and the actual change trend in morphology; The numerical difference analysis is used to quantify the deviation between the predicted value in the predicted change trend and the actual value in the actual change trend; The comprehensive calculation formula for the matching comparison is as follows: ; Among them, F represents the comprehensive score of the matching, and They represent the weight coefficients for trend shape comparison and numerical difference analysis respectively; Indicates trend similarity; Indicates the degree of data deviation; The trend similarity calculation formula is: ; in, represents the minimum path distance, represents the maximum path distance; The data deviation calculation formula is: ; in, represents the mean square error, Represents the mean square error threshold.
7. An electronic device for fault diagnosis of a metering device at a plant station gateway, comprising a bus, a transceiver, a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the transceiver, the memory, and the processor are connected via the bus, and characterized in that: When the computer program is executed by the processor, the steps in the method according to any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps in the method according to any one of claims 1 to 5 are implemented.
