A false data injection power grid fault diagnosis method based on AISNPS

Through the power grid fault diagnosis method based on AISNPS, the problems of false data injection and remote signal tampering are solved. The immune mechanism of the artificial immune system is used to repair the information, achieving effective diagnosis of power grid faults and adapting to multiple uncertainties.

CN117805550BActive Publication Date: 2024-08-27XIHUA UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311724703.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-14
Publication Date
2024-08-27
Estimated Expiration
2043-12-14

AI Technical Summary

Technical Problem

The existing technology cannot effectively diagnose the situation of false data injection when the power grid fails, especially the situation where the remote signal is tampered and is not considered.

Method used

Using a method based on artificial immune pulse neural membrane system (AISNPS), by detecting components in the power outage area, repairing telemetry and telesignal information, building an AISNPS fault diagnosis model, simulating the immune mechanism of the biological immune system, and realizing diagnosis of power grid faults .

Benefits of technology

This method can not only identify situations where telemetry has been tampered with, but can also perform fault diagnosis when multiple protection device/circuit breaker action information is lost or distorted. It can also supplement diagnostic knowledge through continuous learning, significantly improving the performance of false data injection attacks. Power grid fault diagnosis performance under conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117805550B
    Figure CN117805550B
Patent Text Reader

Abstract

The present invention discloses a false data injection power grid fault diagnosis method based on AISNPS. The method not only takes into account the situation that the telemetry and telesignaling quantities are tampered with, but also takes into account the situation that the action information of multiple protection devices / circuit breakers is lost, the information is distorted or malfunctions. In addition, in the case of lack of diagnostic knowledge, the diagnostic knowledge can be supplemented by continuous learning to achieve fault diagnosis. The method has good diagnostic performance in power grid fault diagnosis under the condition of false data injection attack, and can better adapt to fault diagnosis in the presence of multiple uncertainties.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of power grid fault diagnosis, and in particular relates to a false data injection power grid fault diagnosis method based on AISNPS (Artificial Immune Spiking Neural P System). Background Art

[0002] With the use of communication networks, the risk of cyber-physical systems being attacked has increased, and there have been more and more incidents of cyber attacks on power grids. The consequences of cyber-physical systems being attacked have a serious impact on economic security and even pose a threat to human life. Therefore, there is an urgent need to improve existing methods or explore new methods to solve the problem of power grid fault diagnosis under false data injection.

[0003] In the prior art, a fault diagnosis method based on a memory pulse neural membrane system is proposed to perform power grid fault diagnosis. However, this method can only identify false faults caused by tampering of the telemetered quantity, and does not take into account the situation where the telemetered quantity is tampered. Summary of the invention

[0004] In view of the above-mentioned deficiencies in the prior art, the false data injection into power grid fault diagnosis method based on AISNPS provided by the present invention solves the fault diagnosis problem of the prior art that does not consider the diagnosis of false data injection into the power grid.

[0005] In order to achieve the above-mentioned invention object, the technical solution adopted by the present invention is: a false data injection power grid fault diagnosis method based on AISNPS, comprising the following steps:

[0006] S1. Detecting a power outage area when a power grid fault occurs, and determining components in the power outage area as suspected faulty components;

[0007] S2. Repair the telemetry information and telesignal information of the suspected faulty component respectively to obtain the repaired telemetry characteristics and telesignal characteristics;

[0008] S3, using the restored telemetric and telesignal characteristics as antigens presented by the artificial immune pulse neural membrane system AISNPS;

[0009] S4. Based on the presented antigens, an AISNPS fault diagnosis model is established, and the AISNPS fault diagnosis model is used to determine the faulty components in the power outage area to achieve power grid fault diagnosis.

[0010] The beneficial effects of the present invention are:

[0011] (1) This paper proposes an artificial immune pulse neural membrane system for solving the problem of power grid fault diagnosis under attack. Based on the biological immune characteristics, the corresponding relationship between the biological immune system and the relevant concepts involved in the power grid fault diagnosis problem is established; on this basis, the immune mechanisms of the human immune system such as self-tolerance, clonal selection, memory cell acquisition and antibody concentration regulation are simulated to construct a false data injection fault diagnosis method based on the artificial immune system. This system has stronger adaptability than the classic pulse neural membrane system.

[0012] (2) The method of the present invention not only takes into account the situation where the telemetry and telesignal quantities are tampered with, but also takes into account the situation where the action information of multiple protection devices / circuit breakers is lost, distorted or malfunctions. In addition, in the case of a lack of diagnostic knowledge, the diagnostic knowledge can be supplemented through continuous learning to achieve fault diagnosis. Experimental results show that the method of the present invention has good diagnostic performance in power grid fault diagnosis when taking into account false data injection attacks, and can better adapt to fault diagnosis in situations with multiple uncertainties. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 This is a flow chart of the false data injection into power grid fault diagnosis method based on AISNPS provided by the present invention.

[0014] Figure 2 This is a diagram of the immune memory neuron model provided by the present invention and its simplified diagram.

[0015] Figure 3 This is a diagram of the antigen / antibody neuron model provided by the present invention and its simplified diagram.

[0016] Figure 4 This is a diagram of the fused neuron model and its schematic diagram provided by the present invention.

[0017] Figure 5 This is a schematic diagram of the monosynaptic connection mode provided by the present invention.

[0018] Figure 6 This is a schematic diagram of the dual synaptic connection mode provided by the present invention.

[0019] Figure 7 The invention provides the IEEE39 standard bus system relay protection configuration and partition diagram.

[0020] Figure 8 The present invention provides a fault diagnosis model diagram based on AISNPS. DETAILED DESCRIPTION

[0021] The specific implementation modes of the present invention are described below so that those skilled in the art can understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.

[0022] Embodiment 1:

[0023] The embodiment of the present invention provides a false data injection power grid fault diagnosis method based on AISNPS, such as Figure 1 As shown, the following steps are included:

[0024] S1. Detecting a power outage area when a power grid fault occurs, and determining components in the power outage area as suspected faulty components;

[0025] S2. Repair the telemetry information and telesignal information of the suspected faulty component respectively to obtain the repaired telemetry characteristics and telesignal characteristics;

[0026] S3, using the restored telemetric and telesignal characteristics as antigens presented by the artificial immune pulse neural membrane system AISNPS;

[0027] S4. Based on the presented antigens, an AISNPS fault diagnosis model is established, and the AISNPS fault diagnosis model is used to determine the faulty components in the power outage area to achieve power grid fault diagnosis.

[0028] In step S1 of the embodiment of the present invention, the suspected faulty components are locked by detecting the power outage area; specifically, when the fault just occurs, the power outage area is found by using the line connection analysis method, and the components in the power outage area are initially identified as suspected faulty components, pending subsequent detection.

[0029] In step S2 of the embodiment of the present invention, redundant data is deleted by repairing the telemetry information. In this embodiment, a false telemetry data repair method of density peak clustering is proposed. The main idea is that the points around the cluster center should be far more than the points around other points of the same type. At the same time, the distance between the cluster centers should be far enough.

[0030] Based on this, in step S2 of the embodiment of the present invention, the method for repairing the telemetry information is specifically as follows:

[0031] SA21. For suspected faulty components, extract the sequence voltage components from the three cycles before the fault occurs to the end of the fault in the protection transformer and the measurement transformer respectively, and construct a real-time fault voltage telemetry matrix;

[0032] Among them, each sequence voltage component includes positive sequence, negative sequence and zero sequence voltage components;

[0033] SA22. Calculate the Euclidean distance d between any two points in the real-time fault voltage telemetry matrix ij , and sort them in descending order;

[0034] SA23. According to the sorting results, the first 1%-2% value of the real-time fault voltage telemetry matrix is ​​taken as the stage distance d. c The value of

[0035] SA24, according to d ij and d c , calculate the sample point x in the real-time fault voltage telemetry matrix i The local density ρ i ;

[0036] Among them, the local density ρ i The calculation formula is:

[0037]

