Electric power meter data recovery method and system

By monitoring the status of the power meter response module, using error detection models and backup data, and dynamically adjusting the recovery strategy, the problem of poor data recovery in the existing technology is solved, and power meter data recovery with high confidence and accuracy is achieved.

CN119166415AActive Publication Date: 2024-12-20SHENZHEN VIPSTEN ELECTRONIC CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411189508.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2024-12-20
Estimated Expiration
2044-08-28

AI Technical Summary

Technical Problem

The existing data recovery methods cannot fully consider the dependence between the complex structure of multimodal data in power power meters and the response module, resulting in poor data recovery results and cannot meet the high confidence requirements.

Method used

By receiving the power meter startup instructions, monitoring the status of the response module, using the pre-trained error detection model for error node perception, determining the structural association information and recovery granularity, combining the fault-tolerant recovery cost of backup data, dynamically adjusting the recovery strategy to achieve self-recovery and reuse recovery.

Benefits of technology

Improve the confidence and accuracy of data recovery, ensure the stable operation of the power system in complex situations, and overcome the problem of inflexible recovery strategies in traditional methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119166415A_ABST
    Figure CN119166415A_ABST
Patent Text Reader

Abstract

The invention provides an electric power meter data recovery method and system, and the method comprises the steps: carrying out the error node perception of response error data of a target electric power meter, and determining the information difference entropy between error node features; executing self-recovery operation on the response error data according to the structure association information of the data among the response modules to obtain self-recovery data; determining the recovery granularity of the response error data through the feature gradient difference and the information difference entropy in the self-recovery data; the fault-tolerant recovery cost is determined according to the structure dependency relationship and the information difference entropy between the node backup data of each response module; and further adjusting a data recovery strategy through recovery granularity and fault-tolerant recovery cost feedback, and performing confidence recovery on the data of the target electric power meter after error response based on the data recovery strategy of feedback adjustment. By adopting the scheme of the invention, the structural association multiplexing of the multi-modal data in the electric power meter can be realized, so that the confidence coefficient of data recovery is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data recovery, and more specifically, to a method and system for recovering data of an electric power meter. Background Art

[0002] As an important tool for monitoring and managing power equipment, electric power meters often need to process multimodal data such as voltage, current, power factor, etc. during operation as the complexity of power systems continues to increase. The accuracy and integrity of these data are crucial to the stable operation of power systems. However, since there are many response modules inside the electric power meter and they are interdependent, data errors caused by module failures or data transmission problems often occur in actual applications. If these errors are not effectively handled, they may affect the normal operation of the power system and cause safety hazards.

[0003] In the prior art, traditional data recovery methods often rely on simple error log analysis and preset recovery strategies, but these methods cannot fully consider the complex structure of multimodal data and the dependencies between different response modules, thereby limiting the effectiveness and accuracy of data recovery. As a result, the existing data recovery technology has problems such as poor recovery effect and inflexible recovery strategy when dealing with response errors of electric power meters, and thus cannot meet the high-confidence data recovery requirements of the power system. Therefore, how to achieve structural correlation reuse of multimodal data in electric power meters to improve the confidence of data recovery has become a difficult problem faced by the industry. Summary of the invention

[0004] The present application provides a method and system for recovering data of an electric power meter, which can realize structural association multiplexing of multimodal data in the electric power meter, thereby improving the confidence of data recovery.

[0005] In a first aspect, the present application provides a method for recovering data of an electric power meter, comprising the following steps:

[0006] Receive a start-up instruction from a target electric power meter, monitor the status identifiers of each response module in the target electric power meter, filter out error logs of each response module according to all status identifiers, and obtain response error data;

[0007] Based on the pre-trained error detection model, the response error data is subjected to error node perception to obtain error node features of each response module, and then the information difference entropy between the error node features is determined;

[0008] Determine the structural association information of the data between the various response modules when the response error occurs according to all the error node characteristics, and then perform a self-recovery operation on the response error data according to the structural association information to obtain self-recovery data;

[0009] Determine the recovery granularity of each error log in the response error data when self-recovery is performed after the response error by using the feature gradient difference in the self-recovery data and the information difference entropy;

[0010] Acquire the backup data of the target electric power meter, extract the node backup data of each response module from the backup data, and then determine the fault-tolerant recovery cost when the backup data is used for multiplexing recovery after a response error based on the structural dependency relationship between the backup data of each node and the information difference entropy;

[0011] When the data fault tolerance rate of the target electric power meter is lower than the standard fault tolerance threshold, the data recovery strategy is adjusted through the recovery granularity and the fault tolerance recovery cost feedback, and then the data of the target electric power meter after the response error is confidently recovered based on the feedback-adjusted data recovery strategy.

[0012] Preferably, the error logs of each response module are screened out according to all status identifiers, and the response error data obtained specifically includes:

[0013] Based on the pre-trained state model, an abnormal state identification set is obtained from all state identifications;

[0014] Extracting error logs from the response logs of each response module according to the abnormal status identification set;

[0015] A data group consisting of all error logs is used as response error data.

[0016] Preferably, the error node perception of the response error data is performed based on the pre-trained error detection model to obtain the error node features of each response module, specifically including:

[0017] Using the response error data as initialization parameters of a pre-trained error detection model;

[0018] The error detection model is used to perceive the error nodes in each response module and obtain the error node features of each response module.

[0019] Preferably, determining the information difference entropy between the features of each error node specifically includes:

[0020] Determine the information difference between each error node feature and other error node features;

[0021] The entropy characteristics of all information differences are described to obtain the information difference entropy between the features of each error node.

[0022] Preferably, determining the structural association information of data between various response modules when a response error occurs according to all error node characteristics specifically includes:

[0023] Determine the structural association diagram of data interaction between various response modules;

[0024] Determine the functional dependency values ​​between the error node features through the propagation paths of all error node features in each response module;

[0025] Performing topological adjustment on the edge weights in the structure association graph based on all functional dependency values ​​to obtain a topological structure association graph;

