A Fault Diagnosis Method and System for Power Distribution Terminal

Through artificial intelligence and quantum K-Means algorithm combined with blockchain technology, the problem of identifying hidden faults in distribution terminal fault diagnosis is solved, efficient diagnosis and real-time analysis of distribution terminal faults are realized, and the intelligence and intelligence of the system are improved. Computational efficiency.

CN118707257BActive Publication Date: 2024-10-29BEIJING YANNENG ELECTRIC TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411198398.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-29
Publication Date
2024-10-29
Estimated Expiration
2044-08-29

AI Technical Summary

Technical Problem

Existing distribution terminal fault diagnosis technology cannot accurately identify early faults such as hidden faults or partial discharges, and due to the aging of equipment and environmental factors, the diagnosis accuracy and response speed are poor, and the degree of intelligence is low.

Method used

Using artificial intelligence methods combined with blockchain and quantum K-Means algorithms, UAV sensing, deep learning models and blockchain networks are used to collect, analyze and diagnose power distribution terminal operating data, and quantum computing is used to accelerate clustering process to improve the efficiency of fault analysis.

Benefits of technology

It significantly improves the accuracy and response speed of distribution terminal fault diagnosis, enhances the computational efficiency and intelligence of fault analysis, and can dynamically display fault diagnosis results in real time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118707257B_ABST
    Figure CN118707257B_ABST
Patent Text Reader

Abstract

The present invention discloses a fault diagnosis method and system for a distribution terminal, which relates to the technical field of distribution network, and solves the problem that the fault diagnosis capability of the distribution terminal lags behind. The method collects and processes the operation data information of the distribution terminal through a data acquisition module, introduces blockchain technology to improve the security of data information; extracts fault features through an improved recurrent neural network deep learning model, and encodes the feature data extracted by the recurrent neural network into quantum states through quantum computing, clusters the encoded quantum states using the quantum K-Means algorithm, significantly accelerates the clustering process, and improves the computational efficiency of fault analysis. The present invention greatly improves the fault diagnosis capability of the distribution terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of fault diagnosis of power distribution terminals, and more specifically to a fault diagnosis method for power distribution terminals. Background Art

[0002] The distribution terminal is a very important component of the power system. It is located at the end of the power transmission and distribution network and directly serves users. The main function of the distribution terminal is to receive high-voltage electric energy from the transmission grid, reduce it to a voltage level suitable for users through a transformer, and then distribute it to each user. In this process, the distribution terminal also needs to ensure the quality of electric energy and the reliability of supply. The distribution terminal usually includes the following key parts:

[0003] 1. Distribution Transformers: Convert high voltage electricity to low voltage electricity for use in homes and businesses.

[0004] 2. Distribution switchgear: including circuit breakers, load switches, isolating switches, etc., used to control the on and off of circuits and protect circuits from damage caused by overload and short circuit.

[0005] 3. Protection devices: such as relay protection devices, which are used to detect abnormal conditions in the power system, such as overload, short circuit, etc., and quickly cut off the circuit to protect the safety of the system and users.

[0006] 4. Automation equipment: including telemetry, telesignaling, remote control (RTU) and feeder automation devices, etc., which are used to remotely monitor and control the distribution system to improve operational efficiency and safety.

[0007] 5. Communication interface: The distribution terminal exchanges data with the upper-level power grid control center or other distribution terminals through the communication interface for centralized monitoring and management.

[0008] 6. Electricity metering device: used to measure the user's electricity consumption for electricity bill calculation and energy management.

[0009] With the development of technology, modern power distribution terminals are becoming more and more intelligent, achieving higher levels of automation and fault handling functions. If any of the above distribution terminals have problems, it will cause abnormalities for users, such as: Single-phase grounding fault: When this fault occurs, an abnormal electrical connection occurs between one phase of the power system and the ground, causing single-phase current to flow to the ground. Due to the existence of grounding resistance, the fault current is usually small and will not cause the circuit breaker to trip, but long-term single-phase grounding will damage the equipment and even cause a fire.

[0010] Phase-to-phase short circuit fault: Phase-to-phase short circuit refers to an abnormal electrical connection between two or more phases in the power system, causing a large amount of current to flow through the fault point. The phase-to-phase short circuit fault current is large and usually triggers the circuit breaker to trip to prevent equipment damage and the expansion of the accident.

[0011] Grounding phase-to-phase short circuit fault: This fault is a combination of a single-phase grounding fault and a phase-to-phase short circuit fault, that is, one phase is grounded and short-circuited with the other two phases. This fault current is extremely large and will cause serious damage to the system.

[0012] Overload failure: Overload means that the current in the power system exceeds the rated current of the equipment. Long-term overload will cause the equipment to overheat, and then cause equipment damage or failure.

[0013] Short circuit fault: A short circuit refers to a low-impedance electrical connection between two wires or between a wire and the ground in a power system, which causes a sharp increase in current. Short circuit faults can lead to serious consequences such as equipment damage and fire.

[0014] Equipment failure: including failures of distribution transformers, circuit breakers, load switches, disconnectors and other equipment, such as insulation aging, poor contact, mechanical failure, etc.

[0015] Failures due to external factors: such as failures caused by natural disasters (such as lightning strikes, wind disasters), man-made damage (such as theft, illegal construction), animal damage (such as bird damage, rodent damage), etc.

[0016] In order to ensure the safe and reliable operation of the distribution terminals, regular inspections and maintenance are required, and preventive and response measures should be formulated for the types of faults that occur.

[0017] Due to the large number of distribution terminal devices in the existing technology, complex operation and maintenance, a wide variety of distribution terminals, and diagnostic capabilities limited to manual experience or equipment detection, the existing fault diagnosis technology cannot detect all types of faults, especially for some hidden faults or early faults such as partial discharge, the diagnostic system cannot accurately identify them. The amount of data generated by the distribution terminal is huge, including a large amount of real-time information and historical data. The fault diagnosis system needs to process and analyze these complex data to accurately determine the type and location of the fault, which increases the calculation burden and processing difficulty of the system. If the fault diagnosis of the distribution terminal depends on the sensors and monitoring equipment installed in the system. The performance and reliability of these devices will be affected by environmental factors (such as temperature, humidity, corrosion, etc.) and equipment aging. This leads to poor accurate diagnosis and response speed and ability and poor intelligence when a fault occurs. Summary of the invention

[0018] In view of the deficiencies of the above-mentioned technologies, the present invention discloses a fault diagnosis method and system for distribution terminals, which utilize artificial intelligence methods to analyze fault information of different types of distribution terminals, classify and analyze different fault data, quickly diagnose and analyze the operating status of distribution terminals, significantly accelerate the clustering process, and improve the computational efficiency of fault analysis. The in-depth analysis of the operating data of distribution terminals through the quantum K-Means algorithm model improves the fault analysis capability.

[0019] In order to achieve the above technical effects, the present invention adopts the following technical solutions:

[0020] A method for diagnosing a fault of a power distribution terminal comprises the following steps:

[0021] Step 1: Collecting the operating status data information of the distributed power distribution terminal through the data acquisition module;

[0022] The data acquisition module includes a drone sensing system, a data preprocessing module, a data conversion module and a data communication module, and the distributed power distribution terminals are all provided with block network nodes;

[0023] Step 2: Build a blockchain network model at the distributed power distribution terminal;

[0024] The blockchain network is provided with a block network node, and the distributed power distribution terminal transmits the distributed power distribution terminal operation status data information to the blockchain network model through the block network node, and packages the processed operation status data into transaction information for data chaining;

[0025] Step 3: Extract the distributed power distribution terminal fault data information through the feature extraction model, and automatically learn the deep feature representation of the data through the deep learning model;

[0026] Step 4: Use the improved quantum K-Means algorithm clustering model to diagnose and analyze the distributed distribution terminal fault data information, and use the state superposition and quantum entanglement characteristics of quantum bits to achieve efficient search and clustering of multi-dimensional data of distributed distribution terminal fault data information;