[0038] Where, d c represents the cluster radius, When the sample point x i With x j The Euclidean distance is greater than the cutoff distance d c Sample point x i The density remains unchanged and is smaller than the cluster radius d c Sample point x i The density of x is added by 1, and the sample point x is accumulated. i True density of

[0039] SA25, according to the local density ρ of different sample points i , calculate the sample point x i The distance δ i ;

[0040] Among them, when the sample point x i The local density is less than the sample point x j When the local density of x i The sample point distance is:

[0041] δ i =min(d ij )(x i ,x j ∈G,(j≠i)∪(ρ j >ρ i ))

[0042] When the sample point x i When the local density is the maximum, x i The sample point distance is:

[0043] δ j =max(d ij )(x i ,x j ∈G,j≠i)

[0044] SA26, according to the sample point x i The distance δ i and the local density ρ i , calculate the cluster center weight γ i , and select the cluster center c based on it i ;

[0045] Among them, the cluster center weight γ i The calculation formula is: i =δ i ×ρ i

[0046] Specifically, the cluster center c i By γ i The size of γ is determined. i Arrange in descending order, and take the sample points represented by the first K values ​​as the cluster centers;

[0047] SA27, according to the local density ρ of the sample point i and distance δ i , determine the outlier point a i ;

[0048] Specifically, a i Determined by the local density and the distance between sample points, points with small local density and relatively large distance are called outliers.

[0049] SA28, extract outlier point a i The sampling time point corresponding to the real-time fault data and the cluster center c corresponding to the sampling time point are used i Replace the false data in the real-time fault data and complete the repair of telemetry information.

[0050] In step S2 of the embodiment of the present invention, in order to eliminate and correct the data under attack in the telesignaling data, a method for correcting false telesignaling information based on a dynamic causal network reasoning chain is proposed: the redundant information of the target power grid telesignaling quantity is eliminated by using rough set theory, and the key telesignaling quantity obtained is used to construct the reasoning chain structure of the suspected faulty component; specifically, the method for repairing the telesignaling quantity information is as follows:

[0051] SB21, construct telemetering information matrix Y;

[0052] Among them, the telemetering information matrix Y contains the telemetering information vector Y of the target power grid C And the fault component information vector Y D ;

[0053] Specifically, assuming that there are n1 pieces of historical fault telemetering information, the telemetering information vector of the target power grid is: At this time, the fault condition of the component is expressed by the fault component information vector: where Y k c =[y k1 ,...,y kj ,...y km ] 1×m represents the kth historical telemetering information vector of the target power grid, y kj Indicates the jth telemetering data of the message (if the SCADA system receives the telemetering data, then y kj Take 1; otherwise take 0), n represents the total number of fault telesignaling data; Y k D =[a k1 ,...,a kj ,...a kn ] 1×d represents the fault component information vector of the target power grid when the kth historical telesignal information occurs, a kj Indicates the fault condition of component j when the fault information occurs (if j fails, then a kj Takes 1; otherwise takes 0).

[0054] SB22, telemetering information vector Y C And the fault component information vector Y D Execute the rough set reduction algorithm respectively to obtain the reduced set K RS , and K RS The elements in are determined as key telesignaling quantities;

[0055] SB23. Based on the determined key telesignal quantities, construct the reasoning chain structure of the suspected faulty line and the reasoning chain structure of the suspected faulty busbar;

[0056] Among them, the method of constructing the inference chain structure of the suspected fault line is:

[0057] (1) Based on the protection and circuit breaker action information collected by the dispatch center, from the protection and circuit breaker event set Z, the independent protection event set Z p , Independent circuit breaker event Z b In the example, select the fault line L i Subset Z of related protection and circuit breaker events Li , independent protection event subset Z pLi , Independent circuit breaker event subset Z bLi , and L i The relevant alarm information set is U(L i )={ZLi ,Z pLi ,Z bLi}.

[0058] (2) Take the suspected fault line L i As the chain head, query the L i Related alarm information, if there is L i If the main protection action information is found, the main protection action node is inserted after the line node (that is, the suspected line node points to the main protection action node); otherwise, query the nodes connected to L in sequence. i Near backup protection and far backup protection.

[0059] (3) For the main protection or near backup protection action node in the reasoning chain, if the main protection or near backup protection action event is a protection and circuit breaker event subset Z Li If there are elements in (i.e., there is circuit breaker action information after these protections), a circuit breaker action node is inserted after the main protection action node or the near backup protection action node, and the reasoning branch subchain ends.

[0060] Among them, the method of constructing the inference chain structure of the suspected faulty bus is:

[0061] (1) Based on the protection and circuit breaker action information collected by the dispatch center, from the protection and circuit breaker event set Z, the independent protection event set Z p , Independent circuit breaker event Z b In the selection, select i Subset Z of related protection and circuit breaker events Bi , independent protection event subset Z pBi , Independent circuit breaker event subset Z bBi , and B i The relevant alarm information set is U(B i )={Z Bi ,Z pBi ,Z bBi}.

[0062] (2) Take the suspected fault bus B i As the chain head, query in time sequence with B i Related alarm information, if any B i If the main protection action information is found, the main protection action node is inserted after the bus node (that is, the suspected bus node points to the main protection action node); otherwise, query the main protection action node with B i Is there any B in the relevant alarm information? i Remote backup protection.

[0063] (3) For the main protection action node in the reasoning chain, if the circuit breaker corresponding to the main protection is fully actuated, the circuit breaker action node is inserted after the main protection action node, and the construction of the reasoning chain is completed. If there is circuit breaker tripping information corresponding to the remote backup protection, the circuit breaker action node is inserted after the remote backup protection action node, and the construction of the reasoning branch sub-chain is completed; otherwise, the remote backup protection action node is used as the chain tail, and the construction of the reasoning branch sub-chain is terminated.

[0064] SB24. Based on the constructed reasoning chain structure of the suspected faulty line and the suspected faulty busbar, complete the supplement of the corresponding telesignaling quantity, eliminate and correct the erroneous telesignaling quantity, and complete the repair of the telesignaling quantity information.

[0065] In step S3 of the embodiment of the present invention, the expression of the artificial immune pulse neural membrane system AISNPSΠ is:

[0066] Π=(O,σ1,...,σ n ,δ1,...,δ r ,syn,ψ,in,out)

[0067] Where O = {a} represents the set of nerve impulses a; σ j ,σ i ∈{σ1,...,σ n},σ i =(θ i ,B c ,R i ,C i ) represents the i-th immune memory neuron in AISNPS, σ j =(θ j ,B c ,R j ,C j ) represents the jth antigen neuron in AISNPS, where 1≤i≤p, 1≤j≤q, and p+q=n; δ={δ1,...,δ r} represents the set of r fused neurons in AISNPS, represents the nth fused neuron, 1≤n≤r, and n+r=m, m is the total number of neurons; Represents the directed synaptic connection relationship between neurons. For 1≤i≤m, ψ is the state of the humoral immune environment. The value of ψ is 0 or 1, which means that the humoral immune environment satisfies the stable state or does not satisfy the stable state respectively; in and out represent the input and output neuron sets;

[0068] For immune memory neurons σ i =(θ i ,B c ,Ri ,C i ), the model diagram and schematic diagram are as follows Figure 2 As shown, the parameters are described as follows:

[0069] When the antigen is telemetric, the immune memory neuron activates the telemetric module; θ i is the telemetering pulse value of the immune memory neuron, which is a real number on [-1,1], representing the wavelet transform decomposition eigenvalue of the fault telemetering under the historical fault condition of the target power grid; when the antigen is the telemetering quantity, the immune memory neuron starts the telemetering quantity module; θ i is the remote signal pulse value of the immune cell neuron, which takes the value of {0,1}, indicating the fault alarm information corresponding to the faulty component; B c Mapped to fault element; R i Represents immune memory neuron σ i The rule set of C i The synaptic activation threshold set for immune memory neurons

[0070] For antigen neurons σ j =(θ j ,B c ,R j ,C j ), the model diagram and schematic diagram are as follows Figure 3 As shown, the parameters are described as follows:

[0071] θ j is the pulse value of the telemetry or telesignal of the antigen neuron. When the antigen is the telemetry, it indicates the wavelet transform decomposition eigenvalue of the fault telemetry under the current fault condition of the target power grid, and the value is a real number on [-1,1]. When the antigen is the telesignal, it indicates the real-time fault alarm information of the fault component, and the value is {0,1}; R j Represents antigen neuron σ i The rule set of C j is the set of prominent activation thresholds for antigenic neurons;

[0072] For fusion neurons The model diagram and schematic diagram are as follows Figure 4 As shown, is the pulse value of the fusion neuron, which is an integer in [1,12], indicating the fault state of the target power grid, f n is the apoptosis rule; the fault states of the target power grid are no fault, AG fault, BG fault, CG fault, AB fault, AC fault, BC fault, AB-G fault, BC-G fault, AC-G fault, ABC fault and no fault diagnosis result respectively.

[0073] Rule set R for immune memory neurons iand the rule set R for antigen neurons j , which all include the memory rule r i , learning rules i and apoptosis rules i / j (Same as f n ), where the memory rule r i The form is Its ignition conditions is i The reasoning logic on the above indicates that the neuron fires if and only if the neuron humoral immune environment is stable, the pulse value exists, and the connecting synapse is in an activated state; the learning rule l i The form is Its ignition condition E = {ψ = 1} is σ i The reasoning logic on i The trigger condition is ψ=1, which means that if and only if the learning condition satisfies P cl = 0, a new σ will be generated after the neuron and its synaptic activation threshold is c l With c r The left and right synapses; otherwise, a fusion neuron δ is directly generated; apoptosis rule f i / j Denotes neuron σ i or δ j The apoptosis rule is of the form Its ignition condition E = {ψ = 1} is the reasoning logic on σ or δ, which represents the apoptosis logic of neurons;

[0074] For the prominent activation threshold set of immune memory neurons and antigen neurons, the expression is: Respectively represent the activation thresholds of the left and right synapses of the neuron. For the left synapse, the left synapse is in an activated state if and only if the pulse value transmitted on the synapse is less than the activation threshold (τ l =1); for the right synapse, the right synapse is in an activated state if and only if the pulse value transmitted on the synapse is greater than or equal to the activation threshold (τ r =1), when and only when the synapse is in the activated state, the synapse transmits the pulse value to the next level neuron, otherwise the synapse is in the inhibited state (τ=0).

[0075] In this embodiment, in the artificial immune pulse neural membrane system AISNPS, a correspondence between the biological immune system and the concepts involved in the power grid fault diagnosis problem is established. The application of the artificial immune system principle to construct a power grid fault model involves the definitions of affinity, humoral immune environment, similarity between antibodies, antibody concentration, selection operator, cloning operator, mutation operator, affinity maturation and receptor editing, which are described in detail as follows:

[0076] (1) Affinity:

[0077] Affinity refers to the ability of antibodies to bind to antigens, that is, the degree of match between antibodies produced by immune memory cells and antigen neurons. If the affinity concentration of antibody neurons and antigen neurons in the environment exceeds the threshold, the apoptosis rule is triggered. Let the distance between the antibody and the antigen be d(θ i ,θ j ), using the Euclidean distance calculation formula:

[0078]

[0079] Where: L is θ i With θ j The length of the coding gene; then θ i With θ j The affinity of

[0080]

[0081] Assume that the matching threshold between antibody and antigen is ε, if the affinity f(θ i ,θ j )≥ε, the presented antigen can be recognized by the antibody.

[0082] (2) Liquid immune environment:

[0083] The information entropy of the environment in the artificial immune system is defined as:

[0084]

[0085] Among them, p k (k=1,2,...,|M|) represents the proportion of the humoral immune environment when the immune memory neuron takes the value k, |M| is the number of different pulse values ​​of the fusion neuron in M, and the stability of the humoral immune environment is one of the conditions for the ignition of the neuronal memory rule.

[0086] (3) Information gain of immune memory neurons

[0087] Assume that an immune memory neuron has vt pulse values ​​in a growth environment with L information records. The candidate training pulse value set T of immune memory neurons differentiated after antigen stimulation α , defined as:

[0088]

[0089] Among them, T θ There are vt-1 elements, all of which are candidate pulse values, and the candidate pulse value t is used as the basis for division. Divide into and Two collections.

[0090] The information gain obtained by learning the immune memory neuron in the neuron training environment M is defined as:

[0091]

[0092] Among them, G(M,σ i ) is obtained under the condition of training with candidate pulse value t.

[0093] The information gain rate of the immune memory neuron selected for learning at this time is defined as:

[0094]

[0095] In the formula, for The number of candidate pulse values ​​in M, λ is the symbol set {-, +}, and |M| is the number of different pulse values ​​of the fused neuron in M. This definition is a key step in the artificial immune system learning memory reasoning algorithm to ensure that the artificial immune pulse neural membrane system can achieve self-learning and memory capabilities according to the neuron environment.

[0096] (4) Similarity

[0097] The matching degree between antibodies reflects the similarity between antibodies. Antibodies and The distance between

[0098]

[0099] Where:

[0100]

[0101] Where: b ji , b ki is the i-th coding gene of the j-th and k-th antibodies; l is the length of the antibody coding gene, then the similarity calculation formula is defined as

[0102]

[0103] In the artificial immune system clone selection inference algorithm, it is necessary to calculate the similarity between antibodies and determine the selected population.

[0104] (5) Antibody concentration

[0105] The concentration of antibodies is the proportion of similar antibodies in the population, that is,

[0106]

[0107] Where:

[0108]

[0109] Where: Antibodies The concentration of the antibody The proportion of similar antibodies in the population; N is the population size; η is a pre-set similarity threshold. The probability of each individual being selected is determined by the affinity between the antibody and the antigen and the antibody concentration.

[0110] The proliferation and differentiation process in the learning phase includes selection operator, cloning operator, affinity maturation and receptor editing, which are defined as follows:

[0111] (6) Select operator

[0112] The roulette wheel selection method is used to select mature fault diagnosis antibodies. This method can ensure the diversity of clones and retain more information for generating the optimal solution. The probability of each individual being selected is determined by the affinity between the antibody and the antigen and the antibody concentration, that is:

[0113]

[0114] Where: P i is the probability that the ith individual is expected to be selected; α is the diversity constant adjustment factor, 0.5<α<1. It can be seen from the formula that the higher the individual affinity, the greater the probability of being selected; the greater the individual concentration, the smaller the probability of being selected. This can both motivate individuals with high affinity and suppress individuals with high concentration, thereby ensuring the diversity of the group.

[0115] (7) Clone Operator

[0116] In the process of learning evolution, the cloning operator can keep some of the best individuals and produce more offspring, so that the system can respond to antigens more effectively. The selected individuals are cloned and multiplied, and the cloning formula is as follows:

[0117] N ci =round(β×N)

[0118] Where: N ci is the clone size of the selected i-th individual; β is the reproduction coefficient; N is the population size; round() is the rounding function. The population set obtained after the cloning operation is

[0119] C L ({D1,D2,...,D i ,...,D N})={c1(D1),c1(D2),...,c1(D i ),...,c1(D N )}

[0120] Where: c1(D i )=λ i ×D i ,λ i N ci dimensional unit row vector, is the i-th individual selected. The roulette selection mechanism is used for selection. For a population of size N, in N rotations of the roulette wheel, for P i Individuals with larger values ​​have a greater chance of being selected, and thus more individuals will be cloned during clonal expansion.

[0121] (8) Mutation operator

[0122] After cloning and proliferation, individuals need to undergo mutation. The mutation operation can improve the efficiency of the immune system in recognizing antigens, thus facilitating the production of the best individuals. Here, uniform mutation is used, and the mutation probability is set to p m , for individuals D j Antibodies Do the following:

[0123]

[0124] Where: b ji Antibodies The i-th component of ; For b ji Perform the inversion operation; s is a random number in the range of [0,1]. After the individual completes the mutation operation, it is subjected to self-tolerance detection. If the individual matching the self fails to mutate in this generation, the individual will be eliminated.

[0125] (9) Affinity Maturation