[0026] The structural association information of the data between the various response modules when a response error occurs is extracted from the topological structure association diagram.

[0027] Preferably, the fault-tolerant recovery cost when the backup data is used for multiplexing recovery after determining a response error based on the structural dependency relationship between the backup data of each node and the information difference entropy specifically includes:

[0028] Obtain self-recovery data after executing the self-recovery operation;

[0029] The self-recovery data is multiplexed and restored by the backup data to obtain multiplexed recovery data, and then a recovery confidence distance between the multiplexed recovery data and the self-recovery data is determined;

[0030] Determine the structural dependencies between backup data of each node;

[0031] Determine the recovery cost of using the backup data for multiplexing recovery after a response error through the structural dependency and the recovery confidence distance;

[0032] The recovery cost is compensated for fault tolerance based on the information difference entropy to obtain a fault tolerance recovery cost when the backup data is used for multiplexing recovery after a response error.

[0033] Preferably, adjusting the data recovery strategy through the recovery granularity and the fault-tolerant recovery cost feedback specifically includes:

[0034] Get the policy value of the data recovery policy;

[0035] Determine the state feedback amount of the data recovery strategy through the recovery granularity and the fault-tolerant recovery cost;

[0036] The data recovery strategy is adjusted based on the strategy value and the state feedback amount.

[0037] In a second aspect, the present application provides an electric power meter data recovery system, comprising:

[0038] An acquisition module is used to monitor the status identifiers of each response module in the target power meter after receiving the start-up instruction of the target power meter, filter out the error logs of each response module according to all the status identifiers, and obtain the response error data;

[0039] A processing module, configured to perform error node perception on the response error data based on a pre-trained error detection model, obtain error node features of each response module, and further determine information difference entropy between each error node feature;

[0040] The processing module is further used to determine the structural association information of the data between the various response modules when the response error occurs according to all the error node characteristics, and then perform a self-recovery operation on the response error data according to the structural association information to obtain self-recovery data;

[0041] The processing module is further used to determine the recovery granularity of each error log in the response error data when self-recovery is performed after the response error through the feature gradient difference in the self-recovery data and the information difference entropy;

[0042] The processing module is further used to obtain backup data of the target electric power meter, extract node backup data of each response module from the backup data, and then determine the fault-tolerant recovery cost when the backup data is used for multiplexing recovery after a response error based on the structural dependency relationship between the backup data of each node and the information difference entropy;

[0043] The execution module is used to adjust the data recovery strategy through the recovery granularity and the fault tolerance recovery cost feedback when the data fault tolerance rate of the target power meter is lower than the standard fault tolerance threshold, and then perform confidence recovery on the data of the target power meter after the response error based on the feedback adjusted data recovery strategy.

[0044] In a third aspect, the present application provides a computer device, comprising a memory and a processor, wherein the memory stores codes, and the processor is configured to obtain the codes and execute the above-mentioned electric power meter data recovery method.

[0045] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned electric power meter data recovery method is implemented.

[0046] The technical solution provided by the embodiments disclosed in this application has the following beneficial effects:

[0047] In the embodiment of the present application, a start-up instruction of a target electric power meter is received, the state identifiers of each response module in the target electric power meter are monitored, and the error logs of each response module are screened out according to all the state identifiers to obtain response error data; error node perception is performed on the response error data based on a pre-trained error detection model to obtain error node features of each response module, and then the information difference entropy between the error node features is determined; structural association information of data between each response module when a response error occurs is determined according to all the error node features, and then a self-recovery operation is performed on the response error data according to the structural association information to obtain self-recovery data; and a feature gradient in the self-recovery data is used to obtain the self-recovery data. The method is to determine the recovery granularity of each error log in the response error data when self-recovery is performed after the response error based on the degree difference and the information difference entropy; obtain the backup data of the target electric power meter, extract the node backup data of each response module from the backup data, and then determine the fault-tolerant recovery cost when the backup data is used for multiplexing recovery after the response error based on the structural dependency relationship between the backup data of each node and the information difference entropy; when the data fault tolerance rate of the target electric power meter is lower than the standard fault tolerance threshold, adjust the data recovery strategy through the recovery granularity and the fault-tolerant recovery cost feedback, and then perform confidence recovery on the data of the target electric power meter after the response error based on the feedback-adjusted data recovery strategy.

[0048] It can be seen that the present application adjusts the data recovery strategy through the feedback of recovery granularity and fault-tolerant recovery cost, and then performs confidence recovery on the data of the target electric power meter after the response error based on the data recovery strategy adjusted by feedback; first, the structural association information of the data between each response module is used to perform a self-recovery operation on the response error data to obtain self-recovery data. By identifying the structural association information of the data between the response modules, the complexity of multimodal data (such as voltage, current, power factor, etc.) and the dependency relationship between each module can be fully considered, so that data recovery is no longer limited to simple log analysis, but uses structured information to perform more effective recovery operations, thereby improving the confidence of data recovery; secondly, the recovery granularity during the self-recovery operation is determined by the feature gradient difference and information difference entropy in the self-recovery data. The recovery granularity reflects the degree of detail of the data state involved in the recovery operation of the response error data during the self-recovery process. By quantifying the recovery granularity, it can be ensured that the recovery operation can accurately repair the target error characteristics, so that the system can accurately identify and understand the structural relationship between the error data, thereby improving the data. The accuracy of recovery; then, the fault-tolerant recovery cost during reuse recovery is determined by the structural dependency relationship and information difference entropy between the backup data of each node. The fault-tolerant recovery cost refers to the additional cost added during the system fault-tolerant processing based on the cost of using backup data and self-recovery data for reuse recovery. The quantified fault-tolerant recovery cost can be used to adjust the recovery strategy in time to ensure the stable operation of the electric power meter; finally, the current data recovery strategy is feedback-adjusted by the recovery granularity and the fault-tolerant recovery cost. Through this feedback adjustment mechanism, the data recovery of the electric power meter can be dynamically optimized and adjusted according to various complex situations, thereby overcoming the problem that the traditional data recovery method cannot adaptively adjust the recovery parameters and causes low data recovery confidence, so as to ensure that data can be effectively recovered in various complex situations, and then the data of the target electric power meter after the response error is confidently restored through the feedback-adjusted data recovery strategy; in summary, the present application scheme can realize the structural association reuse of multimodal data in the electric power meter, thereby improving the confidence of data recovery. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 is an exemplary flow chart of a method for recovering electric power meter data according to some embodiments of the present application;

