Application of automation technology in power system protection and control
Online veröffentlicht: 29. Sept. 2025
Eingereicht: 26. Jan. 2025
Akzeptiert: 10. Mai 2025
DOI: https://doi.org/10.2478/amns-2025-1131
Schlüsselwörter
© 2025 Lirong Xiao, Fugen Shu and Taiping Wu, published by Sciendo.
This work is licensed under the Creative Commons Attribution 4.0 International License.
With the progress of science and technology and the development of society, electric power system plays an important role in contemporary society. As an indispensable infrastructure for modern life, the operation and safety of the power system is crucial to the national economic development and the improvement of people’s living standards [1-4]. In order to ensure the normal operation and safety and security of the power system, the power system automation control and protection technology specification came into being [5-6].
The automation control technology is mainly applied in the electromechanical equipment and switchgear of the power system, such as high-voltage switches, substations, transmission lines and so on. By using computers, sensors, relays and other equipment for centralized monitoring and control, the operating status of various equipment is transmitted to the control center through data lines, which is processed and monitored by the control center to realize remote monitoring, remote control and automation control of electric power equipment [7-10]. In the power system automation technology, automation control is the key link to control the generation, modulation, distribution and consumption of electricity through computer control, intelligent equipment control, networked control, etc., and this link can realize the comprehensive control of the power system and improve the efficiency and operation security of the power system [11-14]. The automation protection technology is the technology that monitors and controls various equipment and systems during the operation of the power system and enables them to quickly remove the faults and abnormalities in the event of a fault or abnormality, which is an essential and important part of the power system, and its emergence signifies that the automation level of the power system has been greatly improved [15-17]. In the past decades, the automation level of the power system has been continuously improved, and automation technology has been widely used in all aspects of the power system. Automation can improve the efficiency and stability of power system operation and reduce the impact of human factors on the power system [18-20].
Within the scope of automation technology, it is proposed to use intelligent protection technology and PLC technology to realize power system protection and control. After setting the activation function and loss function of the convolutional neural network, according to the multi-channel characteristics of the power system transmission line, complete the CNN-based power system fault identification algorithm and protection program design task. The power system protection program can play a certain protective role, in order to ensure the high performance and stable operation of the power system, it is also necessary to develop a targeted power system control program. Determine the relevant control models, configurations, ports, through the PID voltage controller to achieve intelligent control of the power system and remote monitoring, better for the power system escort. In summary, with the help of PSCAD simulation and analysis software, simulation verification and analysis of the above program.
Power systems are affected by a variety of factors in the actual operation process, resulting in the occurrence of fault problems, which is very unfavorable to maintain the safety and stability of the system during operation. For the traditional electric power system, when a fault occurs in operation, it is basically manually checked and processed, which takes a long time. The main automation technology used includes PLC technology, intelligent protection technology, the application of automation technology in the operation of the power system can improve the efficiency of information collection, improve the level of data processing, facilitate the maintenance of the power system in the later stage, to ensure that the power system is more secure and efficient in operation.
Through continuous development, the power system has also been continuously upgraded, and intelligent protection technology, as an advanced technology, can realize real-time monitoring and control of the power system. The application of this technology in the power system can play a role in protecting the current power system. In the use of this technology, if there is a fault in the circuit, the protection device can cut off the fault part, reduce the scope of the fault, without affecting the normal part of the power system, so that other parts can still work normally. In the process of circuit operation, the application of the technology can also ensure the stability of the circuit, reduce the incidence of system failure. If the chain system malfunction, intelligent protection can make automated decisions, notify the technicians, and promote the rapid elimination of faults. The application of this technology can not only enhance the stability of the power system, but also improve the maintenance level of the system. The application of intelligent protection in the power system can continuously improve the automation level of the system and promote the long-term development of power engineering.
PLC technology is also a commonly used automation technology in power systems, PLC technology, also known as Programmable Logic Controller, is an industrial controller that uses program control [21]. It has functions such as input, output, logic programming and storage to achieve task-specific control functions. It is used to control various devices and mechanical equipment in the power system to realize automatic control. The technology integrates relay control and computer technology, and belongs to the microcomputer-based relay protection technology. Compared with the previous technology, the logic and reliability of this technology is more powerful, and has good anti-interference ability and adaptability, more efficient and convenient to use. The technology can recognize and calculate the main line signal, carry out automatic programming, and then generate instructions to control the operation of the system. The application of this technology in the power system can enhance the sensitivity of the system and reduce the loss of system operation.
Through the above description of the common automation technology of the power system, the working principle of intelligent protection technology and PLC technology is understood, and then the specific application path of intelligent protection technology and PLC in the power system will be expressed in detail. Detailed theoretical analysis is shown below:
Human production and life are inseparable from the application of electric energy. With the improvement of people’s living standards, the demand for electricity is also increasing. In order to improve the efficiency of the power system, automation technology should be optimized to improve the performance of the power system, so that people can get a better experience of using electricity. In the power grid, power system protection occupies a very important position. Therefore, automation technology should be reasonably applied to power system protection. When a fault occurs during the operation of the power system, the automatic start of equipment protection can ensure that the power system runs more smoothly. Automation technology can also provide technical support in equipment monitoring, so that the relevant technical personnel can quickly eliminate the obstacles. This can not only reduce the system failure rate, but also improve the quality of work of operators.
When PLC technology is applied to the power system, it can automatically control the transmission process of the power system and improve the transmission quality and efficiency of the power system. The development of the power system makes the system’s data acquisition ability, analysis ability and processing ability are upgraded synchronously. PLC technology has good compatibility, self-healing, security, interactivity and economy, the application of automation technology in grid scheduling can fully grasp the operation of the power system, according to the operation specification to control the operation state of the equipment, so as to make the transmission process of the power system smoother. PLC technology is also able to realize the diversified use of energy, such as wind energy, water energy, solar energy, etc., which effectively improves the utilization of resources, reduces the losses and costs of the power grid, and provides technical support for the development of the power system.
From the previous overview of automation technology and its applications, it is clear that automation technology has a protective effect on power systems, so this chapter proposes a power system protection scheme based on automation technology. In an intelligent power system, data can be fully shared, i.e., the time-domain acquisition signals of Terminal I and Terminal II can be captured from a shared database. Accordingly, this paper develops a fusion model for fusing multi-channel feature signals into a high-dimensional data band. Then, a training dataset is collected from the relays installed on the protected components considering various fault parameters, and the training dataset is fed into the machine learning algorithm for training. Finally, the trained machine learning algorithm is applied to the actual operation in order to extract the fault features and identify the areas and equipment affected by the faults, and then the power system relay protection scheme is constructed based on the online recognition performance characteristics of the machine learning algorithm to realize the fault recognition and relay protection of the power system based on the time-domain multichannel signals.
Convolutional neural network, as the cornerstone and universal structure in the deep neural network system, not only carries out comprehensive optimization and innovation on the basis of the traditional neural network, but also shows its excellent application value in the field of computer vision [22]. The popularity of convolutional neural networks is mainly due to their excellent performance and ease of processing data. The uniqueness of this network is its ability to share convolutional kernels, which makes it more efficient when processing large-scale data. A clear advantage is that when the network’s weights are sufficiently trained, features can be extracted automatically, eliminating the need for tedious manual selection and resulting in superior classification performance. Convolutional neural networks have an input layer, a convolutional layer, a pooling layer, and a fully connected layer, and the focus of this subsection is on the activation function and the loss function, which provide theoretical support for subsequent research work.
Common activation functions include ReLU, Sigmoid, Tanh, etc. Different activation functions are selected according to the needs of the actual task, and choosing the appropriate activation function is an important decision in the design of convolutional neural networks [23].
Sigmoid function Sigmoid function, a common S-shaped function in biology, is also known as S-shaped growth curve. Its mathematical expression is shown below:
Tanh function The hyperbolic tangent activation function, often referred to simply as the Tanh function, has similarities to the Sigmoid function in terms of applied truth values. The corresponding mathematical expression is shown below:
ReLU function The ReLU activation function, also known as modified linear unit, is a nonlinear activation function widely used in deep learning. Its mathematical expression is shown below:
Loss function is often called cost function or objective function, and its core concept is to mathematically measure the degree of deviation between the predicted value and the true value of the model [24]. Common loss functions include 0~1 loss function, absolute value loss function, and mean square loss function, which are described in detail in this subsection:
In routine cases, when the accuracy of the prediction results needs to be assessed, it is usually not necessary to consider the specific degree of error, but only need to determine whether the prediction results of the model coincide with the actual true value. If the prediction matches the true value exactly, then the loss value can be considered to be 0. Conversely, if there is any mismatch, then the loss value should be set to 1. The formula is shown below:
The absolute value loss function is generally used in regression problems to calculate the mean of the absolute difference between the predicted value and the true value, and its formula is shown below:
The mean-square loss function, which is the same as the absolute value loss function and is also more often used in regression problems, calculates the mean of the squared difference between the predicted and true values with the following formula:
The cross-entropy loss function is one of the most common loss functions when dealing with classification problems. It measures the difference between the probability distribution predicted by the model and the probability distribution of the actual label. The cross-entropy loss function can effectively promote model learning and make its prediction results closer to the distribution of real labels. Mathematically, the cross-entropy loss function can be expressed as:
where
PSCAD simulation software is a professional simulation modeling software for power systems, which can realize power system transient simulation. In this paper, transmission lines and transformers are simulated and modeled by PSCAD software simulation. The PSCAD interface-automation library (AL), which is developed based on Python, is provided in PSCAD version 4.6.1 or later and is available free of charge to all authorized users of PSCAD. This section provides a brief introduction to the use of the AL library in PSCAD software. Using the AL library, you can create simple Python scripts that allow you to take full control of the PSCAD program and the project itself. This includes the ability to start PSCAD, load workspaces, projects and libraries, run simulations, batch run multiple simulations at once, change workspace and project settings, change component parameters, change transmission line and cable parameters, set output data, and generate simple reports.
Algorithmic principles based on machine learning to identify faults and realize longitudinal protection through time-domain features of multiple channels of a transmission line first determine what kind of fusion model is effective to use. Conventional protection principles are fruitful in fault feature extraction and provide good ideas for feature fusion approaches. Current signals show better selectivity than voltage signals, and current fault components are more sensitive in determining fault type than the full current flow after a fault. In order to differentiate the direction of the fault, it is necessary to use voltage and current signals (full, abrupt, sequential components, etc.) for phase comparison. In addition, if both line terminals can determine whether the fault is in the forward or reverse direction, the combination of information from both terminals of the line can determine if the fault is internal, thus requiring the use of signals from both ends of the line to locate faults within and outside the zone.
The structure of the convolutional neural network is shown in Fig. 1. The convolutional neural network is a typical deep learning model, which learns each local feature in the input through the convolutional kernel and extracts the deep abstract feature information layer by layer, and then fuses and analyzes each local information through the fully connected layer. When a two-phase ground fault occurs on line Convolutional layer: the size of the corresponding convolutional kernel for C1 is 5×5 and for C2 is 3×3. The number of convolutional kernels for both C1 and C2 is 20, and the step size is 1. The ReLu function is used as the activation function. Pooling layer: both S1 and S2 are pooled using maximum pooling, and the size of the corresponding maximum pooling window is 2 × 2 with a step size of 2. Fully connected layer FC layer: the number of neurons in the FC layer is 200, and the ReLu function is used as the activation function. Softmax layer: the output of the Softmax layer has 21 classes and uses one-hot coding. The cross-entropy function is used as a loss function to measure the difference between the classification result of the input array and the desired support output.

