Training method of defect prediction model of high-voltage switch cabinet and defect prediction method

Through the hidden semi-Markov model and particle filter algorithm, the modeling problem of high-voltage switchgear state transition and sensor data changes is solved, efficient and accurate defect prediction is achieved, and the reliability and prediction accuracy of power grid equipment are improved.

CN118568433AActive Publication Date: 2024-08-30STATE GRID ANHUI ELECTRIC POWER CO LTD ELECTRIC POWER SCI RES INST

Patent Information

Application Number
CN202410609831.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-16
Publication Date
2024-08-30
Estimated Expiration
2044-05-16

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively model the state transition process of high-voltage switchgear and the change process of sensor observation data, resulting in insufficient reliability of high-voltage switchgear defect prediction. Moreover, traditional machine learning models require manual annotation, which is costly and difficult to meet the reliability requirements of power grid equipment. need.

Method used

The hidden semi-Markov model is used to model the state transfer and maintenance process of high-voltage switch cabinets. The parameters of the defect prediction model are optimized through online unsupervised learning and particle filtering algorithms to build an efficient and accurate defect prediction model and reduce the reliance on sensor data annotation.

Benefits of technology

It improves the accuracy and reliability of high-voltage switchgear defect prediction, reduces training costs, can predict defect status online in real time, and improves the model's reasoning efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568433A
    Figure CN118568433A
Patent Text Reader

Abstract

The invention discloses a training method of a defect prediction model of a high-voltage switch cabinet and a defect prediction method, and the training method comprises the steps: obtaining the observation data of various sensors installed on the high-voltage switch cabinet, and constructing a data set based on the observation data; modeling a state transition process and a state maintenance process of the high-voltage switch cabinet by using a hidden semi-Markov model to obtain a defect prediction model; on the basis of the data set, carrying out online unsupervised learning on a state sequence of the defect prediction model, and optimizing parameters of the defect prediction model according to a state sequence fitting effect to obtain a trained switch cabinet defect prediction model; the defect prediction model obtained through training can efficiently learn the switch cabinet state transition process, online unsupervised learning can be carried out, a large amount of labeled data does not need to be relied on, and cost is saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electrical equipment defect diagnosis, and in particular to a training method for a high-voltage switch cabinet defect prediction model and a defect prediction method. Background Art

[0002] The safe and stable operation of switchgear is directly related to the equipment safety and power supply reliability of the power grid. Failure of the switchgear may cause fire, tripping of the main transformer, etc., which makes it difficult to meet the rapid development of the power grid and the demand for equipment reliability. If you want to improve the stability of the power grid system, you need to grasp the health status of the switchgear as comprehensively as possible, and discover and eliminate potential faults as early as possible.

[0003] High-voltage switchgear is the most widely used and largest type of switchgear in the power system, playing the role of control, protection and operation in the power system's power generation, transmission, distribution, power conversion and consumption. High-voltage switchgear is mainly composed of insulating materials and conductive materials. The aging and wear of components, unreasonable design and installation of components, moisture, dirt, and abnormalities of mechanisms and secondary equipment are common causes of power system failures. Common high-voltage switchgear failures include refusal to operate, malfunction, opening and closing failures, insulation failures, current-carrying failures, and external force failures.

[0004] For the problem of defect prediction in high-voltage switchgear, traditional methods mainly rely on manual or auxiliary intelligent equipment such as robots. They face problems such as small amount of monitoring data, large changes in background interference, and uncertain time intervals, which makes it difficult to meet the demand for equipment reliability in the rapid development of the power grid. With the development of power sensor technology, various sensors are designed to sense subtle changes in the operating status of switchgear components. Moreover, with the support of big data background, the collection, storage and analysis of multi-heterogeneous sensor data have become possible, such as temperature data, partial discharge data, mechanical fault data, etc. Defect prediction evaluates the operating status of each group of components in real time based on sensor data, and timely predicts sensor defects that may cause switchgear failures based on changes in data distribution and the appearance of abnormal values. This is of great significance for preventing switchgear from causing huge economic losses due to fault power outages caused by the deterioration of defects. For example, in a high-voltage switchgear defect prediction method based on multi-source heterogeneous data proposed in the patent application document with publication number CN115900816A, multi-source heterogeneous data obtained by temperature sensors, partial discharge sensors, and mechanical fault characteristic sensors are combined with neural network models to predict high-voltage switchgear defects.

[0005] However, the defect prediction of high-voltage switchgear still faces the following difficulties: (1) The state transition process is difficult to model: During the operation of high-voltage switchgear, it often remains in the same state for a long time. Traditional machine learning models are difficult to model the state transition process of high-voltage switchgear. (2) The cost of manual labeling by experts is high: In order to ensure the accuracy of defect prediction of high-voltage switchgear, a large amount of sensor data needs to be collected for model training. Traditional machine learning models are supervised training methods, which require manual labeling of defect states. The cost is too high, and the supervised training method is not suitable for actual use needs.

[0006] Therefore, how to model the correlation between the state transfer process of high-voltage switchgear and the change process of sensor observation data, accurately perceive data defects, and carry out efficient and accurate perception and reliable assessment analysis of the defect state of intelligent high-voltage switchgear is an urgent problem to be solved. Summary of the invention