[0126] The result of learning through mutation enables the immune system to better target antigens. In this process, in the competition between offspring individuals and parent individuals with antigens, individuals with higher affinity have better adaptability and are more likely to be copied to the next generation. Recalculate the affinity of the mutated individual. If the affinity of the mutated individual is higher than that of the parent, use this individual to replace the original individual. The specific operation is as follows,

[0127]

[0128] Where: is the antibody of the i-th parent individual in the t-th iteration, For its affinity; is the antibody of the best individual in the i-th clone progeny population in the t-th iteration, is the highest affinity in the offspring population. After the above operation, the N individuals with the highest affinity are added to the memory detector set and the candidate detector set, and the other individuals die.

[0129] (10) Receptor editing

[0130] In biological clonal selection, a small number of immune memory cells will naturally die, and a small proportion of the population will be updated in the secondary response, replacing individuals with lower affinity in the memory detector population with M randomly generated individuals that meet the tolerance requirements, thereby maintaining the diversity of the population.

[0131] In the artificial immune pulse neural membrane system of the embodiment of the present invention, neurons include three categories: immune memory neurons, antigen neurons and fusion neurons. Among them, immune memory neurons and antigen neurons are obtained from the external environment, and fusion neurons are ignited by the immune memory neurons or antigen neurons of the previous level. The following 18 connection modes are defined, and the 18 connection modes are divided into two categories: single synaptic connection and double synaptic connection. Among them, there are 6 single synaptic connection modes and 12 double synaptic connection modes. Immune memory neurons and antigen neurons are connected to other neurons with at most two synapses. If the apoptosis rule is triggered, the synapses and neurons connected to other immune memory neurons and antigen neurons will die, that is, they will be converted to single synaptic connection modes; see the specific forms for details. Figure 5 and Figure 6 .

[0132] Based on the artificial immune impulse neural membrane system and neuron model and their connection mode defined above, if there is no matching result in the artificial immune system negative selection reasoning algorithm, the artificial immune system learning memory reasoning algorithm and the neuron matrix reasoning algorithm are used to model and obtain the diagnosis result. If the diagnosis result is inconsistent with the on-site fault, the artificial immune system clone reasoning algorithm is used to update the diagnosis library.

[0133] Based on this, step S4 in the embodiment of the present invention is specifically as follows:

[0134] S41. Based on the presented antigens, determine whether the neuronal humoral immune environment is stable;

[0135] If yes, proceed to step S42;

[0136] If not, proceed to step S43;

[0137] S42, using the repaired telemetry characteristics and telesignaling characteristics as the input of the artificial immune pulse neural membrane system AISNPS, using the learning memory reasoning algorithm to establish the AISNPS fault diagnosis model, and executing the neuron matrix reasoning algorithm on it, outputting the pulse value of the neuron, and obtaining the diagnosis result of the suspected faulty component based on it, and entering step S44;

[0138] S43, executing the negative selection inference algorithm on the presented antigen, and determining whether a fault matching result of the data to be detected is obtained; if so, outputting the fault matching result and proceeding to step S44; if not, proceeding to step S45;

[0139] S44, evaluating the diagnosis result, and determining whether the diagnosis result is consistent with the actual fault on site, and whether the diagnosis information exists in the current diagnosis information database;

[0140] If yes, the diagnosis ends and the diagnosis result is used as the power grid fault diagnosis result;

[0141] If not, the diagnosis is wrong and the process goes to step S45;

[0142] S45 , executing the clone selection inference algorithm to continuously learn the result data without fault matching results and diagnosis errors, and updating the diagnosis information library.

[0143] In step S42 of this embodiment, in order to enable the artificial immune neural membrane system neural neuron environment to achieve self-learning and memory capabilities, a corresponding artificial immune system learning memory reasoning algorithm is designed. Specifically, the method of establishing an AISNPS fault diagnosis model using the learning memory reasoning algorithm is as follows:

[0144] SA42-1. Set the initial value of the number of neuron training layers to l = 0, and define "self" and initial fault diagnosis antibodies;

[0145] Among them, "self" is a noun for the artificial immune system, which has the same meaning as the self-set, indicating the normal state of the system and is used for detection;

[0146] SA42-2 calculates the information entropy H(M) in the current humoral immunity environment;

[0147] SA42-3. Taking the value of vt pulses of the ith immune memory neuron in the humoral immune environment After sorting, the candidate pulse value set T of the immune memory neuron is obtained. i θ ;

[0148] Among them, determine the selected pulse value set T i θ The formula is:

[0149]

[0150] SA42-4. For the set T i θ Each candidate pulse value t in Division and And calculate the information gain of the corresponding immune memory neurons; where, represents the pulse value of the fused neuron, and The two sets are divided based on the candidate pulse value t;

[0151] Among them, the information gain GR(M,σ i ) is:

[0152]

[0153] SA42-5. Select the maximum information gain and its corresponding candidate pulse value t as the candidate information gain and candidate synaptic activation threshold of the immune neuron respectively;

[0154] SA42-6. Group the immune memory neurons in the fault samples. Each group of three neurons represents the positive sequence, negative sequence and zero sequence information entropy of the fault. Perform binary fission on the immune memory neurons in the order of information gain from large to small. Complete a single training and increase the value of l by 1.

[0155] Among them, the fault sample refers to the processed fault information obtained, which is specifically the telemetry information entropy;

[0156] SA42-7. For the two synapses of immune memory neurons, determine the post-synaptic information record set D t Whether the pulse values ​​of the fused neurons are the same;

[0157] If yes, proceed to step SA42-8;

[0158] If not, the synapse will continue to generate immune memory neurons, so that N = D t , and return to step S42-1;

[0159] SA42-8, the synapse generates pulses with a value of The fused neurons will no longer generate immune memory neurons, increasing the value of l by 1;

[0160] SA42-10. Repeat steps SA42-6 to SA42-8 until all immune memory neurons in the fault sample are generated, the training is completed, the neurons and their synaptic connection relationships are obtained, and the AISNPS fault diagnosis model is built.

[0161] In step S42 of this embodiment, in order to enable the artificial immune pulse neural membrane system to perform parallel reasoning and calculation on fault knowledge and information according to the neuron growth structure, a corresponding neuron matrix reasoning algorithm is designed. Specifically, the method for executing the neuron matrix reasoning algorithm is as follows:

[0162] SB42-1. Set the initial reasoning step g = 0;

[0163] SB42-1. Calculate the current immune memory neuron firing vector F 1 = S g+1 ·ε and

[0164] SB42-3. When the immune memory neuron meets the condition, the immune memory neuron fires, and updates according to the firing vector F 1 and F 2 ;

[0165] SB42-4. When the fusion neuron meets the firing condition, the fusion memory neuron fires and updates according to the firing vector F 1 and F 2 ;

[0166] SB42-5. Let the value of the reasoning step g increase by 1, and judge whether g < l holds; where l is the number of neuron training layers;

[0167] If so, return to step S42;

[0168] If not, output the pulse value of the neuron.

[0169] In this embodiment, the explanations of the vectors, matrices, and operation operators involved in the above neuron matrix reasoning algorithm are as follows:

[0170] (1) S = (s ij ) l×p is an l×p-order immune memory neuron pulse value input matrix, indicating the pulse value distribution of the immune memory neurons in each layer of the neuron connection structure. If the jth immune memory neuron is connected in the ith layer and its pulse value is θ, then s ij = θ; otherwise s ij =;

[0171] (2) θ = (θ1,..., θ p ) T represents the immune memory neuron output pulse value vector, where θ i (1 ≤ i ≤ p) is the pulse value of the ith immune memory neuron, and the value is a real number on [-1, 1];

[0172] (3) represents the output pulse value vector of the fused neuron, where is the pulse value of the jth fused neuron, which is a real number on [1,11];

[0173] (4)ε=(ε1,...,ε l ) T (1≤i≤l) represents the firing threshold vector of immune memory neurons, where ε i (1≤i≤l) is the firing threshold of the i-th input neuron;