Convolutional neural network structure
In this paper, the three transmission line two-end power model shown in Fig. 2 is used as a case study and simulation experiments are performed in PSCAD/EMTDC. The system frequency is 50 Hz, the rated voltage is 220 kV, and the capacity of power supply at both ends is 100 MVA. The length of lines L1 and L2 is 200 km, and the length of L3 is 350 km, and the three-phase transmission lines are not phase switched. The positive-sequence impedance of transmission lines L1 and L2 is

The case study representing sources at both line terminals and three lines
Line 2 is analyzed using data collected from Relay3 and Relay4. For the protection of Line 2, faults occurring on Line 1 and Line 3 are external faults, and faults occurring on Line 2 are internal faults, and internal and external faults on the line are each categorized into 10 specific fault types including single-phase grounded short-circuits, two-phase short-circuits, two-phase grounded short-circuits, and three-phase grounded short-circuits (three-phase short-circuits and three-phase grounds are considered to be the same type of fault). Thus, including no faults, Line 2 can be categorized into a total of 21 status categories.
In this chapter, the proposed multi-channel feature fusion-based power system transmission line fault identification and protection scheme is implemented by convolutional neural network with specific training and testing strategies as described below:
After online testing, the flow of the proposed corresponding power system protection scheme is shown in Fig. 3, considering the online performance characteristics of the recognition algorithm. The three subsets are named as dataset 1-training, dataset 1-validation, and dataset 1-testing, respectively. The network with the highest accuracy in dataset 1-validation is selected as chosen as the final CNN, and dataset 1-test is used to test the performance of the CNN. In order to validate the generalization ability and online performance of the CNN after evaluating the training completion, the online test is performed with dataset 2. Setting the duration as half a week wave, at a sampling frequency of 10kHz, after the fusion model configuration in dataset 2, the corresponding segments are selected at each fusion data point, each segment is 100 points in length for online testing of the trained CNN, and these segments obtained are also directly referred to as the segments in dataset 2. The protection scheme consists of a fault initiation determination scheme and a fault type discrimination scheme, and the two sub-schemes in the power system protection scheme will be subsequently validated and analyzed. When an internal fault is recognized, the protection is initiated first, and after 1/4 cycle, if the same fault type is detected at c consecutive points, a trip instruction A is sent to the processor, and in the next small period of time, for example, 1/8 cycle of time, the processor compares the instruction A with the trip instruction B obtained from the existing protection scheme, and the protection is tripped if the trip instruction B is a trip signal. If the signal B has been a non-trip signal, the decision of whether to trip is made according to the importance of the protection for security and dependability in different scenarios, for example, in scenarios with high security, the protection is not tripped on the basis of the instruction B. In scenarios with high dependability requirements, the protection is tripped on the basis of the tripping instruction A from the CNN.