[0007] The technical problem to be solved by the present invention is how to accurately perceive data defects and improve the reliability of switch cabinet defect prediction.

[0008] The present invention solves the above technical problems by the following technical means:

[0009] The present invention proposes a training method for a high-voltage switch cabinet defect prediction model, the method comprising:

[0010] Obtaining observation data of various sensors installed on the high-voltage switchgear, and constructing a data set based on the observation data;

[0011] The hidden semi-Markov model is used to model the state transfer process and state retention process of the high-voltage switchgear to obtain a defect prediction model;

[0012] Based on the data set, the state sequence of the defect prediction model is learned online in an unsupervised manner, and the parameters of the defect prediction model are optimized according to the state sequence fitting effect to obtain a trained switch cabinet defect prediction model.

[0013] Furthermore, the various sensors installed on the switch cabinet include temperature sensors, partial discharge sensors, mechanical property sensors, gas sensors and opening and closing coil current monitoring devices;

[0014] The defect types of the sensor include insulation defects, mechanism defects, abnormal heating defects, secondary equipment abnormal defects and composite defects including at least two defect categories.

[0015] Furthermore, the temperature sensor is arranged on the inner wall of the trolley chamber, the moving contact and the contact arm;

[0016] The partial discharge sensors include ultrasonic partial discharge sensors, TEV transient radio wave partial discharge sensors and UHF ultra-high frequency partial discharge sensors;

[0017] The opening and closing coil current monitoring device and the mechanical characteristic sensor are respectively installed on the secondary circuit of the instrument room and the circuit breaker operating shaft.

[0018] Furthermore, the state transition process and state maintenance process of the high-voltage switch cabinet are modeled using the hidden semi-Markov model to obtain a defect prediction model, including:

[0019] For time t, let the state of high-voltage switchgear be s t ∈S, state s t The expected duration is The sensor observation data is e t , S is the state set of high-voltage switchgear, is a set of positive integers;

[0020] The state transition process of modeling high-voltage switchgear is expressed as:

[0021]

[0022] In the formula, δ is the indicator function, δ(s t+1 ,s t )=1{s t+1 =s t}; f θ (s t+1 |s t ) means when d t = 0, the defect prediction model transfers to state s at time t+1 t+1 The probability distribution of the state transition probability matrix θ f describe;

[0023] The state maintenance process of modeling high-voltage switchgear is expressed as:

[0024]

[0025] In the formula, δ is the indicator function, δ(d t+1 ,d t -1)=1{d t+1 =d t -1};d t+1 |s t+1 Indicates that the defect prediction model is in state s t+1 The expected duration under the Poisson distribution h θ ,h θ The parameter θ h Indicates the expected duration of each state;

[0026] Observation data t From the current state s t Decision: et ~g θ (e t |s t ,e t-k:t-1 ), g θ Denote the parameter as θ g Gaussian mixture model; t Indicates the current state of the high-voltage switchgear; e t-k:t-1 represents the observed data of the previous k moments; e t |s t ,e t-k:t-1 Indicates that given s t and e t-k:t-1 The observed data at the current moment under the conditions; ~ obeys the probability distribution.

[0027] Furthermore, based on the data set, the state sequence of the defect prediction model is learned online in an unsupervised manner, and the parameters of the defect prediction model are optimized according to the state sequence fitting effect to obtain a trained switch cabinet defect prediction model, including:

[0028] Based on the data set, a particle filter algorithm is used to estimate the state sequence of the high-voltage switchgear and the probability of the model parameters;

[0029] Resample the model parameters based on the probability of the model parameters to obtain new parameters of the model;

[0030] The Markov chain Monte Carlo method based on the Metropolis Hastings kernel is used to adjust the new parameters of the model and obtain a trained switchgear defect prediction model.

[0031] Furthermore, the method of estimating the state sequence of the high-voltage switchgear and the probability of the model parameters using a particle filter algorithm based on the data set includes:

[0032] 1) Randomly initialize N groups of parameters θ of the defect prediction model 1 ,θ 2 ,…,θ N ,θ i =(θ f ,θ h ,θ g ,θ π ), θ π is the initial state distribution π θ ,θ g is the parameter of the Gaussian mixture model, θ h Poisson distribution h θ The parameter θ f is the state transition probability matrix;

[0033] 2) Normalize particle weights Resample M particles probabilistically. For each resampled particle, sample the state at time t+1 from the proposed distribution to obtain the state of the new particle.

[0034] 3) Calculate the non-normalized weight of each new particle, and perform weight normalization on the non-normalized weight of each new particle to obtain the normalized particle weight of each particle;

[0035] 4) updating the log-likelihood of the model parameters based on the initial log-likelihood of the model parameters;

[0036] Repeat steps 2) to 4) until one particle is resampled, and use the state of the particle as the estimated result of the state sequence of the high-voltage switchgear, and calculate the probability of the model parameters based on the logarithmic likelihood of the model parameters at this time.

[0037] Furthermore, the resampling of the model parameters based on the probability of the model parameters to obtain new parameters of the model includes:

[0038] Based on the probabilities of the model parameters, the normalized probabilities of the model parameters are calculated;