[0027] The improved quantum K-Means algorithm clustering model includes a quantum coding module, a quantum measurement module, an adaptive adjustment module, a feature calculation module, a feature judgment module and a data dynamic update module; wherein the output end of the quantum coding module is connected to the input end of the quantum measurement module, the output end of the quantum measurement module is connected to the input end of the adaptive adjustment module, the output end of the adaptive adjustment module is connected to the input end of the feature calculation module, the output end of the feature calculation module is connected to the input end of the feature judgment module, and the output end of the feature judgment module is connected to the input end of the data dynamic update module; wherein the output function of the feature judgment module is:

[0028] (1)

[0029] In formula (1), Represents the output value of the feature judgment module, It represents the probability that the abnormal data feature value i in the data set M accounts for the total number of data sets M, and N represents the number of calculations;

[0030] Step 5: Establish a fault prediction model based on the results of the improved quantum K-Means algorithm clustering model, and output the fault diagnosis results to the visualization display terminal for real-time dynamic 24-hour display.

[0031] As a further technical solution of the present invention, in step 1:

[0032] The operation status of the distribution terminal includes at least normal operation status, abnormal operation status, recovery operation status, emergency power outage status and planned power outage status; the fault types of the distribution terminal include at least single-phase grounding fault, phase-to-phase short circuit fault, grounding phase-to-phase short circuit fault, overload fault, short circuit fault, equipment fault and environmental factor fault; the distribution terminal includes at least distribution transformer, distribution switchgear, protection device, automation equipment, communication interface and electric energy metering device;

[0033] The drone sensing system performs navigation and positioning of the distributed power distribution terminal through the navigation unit, collects data on the operating status of the distributed power distribution terminal through the image acquisition unit, senses the heating information of the distributed power distribution terminal through the infrared thermal imager, and senses the temperature, humidity, pressure, vibration or magnetic field of the operating status of the distributed power distribution terminal through the sensor system;

[0034] The data conversion module recognizes the format of the data information through the data format recognition module, performs format conversion on the input data information through the format conversion module, filters or screens out the data information that does not conform to the format through the data elimination module, pairs the data information that conforms to the improved quantum K-Means algorithm clustering model through the format pairing module, and outputs the input data information in a format through the format output module.

[0035] As a further technical solution of the present invention, in step 2:

[0036] The method for constructing the blockchain network comprises the following steps:

[0037] Step 1. Select the Hyperledger blockchain platform, select the mesh topology, consensus mechanism, data structure, smart contract programming language, compiler, operating environment, design reward and punishment mechanism, define the structure of the blockchain network, the interaction method between nodes, and how data is transmitted in the network;

[0038] Step 2: Setting a node satisfying step 1 in the distributed power distribution terminal to realize data interaction between the distributed power distribution terminal and the Hyperledger blockchain platform;

[0039] Step 3: Design cross-chain communication protocols and interfaces, allow interaction with other blockchain networks or external systems through protocol identification, select a proof-of-work consensus mechanism, and improve communication between different nodes; the blockchain network includes a blockchain layer, a consensus mechanism, a data encoding layer, a data fission layer, a smart contract layer, a data structure layer, a data learning layer, and a network layer.

[0040] As a further technical solution of the present invention, in step three, the working principle of the deep learning model is:

[0041] (1) Preprocess the input distributed power distribution terminal data, remove duplicate data, and divide the data into two data sets: training and testing;

[0042] (2) Start the DBN grid structure and integrate the correlation matrix model into the DBN grid structure;

[0043] The association matrix model performs association setting on the input data information through the association setting module, identifies the characteristics of the data information to be associated through the attribute identification module, calculates the characteristics of the data information through the matrix calculation module, and outputs the associated data information through the association output module;

[0044] (3) Initialize the DBN grid structure data information, define the weight parameters of the DBN grid structure, set the number of factors affecting the DBN grid structure, the maximum number of iterations, and the hidden layer node data information;

[0045] (4) Establish the fitness function of the DBN grid structure to evaluate the performance of the DBN model; output the best data information, and construct the output data information into a correlation matrix model;

[0046] (5) repeatedly calculating the fitness value of the DBN grid structure 10 times, and extracting the best data information from the output results of the 10 calculations;

[0047] (6) Determine whether the algorithm meets the termination condition; if so, end the calculation; otherwise, go to (2).

[0048] As a further technical solution of the present invention, in step 4:

[0049] The quantum coding module uses quantum basis state coding to convert the distributed power distribution terminal fault data information into a quantum state;

[0050] The quantum measurement module uses a controlled exchange gate to calculate the similarity between the data point and the cluster center;

[0051] The adaptive adjustment module allows the quantum algorithm to process information in parallel through quantum bits. When the similarity of the data points is 1, the data points with similarity 1 are classified into one category. When the similarity of the data points is 0, the data points with similarity 0 are classified into one category. The quantum state is operated by simulating the quantum state of the data, and the application order of the quantum gates in the quantum calculation, the selection of the measurement basis, the frequency of data point cluster allocation, and the iterative calculation of the data cluster characteristics are dynamically adjusted to realize the similarity calculation and cluster allocation of the data points.

[0052] The feature calculation module uses a quantum minimum search algorithm to find the most similar cluster center point, so as to efficiently identify different types of distributed power distribution terminal fault data information;

[0053] The feature judgment module represents the features in the data set as quantum states, uses the superposition property of quantum bits to represent multiple combinations of features, and uses quantum rotating gates to adjust the quantum states to evaluate the impact of different features on the quantum states;

[0054] The data dynamic update module processes all data points in the data set in parallel through multiple quantum logic gates, and adjusts the quantum state through quantum rotation gates to reflect the changes in the cluster center.

[0055] As a further technical solution of the present invention, the working method of the data preprocessing module is:

[0056] Step 1: Eliminate noise and interference through a first-order low-pass filter. The recursive formula in the discrete time domain is expressed as:

[0057] (2)

[0058] In formula (2), x[n] is the input signal, y[n] is the output signal after filtering, and α is the coefficient of the filter, which determines the cutoff frequency and attenuation characteristics of the filter;

[0059] Step 2: Use the ADC analog-to-digital conversion formula to realize data information conversion, convert the analog voltage into digital code, and the output information content is expressed by the formula:

[0060] (3)

[0061] In formula (3), Vmin and Vmax are the input voltage range of the ADC, and N is the number of bits of the ADC. After using formula (3), the analog voltage is converted into a digital code, thereby realizing the processing and calculation of the analog signal.

[0062] As a further technical solution of the present invention, the deep learning model is an improved recurrent neural network deep learning model with a DBN grid structure.

[0063] As a further technical solution of the present invention, the method for completing feature extraction using the improved recurrent neural network deep learning model is:

[0064] The basic structure of a recurrent neural network consists of an input layer, a hidden layer, and an output layer. At each time step (t), the RNN receives an input , and update its hidden state , which then produces an output , then the operating data information identification function of the distribution terminal after learning is:

[0065] (4)

[0066] In formula (4), represents the weight matrix from the hidden layer to the output layer, represents the bias variable of the output layer, o represents the data type identifier, and h represents the data symbol identifier of the hidden layer. represents the weight matrix of the output layer, represents the weight data vector, t represents the hidden node symbol, Indicates hidden state; , Represents different types of eigenvalues ​​in the weight matrix after the operation data information of the distribution terminal is converted into the characteristic function; represents the data training output value during the training process from the hidden layer to the output layer, h o represents the hidden state of the initial state of the input data; θ1 represents the first hidden layer data function of the input data, θ2 represents the second hidden layer data function of the input data, cα It indicates the data passing rate of the first hidden layer through the second hidden layer;

[0067] The hidden state output is:

[0068] (5)

[0069] In formula (5), represents the weight matrix input to the hidden layer, x represents the weight matrix input to the hidden layer. represents the weight matrix from hidden layer to hidden layer, and hh represents the symbolic identifier from hidden layer to hidden layer; represents the bias vector of the hidden layer, Represents the first detection error value, The data type of the first detection error value, m represents the symbol identifier of the first detection error;

