Power distribution network fault diagnosis model construction method and device, equipment and medium
Constructing a fault diagnosis model and single-ended traveling wave positioning method through a convolutional neural network solves the problem of low fault diagnosis efficiency of traditional distribution network, achieves high-accuracy and efficient fault positioning, and enhances power supply reliability.
Patent Information
- Application Number
- CN202410824348.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-24
AI Technical Summary
Traditional distribution network fault diagnosis methods are inefficient and susceptible to human factors and noise interference, which prolongs fault processing time and affects power supply reliability.
A convolutional neural network is used to build a fault diagnosis model. Samples are generated by obtaining fault traveling wave data, and the model is trained to automatically detect faulty cables. It is also combined with the single-ended traveling wave positioning method to accurately locate and reduce costs.
It improves the accuracy and efficiency of fault diagnosis, ensures positioning accuracy, reduces fault processing time, and enhances power supply reliability.
Smart Images

Figure CN118688570A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of distribution network, and in particular to a method, device, equipment and medium for constructing a distribution network fault diagnosis model. Background Art
[0002] With the popularization of distributed power sources, the topology and power flow analysis of traditional medium and low voltage distribution networks have undergone tremendous changes. The distribution network has transformed from a single power supply network to a dual power supply network or even a multi-power supply network. The distribution network has become more complex, and the fault characteristics are greatly different from those of the traditional distribution network.
[0003] Traditional fault line selection and location methods mainly rely on manual line inspections and test switch-off methods. These methods are not only inefficient, but also easily affected by human factors, resulting in prolonged fault handling time and affecting power supply reliability.
[0004] With the development of smart grid technology, more and more new technologies are being applied to fault line selection and location in distribution networks. For example, the fault line selection and location method based on transient signal analysis can use the transient signal characteristics generated during a fault to determine the fault line and fault location. However, the transient signal analysis method is easily affected by noise and interference, resulting in reduced accuracy in fault line selection and location. Summary of the invention
[0005] The present invention provides a method, device, equipment and medium for constructing a distribution network fault diagnosis model to construct a distribution network fault diagnosis model and realize fault line selection and positioning.
[0006] According to one aspect of the present invention, a method for constructing a distribution network fault diagnosis model is provided, the method comprising:
[0007] Acquire fault traveling wave data of the distribution network, and generate fault traveling wave samples according to the fault traveling wave data, wherein the fault traveling wave samples include a fault traveling wave training set and a fault traveling wave test set;
[0008] A fault diagnosis model is constructed according to the fault traveling wave training set, and the fault traveling wave test set is input into the fault diagnosis model to obtain the faulty cable output by the fault diagnosis model;
[0009] Fault location is performed based on the faulty cable to determine the diagnostic fault location of the distribution network, and the fault diagnosis model is verified according to the diagnostic fault location.
[0010] Optionally, obtaining fault traveling wave data of the distribution network includes: obtaining distribution network simulation parameters, wherein the distribution network simulation parameters include system frequency, fault location, distributed power supply access point, distributed power supply access capacity, fault type and transition resistance; constructing a collection environment according to the distribution network simulation parameters, and collecting voltage traveling waves and current traveling waves at the time of the fault based on each collection environment as fault traveling wave data.
[0011] Optionally, fault traveling wave samples are generated based on fault traveling wave data, including: obtaining a sampling period and a sampling frequency; intercepting the fault traveling wave data according to the sampling period and the sampling frequency to generate intercepted traveling wave data; dividing the intercepted traveling wave data according to a specified ratio to generate a fault traveling wave training set and a fault traveling wave test set; and using the fault traveling wave training set and the fault traveling wave test set as fault traveling wave samples.
[0012] Optionally, a fault diagnosis model is constructed based on the fault traveling wave training set, including: building a convolutional neural network structure and determining initial model parameters of the network structure; determining final model parameters based on the fault traveling wave training set and the initial model parameters, and using the network structure corresponding to the final model parameters as the fault diagnosis model.
[0013] Optionally, the final model parameters are determined according to the fault traveling wave training set and the initial model parameters, including: inputting the fault traveling wave training set into the convolutional neural network structure to obtain an output value, and determining a deviation value corresponding to the output value; judging whether the deviation value is less than a preset threshold, and if so, using the initial model parameters as the final model parameters; otherwise, determining the error gradient of the network structure, adjusting the initial model parameters according to the error gradient to obtain adjusted model parameters, and using the adjusted model parameters as the final model parameters.
[0014] Optionally, fault location is performed based on the faulty cable to determine the diagnostic fault location of the distribution network, including: extracting adjacent traveling waves corresponding to the faulty cable, and calculating the time difference corresponding to the adjacent traveling wave heads; substituting the time difference into a preset positioning algorithm to determine the diagnostic fault location of the distribution network.
[0015] Optionally, the fault diagnosis model is verified according to the diagnosed fault location, including: determining the actual fault location corresponding to the diagnosed fault location; determining the model accuracy based on the diagnosed fault location and the actual fault location; when the model accuracy reaches a preset accuracy, determining the model verification result as a successful verification.
[0016] According to another aspect of the present invention, a device for constructing a distribution network fault diagnosis model is provided, the device comprising:
[0017] A fault traveling wave sample generation module is used to obtain fault traveling wave data of the distribution network and generate fault traveling wave samples according to the fault traveling wave data, wherein the fault traveling wave samples include a fault traveling wave training set and a fault traveling wave test set;
[0018] A fault diagnosis model building module is used to build a fault diagnosis model according to a fault traveling wave training set, and input a fault traveling wave test set into the fault diagnosis model to obtain a faulty cable output by the fault diagnosis model;
[0019] The fault diagnosis model verification module is used to locate the fault based on the faulty cable to determine the diagnosis fault position of the distribution network, and to verify the fault diagnosis model according to the diagnosis fault position.
[0020] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0021] at least one processor; and
[0022] a memory communicatively connected to the at least one processor; wherein,
[0023] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute a distribution network fault diagnosis model construction method described in any embodiment of the present invention.
[0024] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement a distribution network fault diagnosis model construction method described in any embodiment of the present invention when executed.
[0025] The technical solution of the embodiment of the present invention, by utilizing the feature extraction and classification functions of convolutional neural networks, deeply learns the fault traveling wave voltage and current characteristics of various active distribution network cable structures, different fault types, and different fault locations, and automatically detects the faulty cable. On this basis, it combines the single-ended traveling wave positioning method for precise positioning, thereby reducing costs while ensuring positioning accuracy.
[0026] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0028] Figure 1is a flow chart of a method for constructing a distribution network fault diagnosis model according to the first embodiment of the present invention;
[0029] Figure 2 is a flowchart of another method for constructing a distribution network fault diagnosis model provided in accordance with the second embodiment of the present invention;
[0030] Figure 3 This is a schematic diagram of a single-ended ranging process provided according to Embodiment 2 of the present invention;
[0031] Figure 4 is a structural schematic diagram of a distribution network fault diagnosis model building device provided according to Embodiment 3 of the present invention;
[0032] Figure 5 It is a structural schematic diagram of an electronic device for implementing a distribution network fault diagnosis model construction method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0033] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0034] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0035] Embodiment 1
[0036] Figure 1A flow chart of a method for constructing a distribution network fault diagnosis model is provided for the first embodiment of the present invention. This embodiment is applicable to the case of selecting and locating fault lines of cables in a distribution network. The method can be executed by a distribution network fault diagnosis model construction device. The distribution network fault diagnosis model construction device can be implemented in the form of hardware and / or software. The distribution network fault diagnosis model construction device can be configured in a computer controller. Figure 1 As shown, the method includes:
[0037] S110. Acquire fault traveling wave data of the distribution network, and generate fault traveling wave samples according to the fault traveling wave data, wherein the fault traveling wave samples include a fault traveling wave training set and a fault traveling wave test set.
[0038] Among them, the distribution network refers to an electric power network that receives electric energy from the transmission network or regional power plant, distributes it locally through distribution facilities or distributes it step by step according to voltage to various types of users. In this embodiment, the distribution network refers to a 10kV active distribution cable line. Fault traveling wave refers to the transient traveling wave signal of voltage and current generated when a fault occurs in the distribution network. Fault traveling wave samples: data generated after data processing of fault traveling wave data, including fault traveling wave training set and fault traveling wave test set, which are used for subsequent model construction and model verification. Fault traveling wave training set refers to fault traveling wave samples used to train fault diagnosis models, which can help the model learn fault characteristics. Fault traveling wave test set refers to fault traveling wave samples used to test model performance.
[0039] Specifically, the fault traveling wave data of the distribution network, that is, the traveling wave signals of the voltage and current generated by the distribution network when a fault occurs, can be obtained through special monitoring equipment or sensors. The controller can generate fault traveling wave samples based on the acquired fault traveling wave data, including a fault traveling wave training set and a fault traveling wave test set. The fault traveling wave training set is mainly used to train the fault diagnosis model so that it can learn the characteristics and patterns of the fault, while the fault traveling wave test set is used to test the performance of the model in the subsequent process.
[0040] Optionally, obtaining fault traveling wave data of the distribution network includes: obtaining distribution network simulation parameters, wherein the distribution network simulation parameters include system frequency, fault location, distributed power supply access point, distributed power supply access capacity, fault type and transition resistance; constructing a collection environment according to the distribution network simulation parameters, and collecting voltage traveling waves and current traveling waves at the time of the fault based on each collection environment as fault traveling wave data.
[0041] It should be noted that, since the actual fault data of the distribution network is relatively small and insufficient to support the model training process, the present embodiment adopts a method of simulating fault scenarios to collect fault traveling wave data.
[0042] Specifically, the controller will obtain the distribution network simulation parameters. Among them, the system frequency is the distribution network operation parameter, which determines the transmission characteristics of electric energy; the fault location refers to the specific location where the fault occurs; the distributed power access point refers to the specific location where the distributed power accesses the distribution network; the distributed power access capacity refers to the scale of the distributed power access; the fault type refers to the specific type of fault, including short circuit, open circuit, etc.; the transition resistance refers to the resistance characteristics at the fault point. The controller can construct a corresponding acquisition environment based on the obtained distribution network simulation parameters. The acquisition environment can simulate the actual distribution network operation status and fault scenarios. Furthermore, the controller will collect the voltage traveling wave and current traveling wave at the time of the fault through the acquisition device in each constructed acquisition environment to obtain the fault traveling wave data.
[0043] Furthermore, in order to ensure that the collected fault wave data is representative, diversified scenario settings can be performed during the collection process, such as constructing a variety of different distribution network simulation parameter combinations, including different system frequencies, fault locations, distributed power supply access conditions, fault types and transition resistances, etc., to cover various possible actual situations. And the controller needs to ensure that there are enough samples to avoid deviations caused by too few samples. The collected data can also be compared and calibrated with known actual fault cases or existing reliable data.
[0044] Optionally, fault traveling wave samples are generated based on fault traveling wave data, including: obtaining a sampling period and a sampling frequency; intercepting the fault traveling wave data according to the sampling period and the sampling frequency to generate intercepted traveling wave data; dividing the intercepted traveling wave data according to a specified ratio to generate a fault traveling wave training set and a fault traveling wave test set; and using the fault traveling wave training set and the fault traveling wave test set as fault traveling wave samples.
[0045] Among them, the sampling period refers to the time interval between two adjacent samples, and the sampling frequency refers to the number of samples per unit time. The controller can intercept the fault traveling wave data according to the specified sampling period and sampling frequency. By selecting segments of data from the original fault traveling wave data according to specific time intervals and frequency standards, intercepted traveling wave data is generated. For example, the controller can intercept the traveling waves of two cycles before and after the fault, with a sampling frequency of 1kHz. Then, the intercepted traveling wave data is divided according to the specified ratio, such as 7:3, that is, 70% is divided into the fault traveling wave training set and 30% is divided into the fault traveling wave test set. The fault traveling wave training set is mainly used to train the fault diagnosis model so that the model can learn the characteristics and patterns of the fault; while the fault traveling wave test set is used to subsequently verify the performance and accuracy of the model.
[0046] S120, constructing a fault diagnosis model according to the fault traveling wave training set, and inputting the fault traveling wave test set into the fault diagnosis model to obtain the fault cable output by the fault diagnosis model.
[0047] Among them, the fault diagnosis model refers to a model built through data learning and training, which is used to diagnose and locate distribution network faults. The faulty cable refers to a cable that is judged to be faulty by the fault diagnosis model.
[0048] Optionally, a fault diagnosis model is constructed based on the fault traveling wave training set, including: building a convolutional neural network structure and determining initial model parameters of the network structure; determining final model parameters based on the fault traveling wave training set and the initial model parameters, and using the network structure corresponding to the final model parameters as the fault diagnosis model.
[0049] Specifically, a convolutional neural network is a deep learning model that consists of multiple layers, including input layer, convolution layer, pooling layer, fully connected layer, and output layer. During the construction process, it is necessary to determine the specific structural characteristics of each layer, such as type, number, and size, to adapt to the characteristics of fault traveling wave data and the needs of fault diagnosis.
[0050] It should be noted that the larger the convolution kernel of the convolution layer, the better the features obtained, but the amount of calculation will increase. Considering that there are more data classifications in step 1, a 3×3×3 convolution kernel combination is selected to obtain better features while reducing the number of parameters. The specific calculation formula is expressed as follows:
[0051]
[0052] Among them, Y is the output, X is the input, f is the Leaky Relu activation function, K is the two-dimensional convolution kernel, and b is the offset.
[0053] Furthermore, the role of the pooling layer is to reduce the feature dimension of the convolutional layer output, effectively reducing network parameters. After using the LeakyRelu activation function, the larger the activation value of the neuron, the better the feature extraction. Therefore, the maximum pooling method is selected to extract the maximum value of each row of the matrix as the column vector. During the network training process, the model can automatically extract the features of the input data through the c layer and the adaptive s layer.
[0054] In a specific implementation, by analyzing the dimension of the above-mentioned input matrix and considering the dimensionality reduction effect of the convolution and pooling processes, the number of hidden layers of the CNN is set to 6 according to actual needs, including 3 c layers and 3 s layers.
[0055] During the training process, the model will continuously receive data from the fault traveling wave training set, and adjust the model parameters based on the characteristics of the data and the difference between the actual output results and the expected output results through specific algorithms, such as the back propagation algorithm, so that it can be gradually optimized and converged. After repeated training and adjustment, the final model parameters are determined.
[0056] Optionally, the final model parameters are determined according to the fault traveling wave training set and the initial model parameters, including: inputting the fault traveling wave training set into the convolutional neural network structure to obtain an output value, and determining a deviation value corresponding to the output value; judging whether the deviation value is less than a preset threshold, and if so, using the initial model parameters as the final model parameters; otherwise, determining the error gradient of the network structure, adjusting the initial model parameters according to the error gradient to obtain adjusted model parameters, and using the adjusted model parameters as the final model parameters.
[0057] Specifically, the corresponding output value is obtained by inputting the data of the fault traveling wave training set into the constructed convolutional neural network structure. At the same time, the deviation value corresponding to this output value must be clarified. The deviation value refers to the deviation value between the output value of each layer and the target value. The controller will further determine whether the deviation value is within the allowable range, that is, whether the deviation value is less than the preset threshold. If the deviation value is indeed less than the preset threshold, it means that the current model state is relatively ideal. At this time, the initial model parameters can be directly determined as the final model parameters. However, if the deviation value is not less than the preset threshold, it indicates that the model has a certain deviation or inaccuracy and needs further adjustment. In this case, it is necessary to determine the error gradient of the network structure. The error gradient represents the error change of the model in the current state. The controller can adjust the initial model parameters according to the error gradient to obtain the adjusted model parameters, and finally identify the adjusted model parameters as the final model parameters. During the training process, continuous iteration and optimization are performed to obtain more accurate and reliable final model parameters.
[0058] S130, performing fault location based on the faulty cable to determine a diagnosis fault location of the distribution network, and verifying a fault diagnosis model according to the diagnosis fault location.
[0059] Among them, fault location refers to the process of determining the specific location of the fault in the distribution network. The diagnostic fault location refers to the actual location of the fault determined after fault location.
[0060] Specifically, the controller will locate the fault based on the determined faulty cable, that is, determine the specific location of the fault in the distribution network. Then, the fault diagnosis model is verified based on the determined diagnostic fault location. Check whether the model output results are consistent with the actual fault location to evaluate the accuracy and reliability of the model. If necessary, the model can be further optimized and adjusted.
[0061] Optionally, the fault diagnosis model is verified according to the diagnosed fault location, including: determining the actual fault location corresponding to the diagnosed fault location; determining the model accuracy based on the diagnosed fault location and the actual fault location; when the model accuracy reaches a preset accuracy, determining the model verification result as a successful verification.
[0062] Specifically, when performing model verification, the controller will clarify the actual fault location corresponding to the diagnosed fault location, and then determine the accuracy of the model based on the consistency between the diagnosed fault location and the actual fault location. The accuracy reflects the degree of consistency between the model diagnosis results and the actual situation.
[0063] Furthermore, when the accuracy of the model reaches the preset accuracy, the verification result of the model is determined to be successful. This means that the performance of the fault diagnosis model in diagnosing the fault location has reached the expected standards and requirements, and has certain reliability and availability. If the model accuracy fails to reach the preset accuracy, it may be necessary to further analyze the cause, improve the model, or retrain and adjust it to improve its accuracy and effectiveness, so as to ensure that the model can play a better role in practical applications and provide strong support for accurate diagnosis of fault locations.
[0064] The technical solution of the embodiment of the present invention, by utilizing the feature extraction and classification functions of convolutional neural networks, deeply learns the fault traveling wave voltage and current characteristics of various active distribution network cable structures, different fault types, and different fault locations, and automatically detects the faulty cable. On this basis, it combines the single-ended traveling wave positioning method for precise positioning, thereby reducing costs while ensuring positioning accuracy.
[0065] Embodiment 2
[0066] Figure 2 This is a flow chart of a method for constructing a distribution network fault diagnosis model provided in the second embodiment of the present invention. This embodiment adds a specific process of locating the fault based on the faulty cable to determine the diagnostic fault location of the distribution network on the basis of the above-mentioned first embodiment. Among them, the specific contents of steps S210-S220 are roughly the same as steps S110-S120 in the first embodiment, so they will not be repeated in this embodiment. Figure 2 As shown, the method includes:
[0067] S210. Acquire fault traveling wave data of the distribution network, and generate fault traveling wave samples according to the fault traveling wave data, wherein the fault traveling wave samples include a fault traveling wave training set and a fault traveling wave test set.
[0068] Optionally, obtaining fault traveling wave data of the distribution network includes: obtaining distribution network simulation parameters, wherein the distribution network simulation parameters include system frequency, fault location, distributed power supply access point, distributed power supply access capacity, fault type and transition resistance; constructing a collection environment according to the distribution network simulation parameters, and collecting voltage traveling waves and current traveling waves at the time of the fault based on each collection environment as fault traveling wave data.
[0069] Optionally, fault traveling wave samples are generated based on fault traveling wave data, including: obtaining a sampling period and a sampling frequency; intercepting the fault traveling wave data according to the sampling period and the sampling frequency to generate intercepted traveling wave data; dividing the intercepted traveling wave data according to a specified ratio to generate a fault traveling wave training set and a fault traveling wave test set; and using the fault traveling wave training set and the fault traveling wave test set as fault traveling wave samples.
[0070] S220, constructing a fault diagnosis model according to the fault traveling wave training set, and inputting the fault traveling wave test set into the fault diagnosis model to obtain the fault cable output by the fault diagnosis model.
[0071] Optionally, a fault diagnosis model is constructed based on the fault traveling wave training set, including: building a convolutional neural network structure and determining initial model parameters of the network structure; determining final model parameters based on the fault traveling wave training set and the initial model parameters, and using the network structure corresponding to the final model parameters as the fault diagnosis model.
[0072] Optionally, the final model parameters are determined according to the fault traveling wave training set and the initial model parameters, including: inputting the fault traveling wave training set into the convolutional neural network structure to obtain an output value, and determining a deviation value corresponding to the output value; judging whether the deviation value is less than a preset threshold, and if so, using the initial model parameters as the final model parameters; otherwise, determining the error gradient of the network structure, adjusting the initial model parameters according to the error gradient to obtain adjusted model parameters, and using the adjusted model parameters as the final model parameters.
[0073] S230, extracting adjacent traveling waves corresponding to the faulty cable, and calculating time differences corresponding to the heads of the adjacent traveling waves.
[0074] In a specific implementation, the traveling wave current and traveling wave voltage of the faulty cable can be extracted according to the fault line selection result, and the fault location can be calculated using the single-ended fault distance measurement method. Figure 3 A schematic diagram of a single-ended ranging process is provided for the second embodiment of the present invention. Figure 3 In the figure, AB represents the faulty cable, F is the fault location, t1 is the time when the initial wave head reaches end A, t2 is the time when the traveling wave returns to end A after passing through the fault point, and t3 is the time when the traveling wave reaches end A after being reflected by the opposite busbar. A monitoring device is installed at end A of the line to locate the fault by the time difference between two adjacent line mode wave heads.
[0075] S240: Substitute the time difference into a preset positioning algorithm to determine the diagnosis fault location of the distribution network.
[0076] In a specific implementation, when the fault point is close to the A end, the following formula (2) is used to calculate the diagnostic fault location:
[0077]
[0078] Among them, L AF It indicates the diagnostic fault location, v indicates the speed of the traveling wave, the speed of the traveling wave of the cable is generally 190-220m / us, t2 indicates the time when the traveling wave returns to the A end through the fault point, and t1 indicates the time when the initial wave head reaches the A end.
[0079] In a specific implementation, when the fault point is close to the B end, the following formula (3) is used to calculate the diagnostic fault location:
[0080]
[0081] Among them, L AF It indicates the diagnostic fault location, v indicates the speed of the traveling wave, the speed of the traveling wave of the cable is generally 190-220m / us, t3 indicates the time when the traveling wave reaches the A end after being reflected by the opposite bus, and t1 indicates the time when the initial wave head reaches the A end.
[0082] It should be noted that when using the single-ended ranging method, there is no need to install a set of equipment for each incoming and outgoing line of the ring network cabinet (box). Only one end of each cable line between the cable equipment needs to be installed.
[0083] S250: Verify the fault diagnosis model according to the diagnosed fault location.
[0084] Optionally, the fault diagnosis model is verified according to the diagnosed fault location, including: determining the actual fault location corresponding to the diagnosed fault location; determining the model accuracy based on the diagnosed fault location and the actual fault location; when the model accuracy reaches a preset accuracy, determining the model verification result as a successful verification.
[0085] The technical solution of the embodiment of the present invention, by utilizing the feature extraction and classification functions of convolutional neural networks, deeply learns the fault traveling wave voltage and current characteristics of various active distribution network cable structures, different fault types, and different fault locations, and automatically detects the faulty cable. On this basis, it combines the single-ended traveling wave positioning method for precise positioning, thereby reducing costs while ensuring positioning accuracy.
[0086] Embodiment 3
[0087] Figure 4 This is a schematic diagram of the structure of a distribution network fault diagnosis model building device provided by the third embodiment of the present invention. Figure 4As shown, the device includes: a fault traveling wave sample generating module 310, which is used to obtain fault traveling wave data of the distribution network, and generate fault traveling wave samples according to the fault traveling wave data, wherein the fault traveling wave samples include a fault traveling wave training set and a fault traveling wave test set;
[0088] A fault diagnosis model building module 320 is used to build a fault diagnosis model according to the fault traveling wave training set, and input the fault traveling wave test set into the fault diagnosis model to obtain the fault cable output by the fault diagnosis model;
[0089] The fault diagnosis model verification module 330 is used to locate the fault based on the faulty cable to determine the diagnosis fault position of the distribution network, and verify the fault diagnosis model according to the diagnosis fault position.
[0090] Optionally, the fault traveling wave sample generation module 310 specifically includes: a fault traveling wave data acquisition unit, used to: obtain distribution network simulation parameters, wherein the distribution network simulation parameters include system frequency, fault location, distributed power supply access point, distributed power supply access capacity, fault type and transition resistance; construct a collection environment according to the distribution network simulation parameters, and collect voltage traveling waves and current traveling waves at the time of the fault based on each collection environment as fault traveling wave data.
[0091] Optionally, the fault traveling wave sample generation module 310 specifically includes: a fault traveling wave sample generation unit, used to: obtain a sampling period and a sampling frequency; intercept the fault traveling wave data according to the sampling period and the sampling frequency to generate intercepted traveling wave data; divide the intercepted traveling wave data according to a specified ratio to generate a fault traveling wave training set and a fault traveling wave test set; and use the fault traveling wave training set and the fault traveling wave test set as fault traveling wave samples.
[0092] Optionally, the fault diagnosis model construction module 320 is specifically used to: build a convolutional neural network structure and determine the initial model parameters of the network structure; determine the final model parameters based on the fault traveling wave training set and the initial model parameters, and use the network structure corresponding to the final model parameters as the fault diagnosis model.
[0093] Optionally, the fault diagnosis model construction module 320 specifically includes: a final model parameter determination unit, used to: input the fault traveling wave training set into the convolutional neural network structure to obtain an output value, and determine the deviation value corresponding to the output value; judge whether the deviation value is less than a preset threshold, and if so, use the initial model parameters as the final model parameters; otherwise, determine the error gradient of the network structure, adjust the initial model parameters according to the error gradient to obtain adjusted model parameters, and use the adjusted model parameters as the final model parameters.
[0094] Optionally, the fault diagnosis model verification module 330 specifically includes: a diagnostic fault location determination unit, used to: extract adjacent traveling waves corresponding to the faulty cable, and calculate the time difference corresponding to the adjacent traveling wave heads; substitute the time difference into a preset positioning algorithm to determine the diagnostic fault location of the distribution network.
[0095] Optionally, the fault diagnosis model verification module 330 specifically includes: a fault diagnosis model verification unit, used to: determine the actual fault location corresponding to the diagnosed fault location; determine the model accuracy based on the diagnosed fault location and the actual fault location; when the model accuracy reaches a preset accuracy, determine that the model verification result is a successful verification.
[0096] The technical solution of the embodiment of the present invention, by utilizing the feature extraction and classification functions of convolutional neural networks, deeply learns the fault traveling wave voltage and current characteristics of various active distribution network cable structures, different fault types, and different fault locations, and automatically detects the faulty cable. On this basis, it combines the single-ended traveling wave positioning method for precise positioning, thereby reducing costs while ensuring positioning accuracy.
[0097] A distribution network fault diagnosis model construction device provided in an embodiment of the present invention can execute a distribution network fault diagnosis model construction method provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.
[0098] Embodiment 4
[0099] Figure 5 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0100] like Figure 5As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0101] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0102] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 executes the various methods and processes described above, such as a distribution network fault diagnosis model construction method.
[0103] In some embodiments, a distribution network fault diagnosis model construction method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the distribution network fault diagnosis model construction method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute a distribution network fault diagnosis model construction method in any other appropriate manner (e.g., by means of firmware).
[0104] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0105] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0106] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0107] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0108] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0109] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0110] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0111] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for constructing a distribution network fault diagnosis model. It is characterized in that include: Acquire fault traveling wave data of the distribution network, and generate fault traveling wave samples according to the fault traveling wave data, wherein the fault traveling wave samples include a fault traveling wave training set and a fault traveling wave test set; Building a fault diagnosis model according to the fault traveling wave training set, and inputting the fault traveling wave test set into the fault diagnosis model to obtain the faulty cable output by the fault diagnosis model; Fault location is performed based on the faulty cable to determine a diagnosis fault position of the distribution network, and the fault diagnosis model is verified according to the diagnosis fault position.
2. The method according to claim 1, It is characterized in that The obtaining of fault traveling wave data of the distribution network includes: Acquire distribution network simulation parameters, wherein the distribution network simulation parameters include system frequency, fault location, distributed power source access point, distributed power source access capacity, fault type and transition resistance; A collection environment is constructed according to the distribution network simulation parameters, and a voltage traveling wave and a current traveling wave at the time of a fault are collected based on each of the collection environments as the fault traveling wave data.
3. The method according to claim 1, It is characterized in that The generating a fault traveling wave sample according to the fault traveling wave data comprises: Get the sampling period and sampling frequency; intercepting the fault traveling wave data according to the sampling period and the sampling frequency to generate intercepted traveling wave data; Dividing the intercepted traveling wave data according to a specified ratio to generate a fault traveling wave training set and a fault traveling wave test set; The fault traveling wave training set and the fault traveling wave test set are used as the fault traveling wave samples.
4. The method according to claim 1, It is characterized in that The constructing of a fault diagnosis model according to the fault traveling wave training set comprises: Building a convolutional neural network structure and determining initial model parameters of the network structure; Final model parameters are determined according to the fault traveling wave training set and the initial model parameters, and a network structure corresponding to the final model parameters is used as the fault diagnosis model.
5. The method according to claim 4, It is characterized in that The determining of the final model parameters according to the fault traveling wave training set and the initial model parameters comprises: Inputting the fault traveling wave training set into the convolutional neural network structure to obtain an output value, and determining a deviation value corresponding to the output value; Determine whether the deviation value is less than a preset threshold, and if so, use the initial model parameters as the final model parameters; Otherwise, the error gradient of the network structure is determined, the initial model parameters are adjusted according to the error gradient to obtain adjusted model parameters, and the adjusted model parameters are used as the final model parameters.
6. The method according to claim 1, It is characterized in that The method of performing fault location based on the faulty cable to determine the diagnosis fault position of the distribution network includes: Extracting adjacent traveling waves corresponding to the faulty cable, and calculating time differences corresponding to the wave heads of the adjacent traveling waves; The time difference is substituted into a preset positioning algorithm to determine the diagnosis fault location of the distribution network.
7. The method according to claim 1, It is characterized in that The verifying the fault diagnosis model according to the diagnosed fault location includes: determining an actual fault location corresponding to the diagnosed fault location; Determining a model accuracy rate according to the diagnosed fault location and the actual fault location; When the model accuracy reaches a preset accuracy, the model verification result is determined to be a successful verification.
8. A distribution network fault diagnosis model construction device, It is characterized in that include: A fault traveling wave sample generation module is used to obtain fault traveling wave data of the distribution network, and generate fault traveling wave samples according to the fault traveling wave data, wherein the fault traveling wave samples include a fault traveling wave training set and a fault traveling wave test set; A fault diagnosis model building module is used to build a fault diagnosis model according to the fault traveling wave training set, and input the fault traveling wave test set into the fault diagnosis model to obtain the fault cable output by the fault diagnosis model; The fault diagnosis model verification module is used to locate the fault based on the fault cable to determine the diagnosis fault position of the distribution network, and verify the fault diagnosis model according to the diagnosis fault position.
9. An electronic device, It is characterized in that The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the method according to any one of claims 1 to 7.
10. A computer storage medium, It is characterized in that The computer storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method according to any one of claims 1 to 7 when executed.