[0039] The model parameters and state sequences are resampled according to the normalized probability of the model parameters to obtain new model parameters.

[0040] Furthermore, the Markov chain Monte Carlo method based on the Metropolis Hastings kernel is used to adjust new parameters of the model to obtain a trained switch cabinet defect prediction model, including:

[0041] For each state transition of the Markov chain of the defect prediction model, the Metropolis Hastings kernel randomly samples candidate parameters from new parameters of the model according to the proposed distribution;

[0042] Looping through the data set, using a particle filter algorithm to estimate the state sequence of the high-voltage switchgear and the probability of new parameters of the model;

[0043] The candidate parameters are received with the minimum probability among the probabilities of the new parameters of the model, and an estimated state sequence of each candidate parameter is obtained by sampling;

[0044] After traversing each segment of observation data in the data set, the expected value of the model parameter at this time is calculated as the parameter of the trained switch cabinet defect prediction model.

[0045] Furthermore, after obtaining the trained switch cabinet defect prediction model, the method further includes:

[0046] Initializing the defect prediction model using expected values ​​of model parameters;

[0047] Based on the test data set, the defect prediction model is estimated online using a particle filter algorithm, and the particle state expectation is used as the estimated state.

[0048] In addition, the present invention also proposes a high-voltage switch cabinet defect prediction method based on a hidden semi-Markov model, which is used to predict high-voltage switch cabinet defects using the switch cabinet defect prediction model trained by the above method, including:

[0049] Real-time collection of current observation data from various sensors installed on high-voltage switchgear;

[0050] A particle filter algorithm is used to randomly sample a number of particles, and the proposed distribution is used to sample the state of each particle;

[0051] The normalized particle weight of each particle is calculated based on the state of each particle and the observation data at the current moment;

[0052] Resampling is performed according to the normalized particle weight of each particle, and the particle state expectation is calculated as the state of the high-voltage switchgear at the current moment.

[0053] The advantages of the present invention are:

[0054] (1) The present invention uses a hidden semi-Markov model to model a high-voltage switchgear defect prediction model, uses an expected duration random variable to simulate the state maintenance process, and uses a state random variable to simulate the state transition process, and introduces the expected duration of the state into the state variable. Compared with the traditional hidden Markov model, it is more robust to states with longer durations, and thus can efficiently learn the state transition process of the high-voltage switchgear; the model can be learned online without supervision, without the need to pre-label the sensor data, thus saving costs.

[0055] (2) When characterizing sensor data, the sensor’s observation data is collected multiple times as feature vectors to consider the data change process, thereby improving the accuracy of model training.

[0056] (3) By using SMC 2 The algorithm learns the state sequence of the defect prediction model and accurately fits the model parameters online to ensure that the accuracy of the model parameters is only affected by the Monte Carlo error. 2 The algorithm, Squared Sequential Monte Carlo, is an improvement based on Sequential Monte Carlo (SMC).

[0057] (4) Since the hidden semi-Markov model introduces the expected duration of the state into the state variable, the computational complexity increases sharply. By applying the particle filter algorithm in the early stage of the training data sequence to estimate the state sequence of the high-voltage switchgear and the probability of the model parameters, the time complexity can be reduced and the reasoning efficiency of the hidden semi-Markov model can be greatly improved.

[0058] (5) Based on the trained defect prediction model and the application of particle filtering algorithm, efficient and accurate online defect status prediction can be achieved according to the real-time collected sensor data.

[0059] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] Figure 1 It is a flow chart of a training method of a high-voltage switch cabinet defect prediction model proposed in an embodiment of the present invention;

[0061] Figure 2 is a structural diagram of a defect prediction model modeled using a hidden semi-Markov model in an embodiment of the present invention;

[0062] Figure 3 is a block diagram of the training principle of the defect prediction model in an embodiment of the present invention;

[0063] Figure 4 The present invention provides a flowchart of a method for predicting defects in a high-voltage switch cabinet based on a hidden semi-Markov model. DETAILED DESCRIPTION

[0064] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in combination with the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0065] like Figure 1 As shown, the first embodiment of the present invention proposes a training method for a high-voltage switch cabinet defect prediction model, the method comprising:

[0066] S10, obtaining observation data of various sensors installed on the high-voltage switch cabinet, and constructing a data set based on the observation data;

[0067] S20, using a hidden semi-Markov model to model the state transfer process and state retention process of the high-voltage switchgear to obtain a defect prediction model;

[0068] S30. Based on the data set, perform online unsupervised learning on the state sequence of the defect prediction model, and optimize the parameters of the defect prediction model according to the state sequence fitting effect to obtain a trained switch cabinet defect prediction model.

[0069] This embodiment uses a hidden semi-Markov model to model the expected duration of a state. Compared with the traditional hidden Markov model, it is more robust to states with longer durations, and thus can efficiently learn the state transition process of a high-voltage switchgear. It uses an expected duration random variable to simulate the state retention process, and uses a state random variable to simulate the state transition process, and separates the state expected duration and the state random variable to improve the flexibility of the model. The model can be learned online without supervision, without the need to annotate sensor data in advance, and without relying on dense labeled data, which greatly reduces the training cost and facilitates practical applications.