[0070] The loss function is calculated by the mean square error loss:

[0071] (6)

[0072] In formula (6), represents the output of the loss function, N represents the number of samples, represents the true value of the i-th sample, It represents the predicted value of the deep learning model for the i-th sample, and the weight matrix is ​​further updated through the optimization algorithm as follows:

[0073] (7)

[0074] In formula (7), represents the optimization algorithm updating the weight matrix output function, represents the original point weight matrix, represents the learning rate, Represents the total value in the operation path, represents the prediction threshold, represents the gradient of the loss function to the weight matrix, c represents the data type identifier in the operation path, represents the prediction error, The symbol indicating the error, The symbol representing the gradient, Indicates the flag for finding the gradient of the loss function.

[0075] As a further technical solution of the present invention, the working method of the improved quantum K-Means algorithm model is:

[0076] Step (1), encoding the input data information through a quantum coding module;

[0077] Step (2), measuring the input data information through the quantum measurement module; the measurement method is:

[0078] Input fault diagnosis dataset , n is the size of the fault diagnosis data set, the data set is divided into k categories, and the cluster center is , then the quantum states of the data points and cluster centers are:

[0079] | (8)

[0080] In formula (8), represents the jth eigenvalue of the ith data point, and d represents the number of eigenvalues;

[0081] Step (3), improving the parameter adjustment of the input function through the adaptive adjustment module, so as to identify, cluster and adjust the input data information according to different data features;

[0082] Step (4), calculating the features of the input data by a feature calculation module; the output function of the feature calculation module is:

[0083] (9)

[0084] In formula (9), represents the jth eigenvalue of the ith data point, k represents the number of data set categories,

[0085] Step (5): The data information output in step (4) is subjected to feature judgment by a feature judgment module, wherein the working method of the feature judgment module is as follows:

[0086] Any data point is calculated by the controlled switching gate Control-Swap Similarity with k cluster centers:

[0087] (10)

[0088] In formula (10), express and the cosine value of c, in quantum state As input to the phase estimation algorithm, we get:

[0089] (11)

[0090] In formula (11), express and The similarity between them is stored in the quantum bit superior, The smaller it is, the greater the similarity between the two.

[0091] Step (6), dynamically update the input data information 24 hours a day through the data dynamic update module;

[0092] Using quantum minimum search algorithm from quantum state Steps to find the minimum value in :

[0093] (1) Prepare initial value The quantum state of ;

[0094] (2) , As input, b as control input, using Grover algorithm to find ;

[0095] (3) If , then use replace And return to step (1) and repeat Second-rate.

[0096] In order to achieve the above technical effects, the present invention adopts the following technical solutions:

[0097] A fault diagnosis system for a power distribution terminal, applying a fault diagnosis method for a power distribution terminal described in any one of the above technical solutions, comprising:

[0098] A data acquisition module, used to collect the operating status of the distributed power distribution terminal; wherein the data acquisition module includes a drone sensing system, a data preprocessing module, a data conversion module and a data communication module;

[0099] Blockchain network model for measuring data information of distributed power distribution terminals;

[0100] Feature extraction model, used to extract fault data information of distributed power distribution terminals,

[0101] Deep learning models, which are used to automatically learn deep feature representations of data;

[0102] The improved quantum K-Means algorithm clustering model is used to diagnose and analyze the fault data information of distributed power distribution terminals. Through the state superposition and quantum entanglement characteristics of quantum bits, efficient search and clustering of multi-dimensional data of fault data information of distributed power distribution terminals can be achieved;

[0103] Visual display module, used to output fault diagnosis results to the visual display terminal for real-time dynamic 24-hour display;

[0104] Remote data communication module, used to realize the communication of fault diagnosis data information;

[0105] The output end of the data acquisition module is connected to the input end of the blockchain network model, the output end of the blockchain network model is connected to the input end of the feature extraction model, the output end of the feature extraction model is connected to the input end of the deep learning model, the output end of the deep learning model is connected to the input end of the improved quantum K-Means algorithm clustering model, the output end of the improved quantum K-Means algorithm clustering model is connected to the input end of the visualization display module, and the output end of the visualization display module is integrated in the distributed remote data communication module.

[0106] The beneficial positive effects of the present invention are:

[0107] The invention collects and processes the operating data information of the distribution terminal through the data acquisition module, and introduces blockchain technology to improve the security of data information; extracts fault characteristics through an improved recurrent neural network deep learning model, and encodes the characteristic data extracted by the recurrent neural network into quantum states through quantum computing, and clusters the encoded quantum states using the quantum K-Means algorithm, which significantly accelerates the clustering process, improves the computational efficiency of fault analysis, and realizes real-time fault analysis; through the quantum K-Means algorithm model, the in-depth analysis of the distribution terminal operating data greatly improves the distribution terminal operating data fault diagnosis capability. BRIEF DESCRIPTION OF THE DRAWINGS

[0108] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work, among which:

[0109] Figure 1 It is a schematic diagram of the process of the present invention;

[0110] Figure 2 A method for collecting data by the data collection module in the present invention;

[0111] Figure 3 This is a schematic diagram of the structure of the improved recurrent neural network deep learning model in the present invention;

[0112] Figure 4 This is a schematic diagram of the workflow of the improved recurrent neural network deep learning model in the present invention;

[0113] Figure 5 This is a schematic diagram of the control switch gate in the present invention;

[0114] Figure 6It is a schematic diagram of the fault diagnosis system of the power distribution terminal in the present invention. DETAILED DESCRIPTION

[0115] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0116] like Figure 1-Figure 6 As shown, a fault diagnosis method for a power distribution terminal is characterized in that it includes the following steps:

[0117] Step 1: Collecting the operating status data information of the distributed power distribution terminal through the data acquisition module;

[0118] The data acquisition module includes a drone sensing system, a data preprocessing module, a data conversion module and a data communication module, and the distributed power distribution terminals are all provided with block network nodes;

[0119] In a specific embodiment, the drone sensing system refers to the use of drones as mobile data collection platforms, equipped with various sensors (such as temperature and humidity sensors, cameras, infrared thermal imagers, etc.) to obtain real-time operating status data of distribution terminals. The drone flies over difficult-to-reach areas to collect images, videos and other environmental data in order to monitor the physical state of the distribution terminal. The function of the data preprocessing module is to perform preliminary processing on the collected raw data, including filtering, denoising, data cleaning, etc., to ensure data quality and prepare for subsequent data analysis. The data conversion module is responsible for converting the preprocessed data into a unified format to facilitate data exchange and processing between different systems. This includes operations such as data standardization, data encoding, and data compression. The data communication module is responsible for effectively transmitting the processed data to a data center or analysis system. This involves wireless communication technology, network security protocols, etc., to ensure stable, safe and efficient data transmission. The present invention mentions that distributed distribution terminals are all provided with block network nodes, which means that each distribution terminal has a certain computing power and storage capacity, performs local data processing, and communicates with other terminals and central servers through the blockchain network. The application of blockchain technology improves the security, transparency and immutability of data, which is particularly important for data management in distributed systems.

[0120] Step 2: Build a blockchain network model at the distributed power distribution terminal;

[0121] The blockchain network is provided with a block network node, and the distributed power distribution terminal transmits the distributed power distribution terminal operation status data information to the blockchain network model through the block network node, and packages the processed operation status data into transaction information for data chaining;