[0050] Figure 2 is a schematic diagram of a process for determining structural association information according to some embodiments of the present application;

[0051] Figure 3 is a schematic diagram of a process for determining a restoration granularity according to some embodiments of the present application;

[0052] Figure 4is a schematic diagram of exemplary software modules of an electric power meter data recovery system according to some embodiments of the present application;

[0053] Figure 5 It is a structural schematic diagram of a computer device using an electric power meter data recovery method according to some embodiments of the present application. DETAILED DESCRIPTION

[0054] The core of the present application is to sense the error nodes of the response error data of the target electric power meter, and then determine the information difference entropy between the characteristics of each error node; perform self-recovery operations on the response error data based on the structural association information of the data between each response module to obtain self-recovery data; determine the recovery granularity of the response error data through the feature gradient difference and information difference entropy in the self-recovery data; then determine the fault-tolerant recovery cost through the structural dependency and information difference entropy between the node backup data of each response module; further adjust the data recovery strategy through feedback of the recovery granularity and the fault-tolerant recovery cost, and then perform confidence recovery on the data of the target electric power meter after the response error based on the data recovery strategy adjusted by feedback; the scheme of the present application can realize the structural association reuse of multimodal data in the electric power meter, thereby improving the confidence of data recovery.

[0055] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods. Figure 1 , which is an exemplary flow chart of a method for recovering electric power meter data according to some embodiments of the present application. The method 100 for recovering electric power meter data mainly includes the following steps:

[0056] In step 101, a start instruction of a target electric power meter is received, the status identifiers of each response module in the target electric power meter are monitored, and the error logs of each response module are screened out according to all the status identifiers to obtain response error data.

[0057] In specific implementation, receiving the start-up instruction of the target electric power meter and monitoring the status identification of each response module in the target electric power meter can be achieved in the following manner, namely: starting the target electric power meter immediately after receiving the start-up instruction of the target electric power meter, monitoring the status of each response module in the target electric power meter in real time through the abnormal monitoring unit in the target electric power meter, and marking the monitored status quantity to obtain the status identification of each response module. In the present application, the status identification can be used to quickly read whether the response status of the corresponding response module is abnormal, which can improve the monitoring efficiency of erroneous data generated when the electric power meter detects the operating status of the power equipment; it should be noted that the response module includes: a current measurement module, a voltage measurement module, a power factor measurement module, a reactive power measurement module and a data storage module. In other embodiments, the response module may also include other power parameter measurement modules, which are not limited here.

[0058] In some embodiments, the error logs of each response module are filtered out according to all status identifiers, and the response error data is obtained by using the following steps:

[0059] Based on the pre-trained state model, an abnormal state identification set is obtained from all state identifications;

[0060] Extracting error logs from the response logs of each response module according to the abnormal status identification set;

[0061] A data group consisting of all error logs is used as response error data.

[0062] It should be noted that the state model in the present application can be pre-trained by a large amount of historical response data, and the network architecture of the state model can adopt a convolutional neural network. In other embodiments, other network architectures can also be adopted, which are not limited here; in specific implementation, the abnormal state identification set obtained by dividing from all state identifications based on the pre-trained state model can be implemented in the following manner, that is, all state identifications can be input into the pre-trained state model, and then each state identification is divided into a normal state identification and an abnormal state identification through the state model, and the set composed of all normal state identifications is used as a normal state identification set, and the set composed of all abnormal state identifications is used as an abnormal state identification set; according to the abnormal state identification set, the error log is extracted from the response log of each response module, which can be implemented in the following manner, that is, for each response module, all response logs that identify the state of the response module as abnormal are used as the error log of the response module, and then the error logs of all response modules are obtained; the data group composed of all error logs is used as the response error data, which can be implemented in the following manner, that is, all error logs can be arranged into data groups according to the occurrence time in the timestamp, and the arranged data group is used as the response error data.

[0063] In step 102, error node perception is performed on the response error data based on a pre-trained error detection model to obtain error node features of each response module, and then determine the information difference entropy between the error node features.

[0064] In some embodiments, error node perception is performed on the response error data based on a pre-trained error detection model, and the error node features of each response module are obtained by the following steps:

[0065] Using the response error data as initialization parameters of a pre-trained error detection model;

[0066] The error detection model is used to perceive the error nodes in each response module and obtain the error node features of each response module.

[0067] It should be noted that the error detection model in the present application is a model for automatically identifying and extracting error features. The error detection model is usually obtained by pre-training with a large amount of historical response data based on machine learning or deep learning technology. It can analyze the input data and detect potential error features therein; it should also be noted that the error node feature in the present application refers to the feature of the specific error point attribute that can be identified in the response module. These features usually include: the type of error, the frequency of occurrence and the specific location. The error node feature can help the system quickly locate the location attribute information of the error; in specific implementation, for each response module, first, all error logs corresponding to the response module in the response error data can be input into the pre-trained error detection model for error node perception, and then the perception result of the error detection model is used as the error node feature of the response module, thereby obtaining the error node features of all response modules. It should also be noted that the error node feature of each response module can be one or more.

[0068] In some embodiments, determining the information difference entropy between each error node feature may be implemented by the following steps:

[0069] Determine the information difference between each error node feature and other error node features;

[0070] The entropy characteristics of all information differences are described to obtain the information difference entropy between the features of each error node.