[0070] In one embodiment, in step S10, the various sensors installed on the switch cabinet include a temperature sensor, a partial discharge sensor, a mechanical property sensor, a gas sensor, and a current monitoring device for the opening and closing coils;

[0071] The defect types of the sensor include insulation defects, mechanism defects, abnormal heating defects, secondary equipment abnormal defects and composite defects including at least two defect categories.

[0072] Specifically, this embodiment pre-builds a sensor database including multiple sub-databases, then collects the observation data of the sensor, performs calibration tests on the collected data, and stores the observation data returned by the sensor into multiple sub-databases according to different sensor types. By analyzing the data according to different sensor types, problems such as missing data and inaccurate data sample collection are solved, and the data in each sub-database is easily updated.

[0073] Furthermore, the defect type of the sensor is specifically:

[0074] (1) Insulation defects: The air clearance in the cabinet does not meet the requirements, the cabinet is damp and condensed, the wall bushing and contact box are not equipped with shielding wires, the tip of the conductor causes the local electric field to be too large, and the cable terminal connector is poorly made.

[0075] (2) Mechanism defects: The mechanism is stuck, parts are loose or deformed, the opening and closing coils are burned out, etc.

[0076] (3) Abnormal heating defects: poor contact of the isolating switch blade, poor contact of the circuit breaker contacts, insufficient depth of the trolley push, and untightened bolts of the diversion parts.

[0077] (4) Abnormal defects of secondary equipment: poor contact of auxiliary switch, loose microswitch and failure to switch normally, operating voltage of opening and closing coil does not meet the requirements, rectifier module breakdown, etc.

[0078] It should be understood that a composite defect is a composite defect that includes at least two different types of defects, and the different types of defects include but are not limited to insulation defects, mechanical defects, abnormal heating defects, abnormal secondary equipment defects, etc.

[0079] In one embodiment, the temperature sensor is arranged on the inner wall of the trolley, the moving contact and the contact arm;

[0080] The partial discharge sensors include ultrasonic partial discharge sensors, TEV transient radio wave partial discharge sensors and UHF ultra-high frequency partial discharge sensors;

[0081] The opening and closing coil current monitoring device and the mechanical characteristic sensor are respectively installed on the secondary circuit of the instrument room and the circuit breaker operating shaft.

[0082] Specifically, sensor defects are usually a process, so this embodiment designs sensor data characterization by collecting nearly ten sensor data as feature vectors to consider the data change process. The sensor structure data characterization at each moment is as follows:

[0083] (1) Temperature sensor: A high-sensitivity temperature sensor is fixed on three points (T1, T2, T3) on the inner wall of the trolley. In addition, it is fixed on the moving contact (T4) and the contact arm (T5) by screws to indirectly measure the contact temperature rise.

[0084] (2) Partial discharge sensor: Ultrasonic partial discharge sensor (S1), TEV transient ground wave partial discharge sensor (S2) and UHF ultra-high frequency partial discharge sensor (S3) are used to measure the partial discharge signal in the switch cabinet.

[0085] (3) Mechanical characteristic sensor: The opening and closing coil current monitoring device and the switch mechanical characteristic sensor are installed on the secondary circuit of the instrument room and the circuit breaker operating shaft. The opening and closing coil current (A) is collected from the opening and closing coil current monitoring device, and the opening and closing speed (v) and opening and closing stroke (s) are collected from the switch mechanical characteristic sensor.

[0086] (4) Gas sensor: When insulation damage is caused to the insulating parts in the high-voltage switch cabinet due to local discharge and abnormal heating, the insulating material will degrade and decompose due to high temperature. The gas sensor unit is used to detect the gas content (V) in real time.

[0087] The observation data collected by the above sensors include: the mechanical characteristic sensor monitors the state of the switch components in the intelligent high-voltage switch cabinet in real time, captures the effective waveform of the opening and closing from the opening and closing current detection device, calculates the opening and closing time, and collects the opening and closing speed and stroke from the switch mechanical characteristic sensor. Finally, the sensor data state is recorded and stored in the corresponding mechanical characteristic sensor database, including the fields of measuring the switch characteristic time, calculating the opening and closing speed, measuring the opening / closing stroke, and the opening / closing speed.

[0088] In one embodiment, the definition is as follows Figure 2 The hidden semi-Markov model modeling shown includes defining the number of categories of high-voltage switch cabinet states and the state transfer matrix, defining the probability mass function of each state duration, and using the current high-voltage switch cabinet state and the sensor data at previous times as input to define the sensor data observation probability distribution, wherein the defined high-voltage switch cabinet state includes a normal state and various defect states. That is, the above step S20 includes the following subdivision steps:

[0089] S21. For time t, assume the state of the high-voltage switchgear is s t ∈S, state s t The expected duration is The sensor observation data is e t , S is the state set of high-voltage switchgear, is a set of positive integers;

[0090] The indicator function δ is defined as follows:

[0091] δ(x,y)=1{x=y}

[0092] S22, the state transfer process of modeling high-voltage switchgear is expressed as:

[0093]

[0094] In the formula, δ is the indicator function, δ(s t+1 ,s t )=1{s t+1 =s t}; f θ (s t+1 |s t ) means when d t = 0, the defect prediction model transfers to state s at time t+1 t+1 The probability distribution of a state transition probability matrix describe, represents the set of real numbers;