[0122] In a specific embodiment, blockchain is a distributed database technology that achieves data consistency and immutability by recording data in multiple blocks and verifying and storing it through nodes in the network. The blockchain network consists of multiple nodes, which jointly maintain the integrity and security of the blockchain. The block network node is a participating unit in the blockchain network. The distributed power distribution terminal is such a node, which not only collects and processes data, but also directly participates in the blockchain network and performs data on-chain operations. When the distributed power distribution terminal transmits the operating status data information, the operating status data information is transmitted to the blockchain network model through the block network node. The terminal is not only a data collector, but also an active participant in the blockchain network. Send the local operating status data information to the blockchain network and share the data with other nodes. In the blockchain, data on-chain means packaging the data into transaction information and adding it to a new block. This process usually includes data encryption, transaction creation and broadcasting to other nodes in the network. The distributed power distribution terminal packages the processed operating status data into transaction information and broadcasts it to the blockchain network through the block network node to ensure the security and immutability of the data. Blockchain network models refer to smart contracts or specific blockchain applications used to manage and process distributed power distribution terminal data. These models define how data is collected, verified, stored, and shared, and how data transparency and traceability are achieved through blockchain networks.

[0123] Step 3: Extract the distributed power distribution terminal fault data information through the feature extraction model, and automatically learn the deep feature representation of the data through the deep learning model;

[0124] In the present invention, the feature extraction model is a process for identifying and extracting useful information from raw data. In distributed power distribution terminals, fault data includes various sensor readings, historical operating data, maintenance records, etc. The feature extraction model helps identify the key features in these data, which are crucial for diagnosing faults. It involves statistical analysis, time series analysis, pattern recognition and other technologies. The deep learning model automatically learns deep feature representations from the data. Unlike traditional feature extraction methods, deep learning models discover complex patterns and associations in the data by learning a large number of data samples. In the distributed power distribution terminal system, the deep learning model is used to train a fault diagnosis model that identifies the characteristics of the fault and predicts new fault conditions.

[0125] Step 4: Use the improved quantum K-Means algorithm clustering model to diagnose and analyze the distributed distribution terminal fault data information, and use the state superposition and quantum entanglement characteristics of quantum bits to achieve efficient search and clustering of multi-dimensional data of distributed distribution terminal fault data information;

[0126] In the present invention, quantum computing is a computing model based on the principles of quantum mechanics, which uses quantum bits (qubits) as the basic unit of information. Unlike traditional bits, quantum bits are in a superposition state of 0 and 1 at the same time, which enables quantum computers to process a large number of computing paths at the same time. The quantum K-Means algorithm is an improvement on the classical K-Means algorithm, which uses the state superposition and quantum entanglement characteristics of quantum bits to accelerate the clustering process. In the classical K-Means algorithm, the cluster center is determined by iteratively calculating the distance from the data point to each cluster center. The quantum K-Means algorithm calculates multiple cluster centers simultaneously through quantum superposition states, thereby accelerating this process. The improved quantum K-Means algorithm is optimized on the original basis to improve the performance and efficiency of the algorithm. The core advantage of this algorithm is to use the special properties of quantum computers to process high-dimensional data sets and realize efficient search and clustering of multidimensional data. In distributed power distribution terminal systems, fault data usually contains a large amount of multidimensional information, such as time series data, sensor readings, maintenance records, etc. The improved quantum K-Means algorithm clustering model is used to perform efficient clustering analysis on these multidimensional data, thereby identifying the patterns and characteristics of failures. Quantum entanglement is an important phenomenon in quantum mechanics that allows an instant connection between two or more quantum bits, even if they are far apart. In the quantum K-Means algorithm, the quantum entanglement feature is used to process multiple data points simultaneously, thereby accelerating the clustering process.

[0127] In the present invention, the improved quantum K-Means algorithm clustering model includes a quantum coding module, a quantum measurement module, an adaptive adjustment module, a feature calculation module, a feature judgment module and a data dynamic update module; wherein the output end of the quantum coding module is connected to the input end of the quantum measurement module, the output end of the quantum measurement module is connected to the input end of the adaptive adjustment module, the output end of the adaptive adjustment module is connected to the input end of the feature calculation module, the output end of the feature calculation module is connected to the input end of the feature judgment module, and the output end of the feature judgment module is connected to the input end of the data dynamic update module; wherein the output function of the feature judgment module is:

[0128] (1)

[0129] In formula (1), Represents the output value of the feature judgment module, It represents the probability that the abnormal data feature value i in the data set M accounts for the total number of data sets M, and N represents the number of calculations;

[0130] In the above embodiment, the quantum coding module is responsible for encoding the input data into quantum bits. Since quantum bits represent the states of 0 and 1 at the same time, this allows quantum computers to process large amounts of data in parallel. In this model, the quantum coding module encodes the fault data information of the distributed distribution terminal into quantum states. The quantum measurement module measures the quantum state output by the quantum coding module to obtain an efficient representation of the data. The measurement process destroys the superposition of quantum states, but outputs a result that is used to represent the multidimensional vector of the data. The adaptive adjustment module adjusts the clustering algorithm process based on the output results of the quantum measurement module. This module automatically adjusts the parameters of the algorithm based on the characteristics of the data to improve the clustering effect.

[0131] In the above embodiment, the feature calculation module is responsible for calculating the key features in the data set. These features are extracted from the original data and are crucial for the subsequent clustering analysis.

[0132] In the above embodiment, the feature judgment module judges whether the data point is abnormal based on the calculated feature value. In the formula provided by the present invention, the output value (f(x)) of the feature judgment module is a probability value, which indicates the probability that the data point (x) belongs to the abnormal feature. This probability is obtained by calculating the frequency of occurrence of the abnormal feature value (i) in the data set (M).

[0133] In the above embodiment, the data dynamic update module dynamically updates the data set according to the output result of the feature judgment module. This may involve removing abnormal data points from the data set or adding new data points to the data set. Formula 1 is the proportion of abnormal feature values ​​in the entire data set, thereby giving a probability estimate of a data point belonging to an abnormality. This probability is used to determine the attribution of data points in subsequent cluster analysis.

[0134] Step 5: Establish a fault prediction model based on the results of the improved quantum K-Means algorithm clustering model, and output the fault diagnosis results to the visualization display terminal for real-time dynamic 24-hour display.

[0135] In the above embodiment, it is necessary to collect and organize the historical operation data of the distributed power distribution terminal, including the normal operation status and the fault data that has occurred. These data will be used to train the quantum K-Means algorithm clustering model. The improved quantum K-Means algorithm clustering model is used to perform cluster analysis on the data set. In this process, quantum computing will help the model quickly find the optimal clustering center and classify the data efficiently. According to the clustering results, the features of each cluster are extracted. These features will be used to establish a fault prediction model.

[0136] In a further embodiment, in said step one:

[0137] The operation status of the distribution terminal includes at least normal operation status, abnormal operation status, recovery operation status, emergency power outage status and planned power outage status; the fault types of the distribution terminal include at least single-phase grounding fault, phase-to-phase short circuit fault, grounding phase-to-phase short circuit fault, overload fault, short circuit fault, equipment fault and environmental factor fault; the distribution terminal includes at least distribution transformer, distribution switchgear, protection device, automation equipment, communication interface and electric energy metering device;

[0138] The drone sensing system performs navigation and positioning of the distributed power distribution terminal through the navigation unit, collects data on the operating status of the distributed power distribution terminal through the image acquisition unit, senses the heating information of the distributed power distribution terminal through the infrared thermal imager, and senses the temperature, humidity, pressure, vibration or magnetic field of the operating status of the distributed power distribution terminal through the sensor system;

[0139] In the above embodiments, the navigation unit generally includes a GPS receiver, an inertial measurement unit (IMU), a flight control system, and a map database. These components work together to provide accurate positioning and navigation functions for the UAV. Through the navigation unit, the UAV accurately flies to the predetermined distributed distribution terminal location for monitoring. The image acquisition unit is generally composed of a high-resolution camera for capturing visible light images of the distributed distribution terminal. These images are used to identify the appearance of the equipment, such as insulator damage, equipment deformation, external structural defects, etc. The infrared thermal imager detects the infrared radiation emitted by the distributed distribution terminal to obtain the temperature distribution on the surface of the equipment. By analyzing this temperature information, the possible overheating problem of the equipment is diagnosed, which is very important for preventing equipment failure and extending the life of the equipment. The sensing system includes various types of sensors, such as temperature sensors, humidity sensors, pressure sensors, vibration sensors, and magnetic field sensors. These sensors measure various physical parameters of the operating status of the distributed distribution terminal, such as ambient temperature, humidity, internal pressure of the equipment, mechanical vibration, and magnetic field strength. These data are very important for evaluating the operating status of the equipment and predicting potential failures. The data collected by the drone sensing system through these units is transmitted back to the control center in real time, or stored on the drone and analyzed after being retrieved by the ground station. These data are very valuable to the maintenance personnel of the power system because they help maintenance personnel to detect and deal with potential faults in time, thus ensuring the stable operation of the power system.