The flow of power system protection scheme
Although the power system protection program developed above, but closely play the role of protection, in order to ensure the normal operation of the power system, but also need to further develop a more reasonable power system control program for the power system escort. The program can enhance the sensitivity of the power system, reduce power loss of power system operation, power system protection and control is interdependent, control is the power system to protect the complementary power system protection, and power system protection is the premise of the control, the two are indispensable. To this end, the proposed PLC technology based power system voltage automatic regulation and control method, the power system equipment control and stable operation to make a contribution.
In the face of harsh environmental influences, for power system control is a small test, must have a good reliability and stability. PLC as a processor with excellent logic control and extraordinary anti-interference ability, to solve the traditional controller large size, poor reliability and other shortcomings. Therefore, this design selects SIEMENSS7-1200PLC as the core controller, the controller has a compact structure, powerful, flexible and adaptable to harsh environments, etc., able to complete the calculation, logic control, motion control, network communication and other tasks. It represents the future development direction of small PLC and leads the automation trend.
This design selects 1214CDC/DC/DC module as CPU module, its power supply is DC 24V, with 14 digital inputs and 10 digital input ports and 2 analog input and output ports. It supports PROFINET interface and can communicate with other devices. As many as up to 6 high-speed counters for calculation and timing. Featuring 3 communication modules for serial communication and 8 signal modules for I/O expansion, the CPU has a strong self-diagnostic fault function and is easy to maintain on a daily basis.
In addition to ensure that the design requirements need to add an additional digital module SM1223DC/DC and CM1241RS485/422 communication module, the former through the 16 digital input 16 digital output channels to meet the system’s digital demand, the latter supports point-to-point communication, using RS485 as a transmission medium to communicate with the DSP, the DSP through the transmission medium will be the voltage, RS485 is used as the transmission medium to communicate with DSP, and DSP transmits power parameters such as voltage, current and power factor to PLC through the transmission medium.
In order to PLC work stably and reliably, all PLC power supply in this design comes from 4NIC-K600 aerospace power supply, which has the advantages of high reliability, simple installation, humidity resistance, salt spray resistance, etc., and has the control functions of short circuit, overcurrent, overvoltage, etc., and it can be applied to the power system. Its specifications for the input AC 220V, 50Hz, output DC 0 ~ 30V or 0 ~ 10A, the maximum power output up to 300W, can work in harsh environments. This design utilizes a PLC digital output module to drive a relay to control the system’s generator set as well as the display light and main switch. This design uses OMRON small relay, OMRON relay has 4 pairs of contacts inside; it has more than 80 million times of mechanical life and more than 200,000 times of electrical life; it has the function of display light when the relay is in action; it can operate normally under the temperature of -55°C~70°C; it has high reliability and is widely applicable to various uses and other characteristics.
When performing hardware configuration in TIA portal, the model number, built-in program, and mounting location of each module configured must be consistent with the actual module installed to ensure that the designed program is downloaded into the PLC smoothly. Figure 4 shows the PLC hardware configuration of the power system. From left to right, the PLC communication module, PLC CPU module, PLC digital module, the connection of each module is consistent with the actual situation. Based on the experimental platform, in connection with the specific functions of power system automation, the controller PLC in this design is responsible for all digital input and output signals.