[0095] S23, the state maintenance process of modeling high-voltage switchgear is expressed as:

[0096]

[0097] In the formula, δ is the indicator function, δ(d t+1 ,d t -1)=1{d t+1 =d t -1};d t+1 |s t+1 Indicates that the defect prediction model is in state s t+1 The expected duration under the Poisson distribution h θ ,h θ Parameters Indicates the expected duration of each state;

[0098] S24, Observation data t From the current state s t Decision: e t ~g θ (e t |s t ,e t-k:t-1 ), g θ Denote the parameter as θ g Gaussian mixture model; t Indicates the current state of the high-voltage switchgear; e t-k:t-1 represents the observed data of the previous k moments; e t |s t ,e t-k:t-1 Indicates that given s t and e t-k:t-1 The observed data at the current moment under the conditions; ~ obeys the probability distribution.

[0099] Then the initial state distribution of the constructed defect prediction model is recorded as π θ All parameters are recorded as θ = (θ f ,θ h ,θ g ,θ π ), θ π is the initial state distribution π θ .

[0100] Then randomly initialize N hidden semi-Markov models. The specific process is as follows:

[0101] (1) Randomly initialize N sets of parameters θ 1 ,θ 2 ,…,θ N Construct a hidden semi-Markov model: For each hidden semi-Markov model, M particles are randomly initialized, and the initial state distribution is recorded as The initial duration is recorded as

[0102] (2) Choose an appropriate proposal distribution q(s) t+1 |s t ,e t+1 ), calculate the non-normalized weight of each particle:

[0103]

[0104] Normalize particle weights:

[0105]

[0106] In the formula, is the non-normalized weight of the mth particle at the initial moment; For a given Under the condition, the probability that the observed data at the initial moment is e1; The initial state is probability; is the probability of the proposed distribution; is the normalized weight of the mth particle at the initial moment; is the non-normalized weight of the ith particle at the initial moment; s t is the state at time t; s t+1 is the state at time t+1; e t+1 is the observation data at time t+1;

[0107] (3) Calculate the initial log-likelihood of the parameters:

[0108]

[0109] In the formula, is the initial log-likelihood of the model parameters, and log is the logarithmic function.

[0110] In one embodiment, if Figure 3 As shown, the step S30: based on the data set, online unsupervised learning of the state sequence of the defect prediction model, and optimizing the parameters of the defect prediction model according to the state sequence fitting effect, to obtain a trained switch cabinet defect prediction model, includes the following steps:

[0111] S31, based on the data set, using a particle filter algorithm to estimate the state sequence of the high-voltage switchgear and the probability of the model parameters;

[0112] S32, resampling the model parameters based on the probability of the model parameters to obtain new parameters of the model;

[0113] S33. Use the Markov chain Monte Carlo method based on the Metropolis Hastings kernel to adjust the new parameters of the model and obtain a trained switch cabinet defect prediction model.

[0114] It should be noted that, in this embodiment, by using SMC 2 The algorithm learns the state sequence of the hidden semi-Markov model without relying on dense labeled data, and accurately fits the model parameters in an online manner, ensuring that the accuracy of the model parameters is only affected by the Monte Carlo error.

[0115] Since the hidden semi-Markov model introduces the expected duration of the state into the state variable, the computational complexity increases sharply. By applying the particle filter algorithm to estimate the state sequence of the high-voltage switchgear and the probability of the model parameters in the early stage of the training data sequence, the time complexity can be reduced and the reasoning efficiency of the hidden semi-Markov model can be greatly improved. For example, the computational complexity of the traditional Markov model is Where K represents the number of states and T represents the length of the sensor data sequence. However, since the hidden semi-Markov model introduces the expected duration of the state into the state variable, the computational complexity increases to Where D represents the longest duration of the state. In practical applications, D is much larger than K, and may even be positive infinity. The particle filter algorithm can reduce the time complexity to Where N represents the number of particles, which is usually T / 2.

[0116] In one embodiment, the step S31: estimating the state sequence of the high-voltage switchgear and the probability of the model parameters using a particle filter algorithm based on the data set, specifically includes the following subdivision steps:

[0117] 1) Randomly initialize N groups of parameters θ of the defect prediction model 1 ,θ 2 ,…,θ N ,θ i =(θ f ,θ h ,θ g ,θ π ), θ π is the initial state distribution π θ ,θ g is the parameter of the Gaussian mixture model, θ h Poisson distribution h θ The parameter θ f is the state transition probability matrix;

[0118] 2) Normalize particle weights Resample M particles probabilistically. For each resampled particle, sample the state at time t+1 from the proposed distribution to obtain the state of the new particle.

[0119] It should be noted that is the normalized weight of the mth particle, is the weight of all particles, an array.

[0120] Specifically, the normalized particle weight Resample M particles for probability and record their states as:

[0121]

[0122] For each resampled particle, sample the state at time t+1 from the proposal distribution:

[0123]

[0124] The new particle state is expressed as:

[0125]

[0126] In the formula, is the state sequence of the mth particle at the previous t time; is the state sequence of the mth particle at time t+1 before; is the state of the mth particle at time t+1; e 1:t+1 is the observation data sequence before time t+1.

