Power Internet of Things fault detection method and system based on edge-cloud collaboration
Through the edge-cloud collaborative fault detection method, edge servers and cloud collaboration are used to achieve real-time and accurate detection and location of power Internet of Things faults, solving the problems of real-time and accuracy of fault detection in the existing technology, and improving the efficiency of power Internet of Things. Networking robustness and resilience.
Patent Information
- Application Number
- CN202410903016.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-07-08
AI Technical Summary
Existing power Internet of Things fault detection methods are difficult to achieve real-time and accurate fault detection and location in power systems with large scale, strong heterogeneity, and complex environments. Relying solely on cloud processing leads to communication pressure and delay problems.
A fault detection method based on edge-cloud collaboration is adopted, multi-dimensional monitoring data is analyzed in real time through edge servers, a fault detection model is built using deep neural networks, fault location algorithms are combined with graphs to identify fault nodes, and fault information is uploaded to the cloud to generate an isolation plan. The IoT subnet performs autonomous collaborative optimization control.
It improves the real-time and accuracy of fault detection, reduces communication delays and bandwidth pressure, achieves precise location and intelligent isolation of faults, and enhances the robustness and recovery capabilities of the power Internet of Things.
Smart Images

Figure CN118473910B
Abstract
Description
Technical Field
[0001] The present invention relates to fault detection technology, and in particular to a power Internet of Things fault detection method and system based on edge-cloud collaboration. Background Art
[0002] The power Internet of Things realizes real-time monitoring, control and management of power systems through a large number of sensors, smart meters and communication equipment. However, due to the large scale, strong heterogeneity and complex environment of the power Internet of Things, fault detection and location face huge challenges.
[0003] Traditional fault detection methods mainly include rule-based methods and model-based methods. The rule-based method uses pre-defined fault rules to determine whether the system state is abnormal, but it is difficult to adapt to the dynamic changes and complexity of the power Internet of Things. The model-based method establishes a mathematical model of the system and uses state estimation, parameter identification and other technologies to achieve fault detection, but it has high requirements on the accuracy and real-time performance of the model and has certain limitations in practical applications.
[0004] In recent years, with the development of edge computing and cloud computing technologies, data-driven fault detection methods have received widespread attention. This type of method uses artificial intelligence technologies such as machine learning and deep learning to mine fault characteristics from massive historical operation data, build fault detection models, and achieve real-time monitoring and fault diagnosis of the power Internet of Things. However, due to the huge amount of data and wide distribution of the power Internet of Things, relying solely on centralized processing in the cloud will bring communication pressure and latency problems, making it difficult to meet the real-time requirements of fault detection. Summary of the invention
[0005] The embodiments of the present invention provide an edge-cloud collaboration-based power Internet of Things fault detection method and system, which can solve the problems in the prior art.
[0006] According to a first aspect of the embodiments of the present invention,
[0007] Provides a power IoT fault detection method based on edge-cloud collaboration, including:
[0008] Acquire real-time operation data of each IoT node in the power IoT, the real-time operation data including multi-dimensional monitoring data of voltage, current, power, and environmental information, and transmit the real-time operation data to the edge server in real time through the IoT communication protocol; the edge server analyzes the real-time operation data based on a pre-built fault detection model to obtain a fault detection result, the fault detection model is built based on a deep neural network;
[0009] When the fault detection result indicates that there is a fault, the edge server is triggered to execute a graph-based fault location algorithm, which includes: constructing a topological relationship graph of the power Internet of Things, calculating the fault probability of each node in the topological relationship graph according to the real-time operation data, marking the node with a fault probability greater than a preset fault threshold as a suspected fault node, searching the topological relationship graph for a minimum subtree with the suspected fault node as the root, and identifying the node with the highest fault probability in the minimum subtree as a fault node;
[0010] The faulty node is uploaded to a cloud server. The cloud server generates an isolation plan corresponding to the faulty node based on the faulty node, and distributes the isolation plan to the IoT subnet where the faulty node is located. The IoT subnet performs autonomous collaborative optimization control on the operating status of each node in the topology diagram.
[0011] In an optional embodiment,
[0012] The edge server analyzes the real-time operation data based on the pre-built fault detection model to obtain the fault detection result. The method further includes training the fault detection model:
[0013] The real-time operation data of each IoT node in the power IoT is collected, wherein the real-time operation data includes multi-dimensional time series data of multiple time steps; the real-time operation data is input into a convolutional neural network of a fault detection model to be trained, and the spatial features of the real-time operation data are extracted through multiple one-dimensional convolutional layers and pooling layers, and the extracted spatial features are cascaded with the real-time operation data to obtain fusion features;
[0014] Construct multiple parallel LSTM (Long Short-Term Memory) sub-networks, each LSTM sub-network corresponds to a different time window length, divide the fusion features into time window data of different scales and input them into the corresponding LSTM sub-network, and extract time features of different scales through the LSTM sub-network;
[0015] In each LSTM sub-network, the attention weight of the time feature at each time step is calculated through the attention mechanism, and the importance of the time features at different time steps is dynamically adjusted to obtain the hidden state sequence after weight adjustment; the hidden state sequences output by each LSTM sub-network are cascaded to obtain the final multi-scale fusion feature;
[0016] The dual loss function of the fault detection model to be trained is iteratively optimized according to the final multi-scale fusion features until the preset iteration conditions are met, the training of the fault detection model is completed, and the fault detection result is output, wherein the dual loss function is a weighted sum of a binary cross entropy loss function and a multivariate cross entropy loss function.
[0017] In an optional embodiment,
[0018] The dual loss function is shown in the following formula:
[0019]
[0020] in, L represents the dual loss function, λ represents the loss weight coefficient;
[0021] L detect represents the binary cross loss function, N represents the number of samples, y i Indicates i The true fault labels of samples, represents the failure prediction probability of the i-th sample;
[0022] L locate represents the multivariate cross loss function, y i,c Indicates i The true fault label of samples belongs to fault type c, represents the fault prediction probability that the i-th sample belongs to fault type c, C Indicates the fault category.
[0023] In an optional embodiment,
[0024] Constructing a topological relationship graph of the electric power Internet of Things, calculating the failure probability of each node in the topological relationship graph according to the real-time operation data, marking a node whose failure probability is greater than a preset failure threshold as a suspected failure node, searching for a minimum subtree with the suspected failure node as a root in the topological relationship graph, and identifying a node with the highest failure probability in the minimum subtree as a failure node includes:
[0025] According to the network topology of the power Internet of Things, an undirected weighted graph is constructed, wherein the nodes in the undirected weighted graph represent Internet of Things terminal devices, sensors or smart meters, the edges represent the physical connections or logical associations between the nodes, and the weights of the initialized edges are preset values of the connectivity between the nodes;
[0026] Obtain the real-time operation data of each node, calculate the failure probability of each node using the fault detection model, and introduce the node fault propagation probability, which represents the probability that a fault will propagate to its neighboring nodes when a node fails. The fault propagation probability is calculated based on the physical distance between nodes, electrical connection characteristics, and historical fault data;
[0027] Nodes with a fault probability greater than a preset fault threshold are marked as suspected fault nodes, and each suspected fault node is used as a root to perform a minimum subtree search in the undirected weighted graph to obtain a subtree with the least number of nodes with the suspected fault node as a root, and the subtree is used as the current subtree. When the number of nodes accessed during the search exceeds the maximum number of subtree nodes set according to the scale of the power Internet of Things and the fault propagation range, the search is stopped, and the current subtree is used as the minimum subtree;
[0028] The node with the highest failure probability in the minimum subtree is taken as the failed node.
[0029] In an optional embodiment,
[0030] The method further comprises:
[0031] In the minimum subtree search process, for each visited node, determine whether the neighboring nodes of the visited node have faults. If there are faults, the fault probability of the visited node is updated based on the fault propagation probability of the neighboring nodes and the weights of the edges between the nodes.
[0032] Find the node with the highest failure probability after the failure probability is updated in all the smallest subtrees, add it to the set of faulty nodes, then remove the node and its smallest subtree, and continue to search for the next node with the highest failure probability after the failure probability is updated in the remaining subtrees, and repeat this process until all subtrees are removed or the number of faulty nodes reaches the preset threshold;
[0033] Finally, the sorted list of faulty nodes and the minimum subtree where each faulty node is located are output.
[0034] In an optional embodiment,
[0035] The cloud server generates an isolation scheme corresponding to the faulty node according to the faulty node, and distributes the isolation scheme to the IoT subnet where the faulty node is located, and the IoT subnet performs autonomous collaborative optimization control on the operating status of each node in the topology diagram, including:
[0036] The cloud server determines the set of edges that need to be disconnected based on the fault node list and the fault propagation probability, and introduces an isolation cost function, takes the isolation scheme with the smallest isolation cost function value as the optimal isolation scheme, and distributes the optimal isolation scheme to the IoT subnet;
[0037] The Internet of Things subnet dynamically adjusts the network topology structure according to the optimal isolation solution, disconnects the connection between the faulty node and the nodes in the non-faulty area, and performs autonomous collaborative optimization control on the operating status of each node in the power Internet of Things.
[0038] In an optional embodiment,
[0039] The isolation cost function is shown in the following formula:
[0040]
[0041] in, C(I k ) represents the isolation cost function, I k It represents the set of edges that need to be disconnected in the isolation scheme, α and β represent the connection edge weight coefficient and the isolation influence coefficient respectively. E represents the total number of edges, V Represents a collection of nodes. T k Indicates the smallest subtree where the faulty node is located. D Indicates the preset threshold value, indicating the maximum impact range allowed by the isolation operation. d(v, T k ) Representation Node v The shortest path length to the smallest subtree where the faulty node is located, represents the node with the largest weighted failure probability in the smallest subtree, that is, the faulty node. v j Indicates j nodes, M() Represents the set of neighbor nodes of the failed node.
[0042] In the second aspect of the embodiments of the present application,
[0043] Provides a power IoT fault detection system based on edge-cloud collaboration, including:
[0044] The first unit is used to obtain the real-time operation data of each IoT node in the power IoT, the real-time operation data includes multi-dimensional monitoring data of voltage, current, power, and environmental information, and transmit the real-time operation data to the edge server in real time through the IoT communication protocol; the edge server analyzes the real-time operation data based on a pre-built fault detection model to obtain a fault detection result, and the fault detection model is built based on a deep neural network;
[0045] The second unit is used to trigger the edge server to execute a graph-based fault location algorithm when the fault detection result indicates that there is a fault. The fault location algorithm includes: constructing a topological relationship graph of the power Internet of Things, calculating the fault probability of each node in the topological relationship graph according to the real-time operation data, marking the node with a fault probability greater than a preset fault threshold as a suspected fault node, searching the topological relationship graph for a minimum subtree with the suspected fault node as a root, and identifying the node with the largest fault probability in the minimum subtree as a fault node;
[0046] The third unit is used to upload the faulty node to the cloud server. The cloud server generates an isolation plan corresponding to the faulty node according to the faulty node, and distributes the isolation plan to the Internet of Things subnet where the faulty node is located. The Internet of Things subnet performs autonomous collaborative optimization control on the operating status of each node in the topological relationship diagram.
[0047] According to a third aspect of the embodiments of the present invention,
[0048] An electronic device is provided, comprising:
[0049] processor;
[0050] a memory for storing processor-executable instructions;
[0051] The processor is configured to call the instructions stored in the memory to execute the aforementioned method.
[0052] A fourth aspect of the embodiments of the present invention is:
[0053] A computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the aforementioned method is implemented.
[0054] This application achieves rapid analysis and fault detection of real-time operation data of the power Internet of Things by deploying a pre-built fault detection model based on a deep neural network on the edge server, avoiding communication delays and bandwidth pressure caused by transmitting a large amount of data to the cloud, and improving the real-time performance of fault detection. At the same time, the deep neural network model can automatically extract fault features from multi-dimensional monitoring data, improving the accuracy of fault detection.
[0055] When the edge server detects a fault, the graph-based fault location algorithm is triggered. By constructing the power Internet of Things topology relationship graph, calculating the node failure probability, searching for the minimum subtree of the suspected faulty node, and identifying the real faulty node, the fault is accurately located. At the same time, the minimum subtree represents the impact range of the faulty node, providing an important basis for subsequent fault isolation and repair. The cloud server automatically generates a fault isolation plan based on the faulty node information uploaded by the edge server, and distributes the isolation plan to the Internet of Things subnet where the faulty node is located. According to the isolation plan, the Internet of Things subnet performs autonomous collaborative optimization control on the nodes in the topology relationship graph, realizes intelligent fault isolation and autonomous recovery of network performance, and improves the robustness and recovery capability of the power Internet of Things.
[0056] The patent of this invention makes full use of the real-time processing capability of edge computing and the global optimization capability of cloud computing. Through edge-cloud collaboration, it realizes the reasonable division of labor and efficient collaboration of fault detection tasks. The edge server is responsible for local real-time fault detection and preliminary diagnosis, the cloud server is responsible for global fault analysis and isolation solution generation, and the IoT subnet is responsible for executing the isolation solution and autonomous optimization control. The three work together to improve the overall performance and reliability of fault detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 It is a flowchart of a method for fault detection of electric power Internet of Things based on edge-cloud collaboration according to an embodiment of the present invention;
[0058] Figure 2 This is a structural diagram of the power Internet of Things fault detection system based on edge-cloud collaboration according to an embodiment of the present invention. DETAILED DESCRIPTION
[0059] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0060] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0061] Figure 1 Schematic diagram of the process of the power Internet of Things fault detection method based on edge-cloud collaboration according to an embodiment of the present invention. Figure 1 As shown, the method includes:
[0062] S101. Acquire real-time operation data of each IoT node in the power IoT, the real-time operation data including multi-dimensional monitoring data of voltage, current, power, and environmental information, and transmit the real-time operation data to an edge server in real time through an IoT communication protocol; the edge server analyzes the real-time operation data based on a pre-built fault detection model to obtain a fault detection result, the fault detection model being built based on a deep neural network;
[0063] Exemplarily, in the electric power Internet of Things, a large number of Internet of Things nodes are deployed, such as smart meters, transformer temperature monitoring devices, environmental monitoring sensors, etc. Each Internet of Things node is equipped with corresponding sensors and data acquisition units for real-time collection of the node's operating status data. Specifically, smart meters collect electrical quantity parameters such as voltage, current, and power, transformer temperature monitoring devices collect temperature data such as transformer winding temperature and oil temperature, and environmental monitoring sensors collect environmental parameters such as temperature, humidity, and smoke concentration in the environment where the node is located. These multi-dimensional monitoring data form the real-time operating data of the Internet of Things node. The Internet of Things node transmits the collected real-time operating data to the edge server in real time through the Internet of Things communication protocols, such as MQTT and CoAP. The selection of communication protocols takes into account the real-time, reliability, and low power consumption characteristics of data transmission to meet the application requirements of the electric power Internet of Things.
[0064] On the edge server, a fault detection model based on a deep neural network is pre-built. The construction process of the fault detection model is as follows:
[0065] (1) Data preparation: Collect historical operating data of various types of nodes in the power Internet of Things, including normal state data and various fault state data, to form a training data set. Preprocess the training data, such as data cleaning, feature extraction, and data enhancement.
[0066] (2) Model design: According to the characteristics of power IoT fault detection, design a suitable deep neural network structure. Common network structures include convolutional neural networks (CNN), long short-term memory networks (LSTM), autoencoders, etc. According to the characteristics of the data and the type of fault, select appropriate hyperparameters such as the number of network layers, activation function, and loss function.
[0067] (3) Model training: Input the prepared training data set into the designed deep neural network, and continuously adjust the network parameters through forward propagation and back propagation algorithms so that the model can learn fault characteristics and discrimination rules. Use cross-validation, early stopping and other techniques to avoid model overfitting.
[0068] The output of the fault detection model indicates whether there is a fault in the current operating state of the IoT node. If a fault is detected, the edge server will output detailed information such as the fault type and fault severity. The fault detection results can be used to trigger subsequent operations such as fault location, isolation, and repair, and can also be fed back to the IoT node in real time to achieve early warning and rapid disposal of faults through alarms, control instructions, etc. At the same time, the fault detection results can also be uploaded to the cloud server, combined with the status information of other nodes, to conduct network-wide fault analysis and risk assessment, and provide support for power grid dispatch and operation and maintenance decisions.
[0069] In an optional embodiment,
[0070] The edge server analyzes the real-time operation data based on the pre-built fault detection model to obtain the fault detection result. The method further includes training the fault detection model:
[0071] The real-time operation data of each IoT node in the power IoT is collected, wherein the real-time operation data includes multi-dimensional time series data of multiple time steps; the real-time operation data is input into a convolutional neural network of a fault detection model to be trained, and the spatial features of the real-time operation data are extracted through multiple one-dimensional convolutional layers and pooling layers, and the extracted spatial features are cascaded with the real-time operation data to obtain fusion features;
[0072] Construct multiple parallel LSTM long short-term memory neural network sub-networks, each LSTM sub-network corresponds to a different time window length, divide the fusion features into time window data of different scales and input them into the corresponding LSTM sub-network, and extract time features at different scales through the LSTM sub-network;
[0073] In each LSTM sub-network, the attention weight of the time feature at each time step is calculated through the attention mechanism, and the importance of the time features at different time steps is dynamically adjusted to obtain the hidden state sequence after weight adjustment; the hidden state sequences output by each LSTM sub-network are cascaded to obtain the final multi-scale fusion feature;
[0074] The dual loss function of the fault detection model to be trained is iteratively optimized according to the final multi-scale fusion features until the preset iteration conditions are met, the training of the fault detection model is completed, and the fault detection result is output, wherein the dual loss function is a weighted sum of a binary cross entropy loss function and a multivariate cross entropy loss function.
[0075] Exemplarily, the real-time operation data of each IoT node in the power IoT is collected, and the real-time operation data includes multi-dimensional time series data of multiple time steps, such as sampling values of multiple monitoring indicators such as voltage, current, power, temperature, etc. at different time points. The collected real-time operation data is preprocessed, such as data cleaning, normalization, and standardization, to convert the data into a format suitable for input into the fault detection model. At the same time, the data is labeled to mark the normal state and various fault states to form a training data set. Exemplarily, the preset iteration condition of the present application may include the number of iterations. Specifically, the preset iteration condition may be to stop the iteration after the number of iterations exceeds 20 times.
[0076] The preprocessed real-time operation data is input into the convolutional neural network of the fault detection model to be trained. The convolutional neural network consists of multiple one-dimensional convolutional layers and pooling layers, which are used to extract the spatial features of the real-time operation data. Specifically, the first one-dimensional convolutional layer performs a convolution operation on the input data, and extracts the local features of the data on different monitoring indicators by setting the appropriate convolution kernel size and number. The feature map after convolution is nonlinearly transformed through an activation function to enhance the expressive power of the features. After alternating operations of several one-dimensional convolutional layers and pooling layers, the convolutional neural network gradually extracts the high-level semantic features of the real-time operation data and captures the correlation and abnormal patterns between different monitoring indicators. Finally, the spatial features extracted by the convolutional neural network are cascaded with the original real-time operation data to obtain fused features, which contain both the information of the original data and the abstract features extracted by the convolution.
[0077] Construct multiple parallel LSTM (Long Short-Term Memory) neural network subnetworks. Each LSTM subnetwork corresponds to a different time window length to extract time features at different scales. Divide the fused features into time window data of different scales, such as time windows of length 10, 20, and 30, and input them into the corresponding LSTM subnetworks respectively. Each LSTM subnetwork learns the long-term and short-term dependencies of the data in the time window through the recurrent neural network structure to capture abnormal patterns at different time scales.
[0078] In each LSTM subnetwork, an attention mechanism is introduced to calculate the attention weight of the time feature at each time step. The importance of the time features at different time steps is dynamically adjusted through the attention weight, so that the model can adaptively focus on the time steps that are more important for fault identification. The LSTM subnetwork outputs a hidden state sequence containing the attention weight, which represents the time features at this time scale. The hidden state sequences output by each LSTM subnetwork are cascaded to obtain the final multi-scale fusion feature, which comprehensively considers the abnormal features at different time scales.
[0079] In an optional embodiment,
[0080] The dual loss function is shown in the following formula:
[0081]
[0082] in, L represents the dual loss function, λ represents the loss weight coefficient;
[0083] L detect represents the binary cross loss function, N represents the number of samples, y iIndicates i The true fault labels of samples, represents the failure prediction probability of the i-th sample;
[0084] L locate represents the multivariate cross loss function, y i,c Indicates i The true fault label of samples belongs to fault type c, represents the fault prediction probability that the i-th sample belongs to fault type c, C Indicates the fault category.
[0085] S102. When the fault detection result indicates that there is a fault, the edge server is triggered to execute a graph-based fault location algorithm, the fault location algorithm comprising: constructing a topological relationship graph of the power Internet of Things, calculating the fault probability of each node in the topological relationship graph according to the real-time operation data, marking nodes with a fault probability greater than a preset fault threshold as suspected fault nodes, searching the topological relationship graph for a minimum subtree with the suspected fault node as the root, and identifying the node with the highest fault probability in the minimum subtree as the fault node;
[0086] In an optional embodiment,
[0087] Constructing a topological relationship graph of the electric power Internet of Things, calculating the failure probability of each node in the topological relationship graph according to the real-time operation data, marking a node whose failure probability is greater than a preset failure threshold as a suspected failure node, searching for a minimum subtree with the suspected failure node as a root in the topological relationship graph, and identifying a node with the highest failure probability in the minimum subtree as a failure node includes:
[0088] According to the network topology of the power Internet of Things, an undirected weighted graph is constructed, wherein the nodes in the undirected weighted graph represent Internet of Things terminal devices, sensors or smart meters, the edges represent the physical connections or logical associations between the nodes, and the weights of the initialized edges are preset values of the connectivity between the nodes;
[0089] Obtain the real-time operation data of each node, calculate the failure probability of each node using the fault detection model, and introduce the node fault propagation probability, which represents the probability that a fault will propagate to its neighboring nodes when a node fails. The fault propagation probability is calculated based on the physical distance between nodes, electrical connection characteristics, and historical fault data;
[0090] Nodes with a fault probability greater than a preset fault threshold are marked as suspected fault nodes, and each suspected fault node is used as a root to perform a minimum subtree search in the undirected weighted graph to obtain a subtree with the least number of nodes with the suspected fault node as a root, and the subtree is used as the current subtree. When the number of nodes accessed during the search exceeds the maximum number of subtree nodes set according to the scale of the power Internet of Things and the fault propagation range, the search is stopped, and the current subtree is used as the minimum subtree;
[0091] The node with the highest failure probability in the minimum subtree is taken as the failed node.
[0092] Exemplarily, according to the network topology of the power Internet of Things, an undirected weighted graph is constructed as the topological relationship diagram of the power Internet of Things. The nodes in the undirected weighted graph represent the Internet of Things terminal devices, sensors or smart meters, and the edges represent the physical connections or logical associations between the nodes. The weights of the edges in the initialized undirected weighted graph are preset values of the connectivity between the nodes. The connectivity can be estimated based on factors such as the physical distance between the nodes, signal strength, and communication quality, indicating the reliability and stability of the connection between the nodes.
[0093] Obtain the real-time operation data of each node, including monitoring indicators such as voltage, current, power, and temperature. Use the pre-trained fault detection model to analyze the real-time operation data of each node and calculate the node's failure probability. The failure probability indicates the possibility that the current state of the node is a failure state. Introduce the node fault propagation probability, which indicates the probability that when a node fails, the fault propagates to its neighboring nodes. The fault propagation probability is calculated based on the physical distance between nodes, electrical connection characteristics, and historical fault data. The closer the physical distance, the tighter the electrical connection, and the more simultaneous faults have occurred in history, the higher the fault propagation probability. Statistical methods or machine learning methods can be used to estimate the fault propagation probability between nodes based on historical data.
[0094] According to the preset fault threshold, nodes with a fault probability greater than the threshold are marked as suspected fault nodes. The fault threshold can be set according to the fault tolerance of the system and the sensitivity of fault detection to balance the risks of false positives and false negatives. Exemplarily, the preset fault threshold of the present application can be adaptively set according to actual needs. For example, the fault threshold can be a natural number between 0 and 1. More specifically, the preset fault threshold can be 0.6, and nodes with a fault probability greater than 0.6 are marked as suspected fault nodes.
[0095] Taking each suspected faulty node as the root, perform a minimum subtree search in the undirected weighted graph to locate the real faulty node. The search process is as follows:
[0096] Starting from the suspected fault node, the breadth-first search (BFS) or depth-first search (DFS) algorithm is used to traverse the nodes connected to the suspected fault node in the undirected weighted graph. During the search process, the number of nodes visited and the node set of the current subtree are recorded. When the number of nodes visited exceeds the maximum number of subtree nodes set according to the scale of the power Internet of Things and the range of fault propagation, the search is stopped and the current subtree is used as the minimum subtree.
[0097] For each node visited, calculate the product of its fault probability and the fault probability of the previous node as the fault propagation probability of the node. The fault propagation probability indicates the possibility of the fault propagating from the root node to the current node. The node with the largest fault propagation probability in the smallest subtree is regarded as the real fault node. The node with the largest fault propagation probability indicates that the fault is most likely to propagate from the root node to this node, that is, this node is most likely to be the real fault source.
[0098] The faulty node obtained by searching the minimum subtree is output as the result of fault location. The output result includes the identification information of the faulty node, the fault probability, the fault propagation path, etc., which provides a decision basis for subsequent fault isolation and maintenance.
[0099] In summary, the technical solution of this application uses an undirected weighted graph to represent the topological relationship of the power Internet of Things, calculates the node failure probability through a fault detection model, introduces the fault propagation probability to characterize the propagation characteristics of the fault between nodes, and uses the minimum subtree search algorithm to locate the real fault node. This method comprehensively considers the node status, topological structure and fault propagation mechanism, and improves the accuracy and efficiency of fault location.
[0100] In an optional embodiment,
[0101] The method further comprises:
[0102] In the minimum subtree search process, for each visited node, determine whether the neighboring nodes of the visited node have faults. If there are faults, the fault probability of the visited node is updated based on the fault propagation probability of the neighboring nodes and the weights of the edges between the nodes.
[0103] Find the node with the highest failure probability after the failure probability is updated in all the smallest subtrees, add it to the set of faulty nodes, then remove the node and its smallest subtree, and continue to search for the next node with the highest failure probability after the failure probability is updated in the remaining subtrees, and repeat this process until all subtrees are removed or the number of faulty nodes reaches the preset threshold;
[0104] Finally, the sorted list of faulty nodes and the minimum subtree where each faulty node is located are output.
[0105] Exemplarily, during the minimum subtree search process, for each visited node, the following operations are performed:
[0106] Determine whether the neighboring nodes of the visited node have faults. Calculate the fault probability of the neighboring nodes through the fault detection model, and mark the neighboring nodes with a fault probability greater than the preset fault threshold as faulty nodes. If the neighboring node has a fault, the fault probability of the visited node is updated based on the fault propagation probability of the neighboring node and the weight of the edge between the nodes. The update formula is as follows:
[0107]
[0108] in, P ud represents the updated node failure probability, P or represents the original failure probability of the node, P nb represents the failure probability of neighbor nodes, W edge Represents the weight of the edge between a node and its neighboring nodes.
[0109] The weight of the edge indicates the closeness of the connection between nodes and the difficulty of fault propagation. The larger the weight, the closer the connection and the greater the possibility of fault propagation. The weight can be set according to factors such as the physical distance between nodes and electrical parameters. Through the above formula, the fault status and propagation probability of the neighboring nodes are comprehensively considered to update the fault probability of the visited node. The updated fault probability reflects the propagation and impact of the fault in the topology.
[0110] After all minimum subtree searches are complete, do the following:
[0111] Find the node with the highest probability of failure after the failure probability is updated in all the minimum subtrees, and add it to the set of faulty nodes. The node with the highest probability of failure indicates that it is most likely to be the real faulty node in the current search range. Remove the node with the highest probability of failure and its minimum subtree. Mark the node as a located faulty node and no longer participate in subsequent searches. In the remaining minimum subtrees, continue to search for the next node with the highest probability of failure after the failure probability is updated. Repeat the iteration until one of the following conditions is met:
[0112] All minimum subtrees are removed, that is, all suspected faulty nodes are searched and located. The number of faulty nodes reaches the preset threshold, that is, enough faulty nodes have been located to meet the fault location requirements.
[0113] The preset threshold can be set based on factors such as the system's fault tolerance, fault handling capability, and time and resource constraints.
[0114] Output the sorted list of faulty nodes in descending order of fault probability. Each faulty node in the list includes information such as node identification, fault probability, and the smallest subtree in which it is located. At the same time, output the smallest subtree in which each faulty node is located. The smallest subtree represents the impact range and associated nodes of the faulty node, providing contextual information for fault analysis and isolation.
[0115] In summary, this technical solution introduces the fault propagation influence of neighbor nodes in the minimum subtree search process. Through the fault probability update formula, the fault state and propagation probability of neighbor nodes are comprehensively considered to improve the accuracy of fault node positioning. Through iterative search and fault node pruning, the search range is gradually narrowed, and the positioning efficiency is improved. Finally, the sorted fault node list and the minimum subtree are output to provide a decision-making basis for fault analysis and processing.
[0116] S103. The faulty node is uploaded to a cloud server. The cloud server generates an isolation plan corresponding to the faulty node according to the faulty node, and distributes the isolation plan to the IoT subnet where the faulty node is located. The IoT subnet performs autonomous collaborative optimization control on the operating status of each node in the topology diagram.
[0117] In an optional embodiment,
[0118] The cloud server generates an isolation scheme corresponding to the faulty node according to the faulty node, and distributes the isolation scheme to the IoT subnet where the faulty node is located, and the IoT subnet performs autonomous collaborative optimization control on the operating status of each node in the topology diagram, including:
[0119] The cloud server determines the set of edges that need to be disconnected based on the fault node list and the fault propagation probability, and introduces an isolation cost function, takes the isolation scheme with the smallest isolation cost function value as the optimal isolation scheme, and distributes the optimal isolation scheme to the IoT subnet;
[0120] The Internet of Things subnet dynamically adjusts the network topology structure according to the optimal isolation solution, disconnects the connection between the faulty node and the nodes in the non-faulty area, and performs autonomous collaborative optimization control on the operating status of each node in the power Internet of Things.
[0121] In an optional embodiment,
[0122] The isolation cost function is shown in the following formula:
[0123]
[0124] in, C(I k ) represents the isolation cost function,I k It represents the set of edges that need to be disconnected in the isolation scheme, α and β represent the connection edge weight coefficient and the isolation influence coefficient respectively. E represents the total number of edges, V Represents a collection of nodes. T k Indicates the smallest subtree where the faulty node is located. D Indicates the preset threshold value, indicating the maximum impact range allowed by the isolation operation. d(v, T k ) Representation Node v The shortest path length to the smallest subtree where the faulty node is located, represents the node with the largest weighted failure probability in the smallest subtree, that is, the faulty node. v j Indicates j nodes, M() Represents the set of neighbor nodes of the failed node.
[0125] It should be noted that the isolation impact coefficient is used to indicate the degree of influence of the affected node on the final isolation cost.
[0126] Exemplarily, an isolation cost function is introduced to evaluate the costs of different isolation schemes. The isolation cost function considers the following factors:
[0127] Number of isolation edges: The more isolation edges there are, the greater the isolation cost. The number of isolation edges reflects the degree of change in the network topology caused by the isolation scheme. Weight of isolation edge: The greater the weight of the isolation edge, the greater the isolation cost. The weight of the edge indicates the closeness and importance of the connection between nodes. Network connectivity after isolation: The worse the network connectivity after isolation, the greater the isolation cost. Network connectivity can be measured by indicators such as the shortest path length between nodes and the number of connected components. Functional availability after isolation: The lower the functional availability after isolation, the greater the isolation cost. Functional availability indicates the normal operation of key functions and services of the power Internet of Things after isolation.
[0128] The isolation cost function can be a weighted combination of the above factors, and the weight coefficient is set according to actual needs and preferences. The smaller the isolation cost function value, the lower the cost of the isolation solution and the smaller the impact on the network topology and functional availability.
[0129] The cloud server generates candidate isolation solutions based on the list of faulty nodes and the probability of fault propagation. Candidate isolation solutions are generated through the following steps:
[0130] For each faulty node, find the edges connecting it to the nodes in the non-faulty area in the topology graph to form a candidate isolation edge set. Based on the candidate isolation edge set, generate all possible isolation schemes. Each isolation scheme represents a set of edges that need to be disconnected.
[0131] For each isolation scheme, calculate its isolation cost function value. The isolation cost function value takes into account factors such as the number and weight of isolation edges, network connectivity after isolation, and functional availability. The isolation scheme with the smallest isolation cost function value is selected as the optimal isolation scheme. The optimal isolation scheme indicates the scheme that has the least impact on the network topology and functional availability while isolating the faulty nodes.
[0132] The cloud server distributes the optimal isolation solution to the IoT subnet. The IoT subnet dynamically adjusts the network topology according to the optimal isolation solution. The specific steps are as follows:
[0133] After receiving the optimal isolation solution, the IoT subnet parses the set of edges that need to be disconnected in the isolation solution. For each edge that needs to be disconnected, the IoT subnet finds the corresponding node pair in the topology graph and disconnects the connection between them. After disconnection, the IoT subnet updates the topology graph and removes the connection between the faulty node and the node in the non-faulty area from the graph.
[0134] The IoT subnet performs autonomous collaborative optimization control on the operating status of each node in the power IoT based on the updated topology diagram. The goal of optimization control is to minimize the impact of faults on the system while ensuring functional availability and service quality.
[0135] The IoT subnet performs autonomous collaborative optimization control on the operating status of each node in the power IoT based on the updated topology diagram. The optimization control can adopt the following strategies:
[0136] Load balancing: Dynamically adjust task allocation and resource allocation according to the processing capacity and load of the node to achieve load balancing and avoid node overload or low utilization.
[0137] Route optimization: Dynamically adjust the data transmission path according to the network topology and link quality, select the optimal route, and reduce transmission delay and packet loss rate.
[0138] Power control: Dynamically adjust the node's operating mode and power setting according to the node's energy consumption and grid status to achieve energy efficiency optimization and grid stability.
[0139] Fault-tolerant mechanism: Through fault-tolerant mechanisms such as data backup and task re-execution, the robustness and reliability of the system are improved and the impact of failures is reduced.
[0140] Through autonomous collaborative optimization control, the IoT subnet isolates faulty nodes while ensuring the normal operation and service quality of the power IoT and minimizing the impact of faults on the system.
[0141] In summary, this technical solution introduces an isolation cost function to evaluate the costs of different isolation solutions and selects the solution with the lowest isolation cost as the optimal isolation solution. The cloud server generates the optimal isolation solution, and the IoT subnet dynamically adjusts the network topology according to the optimal isolation solution to disconnect the connection between the faulty node and the nodes in the non-faulty area. Through autonomous collaborative optimization control, the IoT subnet ensures the normal operation and service quality of the power IoT while isolating the faulty node.
[0142] Figure 2 Schematic diagram of the structure of the power Internet of Things fault detection system based on edge-cloud collaboration according to an embodiment of the present invention. Figure 2 As shown, the system comprises:
[0143] The first unit is used to obtain the real-time operation data of each IoT node in the power IoT, the real-time operation data includes multi-dimensional monitoring data of voltage, current, power, and environmental information, and transmit the real-time operation data to the edge server in real time through the IoT communication protocol; the edge server analyzes the real-time operation data based on a pre-built fault detection model to obtain a fault detection result, and the fault detection model is built based on a deep neural network;
[0144] The second unit is used to trigger the edge server to execute a graph-based fault location algorithm when the fault detection result indicates that there is a fault. The fault location algorithm includes: constructing a topological relationship graph of the power Internet of Things, calculating the fault probability of each node in the topological relationship graph according to the real-time operation data, marking the node with a fault probability greater than a preset fault threshold as a suspected fault node, searching the topological relationship graph for a minimum subtree with the suspected fault node as a root, and identifying the node with the largest fault probability in the minimum subtree as a fault node;
[0145] The third unit is used to upload the faulty node to the cloud server. The cloud server generates an isolation plan corresponding to the faulty node according to the faulty node, and distributes the isolation plan to the Internet of Things subnet where the faulty node is located. The Internet of Things subnet performs autonomous collaborative optimization control on the operating status of each node in the topological relationship diagram.
[0146] According to a third aspect of the embodiments of the present invention,
[0147] An electronic device is provided, comprising:
[0148] processor;
[0149] a memory for storing processor-executable instructions;
[0150] The processor is configured to call the instructions stored in the memory to execute the aforementioned method.
[0151] A fourth aspect of the embodiments of the present invention is:
[0152] A computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the aforementioned method is implemented.
[0153] The present invention may be a method, an apparatus, a system and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the present invention.
[0154] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A power Internet of Things fault detection method based on edge-cloud collaboration, characterized in that: include: Acquire the real-time operation data of each IoT node in the power IoT, including multi-dimensional monitoring data of voltage, current, power, and environmental information, and transmit the real-time operation data to the edge server in real time through the IoT communication protocol; The edge server analyzes the real-time operation data based on a pre-built fault detection model to obtain a fault detection result, wherein the fault detection model is built based on a deep neural network; When the fault detection result indicates that there is a fault, the edge server is triggered to execute a graph-based fault location algorithm, which includes: constructing a topological relationship graph of the power Internet of Things, calculating the fault probability of each node in the topological relationship graph according to the real-time operation data, marking the node with a fault probability greater than a preset fault threshold as a suspected fault node, searching the topological relationship graph for a minimum subtree with the suspected fault node as the root, and identifying the node with the highest fault probability in the minimum subtree as a fault node; The faulty node is uploaded to a cloud server, and the cloud server generates an isolation plan corresponding to the faulty node according to the faulty node, and distributes the isolation plan to the IoT subnet where the faulty node is located, and the IoT subnet performs autonomous collaborative optimization control on the operating status of each node in the topology diagram; Constructing a topological relationship graph of the electric power Internet of Things, calculating the failure probability of each node in the topological relationship graph according to the real-time operation data, marking a node whose failure probability is greater than a preset failure threshold as a suspected failure node, searching for a minimum subtree with the suspected failure node as a root in the topological relationship graph, and identifying a node with the highest failure probability in the minimum subtree as a failure node includes: According to the network topology of the power Internet of Things, an undirected weighted graph is constructed, wherein the nodes in the undirected weighted graph represent Internet of Things terminal devices, sensors or smart meters, the edges represent the physical connections or logical associations between the nodes, and the weights of the initialized edges are preset values of the connectivity between the nodes; Obtain the real-time operation data of each node, calculate the failure probability of each node using the fault detection model, and introduce the node fault propagation probability, which represents the probability that a fault will propagate to its neighboring nodes when a node fails. The fault propagation probability is calculated based on the physical distance between nodes, electrical connection characteristics, and historical fault data; Nodes with a fault probability greater than a preset fault threshold are marked as suspected fault nodes, and each suspected fault node is used as a root to perform a minimum subtree search in the undirected weighted graph to obtain a subtree with the least number of nodes with the suspected fault node as a root, and the subtree is used as the current subtree. When the number of nodes accessed during the search exceeds the maximum number of subtree nodes set according to the scale of the power Internet of Things and the fault propagation range, the search is stopped, and the current subtree is used as the minimum subtree; Taking the node with the highest failure probability in the minimum subtree as the failed node; The method further comprises: In the minimum subtree search process, for each visited node, determine whether the neighboring nodes of the visited node have faults. If there are faults, the fault probability of the visited node is updated based on the fault propagation probability of the neighboring nodes and the weights of the edges between the nodes. Find the node with the highest failure probability after the failure probability is updated in all the smallest subtrees, add it to the set of faulty nodes, then remove the node and its smallest subtree, and continue to search for the next node with the highest failure probability after the failure probability is updated in the remaining subtrees, and repeat this process until all subtrees are removed or the number of faulty nodes reaches the preset threshold; Finally, the sorted list of faulty nodes and the minimum subtree where each faulty node is located are output.
2. The method according to claim 1, characterized in that: The edge server analyzes the real-time operation data based on the pre-built fault detection model to obtain the fault detection result. The method further includes training the fault detection model: The real-time operation data of each IoT node in the power IoT is collected, wherein the real-time operation data includes multi-dimensional time series data of multiple time steps; the real-time operation data is input into a convolutional neural network of a fault detection model to be trained, and the spatial features of the real-time operation data are extracted through multiple one-dimensional convolutional layers and pooling layers, and the extracted spatial features are cascaded with the real-time operation data to obtain fusion features; Construct multiple parallel LSTM long short-term memory neural network sub-networks, each LSTM sub-network corresponds to a different time window length, divide the fusion features into time window data of different scales and input them into the corresponding LSTM sub-network, and extract time features at different scales through the LSTM sub-network; In each LSTM sub-network, the attention weight of the time feature at each time step is calculated through the attention mechanism, and the importance of the time features at different time steps is dynamically adjusted to obtain the hidden state sequence after weight adjustment; the hidden state sequences output by each LSTM sub-network are cascaded to obtain the final multi-scale fusion feature; The dual loss function of the fault detection model to be trained is iteratively optimized according to the final multi-scale fusion features until the preset iteration conditions are met, the training of the fault detection model is completed, and the fault detection result is output, wherein the dual loss function is a weighted sum of a binary cross entropy loss function and a multivariate cross entropy loss function.
3. The method according to claim 2, characterized in that The dual loss function is shown in the following formula: ; ; ; in, L represents the dual loss function, λ represents the loss weight coefficient; L detect represents the binary cross loss function, N represents the number of samples, y i , Respectively represent i The true fault label of the sample and the predicted fault probability of the i-th sample; L locate represents the multivariate cross loss function, y i,c , Respectively represent i The true label of the sample belonging to fault type c and the predicted probability of the fault type of the i-th sample, C Indicates the fault category.
4. The method according to claim 1, characterized in that The cloud server generates an isolation scheme corresponding to the faulty node according to the faulty node, and distributes the isolation scheme to the IoT subnet where the faulty node is located, and the IoT subnet performs autonomous collaborative optimization control on the operating status of each node in the topology diagram, including: The cloud server determines the set of edges that need to be disconnected based on the fault node list and the fault propagation probability, and introduces an isolation cost function, takes the isolation scheme with the smallest isolation cost function value as the optimal isolation scheme, and distributes the optimal isolation scheme to the IoT subnet; The Internet of Things subnet dynamically adjusts the network topology structure according to the optimal isolation solution, disconnects the connection between the faulty node and the nodes in the non-faulty area, and performs autonomous collaborative optimization control on the operating status of each node in the power Internet of Things.
5. The method according to claim 4, characterized in that The isolation cost function is shown in the following formula: ; ; in, C(I k ) represents the isolation cost function, I k It represents the set of edges that need to be disconnected in the isolation scheme, α and β represent the connection edge weight coefficient and the isolation influence coefficient respectively. E represents the total number of edges, V Represents a collection of nodes. T k Indicates the smallest subtree where the faulty node is located. D Indicates the preset threshold value, indicating the maximum impact range allowed by the isolation operation. d(v, T k ) Representation Node v The shortest path length to the smallest subtree where the faulty node is located, represents the node with the largest weighted failure probability in the smallest subtree, that is, the faulty node, v j Indicates j nodes, M() Represents the set of neighbor nodes of the failed node.
6. A power Internet of Things fault detection system based on edge-cloud collaboration, used to implement the method described in any one of claims 1 to 5, characterized in that: include: The first unit is used to obtain the real-time operation data of each IoT node in the power IoT, wherein the real-time operation data includes multi-dimensional monitoring data of voltage, current, power, and environmental information, and transmit the real-time operation data to the edge server in real time through the IoT communication protocol; The edge server analyzes the real-time operation data based on a pre-built fault detection model to obtain a fault detection result, wherein the fault detection model is built based on a deep neural network; The second unit is used to trigger the edge server to execute a graph-based fault location algorithm when the fault detection result indicates that there is a fault. The fault location algorithm includes: constructing a topological relationship graph of the power Internet of Things, calculating the fault probability of each node in the topological relationship graph according to the real-time operation data, marking the node with a fault probability greater than a preset fault threshold as a suspected fault node, searching the topological relationship graph for a minimum subtree with the suspected fault node as a root, and identifying the node with the largest fault probability in the minimum subtree as a fault node; The third unit is used to upload the faulty node to the cloud server. The cloud server generates an isolation plan corresponding to the faulty node according to the faulty node, and distributes the isolation plan to the Internet of Things subnet where the faulty node is located. The Internet of Things subnet performs autonomous collaborative optimization control on the operating status of each node in the topological relationship diagram.
7. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to call the instructions stored in the memory to execute the method described in any one of claims 1 to 5.
8. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Data center network fault node diagnosis method and system based on dialing test data
CN108933694A
Power system fault automatic diagnosis method based on fuzzy reasoning spiking neural P system
CN109633372A
Power fault detection method and system based on Internet of Things
CN112327100A
Service fault automatic positioning method and system based on cloud edge collaboration, and storage medium
CN117370060A
Man-machine terminal picture data interaction method and system
CN117454315A
