Power grid panoramic visualization application system
Through the power grid panoramic visualization application system, data collection and processing technology is used to generate fault prediction models to achieve a visual display of hidden dangers of power grid faults, solve the problem of low fault handling efficiency in traditional power grid management methods, and improve power grid management efficiency and equipment utilization. Rate.
Patent Information
- Application Number
- CN202410737381.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-08-30
AI Technical Summary
The traditional power grid management method requires inspection and maintenance after a fault occurs, resulting in more equipment damage, high manpower consumption, and low management efficiency. It is difficult to meet the efficient, safe and intelligent management needs of modern power grids.
Design a power grid panoramic visualization application system. Through data collection, data processing and visual display devices, it monitors power grid operating data and topology data, generates node feature vectors, uses random forest models and fault prediction models to predict fault risks, and provides visual interface displays. Hidden fault nodes can be used to predict and handle faults.
Detecting power grid faults during the hidden danger stage improves power grid management efficiency, reduces equipment damage and manpower consumption, and improves the accuracy and efficiency of troubleshooting.
Smart Images

Figure CN118569840A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electric power grid, and in particular to a grid panoramic visualization application system. Background Art
[0002] With the rapid development of the power industry, the scale of power grids has continued to expand, and the difficulty of management has also increased. Traditional power grid management methods can no longer meet the needs of efficient, safe and intelligent management of modern power grids.
[0003] In the traditional power grid management process, after a fault occurs at a node in the power grid, the power operation and maintenance personnel will inspect the fault, determine the cause of the fault, and replace or repair the equipment to enable the power grid to operate normally.
[0004] With the development of intelligent power grid and big data, power grid management can now monitor the power grid operation status of each node, speed up the discovery time when power grid failure occurs, and improve the efficiency of power grid troubleshooting. However, the current power grid management method is to inspect and maintain the power grid after the power grid failure occurs, which leads to more damage to power grid equipment, high manpower consumption and low management efficiency. Summary of the invention
[0005] The present invention provides a power grid panoramic visualization application system, which can detect nodes that may fail in the power grid during the potential power grid failure stage and present them to users in the form of a visual interface, thereby providing convenience for users to troubleshoot power grid failures and improving the management efficiency of the power grid.
[0006] In the first aspect, an embodiment of the present invention provides a panoramic visualization application system for a power grid, which includes a data acquisition device, a data processing device, and a visualization display device. The data acquisition device is used to obtain the power grid operation data at the current moment and the topological data between each node in the power grid; the power grid operation data includes the voltage, current, frequency, and temperature of each node in the power grid; the data processing device is used to perform data analysis based on the power grid operation data and the topological data to generate a feature vector of each node, and the feature vector includes the operation data of the node itself and the operation data of the adjacent nodes; the feature vector of each node is input into the random forest model to determine the risk level of each node; the feature vector of the node with a high risk level is input into the fault prediction model to obtain the fault prediction result of the power grid, and the fault prediction result includes the fault probability and fault type of the node; based on the fault prediction result and the preset plan view of the power grid, a fault prediction interface is generated; the visualization display device is used to display the fault prediction interface.
[0007] In a possible implementation, the data processing device is specifically used to determine the adjacent nodes of each node based on topological data; divide the power grid operation data with each node as the central node and the adjacent nodes of each node as the related nodes to obtain the operation data set of each node; the operation data set includes the central node data and the related node data; based on the central node data, feature extraction is performed to determine the time characteristics and node characteristics of each node; the node characteristics include the voltage, current, frequency and temperature of the central node; the time characteristics include the current moment, and the year and month of the current moment; based on the related node data, feature extraction is performed to determine the adjacent node characteristics of each node; the adjacent node characteristics include the voltage, current, frequency and temperature of the adjacent nodes; based on the central node data and the related node data, the comprehensive node characteristics of each node are calculated; the comprehensive node characteristics include multiple categories of statistics of the node itself and the adjacent nodes, and the statistics include one or more of the following: mean, maximum, minimum and standard deviation; based on the time characteristics, the node characteristics, the adjacent node characteristics and the comprehensive node characteristics, the feature vector of each node is generated.
[0008] In a possible implementation, the data processing device is specifically used to input the feature vector of each node into a random forest model to obtain the probability that each node is in a suspected fault state; based on the probability that each node is in a suspected fault state, determine the risk level of each node.
[0009] In a possible implementation, the data acquisition device is also used to obtain power grid operation data in a historical period, topological data between each node, and fault time and fault node in the historical period; the data processing device is also used to divide the power grid operation data in the historical period based on the fault time and fault node in the historical period, and the topological data, to obtain fault operation data and normal operation data; the fault operation data is the power grid operation data of the fault node and the adjacent nodes of the fault node in a set time period before the fault time; the normal operation data includes the power grid operation data of each node and the adjacent nodes of each node that operate normally; based on the fault operation data, a fault feature vector is generated; based on the normal operation data, a normal feature vector is generated; a positive training sample is generated with the fault feature vector as input and the fault suspicion as output; a negative training sample is generated with the normal feature vector as input and the normal operation as output; training is performed based on the positive training samples and the negative training samples to obtain a random forest model.
[0010] In a possible implementation, the data processing device is specifically used to perform the following steps: Step 1: Set the initial values of the model parameters of the random forest model; the model parameters include the number of trees, the depth of the tree, the maximum depth of the tree, the minimum number of samples required for node classification, the minimum number of samples required for leaf nodes, the maximum number of features when splitting, and whether to use guided sampling; Step 2: Based on the training set in the training sample and the initial values of the model parameters, train to obtain a first model, and set the first model as the optimal model; Step 3: Based on the test set in the training sample, evaluate the optimal model to obtain an evaluation result of the optimal model; the evaluation result includes accuracy and recall return rate; Step 4: adjust the model parameters, and train based on the training set in the training sample and the adjusted model parameters to obtain the second model; Step 5: Based on the test set in the training sample, evaluate the second model to obtain the evaluation result of the second model; Step 6: If the evaluation result of the second model is better than the evaluation result of the optimal model, the second model is determined as the optimal model; if the evaluation result of the optimal model is better than the evaluation result of the second model, the optimal model remains unchanged; Step 7, repeat steps 4 to 7 until the number of iterations is greater than the maximum number of iterations; Step 8, train based on the model parameters corresponding to the optimal model to determine the random forest model.
[0011] In one possible implementation, the data processing device is specifically used to perform the following steps: Step 1: Based on the model parameters corresponding to the optimal model, as well as the positive training samples and the negative training samples, training is performed to obtain an initial model; Step 2: Taking the initial model as the teacher model, a student model with the same model parameters as the teacher model is constructed; Step 3: Testing the teacher model based on the test set, and calculating the first test accuracy of the teacher model; Step 4: Determining the test accuracy threshold based on the first test accuracy; Step 5: Pruning the student model to obtain an adjusted student model; Step 6: Testing the adjusted student model based on the test set to obtain a second test accuracy; Step 7: If the second test accuracy is greater than or equal to the test accuracy threshold, repeating steps five to seven until the second test accuracy is less than the test accuracy threshold; Step 8: If the second test accuracy is less than the test accuracy threshold, the student model before adjustment in the current iteration process is determined as a random forest model.
[0012] In a possible implementation, the data acquisition device is specifically used to perform the following steps: obtaining fault operation data of various fault types, the fault types including single-phase ground short circuit, two-phase ground short circuit, two-phase short circuit and three-phase short circuit; the fault operation data includes the power grid operation data of the fault node and the adjacent nodes of the fault node in a set time period before the fault moment; the data processing device is also used to generate a fault feature vector based on the fault operation data of various fault types; generate training samples with the fault feature vector as input and the fault type as output; and perform training based on the training samples and the new neural network model to obtain a fault prediction model.
[0013] In a possible implementation, the data acquisition device is specifically used to perform the following steps: Step 1: Based on the training samples and the new neural network model, training is performed to obtain a teacher model; Step 2: Constructing a student model with the same model parameters and model depth as the teacher model; Step 3: Testing the teacher model based on the test set, and calculating the third test accuracy of the teacher model; Step 4: Performing knowledge distillation on the student model to obtain a distilled student model; Step 5: Performing neural network training on the distilled student model based on the training samples to obtain a retrained student model; Step 6: Testing the retrained student model based on the test set to obtain a fourth test accuracy; Step 7: If the fourth test accuracy is greater than or equal to the third test accuracy, repeating steps 4 to 7 until the fourth test accuracy is less than the third test accuracy; Step 8: If the second test accuracy is less than the test accuracy threshold, the student model before knowledge distillation in the current iteration process is determined as the fault prediction model.
[0014] In one possible implementation, the fault prediction interface includes a fault prediction table and a fault prediction plan; a data processing device is specifically used to query a preset plan based on the suspected fault nodes in the fault prediction results to obtain the position coordinates of each suspected fault node; based on the fault probability, the display color of the suspected fault node is determined; based on the position coordinates of each node and the display color of the suspected fault node, a fault prediction plan is drawn; based on the suspected fault nodes, fault types, fault probabilities and the position coordinates of the suspected fault nodes, a fault prediction table is drawn.
[0015] In one possible implementation, the data acquisition device is also used to receive troubleshooting generation instructions input by a user; the troubleshooting generation instructions are used to instruct the generation of troubleshooting measures; the data processing device is used to determine suspected fault nodes and fault impact ranges based on fault prediction results and a fault prediction plan; based on the suspected fault nodes and the fault impact range, fault handling measures are determined, the fault handling measures including live inspections and power outage maintenance; based on the fault handling measures, a fault handling work order is generated to instruct operation and maintenance personnel to repair suspected fault nodes.
[0016] The present invention provides a panoramic visualization application system for power grids. The present invention monitors the operation data of the power grid and combines the topological data between the nodes to perform data analysis, generates a feature vector of each node composed of the node's own characteristics and the characteristics of adjacent nodes, and then uses a random forest model to determine the risk level of each node, determine each node that may have a fault, and use a fault prediction model to predict the fault of each high-risk node to obtain the fault probability of each node and the possible fault type. Fault prediction results, such as the fault prediction results and the preset plane map of the power grid, are finally generated and displayed for user observation and processing. The present invention realizes the detection of nodes that may fail in the power grid during the hidden danger stage of power grid faults, and presents them to users in the form of a visual interface, which facilitates users to eliminate power grid faults and improves the management efficiency of the power grid. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0018] Figure 1 It is a structural schematic diagram of a power grid panoramic visualization application system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0019] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.
[0020] In the description of the present invention, unless otherwise specified, " / " means "or", for example, A / B can mean A or B. "And / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, "at least one" and "plurality" refer to two or more. The words "first", "second", etc. do not limit the quantity and execution order, and the words "first", "second", etc. do not limit them to be different.
[0021] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way for easy understanding.
[0022] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or modules is not limited to the listed steps or modules, but may optionally include other steps or modules that are not listed, or may optionally include other steps or modules that are inherent to these processes, methods, products or devices.
[0023] In order to make the purpose, technical solutions and advantages of the present invention more clear, the following will be described through specific embodiments in conjunction with the accompanying drawings of the present invention.
[0024] like Figure 1 As shown, an embodiment of the present invention provides a power grid panoramic visualization application system. The power grid panoramic visualization application system 10 includes a data acquisition device 11, a data processing device 12 and a visualization display device 13.
[0025] Based on the visualization application system 10, the embodiment of the present invention provides a power grid panoramic visualization application method. The method includes steps S101-S105.
[0026] S101 . The data acquisition device 11 acquires the current power grid operation data and the topology data between the nodes in the power grid.
[0027] In an embodiment of the present application, the grid operation data includes the voltage, current, frequency and temperature of each node in the grid.
[0028] In some embodiments, the topological data between the nodes include the position coordinates of the nodes, the relative position relationship between the nodes, and the connection relationship between the nodes.
[0029] S102 , the data processing device 12 performs data analysis based on the power grid operation data and topology data to generate a feature vector for each node.
[0030] In the embodiment of the present application, the feature vector includes the operation data of the node itself and the operation data of the adjacent nodes.
[0031] As a possible implementation manner, step S102 may be specifically implemented as steps S1021 - S1026 .
[0032] S1021. The data processing device 12 determines the adjacent nodes of each node based on the topology data.
[0033] Exemplarily, the embodiment of the present invention may determine the adjacent nodes of each node based on the relative position relationship between the nodes and the connection relationship between the nodes.
[0034] S1022. The data processing device 12 divides the power grid operation data by taking each node in the nodes as a central node and the adjacent nodes of each node as related nodes, and obtains an operation data set of each node.
[0035] In some embodiments, the operational data set includes central node data and related node data.
[0036] Exemplarily, the embodiment of the present invention can extract the operation data of each node from the power grid operation data to obtain the central node data;
[0037] Exemplarily, the embodiments of the present invention can extract the operation data of adjacent nodes from the power grid operation data to obtain relevant node data.
[0038] S1023. The data processing device 12 performs feature extraction based on the central node data to determine the time features and the node's own features of each node.
[0039] In some embodiments, the node characteristics include the voltage, current, frequency and temperature of the central node; the time characteristics include the current time, and the year and month of the current time;
[0040] S1024. The data processing device 12 performs feature extraction based on the relevant node data to determine the adjacent node features of each node.
[0041] In some embodiments, the neighboring node characteristics include voltage, current, frequency, and temperature of the neighboring nodes.
[0042] S1025. The data processing device 12 calculates the comprehensive node characteristics of each node based on the central node data and the related node data.
[0043] In some embodiments, the comprehensive node feature includes multiple types of statistics of the node itself and neighboring nodes, and the statistics include one or more of the following: average value, maximum value, minimum value and standard deviation.
[0044] Exemplarily, the embodiment of the present invention may calculate the average value, maximum value, minimum value and standard deviation of the voltage based on the voltage of the central node and the adjacent nodes.
[0045] As another example, the embodiment of the present invention may calculate the average value, maximum value, minimum value and standard deviation of the current based on the current of the central node and the adjacent nodes.
[0046] S1026. The data processing device 12 generates a feature vector for each node based on time features, node characteristics, adjacent node characteristics, and comprehensive node characteristics.
[0047] Exemplarily, the embodiments of the present invention may combine time features, node features, adjacent node features, and comprehensive node features to obtain a feature vector.
[0048] S103, the data processing device 12 inputs the feature vector of each node into the random forest model to determine the risk level of each node.
[0049] As a possible implementation manner, step S103 may be specifically implemented as steps S1031 - S1032 .
[0050] S1031. The data processing device 12 inputs the feature vector of each node into the random forest model to obtain the probability that each node is in a suspected fault state.
[0051] S1032: The data processing device 12 determines the risk level of each node based on the probability that each node is in a suspected failure state.
[0052] In some embodiments, the risk levels include high risk, medium risk, and low risk.
[0053] Exemplarily, if the probability that a node is in a suspected fault state is greater than or equal to a first threshold, the risk level of the node is determined to be high risk; if the probability that the node is in a suspected fault state is less than the first threshold but greater than or equal to a second threshold, the risk level of the node is determined to be medium risk; if the probability that the node is in a suspected fault state is less than the second threshold, the risk level of the node is determined to be low risk; wherein the first threshold is greater than the second threshold.
[0054] It should be noted that the higher the risk level, the greater the probability of failure. The embodiment of the present invention can use the fault prediction model to determine the possible fault type of the high-risk nodes with the greater probability of failure, thereby achieving pre-failure prediction.
[0055] S104: The data processing device 12 inputs the feature vector of the node with a high risk level into the fault prediction model to obtain a fault prediction result of the power grid.
[0056] In some embodiments, the fault prediction result includes the fault probability and fault type of the node.
[0057] In some embodiments, the fault prediction model is obtained by training a neural network using power grid operation data of different fault types.
[0058] S105. The data processing device 12 generates a fault prediction interface based on the fault prediction result and the preset plan view of the power grid.
[0059] In some embodiments, the fault prediction interface includes a fault prediction table and a fault prediction plan view.
[0060] In some embodiments, the preset plan view of the power grid includes the position coordinates of each node in the power grid, and the relative position relationship between the nodes.
[0061] As a possible implementation manner, step S105 can be specifically implemented as steps S1051-S1056.
[0062] S1051. The data processing device 12 queries a preset plane map based on the suspected fault nodes in the fault prediction result to obtain the position coordinates of each suspected fault node.
[0063] S1052: The data processing device 12 determines the display color of the fault-suspected node based on the fault probability.
[0064] Exemplarily, nodes with a higher failure probability and nodes with a lower failure probability may be colored differently to facilitate users to distinguish between nodes with different failure probabilities.
[0065] For example, if the failure probability is greater than or equal to the first probability, it indicates that the suspected node is more likely to fail, and the display color of the suspected node can be set to red. If the failure probability is less than the first probability and greater than or equal to the second probability, it indicates that the suspected node is generally likely to fail, and further observation and determination are required, and the display color of the suspected node can be set to orange. If the failure probability is less than the second probability, it indicates that the suspected node is less likely to fail, and further observation and determination are required, and the display color of the suspected node can be set to yellow.
[0066] As another example, if the failure probability is zero, that is, for a normally operating node, the display color of the normally operating node may be set to green.
[0067] S1053. The data processing device 12 draws a fault prediction plan view based on the position coordinates of each node and the display color of the fault-suspected node.
[0068] S1054: The data processing device 12 draws a fault prediction table based on the suspected fault nodes, fault types, fault probabilities, and position coordinates of the suspected fault nodes.
[0069] S106. The visual display device 13 displays a fault prediction interface.
[0070] For example, the left side of the fault prediction interface may be a fault prediction plane map, which displays each node in different display colors to represent the probability of each node failing. The right side of the fault prediction interface may be a fault prediction table. The user can intuitively obtain multiple nodes with a higher probability of failure through the fault prediction table, and obtain the locations of multiple nodes with a higher probability of failure in combination with the fault prediction plane map, so that the user can formulate troubleshooting measures.
[0071] The present invention provides a panoramic visualization application system for a power grid. By monitoring the operation data of the power grid and combining the topological data between each node, data analysis is performed to generate a feature vector of each node composed of the node's own characteristics and the characteristics of adjacent nodes. Then, a random forest model is used to determine the risk level of each node, determine each node that may have a fault, and use a fault prediction model to predict the fault of each high-risk node to obtain the fault probability of each node and the possible fault type. Finally, according to the fault prediction results and the preset plan of the power grid, a fault prediction interface is generated and displayed for user observation and processing. The present invention realizes the detection of nodes that may fail in the power grid during the hidden danger stage of power grid faults, and presents them to users in the form of a visual interface, which facilitates users to eliminate power grid faults and improves the management efficiency of the power grid.
[0072] Optionally, the power grid panoramic visualization application method provided by the embodiment of the present invention further includes steps S201-S206 before step S103.
[0073] S201. The data acquisition device 11 obtains the power grid operation data in the historical period, the topology data between the nodes, and the fault time and fault node in the historical period.
[0074] S202. The data processing device 12 divides the power grid operation data in the historical period based on the fault time and fault node in the historical period and the topology data to obtain fault operation data and normal operation data.
[0075] In some embodiments, the fault operation data is the power grid operation data of the fault node and the neighboring nodes of the fault node in a set period before the fault moment.
[0076] In some embodiments, the normal operating data includes power grid operating data of each node operating normally and neighboring nodes of each node.
[0077] S203: The data processing device 12 generates a fault feature vector based on the fault operation data.
[0078] S204: The data processing device 12 generates a normal feature vector based on the normal operation data.
[0079] S205 . The data processing device 12 uses the fault feature vector as input and the fault suspicion as output to generate positive training samples.
[0080] S206: The data processing device 12 uses the normal feature vector as input and the normal operation as output to generate a negative training sample.
[0081] S207. The data processing device 12 performs training based on the positive training samples and the negative training samples to obtain a random forest model.
[0082] As a possible implementation manner, step S207 can be implemented as steps 21 to 28.
[0083] Step 21: Set the initial values of the model parameters of the random forest model.
[0084] In some embodiments, model parameters include the number of trees, the depth of the tree, the maximum depth of the tree, the minimum number of samples required for node classification, the minimum number of samples required for leaf nodes, the maximum number of features for splitting, and whether to use guided sampling.
[0085] Step 22: Based on the training set in the training sample and the initial values of the model parameters, training is performed to obtain a first model, and the first model is set as the optimal model.
[0086] Step 23: Based on the test set in the training sample, the optimal model is evaluated to obtain the evaluation result of the optimal model.
[0087] In some embodiments, the evaluation results include precision and / or recall.
[0088] For example, the evaluation result can be expressed as accuracy alone. Accuracy is one of the most commonly used evaluation indicators in classification problems, and is used to measure the accuracy of the model in classifying samples. Accuracy can be expressed by the following formula.
[0089]
[0090] Among them, Accuracy represents the accuracy. True Positives (TP) represents the number of samples that are actually positive and predicted as positive by the model. True Negatives (TN) represents the number of samples that are actually negative and predicted as negative by the model. False Positives (FP) represents the number of samples that are actually negative but predicted as positive by the model (false positives). False Negatives (FN) represents the number of samples that are actually positive but predicted as negative by the model (false negatives).
[0091] For example, the evaluation result can also be measured by recall rate alone. Recall rate, also known as recall rate or true positive rate (TPR), is an important indicator for measuring model performance in classification problems, especially in scenarios such as power grid fault prediction that focus on rare event detection. Recall rate can be expressed by the following formula.
[0092]
[0093] Recall represents the recall rate. True Positives (TP) represent the number of samples that are actually positive and predicted as positive by the model. False Negatives (FN) represent the number of samples that are actually positive but predicted as negative by the model.
[0094] Step 24: Adjust the model parameters, and perform training based on the training set in the training sample and the adjusted model parameters to obtain a second model.
[0095] Step 25: Based on the test set in the training sample, the second model is evaluated to obtain an evaluation result of the second model.
[0096] Step 26: If the evaluation result of the second model is better than the evaluation result of the optimal model, the second model is determined as the optimal model; if the evaluation result of the optimal model is better than the evaluation result of the second model, the optimal model remains unchanged.
[0097] Step 27, repeat steps 4 to 7 until the number of iterations is greater than the maximum number of iterations.
[0098] Step 28: Based on the model parameters corresponding to the optimal model, training is performed to determine the random forest model.
[0099] In this way, the present invention can achieve the acquisition of the best parameters in the random forest model through steps 21 to 28, and obtain the model parameters with the best evaluation results. Then, the optimal model parameters can be used for training to obtain a random forest model with better performance.
[0100] Exemplarily, step 28 may be specifically implemented as steps 31 to 38 .
[0101] Step 31: Based on the model parameters corresponding to the optimal model, as well as the positive training samples and the negative training samples, training is performed to obtain an initial model.
[0102] Step 32: Take the initial model as the teacher model and construct a student model with the same model parameters as the teacher model.
[0103] Step 33: Test the teacher model based on the test set and calculate the first test accuracy of the teacher model.
[0104] Step 34: Based on the first test accuracy, determine a test accuracy threshold.
[0105] Step 35: Perform branch pruning on the student model to obtain the adjusted student model.
[0106] Step 36: Test the adjusted student model based on the test set to obtain a second test accuracy.
[0107] Step 37: If the second test accuracy is greater than or equal to the test accuracy threshold, repeat steps 5 to 7 until the second test accuracy is less than the test accuracy threshold.
[0108] Step 38: If the second test accuracy is less than the test accuracy threshold, the student model before adjustment in the current iteration process is determined as a random forest model.
[0109] In this way, the embodiment of the present invention can first obtain the optimal parameters of the random forest model, and then through the branch and leaf pruning operation, on the basis of ensuring the test accuracy of the random forest model, prune the branches and leaves of the random forest model, reduce the complexity of the random forest model, reduce the computational overhead of the random forest model when in use, and improve the prediction speed in the fault prediction process.
[0110] Optionally, the power grid panoramic visualization application method provided by the embodiment of the present invention further includes steps S301-S306 before step S104.
[0111] S301 , the data acquisition device 11 acquires fault operation data of various fault types.
[0112] In some embodiments, the fault types include single-phase ground short circuit, two-phase ground short circuit, two-phase short circuit, and three-phase short circuit.
[0113] In some embodiments, the fault operation data includes power grid operation data of the fault node and neighboring nodes of the fault node during a set period before the fault moment.
[0114] S302 . The data processing device 12 generates a fault feature vector based on the fault operation data of each fault type.
[0115] S303 , the data processing device 12 generates training samples using the fault feature vector as input and the fault type as output.
[0116] S304, the data processing device 12 performs training based on the training samples and the new neural network model to obtain a fault prediction model.
[0117] As a possible implementation manner, step S304 can be specifically implemented as step 41 to step 48.
[0118] Step 41: Based on the training samples and the new neural network model, training is performed to obtain a teacher model.
[0119] Step 42: Construct a student model with the same model parameters and model depth as the teacher model.
[0120] Step 43: Test the teacher model based on the test set, and calculate the third test accuracy of the teacher model.
[0121] Step 44: Perform knowledge distillation on the student model to obtain a distilled student model.
[0122] Step 45: Based on the training samples, the distilled student model is trained by a neural network to obtain a retrained student model.
[0123] Step 46: Test the retrained student model based on the test set to obtain the fourth test accuracy.
[0124] Step 47: If the fourth test accuracy is greater than or equal to the third test accuracy, repeat steps 4 to 7 until the fourth test accuracy is less than the third test accuracy.
[0125] Step 48: If the second test accuracy is less than the test accuracy threshold, the student model before knowledge distillation in the current iteration process is determined as the fault prediction model.
[0126] In this way, the embodiment of the present invention can obtain a fault prediction model through neural network training before fault prediction, ensuring that faults are predicted in advance. Furthermore, in the model training stage, the embodiment of the present invention can perform knowledge distillation on the trained model through a knowledge distillation scheme to reduce the complexity of the fault prediction model and improve the calculation speed of the fault prediction model. On the basis of not losing the prediction accuracy, it ensures the real-time nature of power grid fault prediction and improves the management efficiency of the power grid.
[0127] Optionally, the power grid panoramic visualization application method provided by the embodiment of the present invention further includes steps S401 - S406 before step S106 .
[0128] S401, the data collection device 11 receives a troubleshooting generation instruction input by a user.
[0129] In some embodiments, the troubleshooting generation instruction is used to instruct the generation of troubleshooting measures.
[0130] S402: The data processing device 12 determines the fault suspected nodes and the fault impact range based on the fault prediction result and the fault prediction plane map.
[0131] S403: The data processing device 12 determines a fault handling measure based on the suspected fault node and the fault impact range.
[0132] In some embodiments, the fault handling measures include live inspection and power outage maintenance;
[0133] S404: The data processing device 12 generates a fault handling work order based on the fault handling measures to instruct the operation and maintenance personnel to repair the suspected fault node.
[0134] In this way, after predicting a high-probability suspected fault node, the embodiment of the present invention can formulate fault handling measures in combination with the fault prediction plan, organize personnel for maintenance and inspection, eliminate hidden dangers in the operation of the power grid, reduce the losses caused by sudden power outages in the power grid, and improve the management efficiency of the power grid.
[0135] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. A power grid panoramic visualization application system, It is characterized in that include: A data acquisition device, used to obtain the current power grid operation data and the topology data between the nodes in the power grid; The power grid operation data includes the voltage, current, frequency and temperature of each node in the power grid; A data processing device, configured to perform data analysis based on the power grid operation data and the topology data to generate a feature vector of each node, wherein the feature vector includes the operation data of the node itself and the operation data of adjacent nodes; input the feature vector of each node into a random forest model to determine the risk level of each node; input the feature vector of a node with a high risk level into a fault prediction model to obtain a fault prediction result of the power grid, wherein the fault prediction result includes a fault probability and a fault type of the node; and generate a fault prediction interface based on the fault prediction result and a preset plane diagram of the power grid; A visual display device is used to display the fault prediction interface.
2. The power grid panoramic visualization application system according to claim 1, It is characterized in that The data processing device is specifically used to determine the adjacent nodes of each node based on the topological data; take each node in each node as the central node and the adjacent nodes of each node as the relevant nodes, divide the power grid operation data, and obtain the operation data set of each node; the operation data set includes the central node data and the relevant node data; based on the central node data, perform feature extraction to determine the time characteristics and node characteristics of each node; the node characteristics include the voltage, current, frequency and temperature of the central node; the time characteristics include the current time, and the year and month of the current time; based on the relevant node data, perform feature extraction to determine the adjacent node characteristics of each node; The adjacent node characteristics include voltage, current, frequency and temperature of the adjacent nodes; based on the central node data and the related node data, the comprehensive node characteristics of each node are calculated; The comprehensive node features include multiple categories of statistics of the node itself and adjacent nodes, and the statistics include one or more of the following: mean, maximum, minimum and standard deviation; based on the time features, node characteristics, adjacent node characteristics, and comprehensive node characteristics, a feature vector of each node is generated.
3. The power grid panoramic visualization application system according to claim 1, It is characterized in that The data processing device is specifically used to input the feature vector of each node into a random forest model to obtain the probability that each node is in a suspected fault state; based on the probability that each node is in a suspected fault state, determine the risk level of each node.
4. The power grid panoramic visualization application system according to claim 1, It is characterized in that The data processing device is specifically used to obtain power grid operation data in a historical period, topological data between nodes, and fault time and fault node in a historical period; based on the fault time and fault node in the historical period, and the topological data, the power grid operation data in the historical period is divided to obtain fault operation data and normal operation data; the fault operation data is the power grid operation data of the fault node and the adjacent nodes of the fault node in a set period before the fault time; The normal operation data includes the power grid operation data of each node in normal operation and the adjacent nodes of each node; based on the fault operation data, a fault feature vector is generated; based on the normal operation data, a normal feature vector is generated; Taking the fault feature vector as input and the fault suspicion as output, generating positive training samples; Taking the normal feature vector as input and normal operation as output, a negative training sample is generated; Based on the positive training samples and the negative training samples, training is performed to obtain a random forest model.
5. The power grid panoramic visualization application system according to claim 4, It is characterized in that The data processing device is specifically used to perform the following steps: Step 21: setting the initial values of the model parameters of the random forest model; the model parameters include the number of trees, the depth of the tree, the maximum depth of the tree, the minimum number of samples required for node classification, the minimum number of samples required for leaf nodes, the maximum number of features when splitting, and whether to use guided sampling; Step 22: Based on the training set in the training sample and the initial values of the model parameters, training is performed to obtain a first model, and the first model is set as the optimal model; Step 23: Based on the test set in the training sample, the optimal model is evaluated to obtain an evaluation result of the optimal model; the evaluation result includes accuracy and recall; Step 24: Adjust the model parameters, and train based on the training set in the training sample and the adjusted model parameters to obtain a second model; Step 25: Based on the test set in the training sample, the second model is evaluated to obtain an evaluation result of the second model; Step 26: If the evaluation result of the second model is better than the evaluation result of the optimal model, the second model is determined as the optimal model; if the evaluation result of the optimal model is better than the evaluation result of the second model, the optimal model is kept unchanged; Step 27, repeating steps 24 to 27 until the number of iterations is greater than the maximum number of iterations; Step 28, training is performed based on the model parameters corresponding to the optimal model to determine the random forest model.
6. The power grid panoramic visualization application system according to claim 5, It is characterized in that The data processing device is specifically used to execute the following steps: Step 31: Based on the model parameters corresponding to the optimal model, as well as the positive training samples and the negative training samples, training is performed to obtain an initial model; Step 32: Taking the initial model as the teacher model, a student model with the same model parameters as the teacher model is constructed; Step 33: Testing the teacher model based on the test set, and calculating the first test accuracy of the teacher model; Step 34: Determining the test accuracy threshold based on the first test accuracy; Step 35: Pruning the student model to obtain an adjusted student model; Step 36: Testing the adjusted student model based on the test set to obtain a second test accuracy; Step 37: If the second test accuracy is greater than or equal to the test accuracy threshold, repeating steps 35 to 37 until the second test accuracy is less than the test accuracy threshold; Step 38: If the second test accuracy is less than the test accuracy threshold, the student model before adjustment in the current iteration process is determined as the random forest model.
7. The power grid panoramic visualization application system according to claim 1, It is characterized in that The data acquisition device is further used to obtain fault operation data of various fault types, wherein the fault types include single-phase ground short circuit, two-phase ground short circuit, two-phase short circuit and three-phase short circuit; the fault operation data includes power grid operation data of the fault node and the neighboring nodes of the fault node in a set period before the fault moment; the data processing device is further used to generate a fault feature vector based on the fault operation data of various fault types; Taking the fault feature vector as input and the fault type as output, generating a training sample; Based on the training samples and the new neural network model, training is performed to obtain a fault prediction model.
8. The power grid panoramic visualization application system according to claim 7, It is characterized in that The data processing device is specifically used to perform the following steps: Step 41: Based on the training samples and the new neural network model, training is performed to obtain a teacher model; Step 42: Constructing a student model with the same model parameters and model depth as the teacher model; Step 43: Test the teacher model based on the test set, and calculate the third test accuracy of the teacher model; Step 44: Perform knowledge distillation on the student model to obtain the distilled student model; Step 45: Perform neural network training on the distilled student model based on the training samples to obtain the retrained student model; Step 46: Test the retrained student model based on the test set to obtain the fourth test accuracy; Step 47: If the fourth test accuracy is greater than or equal to the third test accuracy, repeat steps 44 to 47 until the fourth test accuracy is less than the third test accuracy; Step 48: If the second test accuracy is less than the test accuracy threshold, the student model before knowledge distillation in the current iteration process is determined as the fault prediction model.
9. The power grid panoramic visualization application system according to claim 7, It is characterized in that The fault prediction interface includes a fault prediction table and a fault prediction plane map; the data processing device is specifically used to query the preset plane map based on the suspected fault nodes in the fault prediction results to obtain the position coordinates of each suspected fault node; determine the display color of the suspected fault node based on the fault probability; draw the fault prediction plane map based on the position coordinates of each node and the display color of the suspected fault node; The fault prediction table is drawn based on the suspected fault nodes, fault types, fault probabilities and location coordinates of the suspected fault nodes.
10. The power grid panoramic visualization application system according to claim 1, It is characterized in that The data acquisition device is further used to receive a troubleshooting generation instruction input by a user; the troubleshooting generation instruction is used to instruct the generation of troubleshooting measures; the data processing device is further used to determine the suspected fault nodes and the fault impact range based on the fault prediction results and the fault prediction plan; based on the suspected fault nodes and the fault impact range, determine the fault handling measures, the fault handling measures including live inspection and power outage maintenance; Based on the fault handling measures, a fault handling work order is generated to instruct the operation and maintenance personnel to repair the suspected fault node.
Citation Information
Patent Citations
Evaluation method for fault probability of power equipment
CN103630776A
Adaptive layered intrusion detection for dynamic topology in wireless sensor networks
CN109257749A
Dynamic response method and system for power distribution network fault
CN114414938A
Method and system for predicting fault probability of power equipment under natural disaster
CN114676746A
Power distribution network fault prediction processing method and device, equipment and storage medium
CN116187593A
Cited By
Digital power distribution network visualization method, device and equipment and storage medium
CN119740853A