[0127] 3) Calculate the non-normalized weight of each new particle, and perform weight normalization on the non-normalized weight of each new particle to obtain the normalized particle weight of each particle;

[0128] Specifically, the non-normalized weight of each new particle is calculated as:

[0129]

[0130] Normalize the non-normalized weights of each particle:

[0131]

[0132] In the formula, is the non-normalized weight of the mth particle at time t+1; For a given Under this condition, the observed data at time t+1 is e t+1 The probability of for arrive The state transition probability of is the probability of the proposed distribution.

[0133] 4) updating the log-likelihood of the model parameters based on the initial log-likelihood of the model parameters;

[0134] Specifically, the log-likelihood of the updated model parameters is:

[0135]

[0136] In the formula, is the log-likelihood of the updated model parameters; is the initial log-likelihood of the parameters; is the non-normalized weight of the ith particle at time t+1.

[0137] 5) Repeat steps 2) to 4) until one particle is resampled, and use the state of the particle as the estimated result of the state sequence of the high-voltage switchgear, and calculate the probability of the model parameters based on the logarithmic likelihood of the model parameters at this time.

[0138] In this embodiment, when the execution is repeated T0 times, the normalized particle weight is The probability of sampling a particle is 1, and the state of the particle is used as the estimation result of the particle filter algorithm for the prediction state of the defect prediction model. At the same time, the parameter probability is calculated according to the logarithmic likelihood of the parameter, which is used to evaluate the parameter quality in the subsequent steps. The parameter probability formula is expressed as:

[0139]

[0140] In the formula, represents parameter probability; represents the logarithmic likelihood of the parameter; exp represents the exponential function with base e.

[0141] It should be noted that this embodiment resamples the particle state and estimates the new particle weight through the particle filter algorithm, so that the particle state distribution converges to the real distribution, and realizes the state estimation of the hidden semi-Markov model based on the observed data. In addition, this step updates the parameter logarithmic likelihood, which facilitates the training and tuning of the hidden semi-Markov model.

[0142] In one embodiment, the step S32: resampling the model parameters based on the probability of the model parameters to obtain new parameters of the model includes the following steps:

[0143] S321. Calculate the normalized probability of the model parameters based on the probability of the model parameters;

[0144] S322. Resample the parameters and state sequence of the model according to the normalized probability of the model parameters to obtain new parameters of the model.

[0145] Specifically, this embodiment calculates the normalized probability of the parameter:

[0146]

[0147] Normalized parameter probability is the probability resampling N groups of parameters, recorded as:

[0148] θ n ,n=1,2,…,N

[0149] In the formula, is the normalized weight of the nth particle at the tth time; is θ n The parameter probability of is θ i The parameter probability.

[0150] In this embodiment, the parameters and state sequences are resampled according to the normalized probability of the parameters, and then new parameters are obtained by using Metropolis Hastings sampling, and the training data set is traversed in a loop. Specifically, step S33: using the Markov chain Monte Carlo method based on the Metropolis Hastings kernel to adjust the new parameters of the model, and obtaining a trained switch cabinet defect prediction model includes the following steps:

[0151] S331, for each state transition of the Markov chain of the defect prediction model, the MetropolisHastings kernel randomly samples candidate parameters from new parameters of the model according to the proposed distribution;

[0152] Specifically, a Markov chain Monte Carlo method based on the Metropolis Hastings kernel is used to sample new parameters. For each state transition of the Markov chain, the Metropolis Hastings kernel first proposes a distribution q′(θ * |θ) randomly samples candidate parameters θ * .

[0153] S332, looping through the data set, and using a particle filter algorithm to estimate the state sequence of the high-voltage switchgear and the probability of new parameters of the model;

[0154] S333, receiving the candidate parameters with the minimum probability among the probabilities of the new parameters of the model, and sampling to obtain an estimated state sequence of each candidate parameter;

[0155] Specifically, the particle filter algorithm mentioned above is used to estimate With probability min(1,a(θ * ,θ)) accept θ * , otherwise keep the original parameter θ unchanged, where:

[0156]

[0157] In the formula, is θ * The parameter probability of p θ (e 1:t) is the parameter probability of θ; q′(·|·) is the proposed distribution.

[0158] S334. After traversing each segment of observation data in the data set, the expected value of the model parameter at this time is calculated as the parameter of the trained switch cabinet defect prediction model.

[0159] Specifically, the particle filter algorithm is used to obtain each new parameter θ obtained by Markov chain Monte Carlo sampling. * Estimated state sequence:

[0160]

[0161] In the formula, is the state sequence of the nth particle at the previous t time points.

[0162] Repeat the above steps S332 to S334 until the observation sequence e 1:T The expected values ​​of the model parameters at this time are calculated as the parameters of the trained switch cabinet defect prediction model.

[0163] Furthermore, the constructed data set is divided into a training data set and a test data set according to the ratio. For each observation sequence e in the training data set 1:T Using the method described in step S332 to step S334, several groups of parameters are obtained, and all parameters are recorded as:

[0164] θ n ,n=1,2,…,N.

[0165] The corresponding probability is recorded as:

[0166]

[0167] Compute the normalized probabilities of the parameters:

[0168]