[0071] It should be noted that the information difference degree in the present application is an indicator for measuring the degree of information difference between two error node features; the information difference entropy in the present application is an indicator for measuring the degree of confusion of information difference between error node features, which reflects the degree of diversity of error node features in the detection system. The larger the information difference entropy, the greater the information difference between the error node features, which means that the diversity of error node features in the detection system is higher.

[0072] In specific implementation, determining the information difference between each error node feature and other error node features can be achieved in the following manner, namely: selecting an error node feature as the selected error node feature, selecting one from other error node features as the target error node feature, using the Euclidean distance between the selected error node feature and the target error node feature as the information difference distance between the selected error node feature and the target error node feature, continuing to determine the information difference distance between the selected error node feature and the remaining target error node features, and then using the average of all information difference distances as the information difference between the selected error node feature and other error node features, repeating the above steps, continuing to determine the information difference between the remaining selected error node features and other error node features, thereby obtaining the information difference between each error node feature and other error node features; performing entropy feature description on all information differences, and obtaining the information difference entropy between each error node feature can be achieved in the following manner, namely: bringing all information differences into the information entropy calculation formula, and using the calculated information entropy as the information difference entropy between each error node feature.

[0073] In step 103, the structural association information of the data between the various response modules when the response error occurs is determined according to all the error node characteristics, and then a self-recovery operation is performed on the response error data according to the structural association information to obtain self-recovery data.

[0074] In some embodiments, reference Figure 2 As shown, this figure is a schematic diagram of the process of determining structural association information in some embodiments of the present application. In this embodiment, the structural association information of data between various response modules when a response error occurs is determined according to all error node characteristics, which can be implemented by the following steps:

[0075] In step 1031, a structural association diagram of data interaction between various response modules is determined;

[0076] In step 1032, the functional dependency values ​​between the error node features are determined through the propagation paths of all the error node features in each response module;

[0077] In step 1033, the edge weights in the structure association graph are topologically adjusted based on all the functional dependency values ​​to obtain a topological structure association graph;

[0078] In step 1034, structural association information of data between various response modules when a response error occurs is extracted from the topological structure association diagram.

[0079] It should be noted that the structural association diagram in the present application is a graphical model for representing the relationship between various response modules. The main function of the structural association diagram is to visualize and analyze the mutual relationships between various response modules, wherein the structural association diagram is usually composed of nodes and edges, in which each node represents an independent response module, and the edges between nodes represent the dependency relationship between response modules, and the edges have directionality (indicating the direction of data flow) and weight (indicating the strength of the dependency relationship); the functional dependency value in the present application is an indicator for quantifying the data interaction intensity between the functions of various response modules; the structural association information in the present application refers to the comprehensive information formed between different response modules based on their mutual relationships, dependencies and interaction methods, which describes the association structure between various response modules, including the dependencies, interaction modes and overall topological structures between response modules. By understanding and utilizing the structural association information, the data recovery efficiency can be improved.

[0080] In specific implementation, determining the structural association diagram of data interaction between each response module can be implemented in the following manner, namely: firstly, analyzing the data flow between each response module, for example, the voltage measurement module transmits data to the power factor measurement module, and the power factor measurement module transmits the result to the data storage module, and the data flow path is used as the edge between nodes, and then each response module is used as a node, and then the structural diagram composed of all nodes and the edges between nodes is used as the structural association diagram of data interaction between each response module; determining the functional dependency value between the error node features through the propagation path of all error node features in each response module can be implemented in the following manner, namely: firstly, selecting an error node feature as the selected error node feature, obtaining the propagation path of the selected error node feature in each response module, selecting an error node feature from other error node features as the target error node feature, obtaining the propagation path of the target error node feature in each response module, calculating the similarity between the propagation path of the selected error node feature and the propagation path of the target error node feature, and using the similarity as the functional dependency value between the selected error node feature and the target error node feature, and repeating the above steps to obtain the functional dependency value between all selected error node features and the target error node feature.

[0081] In addition, the edge weights in the structure association graph are topologically adjusted based on all the functional dependency values, and the topological structure association graph can be obtained in the following manner, namely: two nodes are obtained from the structure association graph, and all error node features of the response modules corresponding to the two nodes are obtained, and then the functional dependency values ​​between all the error node features are obtained, and the weights of all edges between the two nodes in the structure association graph are adjusted by the functional dependency values ​​to obtain the topological structure between the two nodes, and the above steps are repeated to obtain the topological structure between all nodes of the structure association graph, and then the image composed of all topological structures is used as the topological structure association graph; extracting the structural association information of the data between the various response modules when a response error occurs from the topological structure association graph can be implemented in the following manner, namely: the graph algorithm in the prior art (such as PageRank) can be used to identify the association information of the data between the various nodes (response modules) in the topological structure association graph, and then the extracted association information is used as the structural association information of the data between the various response modules when a response error occurs.

[0082] It should be noted that in the analysis of error data characteristics, the structural association diagram can be used to determine the propagation path of the error characteristics between various modules. By adjusting the weights and topological structures in the diagram, the error data recovery process can be optimized to ensure that errors on the critical path are restored first. By analyzing the topological structure association diagram, it is possible to intuitively identify the close dependencies between response modules and which response modules may affect each other in the event of an error. This provides a clear basis for subsequent self-recovery operations and fault-tolerant recovery.

[0083] In some embodiments, the self-recovery operation is performed on the response error data by the structure association information to obtain the self-recovery data, which can be achieved by the following steps:

[0084] Initialize the data recovery model;

[0085] Using the response error data as initialization parameters of the data recovery model;

[0086] Using the structural association information as a constraint parameter of the data recovery model;

[0087] The error features in the response error data are predicted and recovered by the data recovery model to obtain self-recovery data.