[0174] (5) E1 = (e ij ) p×p is a p×p matrix, which represents the directed synaptic connection relationship between immune memory neurons1. If the immune memory neuron σ i to j If there is such a directed synaptic connection relationship, then e ij =1; otherwise e ij =0;

[0175] (6) E2 = (e ij ) p×p is a p×p matrix, which represents the directed synaptic connection relationship between immune memory neurons2. If the immune memory neuron σ i to j If there is such a directed synaptic connection relationship, then e ij =1; otherwise e ij =0;

[0176] (7) is a p×q-order matrix, representing the directed synaptic connection relationship from immune memory neurons to fusion neurons1. If the immune memory neuron σ i To fusion neuron δ i If there is such a directed synaptic connection and the impulse value of the antibody neuron is β, then e ij =β; otherwise e ij =0;

[0177] (8) is a p×q-order matrix, representing the directed synaptic connection relationship from immune memory neurons to fusion neurons2. If the immune memory neuron σ i To fusion neuron δ i If there is such a directed synaptic connection and the impulse value of the antibody neuron is β, then e ij =β; otherwise e ij =0;

[0178] (9)S g+1 ·ε=(a1,...,a p ) T,in

[0179] (10) in

[0180] (11) Where E i is the i-th row vector of E, and ||·|| is the 2-norm operator.

[0181] In step S43 of this embodiment, when the environment is unstable, the artificial immune system negative selection inference algorithm is executed to obtain a matching result. Specifically, the method of executing the negative selection inference algorithm is as follows:

[0182] S43-1, set the initial value of the number of neuron training layers l = 0, and define the "self" and the initial fault diagnosis antibody; wherein, a decimal feature vector set with a length of L is used to represent the self set S and various fault diagnosis antibody sets R1, R2, ..., R n , and regard the self-set S as the diagnostic antibody set R0;

[0183] S43-2, setting the maximum number of cycles, the number of various types of fault diagnosis antibodies and the total number of diagnostic antibodies;

[0184] S43-3, determining whether the maximum number of cycles has been reached or whether the total number of diagnostic antibodies has reached the maximum;

[0185] If yes, stop the loop and go to step S43-8;

[0186] If not, proceed to step S43-4;

[0187] S43-4, random production of diagnostic antibodies r;

[0188] Among them, diagnostic antibodies are generated based on the amount of data received in the past;

[0189] S43-5, determining whether r matches the diagnostic antibody set R0;

[0190] If yes, then discard r and return to step S43-4;

[0191] If not, proceed to step S43-6;

[0192] Among them, the matching rules are: according to the formula Calculate the affinity Aff of diagnostic antibodies in r and R0 j , if there is Aff j >ε 01 , then it matches;

[0193] S43-6, determining whether the number of diagnostic antibodies in the diagnostic antibody set R1 has reached a maximum;

[0194] If not, proceed to step S43-7;

[0195] If yes, proceed to step S43-8;

[0196] Among them, the matching rules are: according to the formula Calculate the affinity Aff of r and each diagnostic antibody in R1 j , if there is Aff j >ε 11 , and any Aff j <ε 12 , then it matches;

[0197] S43-7, determining whether r matches the diagnostic antibody set R1;

[0198] If yes, add r to R1, and add 1 to the number of diagnostic antibodies and the total number of diagnostic antibodies in R1, and return to step S43-3;

[0199] If not, then determine whether r satisfies the requirement of adding to the diagnostic antibody set R2, ..., R n If yes, add it to the corresponding diagnostic antibody set and proceed to step S43-8; if no, discard the antibody r and return to step S43-4;

[0200] S43-8, determining whether the data to be tested corresponding to the presented antigen matches the mature diagnostic antibody R0;

[0201] If yes, it means no fault has occurred;

[0202] If not, it indicates that a fault has occurred, and the process goes to step S43-9;

[0203] Among them, the matching rule is: calculate the affinity Aff between the data to be tested and the diagnostic antibody in mature R0 j , if there is Aff j >ε 01 , then it matches;

[0204] S43-9, determining whether the data to be tested matches the mature diagnostic antibody set R1;

[0205] If yes, it indicates that a fault has occurred, and it is the fault type corresponding to R1;

[0206] If not, proceed to step S43-10;

[0207] S43-10, sequentially determine whether the data to be tested is consistent with the mature diagnostic antibody set R2, ..., R n match;

[0208] If yes, it indicates that a fault has occurred, and it is the fault type corresponding to the matched mature diagnostic antibody set, and the fault matching result of each data to be detected is obtained;

[0209] If not, it indicates a new fault type and is added to the negative selection inference algorithm to form a new mature diagnostic antibody set.

[0210] In step S45 of the embodiment of the present invention, when an antigen invades the body, the clonal selection mechanism can select immune cells in the body that can recognize specific antigens, activate, proliferate and differentiate them, and perform an immune response. Through clonal selection, immune cells that can recognize antigens are retained and divide and proliferate, while immune cells that cannot recognize antigens are not selected and are not amplified. In order to enable the artificial immune pulse neural membrane system to learn the results of no matching results or wrong diagnosis in the fault diagnosis stage in the continuous learning stage, and update the diagnostic antibody set, this embodiment designs a corresponding artificial immune system clonal selection reasoning algorithm. Specifically, the method of executing the clonal selection reasoning algorithm is as follows:

[0211] S45-1. construct a diagnostic antibody set, generate initial antibodies and add them to the diagnostic antibody set;

[0212] S45-2, traverse each antibody in the diagnostic antibody set, calculate its fitness, and assign it to the corresponding antibody;

[0213] S45-3. Construct an empty clone set, calculate the similarity of all antibodies in the real-time fault signature, perform roulette selection according to the prior selection probability, clone the selected antibodies, and add them to the clone set;

[0214] S45-4, traverse each antibody in the clone set, calculate affinity according to the fitness of the antibody, and assign it to the corresponding antibody;

[0215] S45-5, traversing each antibody in the clone set, generating a random number r in the range of [0,1), and if the random number r is greater than a set threshold, performing a receptor editing operation on the corresponding antibody;

[0216] S45-6, adding the antibodies that perform receptor editing operations in the clone collection to the diagnostic antibody collection;

[0217] S45-7. Repeat steps S45-2 to S45-6 until the iteration stop condition is met, and then update the diagnostic information library.

[0218] Embodiment 2:

[0219] The present invention provides a calculation example to verify the power grid fault diagnosis method in Embodiment 1:

[0220] The protection configurations of the sending and receiving ends of the power grid lines in this embodiment are both primary protection, primary backup protection, and secondary backup protection, and the corresponding relay information is LMR, LBR, and LSR, respectively. The busbar is configured as primary protection and secondary backup protection, and the corresponding relay information is BMR and LSR, and the circuit breaker information is CB. It should be noted that the secondary backup protection of all components is provided by the adjacent lines, so the total number of secondary backup protections of the busbar and the line is consistent with the number of circuit breakers.

[0221] like Figure 7 As shown in the figure, the IEEE39 standard node system has a total of 45 lines, 39 buses, and 100 circuit breakers. The telemetering information includes 129 main protection relay information, 90 first-level backup protection relay information, and 100 second-level backup protection relay information. The bus and line main protection relays (BMR1-BMR39, LMR1-LMR100), line first-level backup protection relays (LBR1-LBR100), and all second-level backup protection relays (LSR1-LSR100) are numbered from -339. The circuit breakers CB1-CB100 are numbered from 340 to 439. There are a total of 439 telemetering information (i.e., all relays and circuit breakers) in the locations where false data injection attacks may occur, and a total of 6,000 telemetering information sampling points.

[0222] In order to verify the diagnostic capability of the method of the present invention, eight possible diagnostic scenarios are simulated for various possible fault conditions: (a) no attack and no information loss (Example 1); (b) no attack but information loss (Example 2); (c) single fault under a single telesignaling attack (Example 3); (d) single fault under a single telemetry attack (Example 4); (e) multiple faults under a single telesignaling attack (Example 5); (f) multiple faults under a single telemetry attack (Example 6); (g) multiple faults under attacks on both telemetry and telesignaling (Examples 7-8). Based on this, the constructed AISNPS fault diagnosis model is as follows: Figure 8 The diagnosis results of all examples are shown in Table 1.