[0140] The data conversion module recognizes the format of the data information through the data format recognition module, performs format conversion on the input data information through the format conversion module, filters or screens out the data information that does not conform to the format through the data elimination module, pairs the data information that conforms to the improved quantum K-Means algorithm clustering model through the format pairing module, and outputs the input data information in a format through the format output module.

[0141] In the above embodiment, in step 2:

[0142] The method for constructing the blockchain network comprises the following steps:

[0143] Step 1. Select the Hyperledger blockchain platform, select the mesh topology, consensus mechanism, data structure, smart contract programming language, compiler, operating environment, design reward and punishment mechanism, define the structure of the blockchain network, the interaction method between nodes, and how data is transmitted in the network;

[0144] In this step, Hyperledger is an open source collaboration hosted by the Linux Foundation that aims to promote enterprise-level applications of blockchain technology. A mesh topology is a distributed network architecture in which each node is directly connected to multiple other nodes, which helps improve the fault tolerance, scalability, and decentralization of the network. The consensus mechanism is the method used in a blockchain network to ensure that all nodes agree on the accuracy of the data. Depending on the needs, choose a consensus mechanism suitable for enterprise-level applications, such as PracticalByzantine Fault Tolerance (PBFT). Choose an appropriate data structure to organize the distributed ledger, such as Merkle trees, to improve the efficiency of data query and verification. Choose a programming language such as Solidity to write smart contracts, and determine the compiler and runtime environment, which will be the basis for executing smart contracts on the blockchain. In order to maintain the security and efficiency of the network, a reward and punishment mechanism needs to be designed to incentivize nodes to follow the rules and punish bad behavior. Defining the structure of the blockchain network, how nodes interact with each other, and how data propagates in the network involves the overall architectural design of the network, including the role assignment of nodes, communication protocols, and data propagation mechanisms.

[0145] Step 2: Setting a node satisfying step 1 in the distributed power distribution terminal to realize data interaction between the distributed power distribution terminal and the Hyperledger blockchain platform;

[0146] In a specific embodiment, according to the specific application scenario of the distribution terminal, appropriate hardware devices are selected to run the blockchain node. These devices need to have sufficient computing power, storage space and network interface. Install the relevant software of the Hyperledger blockchain platform on the selected hardware. This usually includes Hyperledger Fabric, HyperledgerBurrow, etc., as well as the necessary operating environment, such as Docker container and Kubernetes cluster management. The internal network configures the blockchain nodes in the internal network of the distributed distribution terminal to ensure that they communicate with each other and access other systems of the distribution terminal. If the external network needs to interact with an external system or blockchain network, it is necessary to configure appropriate network connections to ensure the security and efficient transmission of data. In the Hyperledger blockchain, nodes play different roles, such as sorting nodes, verification nodes, anchor nodes, etc. The role of the node needs to be defined according to the specific needs of the distribution terminal. Define the protocol for data interaction between nodes and distributed distribution terminals and between nodes. This includes data upload and download methods, data formats, encryption methods, etc. Deploy the written smart contracts to the blockchain, and these smart contracts will perform corresponding operations according to the business logic, such as data verification, transaction processing, etc. After deployment, comprehensive testing is performed to verify whether the blockchain nodes correctly interact with the distributed power distribution terminals and whether the smart contracts work as expected. Through the above steps, the distributed power distribution terminals establish a stable and reliable data interaction mechanism with the Hyperledger blockchain platform, thereby achieving data transparency, traceability and non-tamperability, and improving the operating efficiency and safety of the distribution system.

[0147] Step 3: Design cross-chain communication protocols and interfaces, allow interaction with other blockchain networks or external systems through protocol identification, select a proof-of-work consensus mechanism, and improve communication between different nodes; the blockchain network includes a blockchain layer, a consensus mechanism, a data encoding layer, a data fission layer, a smart contract layer, a data structure layer, a data learning layer, and a network layer.

[0148] In a specific embodiment, the cross-chain communication protocol design defines the communication rules and data formats between different blockchain networks to ensure that data is correctly transmitted between different chains. Consider existing cross-chain communication standards and solutions, such as Cosmos SDK, Thanos, InterPlanetary File System (IPFS), etc., to learn from their successful experience and mechanisms. Interface development enables other blockchain networks or external systems to interact with your blockchain network. These interfaces need to support multiple types of data interactions, such as queries, transactions, event subscriptions, etc. Select a proof-of-work consensus mechanism. Proof of Work (PoW) is a consensus mechanism that ensures the security of the network by requiring nodes to solve computational problems. PoW may be chosen because it provides high security and decentralization, but it is also necessary to pay attention to its energy consumption and computing resource requirements. Improve the communication efficiency between different nodes by optimizing network protocols and transmission mechanisms to ensure fast and reliable data exchange. Consider using efficient encryption and compression algorithms to reduce delays and resource consumption during communication. Select a suitable consensus mechanism and optimize communication between nodes by designing cross-chain communication protocols and interfaces.

[0149] In a further embodiment, in step three, the working principle of the deep learning model is:

[0150] (1) Preprocess the input distributed power distribution terminal data, remove duplicate data, and divide the data into two data sets: training and testing;

[0151] In this step, data from distributed power distribution terminals are received. These data may include various parameters of the power system, operating status, environmental factors, etc. Duplicate data is removed to prevent the model from learning redundant information. The data set is divided into a training set and a test set, where the training set is used to train the model and the test set is used to evaluate the model performance.

[0152] (2) Start the DBN grid structure and integrate the correlation matrix model into the DBN grid structure;

[0153] The association matrix model performs association setting on the input data information through the association setting module, identifies the characteristics of the data information to be associated through the attribute identification module, calculates the characteristics of the data information through the matrix calculation module, and outputs the associated data information through the association output module;

[0154] Starting the DBN grid structure: The deep belief network is an unsupervised learning neural network structure that learns the hierarchical structure of data through layer-by-layer pre-training. The association matrix model is integrated into the DBN grid structure, which helps capture the correlation and dependency in the data.

[0155] In the correlation matrix model:

[0156] Association setting module: performs association setting on the input data information to determine the relationship between the data.

[0157] Attribute identification module: Identify the characteristics of the data information to be associated, that is, extract key attributes or dimensions from the data.

[0158] Matrix calculation module: calculates the characteristics of data information, which may involve calculating the correlation or similarity between features.

[0159] Association output module: outputs the associated data information, and the output may be an association matrix or other forms of data representation.

[0160] (3) Initialize the DBN grid structure data information, define the weight parameters of the DBN grid structure, set the number of factors affecting the DBN grid structure, the maximum number of iterations, and the hidden layer node data information;

[0161] Initialize the DBN grid structure data information, define the weight parameters of the DBN grid structure, these weights will determine how the network learns features from the input data. Set the quantities that affect the work of the DBN grid structure (such as the number of hidden layer nodes), the maximum number of iterations, and other hyperparameters.

[0162] (4) Establish the fitness function of the DBN grid structure to evaluate the performance of the DBN model; output the best data information, and construct the output data information into a correlation matrix model;

[0163] The fitness function is used to evaluate the performance of the DBN model, which may be based on the model's fit to the training data or the accuracy of the prediction of the test data. The best data information is output, which may include the best weight parameters and structure, and the output data information is constructed as an association matrix model.