[0088] It should be noted that the data recovery model in the present application is a machine learning model for repairing erroneous data. The data recovery model can use machine learning algorithms (such as regression models, neural networks) to learn how to detect and repair erroneous data from historical response data. Through the training data set, the model can automatically identify error features and recover them. It can handle complex and changeable error patterns, has strong adaptability, and can also continuously optimize data recovery performance through training data.

[0089] In specific implementation, first, a data recovery model can be pre-trained using historical response data, and then the response error data can be used as initialization parameters of the data recovery model and an initialization operation can be performed. Then, the structural association information can be set as constraint parameters of the data recovery model, and further, the error features in the response error data can be regressed and predicted using the data recovery model. Then, the self-recovery features obtained by the regression prediction can be used to replace the original error features, thereby using the replaced response error data as the self-recovery data.

[0090] It should be noted that the extracted structural association information in this application provides effective guidance for the precise positioning of errors and the rapid recovery of data, thereby reducing the time and complexity of error recovery, and through structural association information.

[0091] In step 104, the recovery granularity of each error log in the response error data when self-recovering after the response error is performed is determined by using the feature gradient difference in the self-recovery data and the information difference entropy.

[0092] In some embodiments, reference Figure 3 As shown, this figure is a schematic diagram of the process of determining the recovery granularity in some embodiments of the present application. In this embodiment, the recovery granularity of each error log in the response error data when self-recovering after the response error is determined by the feature gradient difference and the information difference entropy in the self-recovery data can be implemented by the following steps:

[0093] In step 1041, for each error log in the response error data, a plurality of self-recovery features of the error log are extracted from the self-recovery data;

[0094] In step 1042, the gradient difference values ​​between the self-recovery features are determined, and the set of all the gradient difference values ​​is used as the feature gradient difference in the self-recovery data;

[0095] In step 1043, the granularity difference between each self-recovery feature is determined by each gradient difference value in the feature gradient difference and the information difference entropy;

[0096] In step 1044, the recovery granularity of the error log when self-recovering after responding to the error is determined based on all granularity differences, thereby obtaining the recovery granularity of each error log in the response error data when self-recovering after responding to the error.

[0097] It should be noted that the gradient difference value in the present application is an indicator for measuring the relative rate of change between self-recovery features. The gradient difference value helps to identify which self-recovery features change most significantly during the recovery process, thereby improving the accuracy of quantifying the recovery granularity; the feature gradient difference is an indicator for measuring the degree of difference between the change rates of different self-recovery features in the data space. The feature gradient difference can reflect the degree of change of each self-recovery feature over time or when an event occurs, as well as the relative relationship of these changes in the feature space; the recovery granularity refers to the degree of detail of the data state involved in the recovery operation during the data self-recovery process. By quantifying the recovery granularity, it can be ensured that the recovery operation can accurately repair the target error features while reducing the impact on other parts of the system.

[0098] In specific implementation, determining the gradient difference value between each self-recovery feature can be achieved in the following manner, namely: the numerical differentiation method in the prior art can be used to differentiate the value in each self-recovery feature to obtain the gradient value of each self-recovery feature, and then the absolute difference between the gradient values ​​of each self-recovery feature is used as the gradient difference value between the corresponding self-recovery features; determining the granularity difference between each self-recovery feature by using each gradient difference value in the feature gradient difference and the information difference entropy can be achieved in the following manner, namely: selecting a self-recovery feature as the selected self-recovery feature, obtaining the gradient difference value between the selected self-recovery feature and other self-recovery features, and then the standard deviation of all gradient difference values ​​is used as the gradient difference standard deviation, and further the ratio of the information difference entropy to the gradient difference standard deviation is used as the ratio of the selected self-recovery feature to the other self-recovery features. , repeat the above steps to continue to determine the granularity differences between the remaining selected self-recovery features and other self-recovery features; determining the recovery granularity of the error log when self-recovering after responding to an error based on all granularity differences can be achieved in the following way, namely: performing information entropy feature description on all granularity differences, and using the obtained information entropy as the recovery granularity of the error log when self-recovering after responding to an error. It should be noted that information entropy has good adaptability and can be dynamically adjusted according to real-time changes in system status. The error features and granularity differences in different error logs may change over time. These changes can be evaluated in real time through information entropy, thereby dynamically adjusting the recovery granularity. This dynamic adjustment capability makes the system self-recovery process more flexible and adaptable, and can make timely adjustments according to actual conditions, thereby improving the efficiency and effect of system self-recovery.

[0099] In step 105, the backup data of the target electric power meter is obtained, and the node backup data of each response module is extracted from the backup data, and then the structural dependency relationship between the backup data of each node and the information difference entropy are used to determine the fault-tolerant recovery cost when the backup data is used for multiplexing recovery after a response error.

[0100] It should be noted that obtaining the backup data of the target power meter in the present application refers to obtaining the backup data of the target power meter from a cloud database. In other embodiments, the backup data of the target power meter can also be obtained from other distributed backup databases. This is not limited here. The backup data here is the data collected by the power meter directly transmitted to the cloud database through the Internet technology, and does not pass through the local storage unit of the power meter.

[0101] It should also be noted that extracting the node backup data of each response module from the backup data refers to intercepting the backup data at the error node in each response module from the backup data. In specific implementation, the timestamp information of the error node can be matched with the timestamp information of the backup data, the backup data at the matching node can be intercepted, and the intercepted node data can be used as the node backup data of the corresponding response module.

[0102] In some embodiments, the fault-tolerant recovery cost of using the backup data for multiplexing recovery after a response error is determined based on the structural dependency relationship between the backup data of each node and the information difference entropy can be implemented by the following steps:

[0103] Obtain self-recovery data after executing the self-recovery operation;

[0104] The self-recovery data is multiplexed and restored by the backup data to obtain multiplexed recovery data, and then a recovery confidence distance between the multiplexed recovery data and the self-recovery data is determined;

[0105] Determine the structural dependencies between backup data of each node;

[0106] Determine the recovery cost of using the backup data for multiplexing recovery after a response error through the structural dependency and the recovery confidence distance;