Hardware configuration diagram of PLC
The PLC controller is used to receive the power factor measured on the high-voltage side of the power system and the bus voltage measured on the low-voltage side, and through these data, it issues the corresponding reactive power compensation casting and cutting commands. The switchgear cabinet is used as the general switch to control the capacitor bank casting, and the capacitor bank is reasonably cast to complete the automatic regulation and control of the power system voltage.
Let the capacity of a group of capacitors is
where
According to Eqs. (8) and (9), it can be found that dropping the capacitor can produce a change in the power factor, and this change is related to
PLC carries out voltage reactive power compensation of the power system according to the bus voltage. First, through the collected bus voltage and standard voltage, the fuzzy PID controller outputs the regulated voltage value according to the real-time voltage data and the standard voltage value, combines with the collected power factor to judge the overrun region of the voltage value, and sends out the capacitor group casting and cutting commands corresponding to this region to realize the voltage regulation and control of the power system.
PLC-based PID controller In order to improve the power system voltage regulation and control effect, this paper adds the fuzzy set theory on the basis of the traditional PID controller, uses the fuzzy logic in the fuzzy set theory to deal with the error signals in order to better adapt to a variety of control scenarios, digitizes the PID to get the discrete PID equation, and designs the voltage control program through this equation. The input and output relationship of the PID controller is:
In the formula,
Set
In the formula, the error value of the
In order to improve the robustness of the reactive power compensation device, better stability, the use of PID controller in voltage reactive power compensation at the same time to add a fuzzy voltage controller, the composition of the fuzzy PID controller so that the reactive power compensation device in the face of different situations through the intelligent coordinator to switch between the fuzzy controller and the PID controller, the switching conditions of the reactive power compensation device operation based on the indexes of the switching conditions are as follows:
The fuzzy controller is usually used when the reactive power compensation device has a node voltage change or when the reactive power compensation device has overshooting and oscillation. PID controller is used in all cases except (1). The fuzzy controller adjusts the compensation capacity of the reactive power compensation device by controlling the thyristors on the capacitive and inductive branches. It solves the problem of improving voltage quality and increasing power factor which may be contradictory, thus realizing reactive power regulation and voltage stabilization, and making greater contribution to securing power supply and promoting industrial development.
The current power system is mainly based on the ring network structure, and there may be multiple DC outgoing lines in the power system. Take the bipolar short circuit fault as an example, a line fault, almost all DC lines will have overcurrent phenomenon, in order to isolate the fault line, it is necessary to carry out in-area and out-of-area judgment, and the unipolar ground fault is similar. At the same time, there are factors such as transition resistance, fault distance and other factors on the protection, making the design of power system protection very complex. Therefore, the CNN-based fault identification algorithm and protection scheme are proposed above, and this subsection will utilize the above mentioned PSCAD simulation and analysis software to conduct example simulation analysis of its research scheme to verify its effectiveness.
Input and output data composition and description For CNN, its input data is generally a two-dimensional matrix. In order to use CNN for fault diagnosis, the fault data needs to be matrixized and reorganized. Since the electrical quantity data of the power system has a natural time sequence, it can be matrixically reorganized by taking the data from one time window. There are 3 types of short circuit faults, positive ground fault, negative ground fault and bipolar short circuit fault. For the 3 outgoing lines there would be 9 fault categories. Together with the normal operation category, the final fault identification problem with CNN is transformed into a 10-classification problem. For the multiclassification problem, the output layer generally uses the ReLu function, which sets the output probability of the largest to 1, and sets the rest to 0. Therefore, for different types of faults, the output result is a one-dimensional vector composed of 0 and 1. The output results of different fault types are shown in Table 1. In the table, the fault types 1PG, 1NG, 1PN indicate line 1 positive grounding, line 1 negative grounding, line 1 bipolar short-circuit, line 2 and line 3 have similar naming rules, and the absence of faults is indicated by NF. Data sources In order to ensure that the CNN can classify faults in different states, the dataset must contain different system operating conditions and fault conditions. For the training set, there are a total of 10×10×10=1000 samples for each fault type, and the total number of fault data samples is 12000, and similarly 1000 data are extracted for different voltage conditions, when the system is running in steady state so the total number of training samples is 10000. Similarly for the test set, there are 300 samples for each fault type, the total number of fault samples is 2700, plus 300 data for steady state operation, the total number of test samples is 3000. Simulation and Test Analysis By changing the filter size, number of filters, and the number of iterations, the effect of different parameters on the performance effect of the CNN is explored. The original training set is divided into training set and validation set according to categories. The training results under different parameters are shown in Table 2. When the size of the filter is the same and the number of iterations is the same, the error rate decreases when the number of filters increases, because when the number of filters increases, the more types of features are extracted, and the stronger the classification ability of the model is. When the number of filters is the same size, if the number of iterations is too small, the model is not adequately trained and has poor classification ability; when the number of iterations is increased, the model is able to show better performance, but as the number of iterations continues to increase, the error rate of the model hardly decreases any further. The same number of filters and the number of iterations, the appropriate reduction of the filter is conducive to reducing the error rate, because small filters can extract local features more finely, more representative of the characteristics of the input data, which is conducive to the improvement of classification ability. Taken together, the No. 9 CNN structure is selected as the final training structure in this paper, and its training set and validation set error rates are 0.4789% and 0.4992%, respectively.
Output results of different fault types
| Fault type | Output result | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| NF | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 1PG | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 1NG | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 1PN | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
| 2PG | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
| 2NG | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |
| 2PN | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
| 3PG | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
| 3NG | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
| 3PN | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Training results under different parameters
| No. | First filter size | N | Second filter size | Nr | Number of iterations | Training set error rate | Verify the set error rate |
|---|---|---|---|---|---|---|---|
| 1 | 10×10 | 12 | 10×10 | 32 | 60 | 0.5381% | 0.5793% |
| 2 | 10×10 | 20 | 10×10 | 32 | 60 | 0.4877% | 0.5595% |
| 3 | 10×10 | 12 | 10×10 | 20 | 60 | 0.6762% | 0.8187% |
| 4 | 10×10 | 12 | 10×10 | 32 | 40 | 0.5391% | 0.6679% |
| 5 | 10×10 | 12 | 10×10 | 32 | 10 | 5.0672% | 9.4767% |
| 6 | 6×6 | 12 | 10×10 | 32 | 60 | 0.4993% | 0.5282% |
| 7 | 18×18 | 12 | 10×10 | 32 | 40 | 0.5988% | 0.6996% |
| 8 | 10×10 | 12 | 6×6 | 20 | 40 | 0.6796% | 0.7791% |
| 9 | 6×6 | 20 | 10×10 | 32 | 40 | 0.4789% | 0.4992% |
The trained model is used for test data, and the power system fault test results are shown in Table 3. The rows in the table indicate the real categories of each category, and the columns indicate the predicted categories of the CNN, based on Table 3, the prediction accuracy and recall of each category can be calculated, for example, in the case of Line 1 Positive Grounding (1PG), there are 5,924 samples in which the predicted categories are the same as the real categories, and there are 6,000 IPGs in the actual number of the IPGs, so the accuracy of the 1PG is 5,924/6,000 = 98.73%, and the remaining few By analogy, the prediction accuracy, recall, and F1 values of each category are shown in Table 4. Taking NF as an example, the values of accuracy and recall are known to be 100.00% and 98.32%, respectively, and according to the formula for calculating the F1 value: F1=2*accuracy*recall/(accuracy+recall), which calculates the F1 value to be 99.15%, and the remaining 9 items are the same. For 60,000 test samples with trained neural network, the calculation time is about 18.6s, so the calculation time of a single sample is about (1000*18.6/60, 000=0.31)0.31ms, and since the time window is 2ms before and after the fault, the fault judgment time is around 3.1ms, which can satisfy the rapidity requirement. The test results show that the CNN-based power system line fault protection method has a high accuracy and recall rate, and can accurately determine the fault line and fault category. Of course, there are many factors affecting the training effect of CNN, the filter size, the number, the number of iterations is only a part of it, and there are other influencing factors, which are not verified one by one in this paper. The adjustment of parameters has also been a major problem in the neural network training process, there is no specific method. Therefore, there is no best model, only a better model under the premise of meeting the requirements.
Test result
| Category | NF | 1PG | 1NG | 1PN | 2PG | 2NG | 2PN | 3PG | 3NG | 3PN | Accuracy |
|---|---|---|---|---|---|---|---|---|---|---|---|
| NF | 6000 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 100.00% |
| 1PG | 4 | 5924 | 21 | 4 | 15 | 8 | 10 | 7 | 1 | 6 | 98.73% |
| 1NG | 0 | 7 | 5946 | 6 | 7 | 10 | 3 | 10 | 9 | 2 | 99.10% |
| 1PN | 4 | 6 | 2 | 5967 | 1 | 1 | 5 | 6 | 2 | 6 | 99.45% |
| 2PG | 6 | 7 | 4 | 10 | 5951 | 1 | 3 | 3 | 9 | 6 | 99.18% |
| 2NG | 10 | 9 | 4 | 10 | 1 | 5957 | 0 | 5 | 1 | 3 | 99.28% |
| 2PN | 4 | 8 | 8 | 9 | 10 | 2 | 5937 | 10 | 6 | 6 | 98.95% |
| 3PG | 9 | 4 | 9 | 7 | 5 | 6 | 2 | 5951 | 6 | 1 | 99.18% |
| 3NG | 1 | 8 | 0 | 1 | 2 | 3 | 5 | 3 | 5976 | 1 | 99.60% |
| 3PN | 6 | 2 | 6 | 2 | 1 | 1 | 8 | 4 | 3 | 5967 | 99.45% |
| Total | 99.29% | ||||||||||
Various types of prediction accuracy, recall rate, F1 value
| Category | Accuracy | Recall | F1 |
|---|---|---|---|
| NF | 100.00% | 98.32% | 99.15% |
| 1PG | 98.73% | 96.68% | 97.70% |
| 1NG | 99.10% | 95.05% | 97.03% |
| 1PN | 99.45% | 98.09% | 98.77% |
| 2PG | 99.18% | 99.37% | 99.28% |
| 2NG | 99.28% | 97.02% | 98.14% |
| 2PN | 98.95% | 96.36% | 97.64% |
| 3PG | 99.18% | 98.54% | 98.86% |
| 3NG | 99.60% | 98.37% | 98.98% |
| 3PN | 99.45% | 97.97% | 98.70% |
| Total | 99.29% | 97.53% | 98.39% |
After using PSCAD simulation software to verify the effectiveness of the CNN-based power system fault identification algorithm, the power system protection scheme constructed by it will be verified and analyzed from several aspects. The specific analysis process is shown below:
Simulation analysis of fault initiation determination scheme When the power system is running, CNN detects the positive DC voltages Simulation analysis of fault type determination scheme To determine the fault type, CNN is firstly required to confirm the determination threshold Impact of fault resistance on fault type determination thresholds In order to determine whether the fault resistance Influence of flat wave reactor on the threshold value of fault type determination In order to determine whether the flat-wave reactor Simulation analysis of the overall process of the protection program Real-time acquisition of each line voltage and current parameter, the whole process of power system fault protection resection is shown in Fig. 9, where (a) ~ (d) are bus-side inter-pole short-circuit fault, bus-side single-pole ground fault, line-side single-pole ground fault, and line-side inter-pole short-circuit fault, respectively. When the CNN detects a power system fault at 2s, the line voltage drops instantaneously, producing a voltage instantaneous drop value exceeding the fault initiation threshold, and the fault discrimination scheme is initiated. At this time, the fault has collected the current of each line, and input the signal into the correlation coefficient analysis module added in the relay protection device to identify the fault area through analysis. At the same time of fault area identification, the signal will be input into the current difference module in the relay protection device, and the fault type will be determined by analyzing the current difference, and the whole process can be completed within 20ms, which meets the quick-action nature of relay protection. Therefore, the CNN detects the power system after the fault occurs 20ms, and sends a command to act on the HVDC circuit breaker to complete the fault removal. In the case of different areas and different fault types, the high-voltage DC circuit breaker can correctly remove the fault after the fault determination scheme, which confirms the feasibility of the power system protection scheme in this paper.