[0169] Compute parameter expectations based on normalized probabilities:

[0170]

[0171] In one embodiment, after obtaining the trained switch cabinet defect prediction model, the method further includes the following steps:

[0172] Initializing the defect prediction model using expected values ​​of model parameters;

[0173] Based on the test data set, the defect prediction model is estimated online using a particle filter algorithm, and the particle state expectation is used as the estimated state.

[0174] It should be noted that after training the model, the model needs to be tested. The parameter expectation is used as the parameter to initialize the hidden semi-Markov model, and the particle filter algorithm is used to estimate the state of the hidden semi-Markov model online, and the particle state expectation is used as the estimated state:

[0175]

[0176] In the formula, is the normalized probability of the nth particle; s m is the state distribution of the nth particle.

[0177] This embodiment uses a hidden semi-Markov model to model the state retention and transfer process of high-voltage switchgear, which can achieve efficient and accurate model parameter learning without expert annotation. At the same time, the particle filter algorithm used in the model prediction process ensures the real-time and accuracy of the prediction results. Compared with the traditional high-voltage switchgear defect prediction method, the accuracy rate is improved by 5.3%.

[0178] In addition, if Figure 4 As shown, the second embodiment of the present invention proposes a high-voltage switch cabinet defect prediction method based on a hidden semi-Markov model, which is used to predict high-voltage switch cabinet defects using the switch cabinet defect prediction model trained by the first embodiment, including the following steps:

[0179] S1. Real-time collection of observation data of various sensors installed on the high-voltage switch cabinet at the current moment;

[0180] S2, randomly sample a number of particles using the particle filter algorithm, and use the proposed distribution to sample the state of each particle;

[0181] S3, calculating the normalized particle weight of each particle based on the state of each particle and the observation data at the current moment;

[0182] S4. Resample according to the normalized particle weight of each particle, and calculate the particle state expectation as the state of the high-voltage switchgear at the current moment.

[0183] This embodiment is based on the trained defect prediction model and applies the particle filtering algorithm. It can achieve efficient and accurate online defect status prediction according to the sensor data collected in real time. By using the particle filtering algorithm to estimate the state of the hidden semi-Markov model, the inference delay of the hidden semi-Markov model is greatly reduced, thereby improving the real-time performance of the system.

[0184] It should be noted that other embodiments or implementation methods of the defect prediction model used in the high-voltage switchgear defect prediction method based on the hidden semi-Markov model of the present invention can refer to the above-mentioned method embodiment 1, which will not be repeated here.

[0185] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0186] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0187] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

Claims

1. A training method for a high-voltage switchgear defect prediction model, characterized in that: The method comprises: Obtaining observation data of various sensors installed on the high-voltage switchgear, and constructing a data set based on the observation data; The hidden semi-Markov model is used to model the state transfer process and state retention process of the high-voltage switchgear to obtain a defect prediction model; Based on the data set, the state sequence of the defect prediction model is learned online in an unsupervised manner, and the parameters of the defect prediction model are optimized according to the state sequence fitting effect to obtain a trained switch cabinet defect prediction model.

2. The training method of the high-voltage switchgear defect prediction model according to claim 1, characterized in that: The various sensors installed on the switch cabinet include temperature sensors, partial discharge sensors, mechanical property sensors, gas sensors and opening and closing coil current monitoring devices; The defect types of the sensor include insulation defects, mechanism defects, abnormal heating defects, secondary equipment abnormal defects and composite defects including at least two defect categories.

3. The training method for the high-voltage switchgear defect prediction model according to claim 1, characterized in that: The temperature sensor is arranged on the inner wall of the trolley, the moving contact and the contact arm; The partial discharge sensors include ultrasonic partial discharge sensors, TEV transient radio wave partial discharge sensors and UHF ultra-high frequency partial discharge sensors; The opening and closing coil current monitoring device and the mechanical characteristic sensor are respectively installed on the secondary circuit of the instrument room and the circuit breaker operating shaft.

4. The training method for the high-voltage switchgear defect prediction model according to claim 1, characterized in that: The method of using a hidden semi-Markov model to model the state transfer process and state retention process of a high-voltage switch cabinet to obtain a defect prediction model includes: For time t, let the state of high-voltage switchgear be s t ∈S, state s t The expected duration is The sensor observation data is e t , S is the state set of high-voltage switchgear, is a set of positive integers; The state transition process of modeling high-voltage switchgear is expressed as: In the formula, δ is the indicator function, δ(s t+1 ,s t )=1{s t+1 =s t }; f θ (s t+1 |s t ) means when d t = 0, the defect prediction model transfers to state s at time t+1 t+1 The probability distribution of the state transition probability matrix θ f describe; The state maintenance process of modeling high-voltage switchgear is expressed as: In the formula, δ is the indicator function, δ(d t+1 ,d t -1)=1{d t+1 =d t -1};d t+1 |s t+1 Indicates that the defect prediction model is in state s t+1 The expected duration under the Poisson distribution h θ ,h θ The parameter θ h Indicates the expected duration of each state; Observation data t From the current state s t Decision: e t ~g θ (e t |s t ,e t-k:t-1 ), g θ Denote the parameter as θ g Gaussian mixture model; t Indicates the current state of the high-voltage switchgear; e t-k:t-1 represents the observed data of the previous k moments; e t |s t ,e t-k:t-1 Indicates that given s t and e t-k:t-1 The observed data at the current moment under the conditions; ~ obeys the probability distribution.