[0107] The recovery cost is compensated for fault tolerance based on the information difference entropy to obtain a fault tolerance recovery cost when the backup data is used for multiplexing recovery after a response error.

[0108] In a specific implementation, the backup data is used to perform multiplexing and recovery on the self-recovery data to obtain the multiplexed recovery data, and then determining the recovery confidence distance between the multiplexed recovery data and the self-recovery data can be implemented in the following manner, namely: first, all node backup data are obtained from the backup data, and all self-recovery features are obtained from the self-recovery data, wherein there is a one-to-one correspondence between the node backup data and the self-recovery features, and then the corresponding node backup data and self-recovery features are marked as feature correspondence groups, and then, for each feature correspondence group, the Euclidean distance between the node backup data and the self-recovery features in the feature correspondence group is used as the feature distance, when the feature distance is greater than a preset feature distance threshold, the node backup data is replaced with the self-recovery feature, and when the feature distance is less than or equal to the preset feature distance threshold, the self-recovery feature is not replaced, and then the self-recovery data after the replacement is used as the multiplexed recovery data, and finally, the Euclidean distance between the multiplexed recovery data and the self-recovery data can be used as the recovery confidence distance between the multiplexed recovery data and the self-recovery data.

[0109] It should be noted that the recovery confidence distance in the present application is an indicator for measuring the degree of difference between the reused recovery data and the self-recovery data. The recovery confidence distance can quantify the effect of the reused recovery operation, and then quantify the degree of change of the reused recovery data relative to the self-recovery data, which helps to judge the effectiveness of the reused recovery and the degree of improvement it brings to the system status. It should also be noted that the feature distance threshold preset in the present application can be preset by the Euclidean distance between the node backup data and the self-recovery feature in a large number of feature corresponding groups. The feature distance threshold preset in the present application is the average value of all Euclidean distances, which will not be elaborated here.

[0110] In specific implementation, determining the structural dependency between the backup data of each node can be achieved in the following manner, namely: the backup data of each node can be input into the prior art Graphviz graph visualization model, and then a dependency graph is generated through Graphviz, and the connecting edges between each node are used as the degree of dependency between the backup data of the node, so that the connection relationship of all nodes in the dependency graph is used as the structural dependency between the backup data of each node; determining the recovery cost when the backup data is used for reuse and recovery after a response error through the structural dependency and the recovery confidence distance can be achieved in the following manner: first, the connecting edges between each node in the structural dependency can be obtained, and the length of the connecting edges can be used as an indicator of the dependency between the backup data of the node. The longer the connecting edge, the weaker the dependency between the backup data of the node, and the shorter the connecting edge, the stronger the dependency between the backup data of the node. Then, the average length of all connecting edges is used as the average dependency, and further, the product of the average dependency and the recovery confidence distance is used as the recovery cost when the backup data is used for reuse and recovery after a response error.

[0111] It should be noted that the recovery cost in the present application is an indicator of the cost or resources required to use the backup data for reuse and recovery after a response error. The larger the recovery cost, the more cost or resources are required to use the backup data for reuse and recovery after a response error. The smaller the recovery cost, the less cost or resources are required to use the backup data for reuse and recovery after a response error.

[0112] In specific implementation, the recovery cost is fault-tolerantly compensated based on the information difference entropy, and the fault-tolerant recovery cost when the backup data is used for multiplexing and recovery after the response error is obtained can be implemented in the following way: the opposite of the information difference entropy can be used as the opposite value of the difference entropy, and then the exponential function value of the opposite value of the difference entropy with the natural logarithm as the base is used as the fault-tolerant compensation coefficient, and then the product of the fault-tolerant compensation coefficient and the recovery cost is used as the fault-tolerant recovery cost. It should be noted that the solution of the present application improves the flexibility and adaptability of the system in the face of different fault conditions. For situations with large differences, the fault-tolerant compensation coefficient will automatically increase to improve the calculation of the recovery cost, thereby ensuring that the system can adapt to more complex recovery requirements. For situations with small differences, the compensation coefficient is low to reduce unnecessary recovery overhead.

[0113] It should be noted that the fault-tolerant recovery cost in this application refers to the additional cost added during the system fault-tolerant processing process based on the cost required for multiplexing and recovering backup data and self-recovery data. The recovery cost is compensated for by fault tolerance through information difference entropy, so that the final cost not only reflects the direct cost of the recovery operation, but also includes additional costs such as adaptive adjustment and redundant processing performed by the system to adapt to complex environments.

[0114] In step 106, when the data fault tolerance rate of the target power meter is lower than the standard fault tolerance threshold, the data recovery strategy is adjusted through the recovery granularity and the fault tolerance recovery cost feedback, and then the data of the target power meter after the response error is confidently recovered based on the feedback adjusted data recovery strategy.

[0115] It should be noted that the present application can monitor the data fault tolerance rate of the target electric power meter in real time, and then obtain the current data fault tolerance rate. When the data fault tolerance rate is lower than the set standard fault tolerance threshold, the data recovery strategy adjustment process is triggered, wherein the standard fault tolerance threshold can be set according to the historically monitored data fault tolerance rate, that is, the average value of all historical data fault tolerance rates can be used as the standard fault tolerance threshold, which is not limited here.

[0116] In some embodiments, adjusting the data recovery strategy through the recovery granularity and the fault-tolerant recovery cost feedback may be implemented by the following steps:

[0117] Get the policy value of the data recovery policy;

[0118] Determine the state feedback amount of the data recovery strategy through the recovery granularity and the fault-tolerant recovery cost;

[0119] The data recovery strategy is adjusted based on the strategy value and the state feedback amount.

[0120] It should be noted that the policy value in this application is a set of preset parameters used by the current system for data recovery operations, including the execution method of the recovery operation, the recovery level, and the resource allocation priority; the state feedback quantity in this application is a metric used to evaluate and adjust the current operating state of the system, and the policy parameters of the current data recovery strategy can be adjusted according to the size of the state feedback quantity.

