System and method for realizing relay fault identification based on artificial intelligence technology
Technical Field
The invention relates to the technical field of electricity, in particular to a system and a method for realizing relay fault identification based on an artificial intelligence technology.
Background
Relay protection equipment is vital equipment in a power system, and can cut off faults when the power system breaks down so as to ensure reliable and stable operation of the power system. Therefore, in order to ensure the reliability and stability of the operation of the power system, the relay protection equipment is required to have measures for preventing the malfunction and the malfunction in configuration and function, so that the malfunction and the malfunction of any unit cannot be caused by the malfunction and the malfunction of the relay protection equipment.
Patent application number CN201910068008.4 discloses a relay protection device control method and device, which solve the problem of poor relay protection reliability caused by judging according to a single data source when the relay protection device is controlled to act, but have poor intelligence and low precision.
Patent application number CN201621129925.7 discloses an automatic switching device of relay protection outlet loop, when different relay protection devices need outlet transmission and only one breaker mechanism is actually used, the switching device is utilized to automatically switch operation power supplies, so that the operation power supplies of the different relay protection devices are prevented from being mutually connected, and meanwhile, the information of which relay protection device is switched to is transmitted to a monitoring background, thereby being convenient for training and guiding a teacher to control the whole group of transmission tests of on-site training staff, and still not involving intelligent and automatic processing and being accurate
Along with the development of electronic technology and artificial intelligence technology, the reliable operation of a power system is one of the basis and most important technical indexes for realizing the smooth operation of a power grid system, and in order to avoid the loss caused by personnel, power grid, equipment and the like, an artificial intelligence control method is needed to improve the control precision.
Disclosure of Invention
Aiming at the defects of the prior art, the invention discloses a system and a method for realizing relay fault identification based on an artificial intelligence technology, which can realize relay protection in power equipment, and have good intelligent degree and high precision.
The invention adopts the following technical scheme:
a system for implementing relay fault identification based on artificial intelligence techniques, comprising:
the relay state acquisition layer is internally provided with terminal equipment, the terminal equipment is internally provided with a relay, and the relay is connected with a sensor or an overcurrent detection circuit, wherein the sensor at least comprises a photoelectric sensor, an infrared sensor, a speed sensor, an acceleration sensor, a GIS sensor, a vibration sensor, a ripple sensor, a temperature and humidity sensor, an angle sensor, a magnetic field sensor, a rotating speed sensor, an RFID tag, a GPS device, a ray radiation sensor, a heat-sensitive sensor or an energy consumption sensor; the overcurrent detection circuit at least comprises an I/V converter, an amplifier, an integrator, a comparator, a timer, a converter and an output relay, wherein secondary current output by the converter converts an output signal into a voltage signal through the I/V converter, and then the voltage is subjected to direct current output. Comparing the voltage comparator with a manually-set threshold value, and outputting an identification signal if the output direct-current voltage is greater than the manually-set threshold value;
the data transmission layer is internally provided with a wired communication module or a wireless communication module and is used for receiving and transmitting relay state data information perceived by the relay state acquisition layer; wherein: the wired communication module at least comprises an RS485 communication module or an RS232 communication module, and the wireless communication module at least comprises a TCP/IP network system, a ZigBee wireless network, a GPRS communication module or a CDMA wireless communication or Bluetooth communication module;
the system comprises an artificial intelligent learning layer, a relay state acquisition layer, a control layer and a control layer, wherein a computer processing system is arranged in the artificial intelligent learning layer, the computer processing system is provided with an Apriori association rule algorithm model and an improved BP neural network algorithm unit, the Apriori association rule algorithm model is used for searching computer information perceived by the relay state acquisition layer according to different relay fault attributes so as to search an optimal solution, and the attributes at least comprise fault classification such as current, voltage, harmonic wave, magnetic field, vibration, overcurrent, overvoltage or manual operation error information; the improved BP neural network algorithm unit searches the hypothesis space of possible weight vectors by using gradient descent to find the weight vector of the best fitting sample, and moves towards the negative gradient direction of the loss function each time by using the loss function until the loss function obtains the minimum value, so as to improve the artificial intelligence learning precision and the learning accuracy; the output end of the Apriori association rule algorithm model is connected with the output end of the improved BP neural network algorithm unit, the Apriori association rule algorithm model is a decision tree Apriori association rule algorithm model, the improved BP neural network algorithm unit comprises an input layer, a hidden layer, an output layer and an activation layer, the output end of the input layer is connected with the input end of the hidden layer, the output end of the hidden layer is connected with the input end of the output layer, and the input end of the activation layer is respectively connected with the output ends of the input layer, the hidden layer and the output layer;
the data application layer is internally provided with a computer with a remote data transmission interface, and the data information output by the artificial intelligence learning layer is researched, investigated, controlled or applied by the computer;
the remote scheduling layer is internally provided with a remote management computer, the remote management computer is provided with a remote management data receiving and transmitting port, and receives data information output by the data application layer; wherein:
the state database output interface in the relay state acquisition layer is connected with the input end of the data transmission layer, the output end of the data transmission layer is connected with the input end of the artificial intelligence learning layer, the output end of the artificial intelligence learning layer is connected with the input end of the data application layer, and the output end of the data application layer is connected with the input end of the remote scheduling layer.
Further, the overcurrent detection circuit further comprises a current acquisition circuit.
Further, the current sampling circuit comprises a current transformer, the output end of the current transformer is connected with a three-stage LM224 amplifying circuit, and the output end of the three-stage LM224 amplifying circuit is connected with the A/D conversion unit.
The invention also adopts the following technical scheme:
a method for implementing relay fault identification based on artificial intelligence technology, the method comprising the steps of:
(S1) acquiring relay fault data information through a relay state acquisition layer;
(S2) transmitting data information of the relay state acquisition layer through the data transmission layer;
(S3) the artificial intelligence learning layer receives the data information transmitted by the data transmission layer and learns the received data information;
(S4) the data application layer applies the data information output by the artificial intelligence learning layer;
and S5, the remote scheduling layer and the data application layer carry out data communication, so that remote transmission, monitoring and application of data are realized.
Further, the artificial intelligence learning is a learning mode based on an Apriori association rule algorithm and a BP neural network algorithm.
Further, the method of the Apriori association rule algorithm comprises the following steps:
scanning a relay list in an operation working state, and then obtaining parameters of all relay operation states according to the arrangement mode of the style parameters;
according to each attribute value of the relay running state, the attribute values at least comprise working voltage, working current, ripple wave, magnetic field and manual operation, and the weighted value of each attribute value is calculated by using a hierarchical analysis method;
according to the manually set weighting values, calculating the weighting value of each attribute value warning set t, which can be represented by a formula (1);
(4) Calculating the weighted support degree of each attribute value warning according to the weight of each attribute value set, and expressing the weighted support degree by a formula 2;
generating a weighted warning frequent k item set according to a preset minimum support threshold;
(5) Generating a candidate k+1 item set of the warning item by adopting an optimized splicing and branch reducing method according to the prior property of the network weighted item set, calculating the weighted support degree of the candidate warning k+1 item set, and generating a weighted warning frequent k+1 item set;
(6) And (4) repeating the step until the alarm frequent item set cannot be continuously generated, and finally obtaining the optimal solution.
k is between 50 and 100.
Further, the BP neural network algorithm adjusts a model output result by adjusting a weight or a threshold value in the BP neural network model, and then achieves the aim of gradually approaching the model output result, so that an output error can be minimized, and the BP neural network algorithm comprises a forward propagation algorithm model and a backward propagation algorithm model.
Further, the working method of the forward propagation algorithm model is as follows:
assuming that the data input from the input layer is X, the input layer to hidden layer parameters are ω, b 1 The parameters from the hidden layer to the output layer are v, b 2 The activation function is denoted as g 1 、g 2 The model is set as:
the output formula from the input layer to the hidden layer is:
net 1 =ω T x+b 1 ,h=g 1 (net 1 ) (3)
the output formula from the hidden layer to the output layer is:
then there are:
the loss function is:
where k=2.
Further, in the back propagation algorithm model:
the formula for adjusting the weight coefficient of the output layer is as follows:
the implicit layer weight coefficient is adjusted using the following formula:
in addition, in different relay fault data samples, as the input modes are different [22], the corresponding quadratic accurate function models are also different, and the method is expressed by the following formulas:
for N relay fault information samples, the following formula is used for expressing a total accurate function expression:
with the letter Deltaomega ki Output layer weight coefficient for representing BP neural network algorithm model by letterInformation expected output value representing BP neural network algorithm model, using the letter +.>The calculation output is expressed as BP neural network algorithm model, the calculation output is expressed as a constant by letters eta, and the value of eta is between 0.1 and 2.8.
Has the positive beneficial effects that:
the invention can realize the information acquisition and identification of relay faults, can realize the on-line, remote and real-time monitoring of data in the running process, and improves the working performance of the relay. According to the invention, the artificial intelligent algorithm is integrated with the remote communication technology and the online monitoring technology, so that a user can monitor the working state of the relay without being on a working site, the intelligent degree is high, the precision is high, and the practical value is good.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a relay fault recognition system based on artificial intelligence technology
FIG. 2 is a schematic diagram of an overcurrent detection architecture in a relay fault recognition system based on artificial intelligence technology according to the present invention;
FIG. 3 is a schematic diagram of an overcurrent protection circuit in a relay fault recognition system based on artificial intelligence technology according to the present invention;
FIG. 4 is a schematic diagram of an embodiment of a relay fault recognition system implemented based on artificial intelligence technology according to the present invention;
FIG. 5 is a schematic flow chart of a relay fault recognition method based on artificial intelligence technology;
FIG. 6 is a schematic diagram of an artificial intelligence learning algorithm in a relay fault recognition method based on an artificial intelligence technique;
fig. 7 is a schematic diagram of a forward algorithm model in a BP neural network algorithm model in a relay fault recognition method based on an artificial intelligence technology.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Example 1 System
As shown in fig. 1-4, a system for implementing relay fault recognition based on artificial intelligence technology includes:
the relay state acquisition layer is internally provided with terminal equipment, the terminal equipment is internally provided with a relay, and the relay is connected with a sensor or an overcurrent detection circuit, wherein the sensor at least comprises a photoelectric sensor, an infrared sensor, a speed sensor, an acceleration sensor, a GIS sensor, a vibration sensor, a ripple sensor, a temperature and humidity sensor, an angle sensor, a magnetic field sensor, a rotating speed sensor, an RFID tag, a GPS device, a ray radiation sensor, a heat-sensitive sensor or an energy consumption sensor; the overcurrent detection circuit at least comprises an I/V converter, an amplifier, an integrator, a comparator, a timer, a converter and an output relay, wherein secondary current output by the converter converts an output signal into a voltage signal through the I/V converter, and then the voltage is subjected to direct current output. Comparing the voltage comparator with a manually-set threshold value, and outputting an identification signal if the output direct-current voltage is greater than the manually-set threshold value;
the data transmission layer is internally provided with a wired communication module or a wireless communication module and is used for receiving and transmitting relay state data information perceived by the relay state acquisition layer; wherein: the wired communication module at least comprises an RS485 communication module or an RS232 communication module, and the wireless communication module at least comprises a TCP/IP network system, a ZigBee wireless network, a GPRS communication module or a CDMA wireless communication or Bluetooth communication module;
the system comprises an artificial intelligent learning layer, a relay state acquisition layer, a control layer and a control layer, wherein a computer processing system is arranged in the artificial intelligent learning layer, the computer processing system is provided with an Apriori association rule algorithm model and an improved BP neural network algorithm unit, the Apriori association rule algorithm model is used for searching computer information perceived by the relay state acquisition layer according to different relay fault attributes so as to search an optimal solution, and the attributes at least comprise fault classification such as current, voltage, harmonic wave, magnetic field, vibration, overcurrent, overvoltage or manual operation error information; the improved BP neural network algorithm unit searches the hypothesis space of possible weight vectors by using gradient descent to find the weight vector of the best fitting sample, and moves towards the negative gradient direction of the loss function each time by using the loss function until the loss function obtains the minimum value, so as to improve the artificial intelligence learning precision and the learning accuracy; the output end of the Apriori association rule algorithm model is connected with the output end of the improved BP neural network algorithm unit, the Apriori association rule algorithm model is a decision tree Apriori association rule algorithm model, the improved BP neural network algorithm unit comprises an input layer, a hidden layer, an output layer and an activation layer, the output end of the input layer is connected with the input end of the hidden layer, the output end of the hidden layer is connected with the input end of the output layer, and the input end of the activation layer is respectively connected with the output ends of the input layer, the hidden layer and the output layer;
the data application layer is internally provided with a computer with a remote data transmission interface, and the data information output by the artificial intelligence learning layer is researched, investigated, controlled or applied by the computer;
the remote scheduling layer is internally provided with a remote management computer, the remote management computer is provided with a remote management data receiving and transmitting port, and receives data information output by the data application layer; wherein:
the state database output interface in the relay state acquisition layer is connected with the input end of the data transmission layer, the output end of the data transmission layer is connected with the input end of the artificial intelligence learning layer, the output end of the artificial intelligence learning layer is connected with the input end of the data application layer, and the output end of the data application layer is connected with the input end of the remote scheduling layer.
Further, the overcurrent detection circuit further comprises a current acquisition circuit.
Further, the current sampling circuit comprises a current transformer, the output end of the current transformer is connected with a three-stage LM224 amplifying circuit, and the output end of the three-stage LM224 amplifying circuit is connected with the A/D conversion unit. When the current sampling design is carried out, a current sensor is adopted at the input end to carry out current input, the input from large current to small alternating voltage is realized through a current transformer, and the A/D module input into the microcontroller is subjected to filtering, amplifying and outputting through a signal conditioning circuit. As shown in fig. 5, R1 and C1 are resistances and capacitances obtained by integrating current transformers. The output voltage signal of R1 is amplified by an amplifying circuit constituted by the operational amplifier LM 224U 1A, U B, and the amplified signal generates an ac voltage of about 2.5V. In the figure, the capacitor C3, the resistor R7, the capacitor C4, and the resistor R6 realize low-pass filtering and high-pass filtering, and the cutoff frequency thereof is 1/2 pi RC. By mathematical calculation, the frequency is selected in the frequency range between 10.61Hz-123.72 Hz. The LM 224U1C amplifier is mainly used for providing a reference dc voltage to the ac voltage generated in the forward direction, and superposing the ac voltage signal and the dc voltage signal to finally increase the voltage value. The information output by V0 is changed into unipolar voltage after being conditioned by a conditioning circuit, and then the voltage is directly input into an A/D unit (LPC 2294), so that current sampling is realized.
Example 2 method
As shown in fig. 5-7, a method for implementing relay fault recognition based on artificial intelligence technology includes the following steps:
(S1) acquiring relay fault data information through a relay state acquisition layer;
(S2) transmitting data information of the relay state acquisition layer through the data transmission layer;
(S3) the artificial intelligence learning layer receives the data information transmitted by the data transmission layer and learns the received data information;
(S4) the data application layer applies the data information output by the artificial intelligence learning layer;
and S5, the remote scheduling layer and the data application layer carry out data communication, so that remote transmission, monitoring and application of data are realized.
In the above embodiment, the artificial intelligence learning is a learning mode based on an Apriori association rule algorithm and a BP neural network algorithm.
In the above embodiment, the method of the Apriori association rule algorithm is as follows:
(1) Scanning a relay list in an operation working state, and then obtaining parameters of all relay operation states according to the arrangement mode of the style parameters;
(2) According to each attribute value of the relay running state, the attribute values at least comprise working voltage, working current, ripple wave, magnetic field and manual operation, and the weighted value of each attribute value is calculated by using a hierarchical analysis method;
(3) According to the manually set weighting values, calculating the weighting value of each attribute value warning set t, which can be represented by a formula (1);
(4) Calculating the weighted support degree of each attribute value warning according to the weight of each attribute value set, and expressing the weighted support degree by a formula 2;
generating a weighted warning frequent k item set according to a preset minimum support threshold;
(5) Generating a candidate k+1 item set of the warning item by adopting an optimized splicing and branch reducing method according to the prior property of the network weighted item set, calculating the weighted support degree of the candidate warning k+1 item set, and generating a weighted warning frequent k+1 item set;
(6) And step four, repeating until the alarm frequent item set cannot be continuously generated, and finally obtaining the optimal solution.
The method for realizing relay fault recognition based on the artificial intelligence technology according to claim 6, wherein the method comprises the following steps: k is between 50 and 100.
In the above embodiment, the BP neural network algorithm adjusts the model output result by adjusting the weight or the threshold in the BP neural network model, and then achieves the purpose of gradually approximating the model output result, so that the output error can be minimized, and the BP neural network algorithm includes a forward propagation algorithm model and a backward propagation algorithm model.
In the above embodiment, the working method of the forward propagation algorithm model is as follows:
assuming that the data input from the input layer is X, the input layer to hidden layer parameters are ω, b 1 The parameters from the hidden layer to the output layer are v, b 2 The activation function is denoted as g 1 、g 2 The model is set as:
the output formula from the input layer to the hidden layer is:
net 1 =ω T x+b 1 ,h=g 1 (net 1 ) (3)
the output formula from the hidden layer to the output layer is:
then there are:
the loss function is:
where k=2.
The data is subjected to linear transformation processing of weight values and bias items from an input layer, and then the output of a hidden layer, namely the input of the next layer, is obtained through an activation layer; the hidden layer is to the output layer, through the linear transformation of the weight value and the bias item, then through the activation layer, the output layer is obtained.
Further, in the back propagation algorithm model:
the formula for adjusting the weight coefficient of the output layer is as follows:
the implicit layer weight coefficient is adjusted using the following formula:
in addition, in different relay fault data samples, the corresponding quadratic accurate function models are different due to different input modes, and the quadratic accurate function models are expressed by the following formulas:
for N relay fault information samples, the following formula is used for expressing a total accurate function expression:
with the letter Deltaomega ki Output layer weight coefficient for representing BP neural network algorithm model by letterInformation expected output value representing BP neural network algorithm model, using the letter +.>The calculation output is expressed as BP neural network algorithm model, the calculation output is expressed as a constant by letters eta, and the value of eta is between 0.1 and 2.8.
When the above formula is used for evaluation, particularly when the fault type information of the complex relay is extracted, the acquired fault type information is required to be evaluated in terms of further improving learning accuracyIs normalized. In the normalization process, if m kinds of relay fault information are input in the model and N samples are number, the input data x is calculated ij The normalization process is performed by the following formula:
in the above formula, i=1, 2, …, N; j=1, 2 …, m, Z in the above formula ij The normalized data is obtained.
The normalized following formula may be:
wherein y is i Outputting a relay fault data sample;
y′ i the information is standardized relay fault data sample information;
y max to output the maximum value in the relay fault information data sample, y min Outputting a minimum value in a relay fault information data sample;
wherein 0.2< q <1.3;0.1< b <1.4, more preferably 0.25< q <1.1;0.15< b <1.3,
then the number of hidden layer nodes is determined to be between 6 and 10, more preferably between 8 and 9, the numerical value from the input layer to the hidden layer is between 0.2 and 0.6, more preferably between 0.25 and 0.45, and the numerical value from the hidden layer to the output layer can be between 0.08 and 0.32, more preferably between 0.1 and 0.25, and a BP neural network model is built in this way, so that the relay fault data type can be quickly identified.
While specific embodiments of the present invention have been described above, it will be understood by those skilled in the art that these specific embodiments are by way of example only, and that various omissions, substitutions, and changes in the form and details of the methods and systems described above may be made by those skilled in the art without departing from the spirit and scope of the invention. For example, it is within the scope of the present invention to combine the above-described method steps to perform substantially the same function in substantially the same way to achieve substantially the same result. Accordingly, the scope of the invention is limited only by the following claims.