A method and system for all-time and space fault detection in distribution station area based on cloud-edge-end collaboration
By constructing a multi-channel convolutional neural network model in the distribution station area, combining time and space data, and adopting a cloud edge-led model update mechanism, the problems of low detection accuracy and high delay in the existing technology are solved. Efficient and reliable fault detection is achieved.
Patent Information
- Application Number
- CN202410114707.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-26
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-01-26
AI Technical Summary
Existing fault detection methods in distribution stations fail to make full use of all-spatial and spatial data, resulting in low detection accuracy and high latency. Furthermore, a single edge- or cloud-led model update method cannot update the model in a timely manner, affecting detection efficiency and reliability. .
Adopt a full-time and space fault detection method based on cloud-edge collaboration, build a multi-channel convolutional neural network model, combine time and spatial data, conduct model training, and adopt a model update mechanism dominated by cloud and edge in turn, based on event triggering and periodic triggering mechanism for model updates.
The accuracy and efficiency of fault detection are improved, the detection delay is reduced, and the reliability and timeliness of fault detection are ensured.
Smart Images

Figure CN117991044B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of distribution station areas, and specifically relates to a full-time and space fault detection method and system for distribution station areas based on cloud-edge-end collaboration. Background Art
[0002] As the core unit and intelligent center for power supply to power users, the safe and stable operation of the distribution station area supports the smooth operation of various power businesses such as marketing, control, and dispatching. However, with the rapid development of cross-system interaction, it is difficult for the distribution station area to support the access of massive data anytime and anywhere, and the operation of the station area is easily affected by factors such as weather, resulting in a series of fault problems. The safety of the station operation needs to be guaranteed. As an intelligent system widely used in recent years, cloud-edge-end collaboration can make full use of the complementary advantages of cloud and edge to achieve rapid and accurate detection of distribution station area faults. Therefore, it is urgent to design a distribution station area full-time and space fault detection method and system based on cloud-edge-end collaboration, considering the spatial and temporal importance of each terminal in the station area, constructing time series data to detect the probability of each fault in the station area, and updating the full-time and space detection model in a cloud-edge-end rotation manner to improve the timeliness of the model, and timely detect the faulty terminal to avoid paralysis of the power system in the station area and cause greater hidden dangers.
[0003] The existing fault detection methods for transformer substations still have the following two shortcomings: First, they do not consider the use of full-time and space data for fault detection, but only consider limited data such as electrical quantity and energy, and ignore the time and space importance of each terminal data. Second, they only consider a single edge-dominated or cloud-dominated model regular update method, which cannot fully utilize the information of local and other edge models to update the model in time, resulting in the model's detection accuracy being too low and the detection delay being too high.
[0004] Therefore, it is urgent to design a full-time and space fault detection method and system for distribution station areas based on cloud-edge-end collaboration, fully consider the construction of the full-time and space fault detection model, and adopt a fault model update method led by cloud-edge in turn to effectively improve the accuracy and efficiency of distribution station area fault detection. Summary of the invention
[0005] In order to solve the technical problems existing in the background technology, the present invention aims to provide a distribution station area full-time and space fault detection method and system based on cloud-edge-end collaboration.
[0006] In order to solve the technical problem, the technical solution of the present invention is:
[0007] A full-time and space fault detection method for distribution station area based on cloud-edge-end collaboration, the method comprising:
[0008] S1: Build a full-time and space fault detection model, use the preset sample library data to train the network parameters, the model input is the full-time and space fault detection time series data, the output is the probability of fault occurrence in the substation, calculate the accuracy of the model and count the fault detection delay;
[0009] S2: Compare the detection accuracy and detection delay with the set threshold to determine whether the first event occurs on the edge. If so, calculate the update weight of the edge full-time and space fault detection model, and obtain the new model coefficient matrix according to the weight, and enter step S3. If not, directly enter step S3;
[0010] S3: Determine whether the second event occurs on the edge. If so, aggregate and test the uploaded model, calculate the accuracy and detection delay of the original model and the aggregated model. If the performance of the new model is better than the original model, use the aggregated model as the cloud-side full-time and space fault detection model, and then determine whether the current time slot is divisible by the total optimization time length. If the performance of the new model is not better than the original model, directly use the original model as the cloud-side full-time and space fault detection model, and directly determine whether the current time slot is divisible by the total optimization time length.
[0011] S4: If yes, trigger the update response, send the threshold, upload the edge-side full-time and space fault detection model that meets the threshold conditions, aggregate and test all uploaded models, and if the performance of the aggregated model is better, use the aggregated model as the cloud-side full-time and space fault detection model, and then judge whether the current time slot is greater than the total optimization time length. If not, judge directly.
[0012] Furthermore, before step S1, the method further includes: collecting electrical quantity, electrical energy, state quantity and environmental quantity, taking into account the geographical location of each terminal in the substation area and the timeliness of the collected data, and calculating the time importance of each substation area. The importance of each terminal space Constructing the full-time and space fault detection data set of each substation based on the data adoption ratio
[0013] Further, after step S4, the method further includes:
[0014] Determine whether the current time slot t is greater than the total optimization time length T total , if it reaches T total , then the fault detection ends, if not reached, repeat steps S1-S4.
[0015] Further, the step S1 specifically includes:
[0016] The multi-channel convolutional neural network proposed in the full-time and space fault detection model based on multi-channel convolutional neural network includes two channels, namely the time series data channel and the space series data channel. Both of them are based on the full-time and space fault detection time series data set. As input; the time series data channel weight coefficient is a, including convolution layer, pooling layer, and time channel attention module; the spatial time series data channel weight coefficient is b, including convolution layer, pooling layer, and spatial channel attention module;
[0017] The temporal channel attention module uses global average pooling and global random pooling to collect the input full-time and space fault detection time series data. Extract 2 feature matrices respectively Let the two be added together to get the average value, and then use the one-dimensional convolution form to calculate the time characteristic value of the full-time and space fault detection time series data, which can be expressed as:
[0018]
[0019] in, is the temporal feature value of the full-time and space fault detection time series data output after passing through the time channel attention module; Represent the time feature matrix of the full-time and space fault detection time series data after average pooling and random pooling respectively; sig(·) represents the sigmoid function; Con(·) represents the convolution operation; R represents the convolution kernel size; Represents the temporal feature matrix of the full-time and spatial fault detection time series data after averaging the average pooling and random pooling;
[0020] The spatial channel attention module uses global average pooling and global random pooling to collect the input full-time and space fault detection time series data. Extract 2 feature matrices respectively Let the two be added together to get the average value, and then use the one-dimensional convolution form to calculate the spatial feature value of the full-time and space fault detection time series data, which can be expressed as:
[0021]
[0022] in, is the spatial feature value of the full-time and space fault detection time series data output after passing through the spatial channel attention module; Represent the spatial feature matrices of all-time and space fault detection time series data after average pooling and random pooling, respectively; Represents the spatial feature matrix of all-time and space fault detection time series data after averaging average pooling and random pooling;
[0023] After obtaining the time and space feature vectors of the full-time and space fault detection time series data, a full-time and space fault detection model based on a multi-channel convolutional neural network is obtained through feature splicing, channel shuffling, and convolution. The network parameters are trained using sample library data. After the output error meets the accuracy requirements, the trained model is installed on the edge server. The model input is the full-time and space fault detection time series data set, and the output is the probability of fault occurrence Z in the substation area. i (t).
[0024] Further, the step S2 comprises:
[0025] The side-driven model update is based on the event-triggered mechanism, which changes the detection accuracy η i (t) and the detection delay δ i (t) compares with the set threshold, and triggers the response when the result meets the event triggering condition; on the other hand, determines whether the first event occurs, that is, η i (t)<ζ min orδ i (t)>τ max , when it occurs, calculate the update weight of the edge full-time and space fault detection model, and obtain the new model coefficient matrix according to the weight, otherwise, go to step S3.
[0026] Further, the step S3 comprises:
[0027] The side determines whether the second event occurs, that is, η i (t)>ζ min andδ i (t)<τ max , actively upload the current side full-time and space fault detection model C when it occurs i , for the uploaded model C i Aggregate and test, calculate the accuracy and detection delay of the original model and the aggregated model. If the performance of the new model is better than the original model, use the aggregated model as the cloud-side full-time and space fault detection model and go to step S4; if the second event does not occur, go directly to step S4.
[0028] Further, the step S4 comprises:
[0029] Determine whether the current time slot t can be cloud If it is divisible, it triggers an update response and sends the cloud side the threshold setting. Upload meets threshold conditions The edge-side full-time and space fault detection model is aggregated and tested. If the performance of the aggregated model is better, the aggregated model is adopted as the cloud-side full-time and space fault detection model.
[0030] Further, the steps S2 and S3 specifically include:
[0031] Calculate the detection accuracy η of the current side full-time and space fault detection model i (t), and statistically detect the delay δ i (t);
[0032] Set the upper and lower limits of the edge model accuracy threshold to be ζ i,max and i,min , the upper and lower limits of the detection delay threshold are τ i,max and τ i,min , the detection accuracy of the model η i (t) and detection delay δ i (t) and the lower limit of accuracy threshold ζ i,min , detection delay upper limit τ i,max Make a comparison, determine the event occurrence based on the comparison result, and trigger the corresponding response result when the event occurs;
[0033] Determine the first event as η i (t)<ζ i,min orδ i (t)>τ i,max , that is, the accuracy of the current model is lower than ζ i,min Or the detection delay is higher than τ i,max When the first event occurs, the update action is triggered. The edge server makes a model update request to the cloud. The edge full-time and space fault detection model is updated according to the latest full-time and space fault detection model sent by the cloud. The soft update method is adopted. First, the update weight of the edge full-time and space fault detection model is calculated according to the detection accuracy deviation and the detection delay deviation. Secondly, the weighted sum of each coefficient of the full-time and space fault detection model of the edge area and the coefficient of the full-time and space fault detection model of the cloud side is calculated according to the weight, and the coefficient matrix of the new model is obtained, which is expressed as:
[0034] C i =(1-κ1)C i +κ1C Cloud (13)
[0035] Among them, C i is the coefficient matrix of the edge full-time and space fault detection model; C Cloud is the latest full-time and space fault detection model coefficient matrix of the cloud; κ1 is the update weight of the full-time and space fault detection model on the edge, which is calculated as follows:
[0036]
[0037] Among them, if the detection accuracy of the edge full-time and space fault detection model η i (t) not higher than ζ i,min / 2 or detection delay δ i (t) not less than 2τ i,max, then the update coefficient κ1 = 1, indicating that the cloud-side full-time and full-space fault detection model is fully adopted; otherwise, the detection accuracy and detection delay satisfy η i (t)>ζ i,min / 2andδ i (t)<2τ i,max , then choose the soft update method, where (ζ i,min -η i (t)) / (ζ i,min / 2)∈[0,1) and (δ i (t)-τ i,max ) / τ i,max ∈[0,1), when the detection accuracy η i The higher (t), the detection delay δ i The lower (t), the smaller the value of κ1, and the more the edge-side full-time and space fault detection model is retained; θ1 is the edge-side detection accuracy deviation coefficient, θ2 is the edge-side detection delay deviation coefficient, and θ1+θ2=1, which indicates the performance requirements of the model for detection accuracy and detection delay. Usually, θ1=θ2=1 / 2. When the detection accuracy of the model is very high, the value of θ1 can be increased and the value of θ2 can be reduced;
[0038] Determine the second event as η i (t)>ζ i,max andδ i (t)<τ i,min , that is, the current model detection accuracy is higher than ζ i,max And the detection delay is less than τ i,min , when the second event occurs, the upload action is triggered, and the edge server actively uploads the current edge-side full-time and space fault detection model to the cloud; the cloud server aggregates the cloud-side full-time and space fault detection model according to the uploaded edge-side full-time and space fault detection model, and obtains the coefficient matrix of the cloud-side aggregation model, which is expressed as:
[0039] C New =κ2C i +(1-κ2)C Cloud (15)
[0040] Among them, C New is the coefficient matrix of the cloud-side aggregation model, C i is the coefficient matrix of the full-time and space fault detection model uploaded by the edge server in zone i, C Cloud is the coefficient matrix of the latest full-time and space fault detection model on the cloud side, κ2 is the update weight of the full-time and space fault detection model on the cloud side;
[0041] After obtaining the coefficient matrix of the cloud-side aggregation model, the cloud side calculates the accuracy and detection delay of the original model and the aggregation model respectively. If the accuracy of the new model is higher than that of the original model and the detection delay is lower than that of the original model, the cloud side adopts the aggregated model as the cloud-side full-time and space fault detection model.
[0042] Further, the step S4 specifically includes:
[0043] Set the cloud update cycle to T cloud , if the current time slot t can be cloud The cloud triggers an update response and sets a threshold on the cloud side. Send to the edge, and the edge server uploads to meet the threshold conditions The edge full-time and space fault detection model, assuming that the uploaded edge full-time and space fault detection model coefficient matrix set is C Set , if C i ∈C Set , indicating C i is the coefficient matrix of the full-time and space fault detection model uploaded by the edge server in the station area i. The cloud server is based on the set C Set The cloud-side full-time and space fault detection model is aggregated in sequence to obtain the coefficient matrix of the cloud-side aggregation model, which is expressed as:
[0044] C New =κ3C i +(1-κ3)C Cloud (16)
[0045] Among them, C New is the coefficient matrix of the cloud-side aggregation model, C i is the coefficient matrix of the full-time and space fault detection model uploaded by the edge server in zone i, C Cloud is the coefficient matrix of the latest full-time and space fault detection model on the cloud side, κ3 is the update weight of the cloud-side aggregation model, which can avoid excessive single use of the detection model uploaded by the edge side during the update of the cloud-side aggregation model. The calculation of κ3 is as follows:
[0046]
[0047] in, is the upper limit of the cloud-side model detection accuracy threshold, The lower limit of the cloud-side model detection delay threshold. is the update weight threshold of the cloud-side aggregation model, θ3 is the cloud-side detection accuracy deviation coefficient, θ4 is the cloud-side detection delay deviation coefficient, and θ3+θ4=1, which indicates the performance requirements of the model for detection accuracy and detection delay. Usually, θ3=θ4=1 / 2. When the detection accuracy requirement of the model is very high, the value of θ3 can be increased and the value of θ4 can be reduced.
[0048] After obtaining the cloud-side aggregate model coefficient matrix, the cloud side calculates the accuracy and detection delay of the original model and the aggregate model respectively. If the accuracy of the new model is higher than that of the original model and the detection delay is lower than that of the original model, the cloud side adopts the aggregated model as the cloud-side full-time and space fault detection model, that is, C Cloud =C New ;
[0049] After the cloud-side full-time and space fault detection model is updated, if there are still unprocessed edge-side full-time and space fault detection models, repeat the above steps until the final cloud-side full-time and space fault detection model is obtained, and the response based on the periodic trigger mechanism is completed.
[0050] A full-time and space fault detection system for distribution station areas based on cloud-edge-end collaboration, characterized in that the system is applied to any of the above-mentioned full-time and space fault detection methods for distribution station areas based on cloud-edge-end collaboration, and the system includes: a data acquisition module deployed on a terminal, a full-time and space fault detection time series data construction module deployed on an edge server, a full-time and space fault detection model construction module, an accuracy and detection delay calculation module, an event trigger module and a periodic trigger module deployed on a cloud server, an accuracy and detection delay calculation module, a cloud model update module and a fault detection judgment module;
[0051] The data acquisition module collects electrical quantities, electrical energy, state quantities and environmental quantities in the substation area and uploads them to the full-time and space fault detection time series data construction module;
[0052] The full-time and space fault detection time series data construction module: considers the geographical location of each terminal in the substation area and the influencing factors of the timeliness of the collected data, calculates the spatial importance and time importance of each terminal, obtains the time and space fault detection data sets according to the data time and space adoption ratio, constructs the full-time and space fault detection time series data set, and inputs the constructed data set into the full-time and space fault detection model construction module;
[0053] The full-time and space fault detection model construction module: constructs a full-time and space fault detection model based on a multi-channel lightweight convolutional neural network, uses sample library data to train network parameters, and after the output error meets the accuracy requirements, the trained model is installed on the edge server and the cloud server. The model input is the full-time and space fault detection time series data obtained by the full-time and space fault detection time series data construction module, and the output is the probability of fault occurrence in the substation area, and the output result is input into the accuracy and detection delay calculation module of the edge server and the cloud server;
[0054] The accuracy and detection delay calculation module: The accuracy and detection delay calculation module is deployed on the edge server and the cloud server respectively, and calculates the accuracy of the full-time and space fault detection model of the edge and the cloud based on the output result of the full-time and space fault detection model construction module, and counts the fault detection delay, and transmits it to the edge server event trigger module and the cloud server cloud model update module;
[0055] The event trigger module is deployed on the edge server and triggers the update of the edge-side dominant model based on the set event. When the first event occurs, the edge server submits an update request to the cloud to update the edge-side full-time and space fault detection model. When the second event occurs, the edge server actively uploads the edge-side full-time and space fault detection model to the cloud-side periodic trigger module. When neither event occurs, the data collection module is returned to re-collect data.
[0056] The periodic trigger module: The periodic trigger module deployed on the cloud server regularly triggers the update response, sends the cloud-side set threshold to the edge server, and receives the edge-side full-time and space fault detection model that meets the cloud-side set threshold condition uploaded by the edge server;
[0057] The cloud-side model update module: respectively calculates the accuracy and detection delay of the cloud-side full-time and space fault detection model and the cloud-side aggregation model. If the detection accuracy of the cloud-side aggregation model is higher than that of the cloud-side full-time and space fault detection model, and the detection delay of the cloud-side aggregation model is lower than that of the cloud-side full-time and space fault detection model, the cloud-side aggregation model is adopted as the latest cloud-side full-time and space fault detection model by the cloud-side, otherwise it is not updated;
[0058] The fault detection and judgment module: After the model update led by the cloud and edge in turn is completed, the fault detection and judgment module determines whether the current time slot is greater than the optimized total time slot. If so, the fault detection is ended, otherwise it continues.
[0059] Compared with the prior art, the advantages of the present invention are:
[0060] (1) The present invention proposes a method for constructing a full-time and space fault detection model based on cloud-edge-end collaboration. Each terminal in the substation collects the electrical quantity, electrical energy, state quantity, and environmental quantity of the substation and uploads them to the edge server. On the basis of considering the timeliness of the data and the geographical location of the terminal, the time importance of each substation and the spatial importance of each terminal are calculated, and the collected data with high freshness and high importance are selected according to the data time and space adoption ratio to construct the full-time and space fault detection time series data. In addition, considering the spatial time series data channel and the time series data channel, a full-time and space fault detection model is constructed based on a multi-channel lightweight convolutional neural network, and the network is trained using sample library data to output the probability of occurrence of each fault in the substation. This method can effectively improve the accuracy of the fault detection model and ensure the reliability of fault detection.
[0061] (2) The present invention proposes a method for updating the full-time and space-time fault detection model based on cloud-edge alternating leadership. The edge-led model update is based on an event trigger mechanism. The edge server calculates the detection accuracy of the edge-side full-time and space-time fault detection model and simultaneously counts the detection delay, and compares it with the set threshold. The event occurrence is judged based on the comparison result. When the event occurs, the corresponding response result is triggered, and an update request is made to the cloud to update the edge-side full-time and space-time fault detection model, or actively upload the edge-side full-time and space-time fault detection model. The cloud-led model update is based on a periodic trigger mechanism. The cloud triggers the update action at the end of the period, aggregates and tests the edge-side full-time and space-time fault detection model uploaded within the period, and if the performance of the aggregated model is better than the original model, the cloud-side full-time and space-time fault detection model is updated, which effectively solves the problem of low efficiency and poor reliability when updating a single cloud or edge-led model, improves the accuracy of fault detection, and reduces detection delay. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] Figure 1 , Flowchart of the full-time and space fault detection method for distribution station area based on cloud-edge-end collaboration;
[0063] Figure 2 , a full-time and space fault detection system for distribution station areas based on cloud-edge-end collaboration;
[0064] Figure 3 , full-time and space fault detection model diagram based on multi-channel convolutional neural network. DETAILED DESCRIPTION
[0065] The specific implementation mode of the present invention is described below in conjunction with embodiments:
[0066] It should be noted that the structures, proportions, sizes, etc. shown in this specification are only used to match the contents disclosed in the specification so that people familiar with this technology can understand and read them, and are not used to limit the conditions under which the present invention can be implemented. Any structural modification, change in proportional relationship or adjustment of size should still fall within the scope of the technical content disclosed in the present invention without affecting the effects and purposes that can be achieved by the present invention.
[0067] At the same time, the terms such as "upper", "lower", "left", "right", "middle" and "one" cited in this specification are only for the convenience of description and are not used to limit the scope of implementation of the present invention. Changes or adjustments to their relative relationships should be regarded as the scope of implementation of the present invention without substantially changing the technical content.
[0068] Embodiment 1:
[0069] The existing technology does not consider the use of full-time and space data to build fault detection models, ignoring the time and space importance of each terminal data, resulting in low accuracy of the fault detection model.
[0070] The present invention proposes a method for constructing a full-time and space fault detection model based on cloud-edge-end collaboration. Each terminal in the substation collects all aspects of the substation's electrical quantity, electrical energy, state quantity, and environmental quantity and uploads them to the edge server. On the basis of considering the timeliness of the data and the geographical location of the terminal, the time importance of each substation and the spatial importance of each terminal are calculated. According to the data time and space adoption ratio, the corresponding data are extracted to form a time and space fault detection data set, forming a full-time and space fault detection time series data set. In addition, considering the spatial time series data channel and the time series data channel, a full-time and space fault detection model is constructed based on a multi-channel lightweight convolutional neural network, and the fault probability of each substation is output to improve the accuracy of the fault detection model and ensure the reliability of fault detection.
[0071] The existing technology only considers a single edge-dominated or cloud-dominated model regular update method, which is unable to fully utilize the information of local and other edge models to update the model in a timely manner, resulting in the model's detection accuracy being too low and the detection delay being too high.
[0072] The present invention proposes a method for updating the full-time and space fault detection model based on cloud-edge alternating leadership. The edge-led model update is based on an event trigger mechanism. The edge server calculates the detection accuracy of the edge-side full-time and space fault detection model and simultaneously counts the detection delay, and compares it with the set threshold. The event occurrence is judged according to the comparison result. When the event occurs, the corresponding response result is triggered, and an update request is made to the cloud to update the edge-side full-time and space fault detection model, or the edge-side full-time and space fault detection model is actively uploaded. The cloud-side led model update is based on a periodic trigger mechanism. The cloud triggers an update action at the end of the period, aggregates and tests the edge-side full-time and space fault detection model uploaded within the period, and if the performance of the aggregated model is better than the original model, the cloud-side full-time and space fault detection model is updated, which effectively solves the problem of low efficiency and poor reliability when updating a single cloud or edge-led model, improves the accuracy of fault detection, and reduces detection delay.
[0073] Embodiment 2:
[0074] The present invention proposes a method and system for full-time and space fault detection in distribution station areas based on cloud-edge-end collaboration. First, a method for constructing a full-time and space fault detection model based on cloud-edge-end collaboration is proposed. The full-time and space fault detection time series data is constructed considering the spatial importance and temporal importance. The full-time and space fault detection model is further studied to predict the probability of occurrence of each fault in the distribution station area. Secondly, a method for updating the full-time and space fault detection model based on cloud-edge rotation is proposed. The cloud-edge rotation method is used to compare the performance of the full-time and space fault detection model of the edge server and the cloud, so as to realize the timely update and replacement of the full-time and space fault detection model on the edge server.
[0075] The steps of the present invention are as follows Figure 1shown.
[0076] Step 1: Collect electrical quantity, electrical energy, state quantity and environmental quantity;
[0077] Step 2: Consider the geographical location of each terminal in the area, the timeliness of collected data and other influencing factors, and calculate the time importance of each area The importance of each terminal space Construct a full-time and space fault detection data set for each substation based on the data adoption ratio
[0078] Step 3: Build a full-time and space fault detection model based on a multi-channel lightweight convolutional neural network, and use the sample library data to train the network parameters of the full-time and space fault detection model. After the output error meets the accuracy requirements, the trained model is installed on the edge server. The model input is the full-time and space fault detection time series data, and the output is the fault occurrence probability Z of each substation. i (t);
[0079] Step 4: Calculate the detection accuracy η of the full-time and space fault detection model i (t), and statistically detect the delay δ i (t);
[0080] Step 5: The side-driven model update is based on the event trigger mechanism, and the detection accuracy η i (t) and the detection delay δ i (t) is compared with the set threshold, and the response is triggered when the result meets the event triggering condition. i (t)<ζ min orδ i (t)>τ max , when it occurs, the edge server makes a model update request to the cloud, calculates the update weight of the edge-side full-time and space fault detection model, and obtains the new model coefficient matrix based on the weight. Otherwise, go to step 6;
[0081] Step 6: Determine whether event 2 occurs, that is, η i (t)>ζ min andδ i (t)<τ max , when it occurs, the edge server actively uploads the current edge-side full-time and space fault detection model C i , the cloud aggregates and tests the uploaded model, calculates the accuracy and detection delay of the original model and the aggregated model, and if the performance of the new model is better than the original model, the cloud adopts the aggregated model as the cloud-side full-time and space fault detection model and enters step 7; if event 2 does not occur, directly enter step 7;
[0082] Step 7: Determine whether the current time slot t can becloud If it is divisible, the cloud triggers an update response and sends the cloud-side set threshold. To the edge, the edge server uploads data that meets the threshold condition The cloud aggregates and tests all uploaded models. If the performance of the aggregated model is better, the aggregated model is adopted as the cloud-side full-time and space fault detection model; if not, proceed to step 8.
[0083] Step 8: After the cloud-edge model is updated, determine whether the current time slot t is greater than the total optimization time length T total , if it reaches T total , then the fault detection ends; if not, repeat steps 1-7 until the end condition is met.
[0084] Specific:
[0085] S1: A method for building a full-time and space fault detection model based on cloud-edge-end collaboration
[0086] The present invention proposes a method for constructing a full-time and space fault detection model based on cloud-edge-end collaboration. First, the terminal collects various data and uploads them to the edge server; secondly, the time importance and spatial importance of each terminal in the substation area are calculated, and the full-time and space fault detection time series data is constructed; finally, a full-time and space fault detection model is constructed based on a multi-channel lightweight convolutional neural network, and the full-time and space fault detection time series data is input to obtain the probability of fault occurrence in each substation area. The specific introduction is as follows:
[0087] S1.1: Assume that the fault detection optimization time length is T total time slots, the total number of stations is I, and the number of terminals collecting data in the i-th station is J i ,Each terminal collects electrical quantity, electrical energy, state quantity, and environmental quantity and uploads them to the edge server.
[0088] S1.2: Constructing time series data for full-time and space fault detection
[0089] The present invention considers the time importance and space importance of each terminal in the substation to construct the full-time and space fault detection time series data. The time importance is defined according to the data collection time slot. The closer the data collection time slot is to the current time slot, the stronger the time validity of the data is, and the higher the contribution to the substation fault detection. That is, the higher the time importance of the terminal collecting data, the more the uploaded data will be adopted by the edge server. On the contrary, the farther the collection time slot is from the current time slot, the older the collected data is, and the less the corresponding data is adopted by the edge server. For all terminals in a substation, the time importance of each time slot is the same. The present invention considers D time slots including the current time slot t, that is, considers the importance of data collected by each terminal in the time slot set D = {t-D+1,…,t}. Assuming that the time slot d∈D, the time importance of data collected by each terminal in substation i in time slot d is expressed as The calculation is as follows
[0090]
[0091] Among them, λ i,d It represents the time importance parameter of the area i and the time slot.
[0092] Spatial importance is defined based on the importance of the area where the terminal is located and the line. Assuming that each station area is divided into N grids, the importance of the nth grid in the i-th station area is expressed as n=1,2,…,N. Assuming that each grid contains L lines, the importance of the lth line of the nth grid in the i-th area is expressed as l=1,2,…,L. A collection terminal is only located on one line in one area of the substation. Therefore, the spatial importance of the jth collection terminal in the i-th substation is The calculation is as follows
[0093]
[0094] In order to further extract a corresponding amount of data in each time slot according to the time and space importance, the present invention proposes a data adoption ratio That is, at each time slot, the proportion of data to be adopted based on the time and space importance is calculated as follows:
[0095]
[0096] in, represents the parameter related to the time importance of the ith station in time slot d, represents the parameters related to spatial importance in the jth collection terminal of the i-th station area, and
[0097] Assume that the data collected by the jth collection terminal in the i-th station area in time slot d is represented as the set The number of groups of adopted data is determined according to the data time adoption ratio The calculation is as follows:
[0098]
[0099] in, is the number of data collected by the jth collection terminal in the ith station area in the dth time slot, It means multiplying the number of collected data by the data adoption ratio and rounding up. That is, when the number of data after multiplication is not an integer, add one to the integer bit to get the number of groups of data that should be extracted in each time slot of each terminal in each area. Randomly select The group data consists of the fault detection time series data set of the jth terminal and the dth time slot Perform similar operations on the remaining time slot data to obtain the fault detection time series data set of each time slot of terminal j Similarly, the above operation is performed on all terminals in the ith area to obtain the full-time and space fault detection time series data set of the ith area The calculation is as follows
[0100]
[0101] S1.3: Building a full-time and space fault detection model based on multi-channel convolutional neural network
[0102] The present invention constructs a full-time and space fault detection model based on a multi-channel lightweight convolutional neural network. The entire full-time and space fault detection model includes: a full-time and space fault detection time series data set input and a multi-channel lightweight convolutional neural network. The full-time and space fault detection model structure based on the multi-channel convolutional neural network is as follows: Figure 3 shown.
[0103] The multi-channel convolutional neural network proposed in the full-time and space fault detection model based on multi-channel convolutional neural network includes two channels, namely the time series data channel and the space series data channel. Both of them are based on the full-time and space fault detection time series data set. As input, the channel weight coefficient of temporal time series data is a, including convolution layer, pooling layer, and time channel attention module; the channel weight coefficient of spatial time series data is b, including convolution layer, pooling layer, and spatial channel attention module.
[0104] The temporal channel attention module uses global average pooling and global random pooling to collect the input full-time and space fault detection time series data. Extract 2 feature matrices respectively Let the two be added together to get the average value, and then use the one-dimensional convolution form to calculate the time characteristic value of the full-time and space fault detection time series data, which can be expressed as
[0105]
[0106] in, is the temporal feature value of the full-time and space fault detection time series data output after passing through the time channel attention module; Represent the time feature matrix of the full-time and space fault detection time series data after average pooling and random pooling respectively; sig(·) represents the sigmoid function; Con(·) represents the convolution operation; R represents the convolution kernel size; Represents the temporal feature matrix of the full-time and spatial fault detection time series data after averaging the average pooling and random pooling.
[0107] The spatial channel attention module uses global average pooling and global random pooling to collect the input full-time and space fault detection time series data. Extract 2 feature matrices respectively Let the two be added together to get the average value, and then use the one-dimensional convolution form to calculate the spatial feature value of the full-time and space fault detection time series data, which can be expressed as
[0108]
[0109] in, is the spatial feature value of the full-time and space fault detection time series data output after passing through the spatial channel attention module; Represent the spatial feature matrices of all-time and space fault detection time series data after average pooling and random pooling, respectively; Represents the spatial feature matrix of the full-time and space-time fault detection time series data after averaging average pooling and random pooling.
[0110] After obtaining the time and space feature vectors of the full-time and space fault detection time series data, a full-time and space fault detection model based on a multi-channel convolutional neural network is obtained through feature splicing, channel shuffling, and convolution. The network parameters are trained using sample library data. After the output error meets the accuracy requirements, the trained model is installed on the edge server. The model input is the full-time and space fault detection time series data set, and the output is the probability of fault occurrence Z in the substation area. i (t).
[0111] S2: A full-time and space fault detection model updating method based on cloud-edge rotation
[0112] The present invention proposes a method for updating a full-time and space fault detection model based on cloud-edge rotation. The performance of the full-time and space fault detection model of the present invention depends on the detection accuracy and detection delay of the model, and the update of the model adopts a cloud-edge rotation-led strategy.
[0113] The edge-led model update is based on an event trigger mechanism, and the event trigger conditions include two parts: first, when the edge server tests the edge-side full-time and space fault detection model based on the data set, the detection accuracy is lower than the set threshold or the detection delay is higher than the set threshold, the model update request is actively made to the cloud, and the cloud sends the latest model to the edge server; second, when the edge server tests the edge-side full-time and space fault detection model based on the data set, the detection accuracy is higher than the set threshold and the detection delay is lower than the set threshold, the edge server actively uploads the edge-side full-time and space fault detection model for the cloud-side full-time and space fault detection model update. That is, during the update process, the edge server calculates the detection accuracy of the edge-side full-time and space fault model and counts the detection delay of the edge-side full-time and space fault detection model, compares the detection accuracy and detection delay with the set threshold, and triggers a response when the result meets the event trigger condition, and makes an update request to the cloud to update the edge-side full-time and space fault detection model, or actively uploads the edge-side full-time and space fault detection model.
[0114] The cloud-side-led model update is based on a periodic trigger mechanism: the edge server periodically uploads the edge-side full-time and space fault detection model to the cloud. The cloud processes the uploaded edge-side full-time and space fault detection model at the end of the cycle according to the update cycle, aggregates the cloud model and tests it. If the performance of the aggregated model is better than the original model, the cloud-side full-time and space fault detection model is updated; otherwise, the cloud side does not use the full-time and space fault detection model uploaded by the edge server to update the cloud model. The details are as follows:
[0115] S2.1: Model updating is actually updating the coefficients of the model neural network. Assume that the coefficient matrix of the full-time and space fault detection model of the ith station is C i , the coefficient matrix of the latest model on the cloud is C cloud .
[0116] S2.2: Detection accuracy calculation and detection delay statistics of the full-time and space fault detection model
[0117] Assume that in step S1.3, the fault probability obtained by fault detection in the tth time slot of station i is Z i (t), the actual troubleshooting situation is represented as a binary function γ i (t), where γ i (t) = 0 means that there is actually no fault in the i-th time slot; γ i (t) = 1 means that a fault actually occurred in the station area i at the tth time slot. Considering the fault probability of a total of D time slots up to time slot t, the detection accuracy η of the full-time and space fault detection model of the station area i at the tth time slot i (t) can be expressed as:
[0118]
[0119] Among them, when γ i When (m) = 1, it means that a fault actually occurred in the mth time slot station area i. Substituting it into the brackets, we get only Z i (m), the higher the fault probability detected, the more consistent it is with the actual result, and the higher the detection accuracy; when γ i When (m) = 0, it means that there is no actual fault in the mth time slot station area i. Substituting it into the brackets, we get only 1-Z i (m) The lower the fault probability obtained by the test and the more consistent it is with the actual result, the higher the detection accuracy; e -(t-m) is the weight of historical fault detection. If the detection time is closer to the current time, the greater the impact of the detection on the accuracy of the current time.
[0120] The detection delay of the fault in the full-time and space fault model of the station i in the tth time slot in the statistical step S1.3 is the time from the input of the full-time and space fault detection time series data to the output of the fault occurrence probability, which is recorded as δ i (t).
[0121] S2.3: Update of the full-time and space fault detection model dominated by the side
[0122] The edge-led full-time and space fault detection model update is based on an event trigger mechanism. Based on the trained t-time slot full-time and space fault detection model, the edge server in the station area i compares the detection accuracy and detection delay of the current model with the edge setting value, and triggers the corresponding action of the edge server according to different events of the comparison result. The edge executes the trigger action and makes a request to the cloud server to update the edge full-time and space fault detection model, or actively uploads the edge full-time and space fault detection model to the cloud. The specific steps are as follows:
[0123] (1) According to step S2.2, the detection accuracy η of the current side full-time and space fault detection model is calculated i (t), and statistically detect the delay δ i (t);
[0124] (2) Set the upper and lower limits of the edge model accuracy threshold to be ζ i,max and i,min , the upper and lower limits of the detection delay threshold are τ i,max and τ i,min The detection accuracy of the model is η i (t) and detection delay δ i (t) and the lower limit of accuracy threshold ζ i,min , detection delay upper limit τ i,max Make a comparison. Determine the event occurrence based on the comparison result, and trigger the corresponding response result when the event occurs.
[0125] (3.1) Define event 1 as η i (t)<ζ i,min orδ i (t)>τ i,max , that is, the current model accuracy is lower than ζ i,min Or the detection delay is higher than τ i,max . When event 1 occurs, the update action is triggered, and the edge server submits a model update request to the cloud. The edge full-time and space fault detection model is updated according to the latest full-time and space fault detection model sent by the cloud. Using the soft update method, first, the update weight of the edge full-time and space fault detection model is calculated according to the detection accuracy deviation and the detection delay deviation. Secondly, the weighted sum of each coefficient of the full-time and space fault detection model on the edge of the substation and each coefficient of the full-time and space fault detection model on the cloud side is calculated according to the weight, and the coefficient matrix of the new model is obtained, which is expressed as
[0126] C i =(1-κ1)C i +κ1C Cloud (13)
[0127] Among them, C i is the coefficient matrix of the edge full-time and space fault detection model; C Cloud is the latest full-time and space fault detection model coefficient matrix on the cloud side; κ1 is the update weight of the full-time and space fault detection model on the edge side, which is calculated as follows
[0128]
[0129] Among them, if the detection accuracy of the edge full-time and space fault detection model η i (t) not higher than ζ i,min / 2 or detection delay δ i (t) not less than 2τ i,max , then the update coefficient κ1 = 1, indicating that the cloud-side full-time and full-space fault detection model is fully adopted; otherwise, the detection accuracy and detection delay satisfy η i (t)>ζ i,min / 2andδ i (t)<2τ i,max , then choose the soft update method, where (ζ i,min -η i (t)) / (ζ i,min / 2)∈[0,1) and (δ i (t)-τ i,max ) / τ i,max ∈[0,1), when the detection accuracy η i The higher (t), the detection delay δ iThe lower (t) is, the smaller the value of κ1 is, and the more the edge-side full-time and space fault detection model is retained; θ1 is the edge-side detection accuracy deviation coefficient, θ2 is the edge-side detection delay deviation coefficient, and θ1+θ2=1, which represents the performance requirements of the model for detection accuracy and detection delay. Usually, θ1=θ2=1 / 2. When the detection accuracy requirement of the model is very high, the value of θ1 can be increased and the value of θ2 can be reduced.
[0130] (3.2) Define event 2 as η i (t)>ζ i,max andδ i (t)<τ i,min , that is, the current model detection accuracy is higher than ζ i,max And the detection delay is less than τ i,min When event 2 occurs, the upload action is triggered, and the edge server actively uploads the current edge-side full-time and space fault detection model C to the cloud. i . Cloud server based on C i Aggregate the cloud-side full-time and space fault detection model to obtain the coefficient matrix of the cloud-side aggregation model, which is expressed as
[0131] C New =κ2C i +(1-κ2)C Cloud (15)
[0132] Among them, C New is the coefficient matrix of the cloud-side aggregation model, C i is the coefficient matrix of the full-time and space fault detection model uploaded by the edge server in zone i, C Cloud is the coefficient matrix of the latest full-time and space fault detection model on the cloud side, and κ2 is the update weight of the full-time and space fault detection model on the cloud side.
[0133] After obtaining the coefficient matrix of the cloud-side aggregation model, the cloud side calculates the accuracy and detection delay of the original model and the aggregation model respectively. If the accuracy of the new model is higher than that of the original model and the detection delay is lower than that of the original model, the cloud side adopts the aggregated model as the cloud-side full-time and space fault detection model.
[0134] S2.4: Update of cloud-led full-time and space fault detection model based on periodic trigger mechanism
[0135] The cloud-led full-time and space fault detection model update is based on a periodic trigger mechanism. The cloud sets the update cycle and periodically triggers the update response to process the uploaded edge-side full-time and space fault detection model. The cloud-side full-time and space fault detection model obtains a new model by aggregating the edge-side full-time and space fault detection model, and determines whether to update the cloud-side full-time and space fault detection model based on the performance of the new model. The specific steps are as follows:
[0136] (1) Set the cloud update cycle to T cloudIf the current time slot t can be cloud The cloud triggers an update response and sets a threshold on the cloud side. Send to the edge, and the edge server uploads to meet the threshold conditions The edge full-time and space fault detection model, assuming that the uploaded edge full-time and space fault detection model coefficient matrix set is C Set , if C i ∈C Set , indicating C i is the coefficient matrix of the full-time and space fault detection model uploaded by the edge server in zone i. The cloud server is based on the set C Set The cloud-side full-time and space fault detection model is aggregated in sequence to obtain the coefficient matrix of the cloud-side aggregation model, which is expressed as
[0137] C New =κ3C i +(1-κ3)C Cloud (16)
[0138] Among them, C New is the coefficient matrix of the cloud-side aggregation model, C i is the coefficient matrix of the full-time and space fault detection model uploaded by the edge server in zone i, C Cloud is the coefficient matrix of the latest full-time and space fault detection model on the cloud side, κ3 is the update weight of the cloud-side aggregation model, which can avoid excessive single use of the detection model uploaded by the edge side during the update of the cloud-side aggregation model. The calculation of κ3 is as follows
[0139]
[0140] in, is the upper limit of the cloud-side model detection accuracy threshold, The lower limit of the cloud-side model detection delay threshold. is the update weight threshold of the cloud-side aggregation model, θ3 is the cloud-side detection accuracy deviation coefficient, θ4 is the cloud-side detection delay deviation coefficient, and θ3+θ4=1, which represents the performance requirements of the model for detection accuracy and detection delay. Normally, θ3=θ4=1 / 2. When the detection accuracy requirement of the model is very high, the value of θ3 can be increased and the value of θ4 can be reduced.
[0141] (2) After obtaining the cloud-side aggregate model coefficient matrix, the cloud side calculates the accuracy and detection delay of the original model and the aggregate model respectively. If the accuracy of the new model is higher than that of the original model, and the detection delay is lower than that of the original model, the cloud side adopts the aggregated model as the cloud-side full-time and space fault detection model, that is, C Cloud =C New ;
[0142] (3) After the cloud-side full-time and space fault detection model is updated, if there is still an unprocessed edge-side full-time and space fault detection model, repeat steps (1) and (2) until the final cloud-side full-time and space fault detection model is obtained, and the response based on the periodic trigger mechanism ends.
[0143] Embodiment 3:
[0144] like Figure 2 As shown, the full-time and space fault detection system for distribution station areas based on cloud-edge-end collaboration includes a data acquisition module deployed on the terminal, a full-time and space fault detection timing data construction module deployed on the edge server, a full-time and space fault detection model construction module, an accuracy and detection delay calculation module, an event trigger module and a periodic trigger module deployed on the cloud server, an accuracy and detection delay calculation module, a cloud model update module and a fault detection judgment module.
[0145] Data acquisition module: Each terminal data acquisition module collects electrical quantity, electrical energy, state quantity and environmental quantity in the substation area, and uploads them to the full-time and space fault detection time series data construction module.
[0146] Full-time and space fault detection time series data construction module: Considering the influencing factors such as the geographical location of each terminal in the substation area and the timeliness of collected data, the spatial importance and time importance of each terminal are calculated, and the time and space fault detection data sets are obtained respectively according to the data time and space adoption ratio. The full-time and space fault detection time series data set is constructed, and the constructed data set is input into the full-time and space fault detection model construction module.
[0147] Full-time and space-time fault detection model construction module: A full-time and space-time fault detection model is constructed based on a multi-channel lightweight convolutional neural network, and the network parameters are trained using sample library data. After the output error meets the accuracy requirements, the trained model is installed on the edge server and cloud server. The model input is the full-time and space-time fault detection time series data obtained by the full-time and space-time fault detection time series data construction module, and the output is the probability of occurrence of substation faults. The output result is input into the accuracy and detection delay calculation module of the edge server and cloud server.
[0148] Accuracy and detection delay calculation module: The accuracy and detection delay calculation module is deployed on the edge server and the cloud server respectively. Based on the output result of the full-time and space fault detection model construction module, the accuracy of the full-time and space fault detection model on the edge and the cloud is calculated, and the fault detection delay is counted and transmitted to the edge server event trigger module and the cloud server cloud model update module.
[0149] Event trigger module: deployed on the edge server, triggers the update of the edge-side dominant model based on the set event. When event 1 occurs, the edge server makes an update request to the cloud to update the edge-side full-time and space fault detection model; when event 2 occurs, the edge server actively uploads the edge-side full-time and space fault detection model to the cloud periodic trigger module; when neither event occurs, it returns to the data collection module to re-collect data.
[0150] Periodic trigger module: The periodic trigger module deployed on the cloud server regularly triggers the update response, sends the cloud-side set threshold to the edge server, and receives the edge-side full-time and space fault detection model uploaded by the edge server that meets the cloud-side set threshold conditions.
[0151] Cloud-side model update module: Calculate the accuracy and detection delay of the cloud-side full-time and space fault detection model and the cloud-side aggregation model respectively. If the detection accuracy of the cloud-side aggregation model is higher than that of the cloud-side full-time and space fault detection model, and the detection delay of the cloud-side aggregation model is lower than that of the cloud-side full-time and space fault detection model, the cloud-side aggregation model is adopted as the latest cloud-side full-time and space fault detection model, otherwise it will not be updated.
[0152] Fault detection and judgment module: After the cloud-edge model update is completed, the fault detection and judgment module determines whether the current time slot is greater than the optimized total time slot. If so, the fault detection ends, otherwise it continues.
[0153] Using the above system, full-time and space fault detection of distribution station areas based on cloud-edge-end collaboration is carried out. The specific steps are as follows.
[0154] Step 0: Initialize each module;
[0155] Step 1: The data acquisition module collects electrical quantity, electrical energy, state quantity, and environmental quantity;
[0156] Step 2: Considering the geographical location of each terminal in the substation area, the timeliness of the collected data and other influencing factors, the full-time and space fault detection time series data construction module calculates the time importance of each substation area The importance of each terminal space Construct a full-time and space fault detection data set for each substation based on the data adoption ratio
[0157] Step 3: The full-time and space fault detection model construction module builds a full-time and space fault detection model based on a multi-channel lightweight convolutional neural network. The network parameters of the full-time and space fault detection model are trained using the sample library data. After the output error meets the accuracy requirements, the trained model is installed on the edge server. The model input is the full-time and space fault detection time series data, and the output is the fault occurrence probability Z of each substation. i (t), and upload it to the accuracy and detection delay calculation module;
[0158] Step 4: The accuracy and detection delay calculation module performs full-time and space fault detection model accuracy η i (t) Calculate and count the detection delay δ i (t);
[0159] Step 5: The event trigger module uses the event trigger mechanism to convert the detection accuracy η i (t) and the detection delay δ i (t) is compared with the set threshold, and when the result meets the event triggering condition, the response is triggered to achieve the side-dominated model update. i (t)<ζ min orδ i (t)>τ max When , the edge server makes an update request to the cloud to update the edge-side full-time and space fault detection model, calculates the update weight of the edge-side full-time and space fault detection model, and obtains the new model coefficient matrix based on the weight; otherwise, proceed to step 6;
[0160] Step 6: The event trigger module determines whether event 2 occurs, i.e., n i (t)>ζ min andδ i (t)<τ max When an edge server actively uploads the edge-side full-time and space fault detection model C i ,The cloud model update module aggregates and tests the uploaded models, and calculates the accuracy and detection delay of the original model and the aggregated model. If the performance of the new model is better than the original model, the cloud adopts the aggregated model as the cloud-side full-time and spatial fault detection model, and proceeds to step 7; if event 2 does not occur, go directly to step 7.
[0161] Step 7: The cloud-side-led model update is based on a periodic trigger mechanism. In the periodic trigger module, first determine whether the current time slot t can be cloud If it is divisible, the cloud triggers an update response and sends the cloud-side set threshold. To the edge, the edge server uploads data that meets the threshold condition The cloud-side full-time and space fault detection model is generated. The cloud-side model update module aggregates and tests all uploaded models. If the performance of the aggregated model is better, the aggregated model is adopted as the cloud-side full-time and space fault detection model. If not, proceed to step 8.
[0162] Step 8: After the cloud-edge model is updated, the fault detection module determines whether the current time slot is greater than the total optimization time length T total , if it reaches T total , then the fault detection ends; if not, repeat steps 0-7 until the end condition is met.
[0163] Embodiment 4:
[0164] It can be understood that the present invention proposes a method for constructing a full-time and space fault detection model based on cloud-edge-end collaboration. Each terminal in the substation collects the electrical quantity, electrical energy, state quantity, and environmental quantity of the substation and uploads them to the edge server. On the basis of considering the timeliness of the data and the geographical location of the terminal, the time importance of each substation and the spatial importance of each terminal are calculated, and the collected data with high freshness and high importance are selected according to the data time and space adoption ratio to construct full-time and space fault detection time series data. In addition, considering the spatial time series data channel and the time series data channel, a full-time and space fault detection model is constructed based on a multi-channel lightweight convolutional neural network, and the network is trained using sample library data to output the probability of occurrence of each fault in the substation. This method can effectively improve the accuracy of the fault detection model and ensure the reliability of fault detection.
[0165] It can be understood that the present invention proposes a method for updating the full-time and space fault detection model based on cloud-edge alternating dominance. The edge-side dominated model update is based on an event trigger mechanism. The edge server calculates the detection accuracy of the edge-side full-time and space fault model and counts the detection delay of the edge-side full-time and space fault detection model. When the detection accuracy or detection delay is lower than the threshold, it indicates that event 1 has occurred. The edge server submits an update request to the cloud to update the edge-side full-time and space fault detection model. When the detection accuracy and detection delay are higher than the threshold, it indicates that event 2 has occurred, and the edge server actively uploads the edge-side full-time and space fault detection model. The cloud-side dominated model update is based on a periodic trigger mechanism. The cloud side processes the uploaded edge-side full-time and space fault detection model at the end of the period according to the update period, aggregates and tests the cloud-side full-time and space fault detection model, and if the performance of the aggregated model is better than the original model, the cloud-side full-time and space fault detection model is updated. It effectively solves the problems of low efficiency and poor reliability when updating a single cloud or edge dominated model, improves the accuracy of fault detection, and reduces detection delay.
[0166] It can be understood that the present invention proposes a full-time and space fault detection system for distribution substations based on cloud-edge-end collaboration, which includes a data acquisition module deployed on the terminal, a full-time and space fault detection time series data construction module deployed on the edge server, a full-time and space fault detection model construction module, an accuracy and detection delay calculation module, an event trigger module and a periodic trigger module deployed on the cloud server, an accuracy and detection delay calculation module, a cloud model update module and a fault detection judgment module. The full-time and space fault detection system for distribution substations based on cloud-edge-end collaboration is equipped with a full-time and space fault detection model construction method based on cloud-edge-end collaboration and a full-time and space fault detection model update method based on cloud-edge alternating dominance. The full-time and space fault detection time series data construction module constructs a fault detection data set according to the time and space importance of the data, which improves the accuracy of the fault detection model and ensures the reliability of fault detection. The event trigger module triggers the update of the edge-dominated model based on the set event, and different events trigger different corresponding actions of the edge server; the periodic trigger module sets the update cycle and periodically triggers the update response, sends the cloud-side set threshold to the edge server, and receives the edge-side full-time and space fault detection model uploaded by the edge server that meets the cloud-side set threshold conditions. The full-time and space fault detection system for distribution stations based on cloud-edge-end collaboration improves the efficiency of fault detection model updates, realizes fault detection led by cloud and edge in turn, reduces fault detection latency, and realizes efficient full-time and space fault detection in distribution stations.
[0167] The preferred embodiments of the present invention are described in detail above, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in this field without departing from the purpose of the present invention.
[0168] Many other changes and modifications may be made without departing from the concept and scope of the present invention.It should be understood that the present invention is not limited to the specific embodiments, and the scope of the present invention is defined by the appended claims.
Claims
1. A full-time and space fault detection method for distribution station areas based on cloud-edge-end collaboration, characterized in that: The method comprises: S1: Build a full-time and space fault detection model, use the preset sample library data to train the network parameters, the model input is the full-time and space fault detection time series data, the output is the probability of fault occurrence in the substation, calculate the accuracy of the model and count the fault detection delay; S2: Compare the detection accuracy and detection delay with the set threshold to determine whether the first event occurs on the edge. If so, calculate the update weight of the edge full-time and space fault detection model, and obtain the new model coefficient matrix according to the weight, and enter step S3. If not, directly enter step S3; S3: Determine whether the second event occurs on the edge. If so, aggregate and test the uploaded model, calculate the accuracy and detection delay of the original model and the aggregated model. If the performance of the new model is better than the original model, use the aggregated model as the cloud-side full-time and space fault detection model, and then determine whether the current time slot is divisible by the total optimization time length. If the performance of the new model is not better than the original model, directly use the original model as the cloud-side full-time and space fault detection model, and directly determine whether the current time slot is divisible by the total optimization time length. S4: If yes, trigger the update response, send the threshold, upload the edge-side full-time and space fault detection model that meets the threshold condition, aggregate and test all uploaded models, and if the performance of the aggregated model is better, use the aggregated model as the cloud-side full-time and space fault detection model, and then determine whether the current time slot t is greater than the total optimization time length T total , if it reaches T total , then the fault detection ends, if it is not reached, repeat steps S1-S4; The step S2 comprises: The side-driven model update is based on the event-triggered mechanism, which changes the detection accuracy η i (t) and the detection delay δ i (t) compares with the set threshold, and triggers the response when the result meets the event triggering condition; on the other hand, determines whether the first event occurs, that is, η i (t)<ζ min orδ i (t)>τ max , when it occurs, calculate the update weight of the edge full-time and space fault detection model, and obtain the new model coefficient matrix according to the weight, otherwise, go to step S3; The step S3 comprises: The side determines whether the second event occurs, that is, η i (t)>ζ min andδ i (t)<τ max , actively upload the current side full-time and space fault detection model C when it occurs i , for the uploaded model C i Aggregate and test, calculate the accuracy and detection delay of the original model and the aggregated model. If the performance of the new model is better than the original model, use the aggregated model as the cloud-side full-time and space fault detection model and proceed to step S4. If the second event does not occur, directly proceed to step S4. The step S4 comprises: Determine whether the current time slot t can be cloud If it is divisible, it triggers an update response and sends the cloud side the threshold setting. Upload meets threshold conditions and The edge-side full-time and space fault detection model is aggregated and tested. If the performance of the aggregated model is better, the aggregated model is adopted as the cloud-side full-time and space fault detection model.
2. The method for full-time and space fault detection in distribution station area based on cloud-edge-end collaboration according to claim 1 is characterized in that: Before step S1, the method further includes: collecting electrical quantity, electrical energy, state quantity and environmental quantity, taking into account the geographical location of each terminal in the substation area and the timeliness of the collected data, and calculating the time importance of each substation area. The importance of each terminal space Constructing the full-time and space fault detection data set of each substation based on the data adoption ratio 3. The method for full-time and space fault detection in distribution station area based on cloud-edge-end collaboration according to claim 1 is characterized in that: The step S1 specifically includes: The multi-channel convolutional neural network proposed in the full-time and space fault detection model based on multi-channel convolutional neural network includes two channels, namely the time series data channel and the space series data channel. Both of them are based on the full-time and space fault detection time series data set. As input; the time series data channel weight coefficient is a, including convolution layer, pooling layer, and time channel attention module; the spatial time series data channel weight coefficient is b, including convolution layer, pooling layer, and spatial channel attention module; The temporal channel attention module uses global average pooling and global random pooling to collect the input full-time and space fault detection time series data. Extract 2 feature matrices respectively Let the two be added together to get the average value, and then use the one-dimensional convolution form to calculate the time characteristic value of the full-time and space fault detection time series data, which can be expressed as: in, is the temporal feature value of the full-time and space fault detection time series data output after passing through the time channel attention module; Represent the time feature matrix of the full-time and space fault detection time series data after average pooling and random pooling respectively; sig(·) represents the sigmoid function; Con(·) represents the convolution operation; R represents the convolution kernel size; Represents the temporal feature matrix of the full-time and spatial fault detection time series data after averaging the average pooling and random pooling; The spatial channel attention module uses global average pooling and global random pooling to collect the input full-time and space fault detection time series data. Extract 2 feature matrices respectively Let the two be added together to get the average value, and then use the one-dimensional convolution form to calculate the spatial feature value of the full-time and space fault detection time series data, which can be expressed as: in, is the spatial feature value of the full-time and space fault detection time series data output after passing through the spatial channel attention module; Represent the spatial feature matrices of all-time and space fault detection time series data after average pooling and random pooling, respectively; Represents the spatial feature matrix of all-time and space fault detection time series data after averaging average pooling and random pooling; After obtaining the time and space feature vectors of the full-time and space fault detection time series data, a full-time and space fault detection model based on a multi-channel convolutional neural network is obtained through feature splicing, channel shuffling, and convolution. The network parameters are trained using sample library data. After the output error meets the accuracy requirements, the trained model is installed on the edge server. The model input is the full-time and space fault detection time series data set, and the output is the probability of fault occurrence Z in the substation area. i (t).
4. The method for full-time and space fault detection in distribution station area based on cloud-edge-end collaboration according to claim 1 is characterized in that: The steps S2 and S3 specifically include: Calculate the detection accuracy η of the current side full-time and space fault detection model i (t), and statistically detect the delay δ i (t); Set the upper and lower limits of the edge model accuracy threshold to be ζ i,max and i,min , the upper and lower limits of the detection delay threshold are τ i,max and τ i,min , the detection accuracy of the model η i (t) and detection delay δ i (t) and the lower limit of accuracy threshold ζ i,min , detection delay upper limit τ i,max Make a comparison, determine the event occurrence based on the comparison result, and trigger the corresponding response result when the event occurs; Determine the first event as η i (t)<ζ i,min orδ i (t)>τ i,max , that is, the accuracy of the current model is lower than ζ i,min Or the detection delay is higher than τ i,max When the first event occurs, the update action is triggered. The edge server makes a model update request to the cloud. The edge full-time and space fault detection model is updated according to the latest full-time and space fault detection model sent by the cloud. The soft update method is adopted. First, the update weight of the edge full-time and space fault detection model is calculated according to the detection accuracy deviation and the detection delay deviation. Secondly, the weighted sum of each coefficient of the full-time and space fault detection model of the edge area and the coefficient of the full-time and space fault detection model of the cloud side is calculated according to the weight, and the coefficient matrix of the new model is obtained, which is expressed as: C i =(1-κ1)C i +κ1C Cloud (13) Among them, C i is the coefficient matrix of the edge full-time and space fault detection model; C Cloud is the latest full-time and space fault detection model coefficient matrix of the cloud; κ1 is the update weight of the full-time and space fault detection model on the edge, which is calculated as follows: Among them, if the detection accuracy of the edge full-time and space fault detection model is i (t) not higher than ζ i,min / 2 or detection delay δ i (t) not less than 2τ i,max , then the update coefficient κ1 = 1, indicating that the cloud-side full-time and full-space fault detection model is fully adopted; otherwise, the detection accuracy and detection delay satisfy η i (t)>ζ i,min / 2andδ i (t)<2τ i,max , then choose the soft update method, where (ζ i,min -η i (t)) / (ζ i,min / 2)∈[0,1) and (δ i (t)-τ i,max ) / τ i,max ∈[0,1), when the detection accuracy η i The higher (t), the detection delay δ i The lower (t), the smaller the value of κ1, and the more the edge-side full-time and space fault detection model is retained; θ1 is the edge-side detection accuracy deviation coefficient, θ2 is the edge-side detection delay deviation coefficient, and θ1+θ2=1, which indicates the performance requirements of the model for detection accuracy and detection delay. Usually, θ1=θ2=1 / 2. When the detection accuracy of the model is very high, the value of θ1 can be increased and the value of θ2 can be reduced; Determine the second event as η i (t)>ζ i,max andδ i (t)<τ i,min , that is, the current model detection accuracy is higher than ζ i,max And the detection delay is less than τ i,min , when the second event occurs, the upload action is triggered, and the edge server actively uploads the current edge-side full-time and space fault detection model to the cloud; the cloud server aggregates the cloud-side full-time and space fault detection model according to the uploaded edge-side full-time and space fault detection model, and obtains the coefficient matrix of the cloud-side aggregation model, which is expressed as: C New =κ2C i +(1-κ2)C Cloud (15) Among them, C New is the coefficient matrix of the cloud-side aggregation model, C i is the coefficient matrix of the full-time and space fault detection model uploaded by the edge server in zone i, C Cloud is the coefficient matrix of the latest full-time and space fault detection model on the cloud side, κ2 is the update weight of the full-time and space fault detection model on the cloud side; After obtaining the coefficient matrix of the cloud-side aggregation model, the cloud side calculates the accuracy and detection delay of the original model and the aggregation model respectively. If the accuracy of the new model is higher than that of the original model and the detection delay is lower than that of the original model, the cloud side adopts the aggregated model as the cloud-side full-time and space fault detection model.
5. The method for full-time and space fault detection in distribution station area based on cloud-edge-end collaboration according to claim 1 is characterized in that: The step S4 specifically includes: Set the cloud update cycle to T cloud , if the current time slot t can be cloud The cloud triggers an update response and sets a threshold on the cloud side. Send to the edge, and the edge server uploads to meet the threshold conditions The edge full-time and space fault detection model, assuming that the uploaded edge full-time and space fault detection model coefficient matrix set is C Set , if C i ∈C Set , indicating C i is the coefficient matrix of the full-time and space fault detection model uploaded by the edge server in the station area i. The cloud server is based on the set C Set The cloud-side full-time and space fault detection model is aggregated in sequence to obtain the coefficient matrix of the cloud-side aggregation model, which is expressed as: C New =κ3C i +(1-κ3)C Cloud (16) Among them, C New is the coefficient matrix of the cloud-side aggregation model, C i is the coefficient matrix of the full-time and space fault detection model uploaded by the edge server in zone i, C Cloud is the coefficient matrix of the latest full-time and space fault detection model on the cloud side, κ3 is the update weight of the cloud-side aggregation model, which can avoid excessive single use of the detection model uploaded by the edge side during the update of the cloud-side aggregation model. The calculation of κ3 is as follows: in, is the upper limit of the cloud-side model detection accuracy threshold, The lower limit of the cloud-side model detection delay threshold. is the update weight threshold of the cloud-side aggregation model, θ3 is the cloud-side detection accuracy deviation coefficient, θ4 is the cloud-side detection delay deviation coefficient, and θ3+θ4=1, which indicates the performance requirements of the model for detection accuracy and detection delay. Usually, θ3=θ4=1 / 2. When the detection accuracy requirement of the model is very high, the value of θ3 can be increased and the value of θ4 can be reduced. After obtaining the cloud-side aggregate model coefficient matrix, the cloud side calculates the accuracy and detection delay of the original model and the aggregate model respectively. If the accuracy of the new model is higher than that of the original model and the detection delay is lower than that of the original model, the cloud side adopts the aggregated model as the cloud-side full-time and space fault detection model, that is, C Cloud =C New ; After the cloud-side full-time and space fault detection model is updated, if there are still unprocessed edge-side full-time and space fault detection models, repeat the above steps until the final cloud-side full-time and space fault detection model is obtained, and the response based on the periodic trigger mechanism is completed.
6. The full-time and space fault detection system for distribution station area based on cloud-edge-end collaboration is characterized by: The system is applied to the full-time and space fault detection method for distribution station area based on cloud-edge-end collaboration as described in any one of claims 1-5, and the system includes: a data acquisition module deployed on the terminal, a full-time and space fault detection time series data construction module deployed on the edge server, a full-time and space fault detection model construction module, an accuracy and detection delay calculation module, an event trigger module and a periodic trigger module deployed on the cloud server, an accuracy and detection delay calculation module, a cloud model update module and a fault detection judgment module; The data acquisition module collects electrical quantities, electrical energy, state quantities and environmental quantities in the substation area and uploads them to the full-time and space fault detection time series data construction module; The full-time and space fault detection time series data construction module: considers the geographical location of each terminal in the substation area and the influencing factors of the timeliness of the collected data, calculates the spatial importance and time importance of each terminal, obtains the time and space fault detection data sets according to the data time and space adoption ratio, constructs the full-time and space fault detection time series data set, and inputs the constructed data set into the full-time and space fault detection model construction module; The full-time and space fault detection model construction module: constructs a full-time and space fault detection model based on a multi-channel lightweight convolutional neural network, uses sample library data to train network parameters, and after the output error meets the accuracy requirements, the trained model is installed on the edge server and the cloud server. The model input is the full-time and space fault detection time series data obtained by the full-time and space fault detection time series data construction module, and the output is the probability of fault occurrence in the substation area, and the output result is input into the accuracy and detection delay calculation module of the edge server and the cloud server; The accuracy and detection delay calculation module: The accuracy and detection delay calculation module is deployed on the edge server and the cloud server respectively, and calculates the accuracy of the full-time and space fault detection model of the edge and the cloud based on the output result of the full-time and space fault detection model construction module, and counts the fault detection delay, and transmits it to the edge server event trigger module and the cloud server cloud model update module; The event trigger module is deployed on the edge server and triggers the update of the edge-side dominant model based on the set event. When the first event occurs, the edge server submits an update request to the cloud to update the edge-side full-time and space fault detection model. When the second event occurs, the edge server actively uploads the edge-side full-time and space fault detection model to the cloud-side periodic trigger module. When neither event occurs, the data collection module is returned to re-collect data. The periodic trigger module: The periodic trigger module deployed on the cloud server regularly triggers the update response, sends the cloud-side set threshold to the edge server, and receives the edge-side full-time and space fault detection model that meets the cloud-side set threshold condition uploaded by the edge server; The cloud-side model update module: respectively calculates the accuracy and detection delay of the cloud-side full-time and space fault detection model and the cloud-side aggregation model. If the detection accuracy of the cloud-side aggregation model is higher than that of the cloud-side full-time and space fault detection model, and the detection delay of the cloud-side aggregation model is lower than that of the cloud-side full-time and space fault detection model, the cloud-side aggregation model is adopted as the latest cloud-side full-time and space fault detection model by the cloud-side, otherwise it is not updated; The fault detection and judgment module: After the model update led by the cloud and edge in turn is completed, the fault detection and judgment module determines whether the current time slot is greater than the optimized total time slot. If so, the fault detection is ended, otherwise it continues.