[0121] In the specific implementation, first, a policy adjustment model (for example, a policy adjustment model based on a support vector machine algorithm) can be initialized. The core function of the policy adjustment model is to automatically adjust the recovery strategy according to the feedback information of the actual data recovery situation to improve the effect and efficiency of data recovery, and then read the policy value of the current data recovery strategy through the policy adjustment model; secondly, the recovery granularity and the fault-tolerant recovery cost are used as state parameters of the policy adjustment model, and the state feedback amount of the data recovery strategy is obtained by analyzing and calculating the state function built into the policy adjustment model. As a preferred embodiment, the state feedback amount = F(A*recovery granularity, B*fault-tolerant recovery cost, C), wherein F(A*recovery granularity, B*fault-tolerant recovery cost, C) represents the state function, A*recovery granularity, B*fault-tolerant recovery cost, C The cost and C are independent variables, A and B are weight coefficients, and C is a state feedback constant. The state feedback constant refers to the minimum adjustment step to ensure feedback adjustment. In the present application, the value of A can be set to 0.5, the value of B can be set to 0.5, and the value of C can be set to 0.01. In other embodiments, the value can be adjusted according to specific needs, which is not limited here. Finally, the parameters in the policy value are adjusted by the state feedback amount to make it more in line with actual recovery needs. For example, if the state feedback amount shows that the recovery granularity is too fine but the cost is too high, the policy value can be adjusted to reduce the recovery accuracy and reduce resource consumption. On the contrary, if the fault-tolerant recovery cost is low but the recovery effect is insufficient, the recovery strength can be increased, and then through multiple iterations, the policy value is continuously fine-tuned to gradually reach the optimal configuration, thereby achieving the best data recovery effect.

[0122] It should be noted that the data recovery strategy based on feedback adjustment in the present application performs confidence recovery of the data of the target power meter after a response error, which means that the data of the target power meter after a response error is recovered through an optimized data recovery strategy to improve the confidence of data recovery. Confidence recovery achieves high-confidence data recovery of the target power meter after a response error through the data recovery strategy adjusted by feedback. The core of this method is to ensure the accuracy of the recovered data through dynamic adjustment, and to ensure the reliability of the system when facing data errors. In specific implementation, the data recovery strategy after feedback adjustment can be collected to recover the response error data, thereby improving the confidence of data recovery.

[0123] It should also be noted that the present application can continuously optimize the data recovery strategy during the data recovery process through a feedback mechanism to ensure that the data recovery operation achieves the best balance between resource consumption and recovery effect.

[0124] On the other hand, in some embodiments, the present application provides an electric power meter data recovery system, referring to Figure 4, which is a schematic diagram of exemplary software modules of an electric power meter data recovery system according to some embodiments of the present application, the electric power meter data recovery system 400 includes: an acquisition module 401, a processing module 402 and an execution module 403, which are described as follows:

[0125] Acquisition module 401, in the present application, the acquisition module 401 is mainly used to monitor the status identifiers of each response module in the target power meter after receiving the start-up instruction of the target power meter, and filter out the error logs of each response module according to all the status identifiers to obtain the response error data;

[0126] Processing module 402, in the present application, the processing module 402 is used to perform error node perception on the response error data based on a pre-trained error detection model, obtain error node features of each response module, and then determine the information difference entropy between each error node feature;

[0127] The processing module 402 in the present application is also used to determine the structural association information of the data between the various response modules when the response error occurs according to all the error node characteristics, and then perform a self-recovery operation on the response error data according to the structural association information to obtain self-recovery data;

[0128] The processing module 402 in the present application is also used to determine the recovery granularity of each error log in the response error data when self-recovering after the response error through the feature gradient difference in the self-recovery data and the information difference entropy;

[0129] The processing module 402 in the present application is also used to obtain the backup data of the target electric power meter, extract the node backup data of each response module from the backup data, and then determine the fault-tolerant recovery cost when the backup data is used for multiplexing recovery after the response error based on the structural dependency relationship between the backup data of each node and the information difference entropy;

[0130] Execution module 403. In the present application, execution module 403 is mainly used to adjust the data recovery strategy through the recovery granularity and the fault-tolerance recovery cost feedback when the data fault tolerance rate of the target power meter is lower than the standard fault tolerance threshold, and then perform confidence recovery on the data of the target power meter after the response error based on the feedback-adjusted data recovery strategy.

[0131] In addition, the present application also provides a computer device, which includes a memory and a processor, wherein the memory stores codes, and the processor is configured to obtain the codes and execute the above-mentioned electric power meter data recovery method.

[0132] In some embodiments, reference Figure 5, which is a schematic diagram of the structure of a computer device using a power meter data recovery method according to some embodiments of the present application. The power meter data recovery method in the above embodiment can be Figure 5 The computer device 500 shown in the figure is implemented, and the computer device 500 includes at least one processor 501, a communication bus 502, a memory 503 and at least one communication interface 504.

[0133] The processor 501 may be a general-purpose central processing unit (CPU) or an application-specific integrated circuit (ASIC).

[0134] The communication bus 502 may be used to transmit information between the above-mentioned components.

[0135] The memory 503 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a disk or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 503 may exist independently and be connected to the processor 501 via the communication bus 502. The memory 503 may also be integrated with the processor 501.

[0136] The memory 503 is used to store the program code for executing the solution of the present application, and the execution is controlled by the processor 501. The processor 501 is used to execute the program code stored in the memory 503. The program code may include one or more software modules. The power meter data recovery method in the above embodiment can be implemented by the processor 501 and one or more software modules in the program code in the memory 503.

[0137] The communication interface 504 uses any transceiver or other device for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc.