The variation of two voltages when different faults occur

Change curve of current difference



The whole process of fault protection removal
Through the previous analysis of the power system protection scheme, it can be seen that this paper builds a protection scheme can effectively play a certain role in the protection of power system lines and equipment failure. In order to better ensure the normal operation of the power system equipment, but also need to be supplemented by the control program for reasonable scheduling, under the premise of reducing energy consumption, but also to maintain the normal operation of the equipment, the protection program and the control program complement each other, only in the common role of the two, the power system can play a role in the performance. Next will be based on PLC technology power system control example verification simulation analysis. Detailed analysis of the process is shown below:
In order to verify the effectiveness of PLC-based fuzzy PID controller in the application of power system control, the PSCAD simulation software described above is used to analyze the power system voltage under the action of PLC technology, and the power system voltage data and waveforms are analyzed to verify whether the method of this paper has applicability. Under the automatic voltage regulation and control strategy based on reactive power compensation, the voltage waveform of the power system output by simulation test is shown in Fig. 10, in which

Voltage output waveform
The fuzzy PID controller is introduced into the power system, and the output voltage waveforms are shown in Fig. 11 through the power system voltage simulation test. From the figure, it can be seen that the introduction of fuzzy PID controller power system output voltage burrs are significantly reduced, and the quality of the power system voltage output waveform is improved to a large extent.