[0223] Table 1 Example fault scenario preset and diagnosis results of the method of the present invention

[0224]

[0225]

[0226] As shown in Table 1, Examples 1 and 2 are cases where no false data is injected. Examples 3 to 8 consider the diagnosis under various attack conditions, and all of them have the situation where the protection device / circuit breaker action alarm information is lost or malfunctions. From the diagnosis results of Example 4, it can be seen that in the case of a single fault, when false information is injected into the measuring equipment, the method of the present invention can still effectively diagnose the faulty component and fault type. From the diagnosis results of Examples 5-7, it can be seen that in the case of multiple faults, when the protection device / circuit breaker action information is lost, distorted or malfunctions due to false information injection, faults of the device itself, etc., the method of the present invention can still effectively diagnose the faulty component and fault type. Example 8 simulates the situation where the real-time fault feature has never appeared in the historical fault feature, and the diagnosis method is inconsistent with the actual on-site situation. At this time, the fault feature value and the results of the on-site diagnosis will be added to the historical fault feature, the historical neuron survival environment will change, the neurons will be re-grown, and a new AISNPS will be constructed. The results show that the method of the present invention is not only suitable for the fault diagnosis of single faults and multiple faults, but also can effectively diagnose the cause of the fault.

[0227] Embodiment 3:

[0228] The embodiment of the present invention provides an example of the accuracy test of the power grid fault diagnosis method in embodiment 1;

[0229] This embodiment respectively performs accuracy tests on common fault types and accuracy tests on diagnosis results before and after learning of the artificial immune pulse neural membrane system.

[0230] (1) Accuracy test of common fault types

[0231] The accuracy of 11 common fault types is tested by the method of the present invention. The 11 fault types are: AG fault, BG fault, CG fault, AB fault, AC fault, BC fault, AB-G fault, AC-G fault, BC-G fault, ABC fault and no fault. The results are shown in Table 2, where the total number of fault samples is 63976, the total number of fault samples in the training set is 58000, and the total number of test sets is 5976 (AG fault: 572, BG fault 521, CG fault 541, AB fault: 543, AC fault: 567, BC fault: 541, AB-G fault: 497, AC-G fault: 547, BC-G fault: 556, ABC fault: 546, no fault: 545). It can be seen from Table 2 that the accuracy of the method of the present invention for the 11 common fault types is above 99%. These results show that the model can correctly diagnose 11 common types of faults with a high accuracy.

[0232] Table 2 Common fault type accuracy test

[0233]

[0234] (2) Test of diagnostic accuracy before and after learning

[0235] In order to verify the continuous learning ability of the artificial immune pulse neural membrane system in the present invention in this embodiment. In this embodiment, taking the aforementioned example 8 as an example, the diagnostic antibodies trained and generated in the fault database are read to diagnose the fault. Since the existing diagnostic antibodies fail to identify the fault, the system has an undetermined fault condition and needs to be subjected to humoral immune learning. First, the fault is presented to the learning module for continuous learning, and the learning results are saved in the fault knowledge base. The results of calling the diagnostic module for fault diagnosis before and after learning are shown in Table 3. Before learning, it is difficult to obtain matching results for faults that do not exist in the fault knowledge base. After executing the continuous learning module of the artificial immune pulse neural membrane system, matching results are obtained.

[0236] Table 3. Test of diagnostic accuracy before and after learning

[0237]

[0238] It can be seen from Tables 2 and 3 that the method of the present invention can not only diagnose 11 common fault types based on prior knowledge, but also continuously learn the uncertain fault conditions in combination with the biological immune characteristics, and when the fault occurs again, the diagnostic model can quickly and effectively identify the response.

[0239] Embodiment 4:

[0240] The embodiment of the present invention provides a comparative test example of the power grid fault diagnosis method in embodiment 1;

[0241] (1) Comparative analysis 1: Comparison of diagnostic performance between the method of the present invention and three classical methods

[0242] In order to verify the superiority of the method of the present invention, this embodiment selects three classic methods to diagnose Examples 1-8, including Fuzzy Petri Net (FPN), Artificial Neural Network (ANN) and Support Vector Machine (SVM), and compares the diagnostic performance in 8 possible fault scenarios. The diagnostic comparison results of Examples 1-8 are shown in Table 4.

[0243] Table 4 Diagnostic results of the method of the present invention and three classical methods

[0244]

[0245]

[0246] From the diagnosis results of the examples in Table 4, when performing examples 1-2, except for FPN, the other three methods can achieve correct diagnosis without fault information tampering. In examples 3-8, FPN, ANN and SVM all had misdiagnosis, while the method of the present invention can achieve correct diagnosis. This is because once the telemetry and telesignal quantities in the fault recording system are maliciously tampered with, the diagnostic methods that rely on telemetry and telesignal information will no longer be reliable, so misdiagnosis occurs. FPN is based on production rule modeling and can only use telesignal information to identify faulty components. After the key telesignal quantity is tampered, the identification of the faulty component also has errors. The method of the present invention can effectively eliminate redundant information and correct abnormal telemetry and telesignal quantities, thereby avoiding diagnostic errors. In addition, due to the continuous learning ability of the method of the present invention, in the case of missing diagnostic knowledge, the diagnostic knowledge can be supplemented through continuous learning to achieve fault diagnosis. In summary, under the attack of false data injection, the performance of the method in this chapter is significantly better than other classic methods in Table 4.

[0247] (2) Comparative Analysis 2: Comparison of Diagnostic Performance under Different Fault Information Tampering Ratios

[0248] In order to evaluate the diagnostic ability of the method of the present invention under different fault information tampering ratios, the fault information tampering ratio shown in formula (22) is defined. In the experiment of this embodiment, under the same κ, the situation of fault information being tampered is adjusted, and the adjustment is made randomly 10,000 times. After each adjustment, a fault diagnosis is performed, and finally the diagnostic accuracy of each method is tested by changing the ratio of fault information being maliciously tampered. The method of the present invention is compared with the classical method in three cases: the telemetry is attacked, the telesignal is attacked, and both the telesignal and telemetry are attacked. The comparison results are shown in Tables 5 to 7.

[0249]

[0250] Where: κ is the proportion of fault information being maliciously tampered with, γ t is the total number of real-time fault information obtained in the fault recording system, γ a The number of fault information that has been tampered with

[0251] Since the two classic diagnosis methods of FPN and FRSNPS cannot utilize telemetry, in this embodiment (a) and (c), ANN and SVM diagnosis methods that can comprehensively utilize telemetry and telesignaling are used for comparison with the method of the present invention.

[0252] (a) Telemetry under attack

[0253] Table 5 The differences between the method of the present invention and the classical method in κ m The diagnostic effect under

[0254]

[0255] It can be seen from Table 5 that when κ m = 0%, that is, when there is no attack, both the method of the present invention and the classical method can correctly diagnose; when κ m <3%, the diagnostic accuracy of the method of the present invention, ANN and SVM methods are all at a good level, and the difference between the methods is not large. m When the error rate is less than 5%, the accuracy of the four methods has decreased, but the accuracy of the method of the present invention is still above 97%. This is because as the proportion of fault information being maliciously tampered increases (i.e., the number of fault information being tampered with increases), the traditional fault diagnosis methods ANN and SVM that do not consider the information being maliciously tampered with are difficult to identify false alarm information. However, the method of the present invention can effectively identify and correct the telemetry that has been attacked when the fault information is maliciously tampered with, and the diagnostic accuracy can still be maintained at a high level.

[0256] (b) Telesignaling volume under attack

[0257] Table 6 The method of the present invention and the classical method have different κ s The diagnostic effect

[0258]