[0138] In a specific implementation, as an embodiment, a computer device may include multiple processors, each of which may be a single-CPU processor or a multi-CPU processor. The processor here may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0139] The above-mentioned computer device can be a general-purpose computer device or a special-purpose computer device. In a specific implementation, the computer device can be a desktop computer, a portable computer, a network server, a personal digital assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, a communication device or an embedded device. The embodiment of the present application does not limit the type of computer device.

[0140] In addition, the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned electric power meter data recovery method is implemented.

[0141] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0142] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for recovering data of an electric power meter, characterized in that: The steps include: Receive a start-up instruction from a target electric power meter, monitor the status identifiers of each response module in the target electric power meter, filter out error logs of each response module according to all status identifiers, and obtain response error data; Based on the pre-trained error detection model, the response error data is subjected to error node perception to obtain error node features of each response module, and then the information difference entropy between the error node features is determined; Determine the structural association information of the data between the various response modules when the response error occurs according to all the error node characteristics, and then perform a self-recovery operation on the response error data according to the structural association information to obtain self-recovery data; Determine the recovery granularity of each error log in the response error data when self-recovery is performed after the response error by using the feature gradient difference in the self-recovery data and the information difference entropy; Acquire the backup data of the target electric power meter, extract the node backup data of each response module from the backup data, and then determine the fault-tolerant recovery cost when the backup data is used for multiplexing recovery after a response error based on the structural dependency relationship between the backup data of each node and the information difference entropy; When the data fault tolerance rate of the target electric power meter is lower than the standard fault tolerance threshold, the data recovery strategy is adjusted through the recovery granularity and the fault tolerance recovery cost feedback, and then the data of the target electric power meter after the response error is confidently recovered based on the feedback-adjusted data recovery strategy.

2. The method according to claim 1, characterized in that According to all status identifiers, the error logs of each response module are filtered out, and the response error data obtained includes: Based on the pre-trained state model, an abnormal state identification set is obtained from all state identifications; Extracting error logs from response logs of each response module according to the abnormal status identification set; A data group consisting of all error logs is used as response error data.

3. The method according to claim 1, characterized in that Based on the pre-trained error detection model, the error node perception of the response error data is performed to obtain the error node features of each response module, which specifically include: Using the response error data as initialization parameters of a pre-trained error detection model; The error detection model is used to perceive the error nodes in each response module and obtain the error node features of each response module.

4. The method according to claim 1, characterized in that Determining the information difference entropy between the features of each error node specifically includes: Determine the information difference between each error node feature and other error node features; The entropy characteristics of all information differences are described to obtain the information difference entropy between the features of each error node.

5. The method according to claim 1, characterized in that The structural association information of the data between the various response modules when a response error occurs is determined based on the characteristics of all error nodes, including: Determine the structural association diagram of data interaction between various response modules; Determine the functional dependency values ​​between the error node features through the propagation paths of all error node features in each response module; Performing topological adjustment on the edge weights in the structure association graph based on all functional dependency values ​​to obtain a topological structure association graph; The structural association information of the data between the various response modules when a response error occurs is extracted from the topological structure association diagram.

6. The method according to claim 1, characterized in that The fault-tolerant recovery cost when the backup data is used for multiplexing and recovery after the response error is determined based on the structural dependency relationship between the backup data of each node and the information difference entropy specifically includes: Obtain self-recovery data after executing the self-recovery operation; The self-recovery data is multiplexed and restored by the backup data to obtain multiplexed recovery data, and then a recovery confidence distance between the multiplexed recovery data and the self-recovery data is determined; Determine the structural dependencies between backup data of each node; Determine the recovery cost of using the backup data for multiplexing recovery after a response error through the structural dependency and the recovery confidence distance; The recovery cost is compensated for fault tolerance based on the information difference entropy to obtain a fault tolerance recovery cost when the backup data is used for multiplexing recovery after a response error.

7. The method according to claim 1, characterized in that Adjusting the data recovery strategy through the recovery granularity and the fault-tolerant recovery cost feedback specifically includes: Get the policy value of the data recovery policy; Determine the state feedback amount of the data recovery strategy through the recovery granularity and the fault-tolerant recovery cost; The data recovery strategy is adjusted based on the strategy value and the state feedback amount.

8. An electric power meter data recovery system, characterized in that: include: An acquisition module is used to monitor the status identifiers of each response module in the target power meter after receiving the start-up instruction of the target power meter, filter out the error logs of each response module according to all the status identifiers, and obtain the response error data; A processing module, configured to perform error node perception on the response error data based on a pre-trained error detection model, obtain error node features of each response module, and further determine information difference entropy between each error node feature; The processing module is further used to determine the structural association information of the data between the various response modules when the response error occurs according to all the error node characteristics, and then perform a self-recovery operation on the response error data according to the structural association information to obtain self-recovery data; The processing module is further used to determine the recovery granularity of each error log in the response error data when self-recovery is performed after the response error through the feature gradient difference in the self-recovery data and the information difference entropy; The processing module is further used to obtain backup data of the target electric power meter, extract node backup data of each response module from the backup data, and then determine the fault-tolerant recovery cost when the backup data is used for multiplexing recovery after a response error based on the structural dependency relationship between the backup data of each node and the information difference entropy; The execution module is used to adjust the data recovery strategy through the recovery granularity and the fault tolerance recovery cost feedback when the data fault tolerance rate of the target power meter is lower than the standard fault tolerance threshold, and then perform confidence recovery on the data of the target power meter after the response error based on the feedback adjusted data recovery strategy.

9. A computer device, comprising a memory and a processor, wherein the memory stores a code, characterized in that: The processor is configured to obtain the code and execute the electric power meter data recovery method according to any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the electric power meter data recovery method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Signal processing method and signal processing system

    CN115694621A

  • Low-power-consumption reflecting screen color enhancement method

    CN117475965A

  • Data recovery method and device for solid state disk, equipment and storage medium

    CN117672328A

  • Communication network optimization method, device and equipment considering power consumption

    CN118509336A

  • Solid type cosmetic composition for Lip

    KR1020220147389A