The voltage output waveform is controlled by PLC
According to the constructed system model, a 48KW frequency converter governor experimental platform was established, the RMS value of the configured voltage was 24KV, and the maximum output value of the current was 2KA, which was subjected to Fourier analysis, and before and after the optimization of the PLC-based fuzzy PID controller, the voltage waveform data of the power system was shown in Table 5. From the data in the table, it can be seen that the maximum, minimum and RMS output voltage growth rate of the power system are 4.92%, 0.57% and 9.13% respectively, which proves that the PLC-based fuzzy PID controller has a coordinating effect on the power system and ensures that the power system operates at a higher speed of performance state.
Power system voltage waveform data
| Type | Before optimization | Post-optimization | Difference value | Rate of change |
|---|---|---|---|---|
| Maximum value /KV | 36.17 | 34.39 | 1.78 | 4.92% |
| Minimum value /KV | -35.04 | -34.84 | 0.2 | 0.57% |
| Valid value /KV | 22.35 | 24.39 | 2.04 | 9.13% |
The equipment speed of the power system is analyzed as shown in Fig. 12. In order to further verify the effectiveness of this paper’s control method in the application of power systems, the speed change of the motor tracking, respectively, before and after the use of fuzzy PID controller, when the motor speed of 509R / s, as well as when the motor reaches a stable speed from 509R / s down to 408R / s when the speed of the motor changes, the use of this paper’s control method, the motor’s dynamic performance and steady state performance is better! The synchronization accuracy is also significantly improved, indicating that the method in this paper effectively improves the real-time and responsiveness of the power system. Overall, under the joint effect of CNN-based protection scheme and PLC-based fuzzy PID controller, the power system operates stably in a more efficient and low-consumption state.

Comparison result of motor speed curve
In this paper, within the definition of automation technology, intelligent protection technology is first used to design the CNN-based power system fault identification model and protection scheme. Developed power system protection program, closely play the role of protection, in order to ensure that the power system to high-performance state operation, but also need to further develop a more reasonable power system control program, for the power system escort. In this regard, the proposed PLC technology based power system voltage automatic regulation and control program. Finally, using the PSCAD simulation and analysis software mentioned in this paper, the proposed model and scheme are verified and simulated, and the accuracy, recall, and F1 value of CNN for 10 faults detection of the power system are 99.29%, 97.53%, and 98.39%, which indicate that CNN can well detect the current equipment and line faults of the power system, and provide theoretical basis for the development of the power system protection program. Provide theoretical basis for the development of power system protection program. When the CNN detects a power system fault lasting for 20ms, the system immediately starts the protection scheme to complete the fault removal, which proves that the scheme has good application efficiency. After verifying the protection scheme, the simulation analysis of the power system based on PLC technology is carried out, and the output voltage quality and equipment speed of the power system with the introduction of the fuzzy PID controller are significantly improved, so that the security and stability of the power system are well guaranteed.