5. The training method of the high-voltage switchgear defect prediction model according to claim 1, characterized in that: The state sequence of the defect prediction model is learned online and unsupervised based on the data set, and the parameters of the defect prediction model are optimized according to the state sequence fitting effect to obtain a trained switch cabinet defect prediction model, including: Based on the data set, a particle filter algorithm is used to estimate the state sequence of the high-voltage switchgear and the probability of the model parameters; Resample the model parameters based on the probability of the model parameters to obtain new parameters of the model; The Markov chain Monte Carlo method based on the Metropolis Hastings kernel is used to adjust the new parameters of the model and obtain a trained switchgear defect prediction model.

6. The training method of the high-voltage switch cabinet defect prediction model according to claim 5, characterized in that: The method of estimating the state sequence and model parameter probability of the high-voltage switch cabinet based on the data set using a particle filter algorithm includes: 1) Randomly initialize N groups of parameters θ of the defect prediction model 1 ,θ 2 ,…,θ N ,θ i =(θ f ,θ h ,θ g ,θ π ), θ π is the initial state distribution π θ ,θ g is the parameter of the Gaussian mixture model, θ h Poisson distribution h θ The parameter θ f is the state transition probability matrix; 2) Normalize particle weights Resample M particles probabilistically. For each resampled particle, sample the state at time t+1 from the proposed distribution to obtain the state of the new particle. 3) Calculate the non-normalized weight of each new particle, and perform weight normalization on the non-normalized weight of each new particle to obtain the normalized particle weight of each particle; 4) updating the log-likelihood of the model parameters based on the initial log-likelihood of the model parameters; Repeat steps 2) to 4) until one particle is resampled, and use the state of the particle as the estimated result of the state sequence of the high-voltage switchgear, and calculate the probability of the model parameters based on the logarithmic likelihood of the model parameters at this time.

7. The training method of the high-voltage switch cabinet defect prediction model according to claim 6, characterized in that: The model parameters are resampled based on the probability of the model parameters to obtain new parameters of the model, including: Based on the probabilities of the model parameters, the normalized probabilities of the model parameters are calculated; The model parameters and state sequences are resampled according to the normalized probability of the model parameters to obtain new model parameters.

8. The method for training a high-voltage switch cabinet defect prediction model according to claim 6, characterized in that: The Markov chain Monte Carlo method based on the Metropolis Hastings kernel is used to adjust new parameters of the model to obtain a trained switch cabinet defect prediction model, including: For each state transition of the Markov chain of the defect prediction model, the Metropolis Hastings kernel randomly samples candidate parameters from new parameters of the model according to the proposed distribution; Looping through the data set, using a particle filter algorithm to estimate the state sequence of the high-voltage switchgear and the probability of new parameters of the model; The candidate parameters are received with the minimum probability among the probabilities of the new parameters of the model, and an estimated state sequence of each candidate parameter is obtained by sampling; After traversing each segment of observation data in the data set, the expected value of the model parameter at this time is calculated as the parameter of the trained switch cabinet defect prediction model.

9. The training method of the high-voltage switch cabinet defect prediction model according to claim 8, characterized in that: After obtaining the trained switch cabinet defect prediction model, the method further includes: Initializing the defect prediction model using expected values ​​of model parameters; Based on the test data set, the defect prediction model is estimated online using a particle filter algorithm, and the particle state expectation is used as the estimated state.

10. A method for predicting defects in high-voltage switchgear based on a hidden semi-Markov model, characterized in that: The method for predicting defects of a high-voltage switchgear using a switchgear defect prediction model trained by the method according to any one of claims 1 to 9 comprises: Real-time collection of current observation data from various sensors installed on high-voltage switchgear; A particle filter algorithm is used to randomly sample a number of particles, and the proposed distribution is used to sample the state of each particle; The normalized particle weight of each particle is calculated based on the state of each particle and the observation data at the current moment; Resampling is performed according to the normalized particle weight of each particle, and the particle state expectation is calculated as the state of the high-voltage switchgear at the current moment.

Citation Information

Patent Citations

  • Power equipment fault prediction method based on Weibull distribution and hidden semi-Markov model

    CN108763654A

  • High-voltage switch cabinet state prediction method based on digital model

    CN114091322A

  • Method, system and equipment applied to defect prediction of high-voltage switch cabinet

    CN117094705A

  • Training machine learning models based on partial datasets for defect location identification

    US20240069450A1

  • Virtual machine hybrid standby dynamic reliability assessment method based on mode transfer

    WO2020237729A1

Cited By

  • Ultrasonic-based partial discharge identification method and device

    CN118980897A

  • Fault risk assessment method and device for disconnecting switch, equipment and storage medium

    CN119669973A

  • Method and device for evaluating fault risk of isolator, equipment and storage medium

    CN119669973B

  • Cable accessory intelligent maintenance strategy optimization method based on reinforcement learning

    CN122021271A

  • A cable accessory intelligent maintenance strategy optimization method based on reinforcement learning

    CN122021271B