[0164] (5) Repeatedly calculate the fitness value of the DBN grid structure 10 times, extract the best data information from the output results of the 10 calculations; perform multiple iterative calculations, and adjust the weight of the network each time to find a better fitness value.

[0165] (6) Determine whether the algorithm meets the termination condition; if so, end the calculation; otherwise, go to (2).

[0166] Check whether the preset number of iterations, fitness value improvement threshold or other termination conditions have been reached. If the termination conditions are met, end the calculation; otherwise, return to step (2) to continue the next round of iterations.

[0167] In a further embodiment, in step 4:

[0168] The quantum coding module uses quantum basis state coding to convert the distributed power distribution terminal fault data information into a quantum state;

[0169] The quantum measurement module uses a controlled exchange gate to calculate the similarity between the data point and the cluster center;

[0170] The adaptive adjustment module allows the quantum algorithm to process information in parallel through quantum bits. When the similarity of the data points is 1, the data points with similarity 1 are classified into one category. When the similarity of the data points is 0, the data points with similarity 0 are classified into one category. The quantum state is operated by simulating the quantum state of the data, and the application order of the quantum gates in the quantum calculation, the selection of the measurement basis, the frequency of data point cluster allocation, and the iterative calculation of the data cluster characteristics are dynamically adjusted to realize the similarity calculation and cluster allocation of the data points.

[0171] The feature calculation module uses a quantum minimum search algorithm to find the most similar cluster center point, so as to efficiently identify different types of distributed power distribution terminal fault data information;

[0172] The feature judgment module represents the features in the data set as quantum states, uses the superposition property of quantum bits to represent multiple combinations of features, and uses quantum rotating gates to adjust the quantum states to evaluate the impact of different features on the quantum states;

[0173] The data dynamic update module processes all data points in the data set in parallel through multiple quantum logic gates, and adjusts the quantum state through quantum rotation gates to reflect the changes in the cluster center.

[0174] In a further specific embodiment, in step 1, the sensing system includes power output, temperature, humidity, light intensity, voltage, ripple and current sensors, the data preprocessing module first-order low-pass filter eliminates noise and interference, and the data conversion module performs data conversion through the ADC analog-to-digital conversion formula. In the present invention, the sensing system is set in the photovoltaic array, inverter and battery energy storage system to collect the operating data and status information of the distributed distribution terminal. The data acquisition module realizes the collection of data information including the following steps:

[0175] In a further specific embodiment, the working method of the data preprocessing module is:

[0176] Step 1: Eliminate noise and interference through a first-order low-pass filter. The recursive formula in the discrete time domain is expressed as:

[0177] (2)

[0178] In formula (2), x[n] is the input signal, y[n] is the output signal after filtering, and α is the coefficient of the filter, which determines the cutoff frequency and attenuation characteristics of the filter;

[0179] Step 2: Use the ADC analog-to-digital conversion formula to realize data information conversion, convert the analog voltage into digital code, and the output information content is expressed by the formula:

[0180] (3)

[0181] In formula (3), Vmin and Vmax are the input voltage range of the ADC, and N is the number of bits of the ADC. After using formula (3), the analog voltage is converted into a digital code, thereby realizing the processing and calculation of the analog signal.

[0182] The data acquisition module plays a vital role in the fault analysis of distributed power distribution terminals. It monitors the operating status of each device and component in the distributed power distribution terminal in real time, ensures timely detection when the equipment fails or is abnormal, and provides comprehensive and accurate data support for subsequent fault analysis. The sensing system collects the power output, temperature, humidity, light intensity, voltage, ripple and current data of the distributed power distribution terminal in real time, transmits the collected distributed power distribution terminal data information to the data preprocessing module in real time, eliminates the noise and interference of the distributed power distribution terminal operation through a first-order low-pass filter, so as to reduce the impact of the environment on the data, eliminate the impact of different dimensions and orders of magnitude on the analysis results, and transmits the processed distributed power distribution terminal data information to the data conversion module, and realizes the conversion of the distributed power distribution terminal data information from analog voltage to digital code through the ADC analog-to-digital conversion formula.

[0183] In a further embodiment, the deep learning model is an improved recurrent neural network deep learning model with a DBN grid structure.

[0184] In step 3, the deep learning model in the feature extraction model is an improved recurrent neural network deep learning model, and the method for the improved recurrent neural network deep learning model to complete feature extraction is:

[0185] In a further embodiment, the method for completing feature extraction by the improved recurrent neural network deep learning model is:

[0186] The basic structure of a recurrent neural network consists of an input layer, a hidden layer, and an output layer. At each time step (t), the RNN receives an input , and update its hidden state , which then produces an output , then the operating data information identification function of the distribution terminal after learning is:

[0187] (4)

[0188] In formula (4), represents the weight matrix from the hidden layer to the output layer, represents the bias variable of the output layer, o represents the data type identifier, and h represents the data symbol identifier of the hidden layer. represents the weight matrix of the output layer, represents the weight data vector, t represents the hidden node symbol, Indicates hidden state; , Represents different types of eigenvalues ​​in the weight matrix after the operation data information of the distribution terminal is converted into the characteristic function; represents the data training output value during the training process from the hidden layer to the output layer, h o represents the hidden state of the initial state of the input data; θ1 represents the first hidden layer data function of the input data, θ2 represents the second hidden layer data function of the input data, c α It indicates the data passing rate of the first hidden layer through the second hidden layer;

[0189] The hidden state output is:

[0190] (5)

[0191] In formula (5), represents the weight matrix input to the hidden layer, x represents the weight matrix input to the hidden layer. represents the weight matrix from hidden layer to hidden layer, and hh represents the symbolic identifier from hidden layer to hidden layer; represents the bias vector of the hidden layer, Represents the first detection error value, The data type of the first detection error value, m represents the symbol identifier of the first detection error;

[0192] The loss function is calculated by the mean square error loss:

[0193] (6)

[0194] In formula (6), represents the output of the loss function, N represents the number of samples, represents the true value of the i-th sample, It represents the predicted value of the deep learning model for the i-th sample, and the weight matrix is ​​further updated through the optimization algorithm as follows:

[0195] (7)

[0196] In formula (7), represents the optimization algorithm updating the weight matrix output function, represents the original point weight matrix, represents the learning rate, Represents the total value in the operation path, represents the prediction threshold, represents the gradient of the loss function to the weight matrix, c represents the data type identifier in the operation path, represents the prediction error, The symbol indicating the error, The symbol representing the gradient, Indicates the flag for finding the gradient of the loss function.

[0197] The principle of this method lies in its unique network structure, which takes into account previous input information when processing current input. This is achieved by introducing recurrent connections in the hidden layer, so that the recurrent neural network captures the time dependency in the sequence data. In the present invention, the power plant operation data of the past year are collected for training the model, including time series data of power output, temperature, humidity, light intensity, voltage, ripple and current. The training parameter learning rate is configured to be 0.001 and the number of iterations is 100. During the training process, the recurrent neural network calculates the output and the new hidden state of the current time step based on the input and the hidden state of the previous time step at each time step through the back propagation algorithm and the gradient descent optimization method, and continuously adjusts the network parameters to minimize the prediction error. The recurrent neural network learns how to extract useful features from the input data.

[0198] In the above embodiment, the quantum coding module uses quantum ground state coding to convert the distributed distribution terminal fault data information into a quantum state, the quantum measurement module uses a controlled switching gate to calculate the similarity between the data point and the cluster center, and the feature calculation module uses a quantum minimum search algorithm to find the most similar cluster center point, thereby achieving efficient identification of different types of distributed distribution terminal fault data information.