[0259] It can be seen from Table 6 that in κ s <2%, the method of the present invention is at a good level as are FPN and FRSNPS, and the differences among the methods are not much. However, when the attack range of false data injection gradually expands to 5%, the diagnostic accuracy of the FPN and FRSNPS methods gradually decreases as the attack range of false data increases, and the FPN method is more obvious. This is because although FPN and FRSNPS can use telesignal quantities for diagnosis, they cannot correct false telesignal quantities, resulting in wrong decisions. The telesignal quantity module of the method of the present invention can use rough set theory to eliminate redundant information of the telesignal quantities of the target power grid, use the acquired key telesignal quantities to construct a dynamic causal network reasoning chain, correct false telesignal quantity information, and make correct diagnostic decisions.

[0260] (c) Both telemetry and telesignaling are under attack

[0261] Table 7 The method of the present invention and the classical method have different κ sm The diagnostic effect

[0262]

[0263]

[0264] It can be seen from Table 7 that in κ sm When the accuracy of ANN and SVM reaches 2%, the accuracy has dropped significantly, while the method of the present invention can still reach 97.35%. As the attack range of telemetry and telesignaling increases, the diagnostic accuracy of each method gradually decreases. sm When it reaches 5%, the diagnostic accuracy of other methods is less than 60%, while the method of the present invention can still reach 87.40%. As the scope of attack continues to increase, the ANN and SVM methods can hardly complete the correct diagnosis. This is because the proportion of telemetry and telesignaling that are attacked increases, the possibility of ANN and SVM being interfered by incorrect telemetry and telesignaling increases, the number of incorrect samples increases, and the learning and training process obtains incorrect results. The method of the present invention will first correct the telemetry and telesignaling quantities before making a diagnosis. However, due to the dynamic causal reasoning chain in the method of the present invention, although the attacked telesignaling quantity information can be corrected, when too much key telesignaling information is attacked, it will affect the establishment of the entire reasoning chain. The accuracy of the method of the present invention will also be significantly reduced due to the increase in telesignaling quantity attacks.

[0265] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

[0266] Those skilled in the art will appreciate that the embodiments described herein are intended to help readers understand the principles of the present invention, and should be understood that the protection scope of the present invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific variations and combinations that do not deviate from the essence of the present invention based on the technical revelations disclosed by the present invention, and these variations and combinations are still within the protection scope of the present invention.

Claims

1. A false data injection power grid fault diagnosis method based on AISNPS, It is characterized in that The following steps are involved: S1. Detecting a power outage area when a power grid fault occurs, and determining components in the power outage area as suspected faulty components; S2. Repair the telemetry information and telesignal information of the suspected faulty component respectively to obtain the repaired telemetry characteristics and telesignal characteristics; S3, using the restored telemetric and telesignal characteristics as antigens presented by the artificial immune pulse neural membrane system AISNPS; S4. Establish an AISNPS fault diagnosis model based on the presented antigens, and use the AISNPS fault diagnosis model to determine the faulty components in the power outage area to achieve power grid fault diagnosis; In step S3, the expression of the artificial immune pulse neural membrane system AISNPSII is: P=(O,s 1 ,...,s n ,d 1 ,...,d r ,syn,ψ,in,out) In the formula, O = {a} represents the set of nerve impulses a; σ j ,σ i ∈{σ 1 ,...,σ n },σ i =(θ i ,B c ,R i ,C i ) represents the i-th immune memory neuron in AISNPS, σ j =(θ j ,B c ,R j ,C j ) represents the jth antigen neuron in AISNPS, where 1≤i≤p, 1≤j≤q, and p+q=n; δ={δ 1 ,...,δ r } represents the set of r fused neurons in AISNPS, represents the nth fused neuron, 1≤n≤r, and n+r=m, m is the total number of neurons; Represents the directed synaptic connection relationship between neurons. For 1≤i≤m, ψ is the state of the humoral immune environment. The value of ψ is 0 or 1, which means that the humoral immune environment satisfies the stable state or does not satisfy the stable state respectively; in and out represent the input and output neuron sets; For immune memory neurons σ i =(θ i ,B c ,R i ,C i ): When the antigen is telemetric, the immune memory neuron activates the telemetric module; θ i is the telemetering pulse value of the immune memory neuron, which is a real number on [-1,1], representing the wavelet transform decomposition eigenvalue of the fault telemetering under the historical fault condition of the target power grid; when the antigen is the telemetering quantity, the immune memory neuron starts the telemetering quantity module; θ i is the remote signal pulse value of the immune cell neuron, which takes the value of {0,1}, indicating the fault alarm information corresponding to the faulty component; B c Mapped to fault element; R i Represents immune memory neuron σ i The rule set of C i is the set of synaptic activation thresholds for immune memory neurons; For antigen neurons σ j =(θ j ,B c ,R j ,C j ): θ j is the pulse value of the telemetry or telesignaling quantity of the antigen neuron. When the antigen is the telemetry, it indicates the wavelet transform decomposition eigenvalue of the fault telemetry under the current fault condition of the target power grid, and its value is a real number on [-1,1]. When the antigen is the telesignaling quantity, it indicates the real-time fault alarm information of the fault component, and its value is {0,1}. j Represents antigen neuron σ j The rule set of C j is the set of prominent activation thresholds for antigenic neurons; For fusion neurons is the pulse value of the fusion neuron, which is an integer in [1,12], indicating the fault state of the target power grid, f n For apoptosis rules; Rule set R for immune memory neurons i and the rule set R for antigen neurons j , which all include the memory rule r i , learning rules i and apoptosis rules i / j , where the memory rule r i The form is Its ignition conditions is i The reasoning logic on the above indicates that the neuron fires if and only if the neuron humoral immune environment is stable, the pulse value exists, and the connecting synapse is in an activated state; the learning rule l i The form is Its ignition condition E = {ψ = 1} is σ i The reasoning logic on i The trigger condition is ψ=1, which means that if and only if the learning condition satisfies P cl = 0, a new σ will be generated after the neuron and its synaptic activation threshold is c l With c r The left and right synapses; otherwise, a fusion neuron δ is directly generated; apoptosis rule f i / j Denotes neuron σ i or j The apoptosis rule is of the form Its ignition condition E = {ψ = 1} is the reasoning logic on σ or δ, which represents the apoptosis logic of neurons; For the prominent activation threshold set of immune memory neurons and antigen neurons, the expression is: Respectively represent the activation thresholds of the left and right synapses of the neuron. For the left synapse, the left synapse is in the activation state if and only if the pulse value transmitted on the synapse is less than the activation threshold. l =1; for the right synapse, the right synapse is in the activated state if and only if the pulse value transmitted on the synapse is greater than or equal to the activation threshold τ r =1, when and only when the synapse is in the activated state, the synapse transmits the pulse value to the next level neuron, otherwise the synapse is in the inhibited state τ=0.

2. According to the false data injection power grid fault diagnosis method based on AISNPS according to claim 1, It is characterized in that In step S2, the method for repairing the telemetry information is specifically as follows: SA21. For suspected faulty components, extract the sequence voltage components from the three cycles before the fault occurs to the end of the fault in the protection transformer and the measurement transformer respectively, and construct a real-time fault voltage telemetry matrix; SA22. Calculate the Euclidean distance d between any two points in the real-time fault voltage telemetry matrix ij , and sort them in descending order; SA23. According to the sorting results, the first 1%-2% value of the real-time fault voltage telemetry matrix is ​​taken as the stage distance d. c The value of SA24, according to d ij and d c , calculate the sample point x in the real-time fault voltage telemetry matrix i The local density ρ i ; SA25, according to the local density ρ of different sample points i , calculate the sample point x i The distance δ i ; SA26, according to the sample point x i The distance δ i and the local density ρ i , calculate the cluster center weight γ i , and select the cluster center c based on it i ; SA27, according to the local density ρ of the sample point i and distance δ i , determine the outlier point a i ; SA28, extract outlier point a i The sampling time point corresponding to the real-time fault data and the cluster center c corresponding to the sampling time point are used i Replace the false data in the real-time fault data and complete the repair of telemetry information.