[0199] In a specific embodiment, the quantum coding module is a bridge between quantum computing and classical computing. The superposition and entanglement of quantum states are completed through quantum gate operations, and the quantum algorithm is used to process actual data sets. In the fault analysis of distributed power distribution terminals, a large number of data points need to be processed. The use of quantum ground state coding reduces the use of quantum bits through simple mapping relationships, and reduces the requirements of the algorithm for quantum hardware. The quantum ground state coding method is more stable, easier to implement and control. The quantum measurement module encodes data points and cluster centers into multiple quantum registers, and uses an additional control quantum bit to trigger the controlled exchange gate. When the control quantum bit is in a specific state, the controlled exchange gate will exchange the state of the data point and cluster center encoding quantum bits. When the control quantum bit is in another state, it will not be exchanged. According to the obtained similarity, the quantum minimum search algorithm is used to find the most similar cluster center point. Through the parallelism and superposition of quantum computing, the minimum distance from each data point to each cluster center is found in a shorter time, reducing the computational complexity and meeting the distributed power distribution terminal fault. There are a large number of characteristics and complex structures.

[0200] In the above embodiment, in step 4, the working method of the improved quantum K-Means algorithm model is:

[0201] Step (1), encoding the input data information through a quantum coding module;

[0202] Step (2), measuring the input data information through the quantum measurement module; the measurement method is:

[0203] Input fault diagnosis dataset , n is the size of the fault diagnosis data set, the data set is divided into k categories, and the cluster center is , then the quantum states of the data points and cluster centers are:

[0204] | (8)

[0205] In formula (8), represents the jth eigenvalue of the ith data point, and d represents the number of eigenvalues;

[0206] Step (3), improving the parameter adjustment of the input function through the adaptive adjustment module, so as to identify, cluster and adjust the input data information according to different data features;

[0207] Step (4), calculating the features of the input data by a feature calculation module; the output function of the feature calculation module is:

[0208] (9)

[0209] In formula (9), represents the jth eigenvalue of the ith data point, k represents the number of data set categories,

[0210] Step (5): The data information output in step (4) is subjected to feature judgment by a feature judgment module, wherein the working method of the feature judgment module is as follows:

[0211] Any data point is calculated by the controlled switching gate Control-Swap Similarity with k cluster centers:

[0212] (10)

[0213] In formula (10), express and the cosine value of c, in quantum state As input to the phase estimation algorithm, we get:

[0214] (11)

[0215] In formula (11), express and The similarity between them is stored in the quantum bit superior, The smaller it is, the greater the similarity between the two.

[0216] Step (6), dynamically update the input data information 24 hours a day through the data dynamic update module;

[0217] Using quantum minimum search algorithm from quantum state Steps to find the minimum value in :

[0218] (1) Prepare initial value The quantum state of ;

[0219] (2) , As input, b as control input, using Grover algorithm to find ;

[0220] (3) If , then use Replace And return to step (1) and repeat Second-rate.

[0221] The quantum K-Means algorithm model is a model that combines quantum computing and the classical K-Means clustering algorithm. Quantum computing is a new computing mode that controls quantum information units, quantum bits, for computing according to quantum mechanics. It breaks through the bottleneck of classical computing power and has more powerful computing power. The K-Means algorithm, also known as K-average or K-means, is a classic clustering algorithm. Its core idea is to divide the data into k independent clusters, so that the distance between data points in each cluster is as small as possible, and the distance between clusters is as large as possible. Through quantum computing, the data points and cluster centers are encoded into quantum states, and the controlled exchange gates are used to calculate the similarity between the data points and the cluster centers. The phase estimation process is mainly a Grover iteration process, which requires corresponding Oracle operations, in which the preparation of | and Six Oracle operations are required to find the minimum value from the quantum state through the quantum minimum search algorithm, corresponding to the maximum similarity between the two, thereby assigning the corresponding data points to the corresponding cluster center to achieve fault classification. Quantum computing is used to implement clustering updates and accelerate the clustering process. The clustering method is the maximum and minimum distance clustering algorithm, which classifies various types of distributed distribution terminal fault information elements. The core idea of ​​this method is to first calculate the cluster center, and then assign all sample points to the class corresponding to the cluster center closest to itself according to the principle of proximity. The maximum and minimum refer to selecting the largest among all minimum distances. The main algorithm steps are as follows:

[0222] (1) Randomly select a point as the cluster center Z1 of the first class;

[0223] (2) Select the sample point farthest from the one in step 1 as the cluster center Z2 of the second class;

[0224] (3) Calculate the distance from each point to all cluster centers one by one, and record all the shortest distances;

[0225] (4) Select the largest value among these shortest distances. If this maximum value is greater than ,in 1, then take the other sample point corresponding to the maximum distance as the new cluster center, otherwise the whole algorithm ends;

[0226] (5) Repeat steps (3) and (4) until no new cluster centers appear in (4);

[0227] (6) Assign all samples to the cluster center closest to itself.

[0228] In a specific embodiment, a quantum K-Means algorithm model is used to perform distributed power distribution terminal fault analysis. The fault data analysis time in the distributed power distribution terminal is shown in Table 1:

[0229] Table 1 Fault data analysis timetable

[0230]

[0231] According to the different data sizes of the data groups, four test groups are set up, and two methods are used to process the data. Method 1 is to process the data using the classical K-Means algorithm model, and Method 2 is to process the data using the quantum K-Means algorithm model. As shown in Table 1, when processing the first group of data, there is no obvious difference in the time used by Method 1 and Method 2. When processing the second group of data, Method 2 reduces the time used by Method 1 by about 15%. When processing the third group of data, Method 2 reduces the time used by Method 1 by about 19%. When processing the fourth group of data, Method 2 reduces the time used by Method 1 by about 60%. It can be seen that the larger the amount of data, the shorter the data processing time used by the method of the present invention, and the better the stability of the equipment.

[0232] like Figure 6 As shown, the present invention also has the following embodiment, a fault diagnosis system for a power distribution terminal, comprising:

[0233] A data acquisition module, used to collect the operating status of the distributed power distribution terminal; wherein the data acquisition module includes a drone sensing system, a data preprocessing module, a data conversion module and a data communication module;

[0234] Blockchain network model for measuring data information of distributed power distribution terminals;

[0235] Feature extraction model, used to extract fault data information of distributed power distribution terminals,

[0236] Deep learning models, which are used to automatically learn deep feature representations of data;

[0237] The improved quantum K-Means algorithm clustering model is used to diagnose and analyze the fault data information of distributed power distribution terminals. Through the state superposition and quantum entanglement characteristics of quantum bits, efficient search and clustering of multi-dimensional data of fault data information of distributed power distribution terminals can be achieved;

[0238] Visual display module, used to output fault diagnosis results to the visual display terminal for real-time dynamic 24-hour display;

[0239] Remote data communication module, used to realize the communication of fault diagnosis data information;

[0240] The output end of the data acquisition module is connected to the input end of the blockchain network model, the output end of the blockchain network model is connected to the input end of the feature extraction model, the output end of the feature extraction model is connected to the input end of the deep learning model, the output end of the deep learning model is connected to the input end of the improved quantum K-Means algorithm clustering model, the output end of the improved quantum K-Means algorithm clustering model is connected to the input end of the visualization display module, and the output end of the visualization display module is integrated in the distributed remote data communication module.

[0241] Although the specific embodiments of the present invention are described above, it should be understood by those skilled in the art that these specific embodiments are only illustrative, and those skilled in the art may make various omissions, substitutions and changes to the details of the above methods and systems without departing from the principles and essence of the present invention. For example, merging the above method steps so as to perform substantially the same functions in substantially the same manner to achieve substantially the same results is within the scope of the present invention. Therefore, the scope of the present invention is limited only by the appended claims.

Claims

1. A fault diagnosis method for a power distribution terminal, characterized in that: The following steps are involved: Step 1: Collecting the operating status data information of the distributed power distribution terminal through the data acquisition module; The data acquisition module includes a drone sensing system, a data preprocessing module, a data conversion module and a data communication module, and the distributed power distribution terminals are all provided with block network nodes; Step 2: Build a blockchain network model at the distributed power distribution terminal; The blockchain network is provided with a block network node, and the distributed power distribution terminal transmits the distributed power distribution terminal operation status data information to the blockchain network model through the block network node, and packages the processed operation status data into transaction information for data chaining; Step 3: Extract the distributed power distribution terminal fault data information through the feature extraction model, and automatically learn the deep feature representation of the data through the deep learning model; Step 4: Use the improved quantum K-Means algorithm clustering model to diagnose and analyze the distributed distribution terminal fault data information, and use the state superposition and quantum entanglement characteristics of quantum bits to achieve efficient search and clustering of multi-dimensional data of distributed distribution terminal fault data information; The improved quantum K-Means algorithm clustering model includes a quantum coding module, a quantum measurement module, an adaptive adjustment module, a feature calculation module, a feature judgment module and a data dynamic update module; wherein the output end of the quantum coding module is connected to the input end of the quantum measurement module, the output end of the quantum measurement module is connected to the input end of the adaptive adjustment module, the output end of the adaptive adjustment module is connected to the input end of the feature calculation module, the output end of the feature calculation module is connected to the input end of the feature judgment module, and the output end of the feature judgment module is connected to the input end of the data dynamic update module; wherein the output function of the feature judgment module is: Step 5: Establish a fault prediction model based on the results of the improved quantum K-Means algorithm clustering model, and output the fault diagnosis results to the visualization display terminal for real-time dynamic 24-hour display; In the step 2: The method for constructing the blockchain network comprises the following steps: Step 1. Select the Hyperledger blockchain platform, select the mesh topology, consensus mechanism, data structure, smart contract programming language, compiler, operating environment, design reward and punishment mechanism, define the structure of the blockchain network, the interaction method between nodes, and how data is transmitted in the network; Step 2: Setting a node satisfying step 1 in the distributed power distribution terminal to realize data interaction between the distributed power distribution terminal and the Hyperledger blockchain platform; Step 3: Design cross-chain communication protocols and interfaces, allow interaction with other blockchain networks or external systems through protocol identification, select a proof-of-work consensus mechanism, and improve communication between different nodes; the blockchain network includes a blockchain layer, a consensus mechanism, a data encoding layer, a data fission layer, a smart contract layer, a data structure layer, a data learning layer, and a network layer; In step 4: The quantum coding module uses quantum basis state coding to convert the distributed power distribution terminal fault data information into a quantum state; The quantum measurement module uses a controlled exchange gate to calculate the similarity between the data point and the cluster center; The adaptive adjustment module allows the quantum algorithm to process information in parallel through quantum bits. When the similarity of the data points is 1, the data points with similarity 1 are classified into one category. When the similarity of the data points is 0, the data points with similarity 0 are classified into one category. The quantum state is operated by simulating the quantum state of the data, and the application order of the quantum gates in the quantum calculation, the selection of the measurement basis, the frequency of data point cluster allocation, and the iterative calculation of the data cluster characteristics are dynamically adjusted to realize the similarity calculation and cluster allocation of the data points. The feature calculation module uses a quantum minimum search algorithm to find the most similar cluster center point, so as to efficiently identify different types of distributed power distribution terminal fault data information; The feature judgment module represents the features in the data set as quantum states, uses the superposition property of quantum bits to represent multiple combinations of features, and uses quantum rotating gates to adjust the quantum states to evaluate the impact of different features on the quantum states; The data dynamic update module processes all data points in the data set in parallel through multiple quantum logic gates, and adjusts the quantum state through quantum rotation gates to reflect the changes in the cluster center.

2. A method for fault diagnosis of a power distribution terminal according to claim 1, characterized in that: In step one: The operation status of the distribution terminal includes at least normal operation status, abnormal operation status, recovery operation status, emergency power outage status and planned power outage status; the fault types of the distribution terminal include at least single-phase grounding fault, phase-to-phase short circuit fault, grounding phase-to-phase short circuit fault, overload fault, short circuit fault, equipment fault and environmental factor fault; the distribution terminal includes at least distribution transformer, distribution switchgear, protection device, automation equipment, communication interface and electric energy metering device; The drone sensing system performs navigation and positioning of the distributed power distribution terminal through the navigation unit, collects data on the operating status of the distributed power distribution terminal through the image acquisition unit, senses the heating information of the distributed power distribution terminal through the infrared thermal imager, and senses the temperature, humidity, pressure, vibration or magnetic field of the operating status of the distributed power distribution terminal through the sensor system; The data conversion module recognizes the format of the data information through the data format recognition module, performs format conversion on the input data information through the format conversion module, filters or screens out the data information that does not conform to the format through the data elimination module, pairs the data information that conforms to the improved quantum K-Means algorithm clustering model through the format pairing module, and outputs the input data information in a format through the format output module.

3. A method for fault diagnosis of a power distribution terminal according to claim 1, characterized in that: In step three, the working principle of the deep learning model is: Preprocess the input distributed power distribution terminal data, remove duplicate data, and divide the data into two data sets: training and testing; Start the DBN grid structure and integrate the correlation matrix model into the DBN grid structure; The association matrix model performs association setting on the input data information through the association setting module, identifies the characteristics of the data information to be associated through the attribute identification module, calculates the characteristics of the data information through the matrix calculation module, and outputs the associated data information through the association output module; Initialize DBN grid structure data information, define DBN grid structure weight parameters, set the number of influences on DBN grid structure work, maximum number of iterations and hidden layer node data information; Establish the fitness function of DBN grid structure to evaluate the performance of DBN model; output the best data information, and construct the output data information into a correlation matrix model; (5) repeatedly calculating the fitness value of the DBN grid structure 10 times, and extracting the best data information from the output results of the 10 calculations; Determine whether the algorithm meets the termination condition; if so, end the calculation; otherwise, go to (2).

4. A method for diagnosing a fault of a power distribution terminal according to claim 1, characterized in that: The working method of the data preprocessing module is: Step 1: Eliminate noise and interference through a first-order low-pass filter. The recursive formula in the discrete time domain is expressed as: Principle and calculation.

5. A method for fault diagnosis of a power distribution terminal according to claim 3, characterized in that: The deep learning model is an improved recurrent neural network deep learning model with a DBN grid structure.

6. A method for fault diagnosis of a power distribution terminal according to claim 5, characterized in that: The method for completing feature extraction using the improved recurrent neural network deep learning model is: ; 7. A method for fault diagnosis of a power distribution terminal according to claim 1, characterized in that: The working method of the improved quantum K-Means algorithm model is: Step (1), encoding the input data information through a quantum coding module; Step (2), measuring the input data information through the quantum measurement module; the measurement method is:

8. A fault diagnosis system for a power distribution terminal, characterized in that: A method for diagnosing a fault of a power distribution terminal according to any one of claims 1 to 6, comprising: A data acquisition module, used to collect the operating status of the distributed power distribution terminal; wherein the data acquisition module includes a drone sensing system, a data preprocessing module, a data conversion module and a data communication module; Blockchain network model for measuring data information of distributed power distribution terminals; Feature extraction model, used to extract fault data information of distributed power distribution terminals, Deep learning models, which are used to automatically learn deep feature representations of data; The improved quantum K-Means algorithm clustering model is used to diagnose and analyze the fault data information of distributed power distribution terminals. Through the state superposition and quantum entanglement characteristics of quantum bits, efficient search and clustering of multi-dimensional data of fault data information of distributed power distribution terminals can be achieved; Visual display module, used to output fault diagnosis results to the visual display terminal for real-time dynamic 24-hour display; Remote data communication module, used to realize the communication of fault diagnosis data information; The output end of the data acquisition module is connected to the input end of the blockchain network model, the output end of the blockchain network model is connected to the input end of the feature extraction model, the output end of the feature extraction model is connected to the input end of the deep learning model, the output end of the deep learning model is connected to the input end of the improved quantum K-Means algorithm clustering model, the output end of the improved quantum K-Means algorithm clustering model is connected to the input end of the visualization display module, and the output end of the visualization display module is integrated in the distributed remote data communication module.

Citation Information

Patent Citations

  • Quantum-genetic-algorithm-based fault diagnosis method for medium-voltage distribution network

    CN105606931A

  • Power distribution network fault studying and judging method based on multi-source information fusion

    CN115219838A