3. According to the false data injection power grid fault diagnosis method based on AISNPS according to claim 1, It is characterized in that In step S2, the method for repairing the remote signal quantity information is specifically as follows: SB21, construct telemetering information matrix Y; Among them, the telemetering information matrix Y contains the telemetering information vector Y of the target power grid C And the fault component information vector Y D ; SB22, telemetering information vector Y C And the fault component information vector Y D Execute the rough set reduction algorithm respectively to obtain the reduced set K RS , and K RS The elements in are determined as key telesignaling quantities; SB23. Based on the determined key telesignal quantities, construct the reasoning chain structure of the suspected faulty line and the reasoning chain structure of the suspected faulty busbar; SB24. Based on the constructed reasoning chain structure of the suspected faulty line and the suspected faulty busbar, complete the supplement of the corresponding telesignaling quantity, eliminate and correct the erroneous telesignaling quantity, and complete the repair of the telesignaling quantity information.

4. According to the false data injection power grid fault diagnosis method based on AISNPS according to claim 1, It is characterized in that The step S4 is specifically as follows: S41. Based on the presented antigens, determine whether the neuronal humoral immune environment is stable; If yes, proceed to step S42; If not, proceed to step S43; S42, using the repaired telemetry characteristics and telesignaling characteristics as the input of the artificial immune pulse neural membrane system AISNPS, using the learning memory reasoning algorithm to establish the AISNPS fault diagnosis model, and executing the neuron matrix reasoning algorithm on it, outputting the pulse value of the neuron, and obtaining the diagnosis result of the suspected faulty component based on it, and entering step S44; S43, executing the negative selection inference algorithm on the presented antigen, and determining whether a fault matching result of the data to be detected is obtained; if so, outputting the fault matching result, and entering step S44; If not, proceed to step S45; S44, evaluating the diagnosis result, and determining whether the diagnosis result is consistent with the actual fault on site, and whether the diagnosis information exists in the current diagnosis information database; If yes, the diagnosis ends and the diagnosis result is used as the power grid fault diagnosis result; If not, diagnose an error and proceed to step S45; S45. Execute the clone selection inference algorithm to continuously learn the result data without fault matching results and diagnostic errors, and update the diagnostic information database.

5. The false data injection power grid fault diagnosis method based on AISNPS according to claim 4, characterized in that, In the step S42, the method for establishing the AISNPS fault diagnosis model by using the learning and memory inference algorithm is specifically as follows: SA42-1. Set the initial value of the neuron training layer number l = 0, and define "self" and the initial fault diagnosis antibody; SA42-2. Calculate the information entropy H(M) in the current humoral immune environment; SA42-3. Taking the value of vt pulses of the ith immune memory neuron in the humoral immune environment After sorting, the candidate pulse value set of the immune memory neuron is obtained SA42-4. For the collection Each candidate pulse value t in Division and And calculate the information gain of the corresponding immune memory neurons; where, represents the pulse value of the fused neuron, and The two sets are divided based on the candidate pulse value t; SA42-5. Select the maximum information gain and its corresponding candidate pulse value t as the candidate information gain and candidate synaptic activation threshold of the immune memory neuron respectively; SA42-6. Group the immune memory neurons in the fault samples. Each group of three neurons represents the positive sequence, negative sequence and zero sequence information entropy of the fault respectively. Arrange them in descending order of information gain, and then perform binary fission generation on the immune memory neurons in turn to complete a single training, and increase the value of l by 1; SA42-7. For the two synapses of immune memory neurons, determine the post-synaptic information record set D t Whether the pulse values ​​of the fused neurons are the same; If so, proceed to step SA42-8; If not, the synapse will continue to generate immune memory neurons, so that N = D t , and returns to step SA42-1; SA42-8, the synapse generates a pulse value of The fused neurons will no longer generate immune memory neurons, increasing the value of l by 1; SA42-10. Repeat steps SA42-6 to SA42-8 until all immune memory neurons in the fault samples are generated, end the training, obtain the neurons and their synaptic connection relationships, and complete the construction of the AISNPS fault diagnosis model.

6. The false data injection power grid fault diagnosis method based on AISNPS according to claim 4, characterized in that, In the step S42, the method for executing the neuron matrix inference algorithm is specifically as follows: SB42-1. Set the initial inference step number g = 0; SB42-1. Calculate the current immune memory neuron firing vector F 1 =S g+1 ε and F 2 =S g+1 oε; SB42-3. When the immune memory neuron meets the conditions, the immune memory neuron fires and is activated according to the firing vector F 1 and F 2 renew; SB42-4, when the fusion neuron meets the ignition condition, the fusion memory neuron ignites and according to the ignition vector F 1 and F 2 renew; SB42-5. Increase the value of the inference step number g by 1, and judge whether g < l holds; where l is the neuron training layer number; If so, return to step S42; If not, output the pulse value of the neuron.

7. The false data injection power grid fault diagnosis method based on AISNPS according to claim 4, characterized in that, In the step S43, the method for executing the negative selection inference algorithm is specifically as follows: S43-1, set the initial value of the number of neuron training layers l = 0, and define "self" and initial fault diagnosis antibodies; wherein, a decimal feature vector set with a length of L is used to represent the self set S and various fault diagnosis antibody sets R 1 , R 2 , ..., R n , and regard the self set S as the diagnostic antibody set R 0 ; S43-2. Set the maximum number of loops, the number of various fault diagnosis antibodies and the total number of diagnosis antibodies; S43-3. Judge whether the maximum number of loops is reached or whether the total number of diagnosis antibodies reaches the maximum; If so, stop the loop and proceed to step S43-8; If not, proceed to step S43-4; S43-4. Randomly generate a diagnosis antibody r; S43-5. Determine whether r is consistent with the diagnostic antibody set R 0 match; If so, discard r and return to step S43-4; If not, proceed to step S43-6; S43-6. Determination of diagnostic antibody set R 1 Whether the number of diagnostic antibodies in has reached the maximum; If not, proceed to step S43-7; If so, proceed to step S43-8; S43-7. Determine whether r is consistent with the diagnostic antibody set R 1 match; If so, add r to R 1 , and R 1 The number of diagnostic antibodies and the total number of diagnostic antibodies are respectively increased by 1, and the process returns to step S43-3; If not, then determine whether r satisfies the requirement to be added to the diagnostic antibody set R. 2 , ..., R n If yes, add it to the corresponding diagnostic antibody set and proceed to step S43-8; if no, discard the antibody r and return to step S43-4; S43-8. Determine whether the data to be tested corresponding to the presented antigen is consistent with the mature diagnostic antibody R 0 match; If so, it indicates that no fault has occurred; If not, it indicates that a fault has occurred, and proceed to step S43-9; S43-9. Determine whether the data to be tested is consistent with the mature diagnostic antibody set R 1 match; If yes, it indicates a fault and R 1 Corresponding fault type; If not, proceed to step S43-10; S43-10, determine in sequence whether the data to be tested is consistent with the mature diagnostic antibody set R 2 , ..., R n match; If so, it indicates that a fault has occurred and it is the fault type corresponding to the matching mature diagnosis antibody set, and obtain the fault matching results of each data to be detected; If not, it indicates a new fault type and is added to the negative selection inference algorithm to form a new mature diagnostic antibody set.

8. According to the false data injection power grid fault diagnosis method based on AISNPS in claim 4, It is characterized in that In step S45, the method of executing the clone selection inference algorithm is specifically as follows: S45-1. construct a diagnostic antibody set, generate initial antibodies and add them to the diagnostic antibody set; S45-2, traverse each antibody in the diagnostic antibody set, calculate its fitness, and assign it to the corresponding antibody; S45-3. Construct an empty clone set, calculate the similarity of all antibodies in the real-time fault signature, perform roulette selection according to the selection probability, clone the selected antibodies, and add them to the clone set; S45-4, traverse each antibody in the clone set, calculate affinity according to the fitness of the antibody, and assign it to the corresponding antibody; S45-5, traversing each antibody in the clone set, generating a random number r in the range of [0,1), and if the random number r is greater than a set threshold, performing a receptor editing operation on the corresponding antibody; S45-6, adding the antibodies that perform receptor editing operations in the clone collection to the diagnostic antibody collection; S45-7. Repeat steps S45-2 to S45-6 until the iteration stop condition is met, and then update the diagnostic information library.