Disclosure of Invention
The invention aims to provide a circuit breaker fault detection optimization method, device and equipment based on a convolutional neural network, which aim to solve the problem of instability of a traditional CNN model, and can stably search optimal parameters of CNN based on MTBO algorithm so as to improve the performance stability of a system.
The invention provides a circuit breaker fault detection optimization method based on a convolutional neural network, which comprises the following steps:
Acquiring an original vibration signal generated when the circuit breaker is in an operating state;
preprocessing the original vibration signal, and extracting features of the preprocessed original vibration signal based on a convolutional neural network to obtain an extracted target feature data set;
Constructing MTBO-CNN model, taking CNN convolutional neural network as basic model, introducing MTBO algorithm to automatically search the optimal parameter configuration, and optimizing the super parameters of MTBO-CNN model;
Dividing a target characteristic data set into a training set and a testing set according to a preset proportion, training the MTBO-CNN model by using the training set, and testing the MTBO-CNN model by using the testing set to obtain a trained MTBO-CNN model;
Inputting the extracted target characteristic data into a trained MTBO-CNN model, and classifying the breaker vibration signals by adopting an optimized network to obtain a breaker fault identification result.
Preferably, the acquiring the original vibration signal generated when the circuit breaker is in the operation state further includes:
constructing a vibration signal acquisition system with a circuit breaker, arranging a vibration sensor on the circuit breaker, and starting a working operation mode to simulate different mechanical fault types of the circuit breaker;
The method comprises the steps that a signal acquisition device is activated based on the vibration signal acquisition system to capture an analog vibration signal in a mechanical state of the circuit breaker, the captured analog vibration signal is converted into a digital signal, acquisition and recording are carried out according to a preset sampling rate, and the acquired analog vibration signal is transmitted to a fault diagnosis system to carry out fault detection operation of the circuit breaker;
The vibration signal acquisition system comprises a circuit breaker, a signal acquisition device and a fault diagnosis system which are sequentially connected, the signal acquisition device is powered by an external power supply to ensure the normal operation of acquisition, and the simulated vibration signals comprise base screw looseness, iron core jamming and insufficient lubrication of the circuit breaker and related fault signals with different degrees which are simulated and generated by adjusting corresponding mechanical parts on the circuit breaker.
Preferably, in the construction MTBO-CNN model, a CNN convolutional neural network is adopted to sequentially perform signal processing and feature extraction according to the operation sequence of the neural network, so that multi-level information fusion can be efficiently realized, the CNN convolutional neural network comprises an input layer, a one-dimensional convolutional layer, a two-dimensional convolutional layer, a correction layer, a maximum value pooling layer and a full connection layer which are sequentially connected, an original vibration signal is received from a test source output as the input of the input layer, and is transmitted to the next network layer by layer, and a fault identification result is output.
Preferably, the introducing MTBO algorithm automatically searches the optimal parameter configuration, so as to optimize the super parameters of the MTBO-CNN model comprises:
Defining the parameter combination of the CNN convolutional neural network as theta= { alpha, k, n k }, so as to obtain the optimal parameter combination theta, maximizing the objective function F (theta) on the verification set as a target, and setting the objective function as a weighted combination of the classification accuracy and the training time
F(θ)=Accuracy(θ)-λTraining Time(θ);
Wherein, alpha represents learning rate, k represents convolution kernel size, n k represents convolution kernel number, accuracy (theta) is classification Accuracy under parameter combination theta, TRAINING TIME (theta) is training time under parameter combination theta, lambda is time penalty coefficient;
Initializing parameters in the super parameters based on a mountain climbing optimization algorithm, and defining mountain climbing teams, wherein each mountain climbing team comprises a plurality of mountain climbing teams, each mountain climbing team corresponds to an initial parameter combination theta i={αi,ki,nk,i, and i is a subgroup index;
And training the CNN model by taking each initial parameter combination thetai as a super parameter of the CNN model, calculating the corresponding Accuracy Accuracy (theta) on a verification set, recording training time TRAINING TIME (theta), calculating an objective function F (theta), and evaluating and optimizing the initial parameter combinations thetai according to a calculation result.
Preferably, the introducing MTBO algorithm automatically searches the optimal parameter configuration, so as to optimize the super-parameters of the MTBO-CNN model further comprises:
searching and updating each sub-group according to the current adaptability based on a search strategy corresponding to MTBO;
if a local search is performed, the gradient of each initial parameter combination is calculated:
Wherein the method comprises the steps of A gradient representing a current initial parameter combination; representing the deviation of the objective function to the learning rate alpha; A partial derivative of the convolution kernel size k for the objective function; The partial derivative of the number n k of the convolution kernels is the target function;
the parameter combination after the local search is as follows:
Wherein eta is a step size parameter, thetai is a current initial parameter combination, and theta i-local is a parameter combination after local search;
If the cross-population learning is performed, the parameters of the self are adjusted by information sharing, and the parameter combination with the best fitness at the t generation is set as θ, then:
θi-cross=γ·θ*+(1-γ)·θi-local;
Wherein, gamma is information reference factor, theta is parameter combination with optimal adaptability in the t generation, and theta i-cross is parameter combination after cross-group learning.
Preferably, the introducing MTBO algorithm automatically searches the optimal parameter configuration, so as to optimize the super-parameters of the MTBO-CNN model further comprises:
Synthesizing the parameter combinations subjected to the cross-population learning, and selecting an optimal parameter combination theta best:
θbest=argmaxF(θi-cross)
wherein argmax is expressed as an argument that makes the function take a maximum value, and F (θ i-cross) is an objective function to be maximized;
Introducing random variation to maintain the diversity of the search, the updated new parameter combination θ (i, new) is expressed as follows:
θi,new=θi-cross+∈·ramdn();
wherein, E is variation intensity, randn () is standard normal random noise;
and replacing the original thetai with the updated new parameter combination theta (i, new) to serve as a starting point of the next iteration.
Preferably, the introducing MTBO algorithm automatically searches the optimal parameter configuration, so as to optimize the super-parameters of the MTBO-CNN model further comprises:
judging whether the optimizing process meets the following termination conditions:
Determining whether the maximum number of iterations Tmax is reached and/or,
Judging whether the corresponding fitness value of the current optimal combination is improved or not according to the comparison between the current t-generation optimal fitness and the t-1 generation optimal fitness, namely:
Where, δ is the convergence threshold, The optimal result is the fitness value under the t generation optimal parameter combination theta best;
If the termination condition is met, after the optimization process is finished, determining a final optimal parameter combination configuration theta best and training a final model;
if the termination condition is not satisfied, the step of evaluating and optimizing the initial parameter combination thetai is returned to continue iteration.
The invention also provides a circuit breaker fault detection optimization system based on the convolutional neural network, which comprises:
the data acquisition module is used for acquiring an original vibration signal generated when the circuit breaker is in an operating state;
The preprocessing module is used for preprocessing the original vibration signals, and extracting the characteristics of the preprocessed original vibration signals based on a convolutional neural network to obtain an extracted target characteristic data set;
MTBO-CNN model, which is used to construct MTBO-CNN model, takes CNN convolutional neural network as basic model, and introduces MTBO algorithm to automatically search the optimal parameter configuration, so as to optimize the super parameter of MTBO-CNN model;
the model training module is used for dividing the target characteristic data set into a training set and a testing set according to a preset proportion, training the MTBO-CNN model by using the training set, and testing the MTBO-CNN model by using the testing set to obtain a trained MTBO-CNN model;
The fault detection module is used for inputting the extracted target characteristic data into a trained MTBO-CNN model, and classifying the vibration signals of the circuit breaker by adopting an optimized network to obtain a fault identification result of the circuit breaker.
The invention also provides an electronic device, comprising:
a memory for storing a processing program;
And the processor is used for realizing the breaker fault detection optimization method based on the convolutional neural network when executing the processing program.
The invention also provides a readable storage medium, wherein a processing program is stored on the readable storage medium, and the processing program realizes the breaker fault detection optimization method based on the convolutional neural network when being executed by a processor.
Aiming at the prior art, the invention has the following beneficial effects:
The invention provides a fault detection optimization method of a circuit breaker based on a convolutional neural network, which is characterized in that optimal parameter configuration of the CNN is automatically searched through MTBO algorithm, the requirement of manual parameter adjustment is remarkably reduced, the efficiency of model adjustment is improved, the application of MTBO algorithm ensures that the optimal solution is quickly and effectively found in a parameter space, the inefficiency and blindness which possibly occur in the traditional trial-and-error method are avoided, a MTBO-CNN model is adopted, a large amount of vibration signal data are learned, key features are automatically extracted, effective pattern recognition is carried out, therefore, various fault types of the circuit breaker can be accurately identified, compared with the traditional fault detection method, the method has higher accuracy and lower false alarm rate, and because MTBO algorithm considers the performance of the model on a verification set in the parameter optimization process, the obtained MTBO-CNN model has good performance and good generalization capability on a training set, can effectively respond to the newly-occurring fault types, the high-efficiency parameter optimization is greatly reduced, and the cost of professional personnel is greatly reduced. Meanwhile, the rapid and accurate fault diagnosis reduces equipment downtime, improves the overall efficiency of the system, improves the accuracy of fault detection of the circuit breaker, reduces manual intervention through automatic parameter adjustment, and improves the efficiency and reliability of fault detection.
The invention provides a mountain climbing optimization algorithm for optimizing a convolutional neural network (MTBO-CNN) by taking a breaker vibration signal as a research object. The algorithm aims at finding the global optimal solution by simulating the behavior of the mountain climbing team. Specifically, MTBO optimizes the performance of the model by adjusting the hyper-parameters of the CNN, such as convolution kernel size, number of convolution layers, activation functions, etc. Experiments prove that MTBO-CNN is obviously improved in fault diagnosis of the vibration signal of the circuit breaker. Compared with the traditional method for manually determining parameters, MTBO-CNN can automatically search the optimal super-parameter combination, so that the performance and generalization capability of the model are improved. In addition, MTBO-CNN has better robustness, and can obtain good effects on different datasets and problems.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. 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.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment," another embodiment "means" at least one additional embodiment, "and" some embodiments "means" at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not intended to limit the order or interdependence of functions performed by such devices, modules, or units.
It should be noted that references to "one" or "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be interpreted as "one or more" unless the context clearly indicates otherwise.
Example 1
As shown in fig. 1, the invention further provides a circuit breaker fault detection optimization method based on the convolutional neural network, which comprises the following steps:
S1, acquiring an original vibration signal generated when a circuit breaker is in an operating state;
S2, preprocessing the original vibration signal, and carrying out feature extraction on the preprocessed original vibration signal based on a convolutional neural network to obtain an extracted target feature data set;
s3, constructing MTBO-CNN model, taking CNN convolutional neural network as basic model, introducing MTBO algorithm to automatically search the optimal parameter configuration, and optimizing the super parameters of MTBO-CNN model;
S4, dividing a target characteristic data set into a training set and a testing set according to a preset proportion, training the MTBO-CNN model by using the training set, and testing the MTBO-CNN model by using the testing set to obtain a trained MTBO-CNN model;
S5, inputting the extracted target characteristic data into a trained MTBO-CNN model, and classifying the vibration signals of the circuit breaker by adopting an optimized network to obtain a fault recognition result of the circuit breaker.
In the embodiment, firstly, vibration signals are collected when the circuit breaker works, and the collected signals are subjected to necessary preprocessing steps, such as denoising, normalization, feature extraction and the like, so as to ensure the reliability and the quality of data. The processed vibration signal data set is divided into a training set and a testing set according to the proportion of 8:2. The training set is used for training MTBO-CNN network models to help the models learn complex relations between vibration signals and specific fault types, and the testing set is used for evaluating generalization capability and recognition accuracy of the models. These preprocessed data are then input into a deep learning architecture that combines MTBO (Mountain Team-based Optimization) optimization algorithms with Convolutional Neural Networks (CNNs). The MTBO algorithm is used to automatically adjust the hyper-parameters of the CNN to obtain better model performance. Through multiple iterations and cross-subgroup learning, the MTBO-CNN model can effectively improve the accuracy and efficiency of fault identification, and the overall flow is shown in FIG. 2.
In this embodiment, the acquiring the original vibration signal generated when the circuit breaker is in the operating state in step S1 further includes:
constructing a vibration signal acquisition system with a circuit breaker, arranging a vibration sensor on the circuit breaker, and starting a working operation mode to simulate different mechanical fault types of the circuit breaker;
The method comprises the steps that a signal acquisition device is activated based on the vibration signal acquisition system to capture an analog vibration signal in a mechanical state of the circuit breaker, the captured analog vibration signal is converted into a digital signal, acquisition and recording are carried out according to a preset sampling rate, and the acquired analog vibration signal is transmitted to a fault diagnosis system to carry out fault detection operation of the circuit breaker;
The vibration signal acquisition system comprises a circuit breaker, a signal acquisition device and a fault diagnosis system which are sequentially connected, the signal acquisition device is powered by an external power supply to ensure the normal operation of acquisition, and the simulated vibration signals comprise base screw looseness, iron core jamming and insufficient lubrication of the circuit breaker and related fault signals with different degrees which are simulated and generated by adjusting corresponding mechanical parts on the circuit breaker.
In order to effectively detect faults of the circuit breaker, the embodiment designs and builds a high-precision vibration signal acquisition system, combines advanced algorithm optimization, improves accuracy and efficiency of fault identification, and specifically acquires and identifies the process as shown in fig. 3, step 1, a signal acquisition device supplies power. And 2, configuring a vibration sensor, namely attaching the vibration sensor to the upper part of an arc extinguishing chamber of the circuit breaker. And 3, vibration signal acquisition, namely activating a signal acquisition device to start to acquire vibration data, converting an analog vibration signal into a digital signal by an analog-to-digital converter (ADC) built in the acquisition device, and recording the digital signal at a preset sampling rate such as 25.6 kHz. And 4, inputting data into a fault diagnosis system, namely transmitting the acquired vibration signal data to the fault diagnosis system in a wired mode. And 5, analyzing and identifying fault data, namely firstly filtering, reducing noise and enhancing signals by a preprocessing module to highlight fault characteristics, and then carrying out state identification by using the fault diagnosis algorithm provided by the embodiment. And 6, displaying the identification result, namely displaying the analysis result through a user interface, wherein a user can directly observe the state information of the circuit breaker.
The specific construction of the vibration signal acquisition system in this embodiment is as follows:
A vibration signal acquisition system is built by adopting PCB Piezotronics accelerometer A356A 04 piezoelectric acceleration sensor and a NI 9234 data acquisition card manufactured by National Instruments (NI) company.
(1) The sensor is selected by adopting a CT1005LC type acceleration sensor because the vibration signal of the circuit breaker has the characteristics of short effective time and large vibration impact. The sensor is fixed above the arc extinction of the circuit breaker by the magnet adsorption, so that the signal repeatability is ensured and the installation is convenient. By virtue of its high performance SMR sensing element and sophisticated internal amplification circuitry, the sensor has high resolution and high sensitivity. (2) And signal acquisition, namely reading ADC data by the sensor through a parallel interface, wherein the sampling frequency is up to 1MHz. The acquired data is downsampled to 32kHz by the FPGA module, making it more suitable for subsequent signal processing and analysis, as shown in fig. 4. (3) And the acquisition setting is that the coordinate zero point of the sampling signal is set to be when the circuit breaker is about to act, so as to ensure that the data acquired each time are kept consistent. Vibration signals are captured under four mechanical states, including faults such as loosening of base screws, jamming of iron cores, insufficient lubrication and the like, and faults with different degrees are simulated by adjusting conditions of related mechanical components.
In the embodiment, the MTBO-CNN-based optimization algorithm optimizes three key parameters of the convolutional neural network, namely the learning rate, the convolutional kernel size and the convolutional kernel number, by using the highest test set precision as an objective function, and can obtain better performance and more accurate results in the network training process. In this optimization process, the mountain climbing algorithm is different from the conventional optimization algorithm. It simulates the process of a mountain climbing team climbing a mountain, by continually exploring different points and directions in the parameter space, to find better parameter combinations. Specifically, this algorithm first randomly initializes a set of parameter combinations as a starting point and calculates the corresponding test set precision. It then searches for nearby parameter points with minor changes and adjustments, and at each step evaluates the improvement in test set accuracy. If a better combination of parameters is found, the mountain climbing algorithm updates the parameters and explores the surrounding neighborhood further. This process continues until a locally optimal solution is found or a preset termination condition is reached. The algorithm flow chart is shown in fig. 5.
In the CNN identification network in this embodiment, the fault diagnosis system adopts a Convolutional Neural Network (CNN), and includes six key layers, which are an input layer, a one-dimensional convolutional layer, a two-dimensional convolutional layer, a correction layer, a maximum value pooling layer, and a full connection layer. The layers sequentially perform signal processing and feature extraction according to the operation sequence of the neural network, so that multi-level information fusion can be efficiently realized, and the accuracy of fault diagnosis is improved. A schematic of the structure is shown in fig. 6. In the construction MTBO-CNN model, a CNN convolutional neural network is adopted to sequentially perform signal processing and feature extraction according to the operation sequence of the neural network, multi-level information fusion can be efficiently realized, the CNN convolutional neural network comprises an input layer, a one-dimensional convolutional layer, a two-dimensional convolutional layer, a correction layer, a maximum value pooling layer and a full connection layer which are sequentially connected, an original vibration signal is received from test source output as input of the input layer, and is transmitted to the next network layer by layer, and a fault identification result is output.
(1) Input stage
In the input phase, the system first receives raw data of the vibration signal from the test source output and performs preprocessing. The data are arranged in time sequence, and one data sample is input every 16 periods. The process ensures the order of the input data and lays a foundation for subsequent convolution processing. Once the data is collected, it is gradually passed on to the next network layer for further processing. Wherein the convolution layer is composed of a plurality of convolution cores, each of which is composed of two multipliers and an adder, the structure of which is shown in fig. 7.
(2) One-dimensional convolution layer
The one-dimensional convolution layer is made up of 16 parallel convolution cores. After this layer of processing, each input data item can generate 16 different output data simultaneously, and the convolution operation is shown in fig. 8. The design enhances the density and effectiveness of feature extraction and improves the quality of the preliminary analysis stage.
(3) Two-dimensional convolution layer
The two-dimensional convolution layer convolves 16 data (after correction) output by the one-dimensional convolution layer, and because the 16 data are calculated through 16 convolution cores respectively, in order to save resources, 16 groups of convolution parameters are circularly input into the 16 convolution cores according to the period, and one-time two-dimensional convolution calculation is completed by using 16 clock periods, as shown in fig. 9.
(4) Correction layer
A correction operation is performed on the output of the convolutional layer, with the negative value set to 0, to ensure that all output data is non-negative, enhancing the interpretability of the model and subsequent processing stability.
(5) Maximum pooling layer
A pooling operation is applied to the output results of the two-dimensional convolution layers, extracting a maximum value from each convolution output channel. Finally, the maximum of the 16 channels is integrated as the pooling layer output.
(6) Full connection layer
And arranging the 16 values processed by the pooling layer according to the channel sequence, and carrying out convolution calculation with 4 groups of preset coefficients. And adding offset value for adjustment to obtain the weight value of each possible result. And selecting the final classification result with the largest weight value, namely judging the fault type calculated at the time.
The original convolutional neural network usually requires tedious manual parameter adjustment, including learning rate, hierarchy, and selection of activation functions. This process not only takes a lot of time, but also requires a lot of expertise to ensure the rationality of the parameters and the validity of the model. In order to simplify the process and improve the performance of the model, a MTBO optimized CNN parameter process is adopted in the embodiment, and MTBO (Mountain Team-based Optimization) algorithm is introduced to automatically optimize the parameter configuration of CNN, and the specific steps are as follows:
1. Definition problem
Setting the parameter combination of the CNN convolutional neural network as theta= { alpha, k, n k }, so as to obtain the optimal parameter combination theta, maximizing an objective function F (theta) on a verification set as a target, and setting the objective function as a weighted combination of classification accuracy and training time:
F(θ)=Accuracy(θ)-λTrainming Time(θ);
wherein, alpha represents learning rate, k represents convolution kernel size, n k represents convolution kernel number, accuracy (theta) is classification Accuracy under parameter combination theta, TRAINING TIME (theta) is training time under parameter combination theta, lambda is time penalty coefficient;
2. Initialization of
The mountain-climbing team optimization algorithm is based on initializing each parameter in the super parameters, and the scope is defined as alpha epsilon [ alpha min,αmax],k∈{3,5,7},nk∈[nk,min,nk,max ], wherein alpha min and alpha max are respectively the minimum value and the maximum value preset by the parameter alpha, and n k,min,nk,max is respectively the minimum value and the maximum value preset by the parameter n k.
Defining mountain climbing teams, wherein each mountain climbing team comprises a plurality of mountain climbing teams, each mountain climbing team corresponds to an initial parameter combination theta i={αi,ki,nk,i, and i is a subgroup index;
3. Parameter assessment
For each initial parameter combination θi is used as a hyper-parameter of the CNN model:
1) Model construction and training, namely constructing a CNN model and training by using training data. 2) And (3) calculating the corresponding Accuracy Accuracy (theta) on the verification set, recording the training time TRAINING TIME (theta), calculating the objective function F (theta), and evaluating and optimizing the initial parameter combination thetai according to the calculation result.
4. Updating and searching
Searching and updating each sub-group according to the current adaptability based on a search strategy corresponding to MTBO;
(1) Local search:
the gradient for each initial parameter combination is calculated:
Wherein the method comprises the steps of A gradient representing a current initial parameter combination; representing the deviation of the objective function to the learning rate alpha; A partial derivative of the convolution kernel size k for the objective function; The partial derivative of the number n k of the convolution kernels is the target function;
the parameter combination after the local search is as follows:
Wherein eta is a step size parameter, thetai is a current initial parameter combination, and theta i-local is a parameter combination after local search;
(2) Group-crossing learning:
Information sharing is carried out among the sub-groups, and the parameters of the sub-groups are adjusted according to the optimal parameter combination of other teams. The parameters of the information sharing adjustment are set to be θ, which is the optimal parameter combination for the t generation of fitness:
θi-cross=γ·θ*+(1-γ)·θi-local;
Wherein, gamma is information reference factor, theta is parameter combination with optimal adaptability in the t generation, and theta i-cross is parameter combination after cross-group learning.
5. Fusion and optimization
(1) Global fusion:
Synthesizing the parameter combinations subjected to the cross-population learning, and selecting an optimal parameter combination theta best:
θbest=argmaxF(θicross);
wherein argmax is expressed as an argument that makes the function take a maximum value, and F (θ i-cross) is an objective function to be maximized;
(2) Diversity retention:
Introducing random variation to maintain diversity of search and avoid early convergence, the new parameter combination θ (i, new) after update is expressed as follows:
θi,new=θi-cross+∈·randn();
wherein, E is variation intensity, randn () is standard normal random noise;
(3) Parameter updating:
And replacing the original thetai with the updated new parameter combination theta (i, new) to serve as a starting point thetat i←θi,new of the next iteration.
6. Termination condition
Judging whether the optimizing process meets the following termination conditions:
(1) Judging whether the maximum iteration number Tmax is reached;
(2) Judging whether the corresponding fitness value of the current optimal combination is improved or not according to the comparison between the current t-generation optimal fitness and the t-1 generation optimal fitness, namely:
Where, δ is the convergence threshold, The optimal result is the fitness value under the t generation optimal parameter combination theta best;
7. Iteration and final model
If the termination condition is met, after the optimization process is finished, determining a final optimal parameter combination configuration theta best and training a final model;
if the termination condition is not satisfied, returning to the step of evaluating and optimizing the initial parameter combination thetai, namely, continuing iteration in step 3.
Conventional fault diagnosis models often use manual parametric approaches to optimize the model, which is time consuming and requires expertise. The MTBO-CNN model introduces MTBO (Mountaineering Team-Based Optimization) algorithm, and utilizes an optimization algorithm to automatically search the optimal parameter configuration without manually adjusting parameters, thereby greatly improving the parameter optimization efficiency and accuracy. The MTBO-CNN model adopts a Convolutional Neural Network (CNN) as a basic model, and has strong feature extraction capability. CNNs are able to automatically learn and extract important features from raw data, playing a key role in fault identification and diagnosis. The MTBO-CNN model considers the influence of uncertainty and noise in the parameter optimization process, and improves the robustness and stability of the model. In addition, by optimizing CNN parameters, the MTBO-CNN model can also improve the interpretability of the model, so that engineers can better understand fault diagnosis results and judge fault reasons more accurately. Compared with the CNN model or other traditional methods for fault diagnosis, the MTBO-CNN model has advantages in parameter optimization and feature extraction, so that the accuracy and performance of fault diagnosis can be improved. By automatically optimizing the CNN parameters, a better effect is achieved in the fault diagnosis task. The MTBO-CNN model fully considers the mobility of the model in the training process, and the model can be better adapted to different breaker fault diagnosis tasks by pre-training on a large-scale data set and then fine-tuning on a target task. Therefore, the requirement for a large amount of labeling data can be reduced, and the training efficiency and generalization capability of the model are improved.
Specific examples of the fault detection flow executed based on the above-described optimization step are as follows:
(1) And (3) data acquisition, namely acquiring vibration signals by the sensor under different fault scenes to form a sample data set containing various fault degrees, wherein the original vibration signals in four different states are shown in figures 10-13.
(2) CNN is optimized by MTBO, the learning rate, the convolution kernel size and the number of convolution kernels of the convolution neural network are optimized according to a mountain climbing team optimization algorithm, and the optimized parameters are shown in the following table 1.
TABLE 1cnn optimization parameter results
(3) Training and evaluating the model, namely training the collected data by using optimized parameter configuration, quantitatively evaluating the classification performance of the model under different fault scenes, and ensuring that the network can accurately identify various mechanical faults of the circuit breaker. The error iteration change curve is drawn by taking the test error as a radius label and the iteration number as an angle label as shown in fig. 14. Analysis of the graph shows that after 6 rounds of training, the training error is reduced to 0.0008 and the training becomes stable.
In order to further examine the capacity of MTBO-CNN model to identify faults of the circuit breaker, a confusion matrix is introduced to quantitatively analyze diagnosis results. The confusion matrix reflects in detail the number of erroneous decisions and the type of erroneous decisions for different types of faults of the rolling bearing, as shown in fig. 15. In fig. 15, the abscissa represents the predicted category of different faults, the ordinate represents the real label of different faults, and the number on the main diagonal of the matrix represents the number of samples for correctly classifying each type of faults, and the result shows that 100% of identification accuracy can be realized for all the four types of circuit breakers in different states.
Example two
Based on the same conception, the invention provides a breaker fault detection optimization system based on a convolutional neural network, which comprises the following steps:
the data acquisition module is used for acquiring an original vibration signal generated when the circuit breaker is in an operating state;
The preprocessing module is used for preprocessing the original vibration signals, and extracting the characteristics of the preprocessed original vibration signals based on a convolutional neural network to obtain an extracted target characteristic data set;
MTBO-CNN model, which is used to construct MTBO-CNN model, takes CNN convolutional neural network as basic model, and introduces MTBO algorithm to automatically search the optimal parameter configuration, so as to optimize the super parameter of MTBO-CNN model;
the model training module is used for dividing the target characteristic data set into a training set and a testing set according to a preset proportion, training the MTBO-CNN model by using the training set, and testing the MTBO-CNN model by using the testing set to obtain a trained MTBO-CNN model;
The fault detection module is used for inputting the extracted target characteristic data into a trained MTBO-CNN model, and classifying the vibration signals of the circuit breaker by adopting an optimized network to obtain a fault identification result of the circuit breaker.
It should be noted that, the division of each module in the embodiment of the apparatus/system is merely a division of a logic function, and may be fully or partially integrated into a physical entity or may be physically separated. The modules can be realized in a form of calling the processing element through software, can be realized in a form of hardware, can also be realized in a form of calling the processing element through part of units, and can be realized in a form of hardware.
The implementation principle of the above modules has been described in the foregoing embodiments, so that a repetition of the description is omitted here.
Example III
Based on the same conception, in some embodiments of the application, an electronic device is also provided. The electronic equipment comprises a memory and a processor, wherein the memory is used for storing a processing program, and the processor executes the processing program according to the instruction. The processor executes the processing program, so that the breaker fault detection optimization method based on the convolutional neural network in the previous embodiment is realized.
In some embodiments of the present application, a readable storage medium is also provided, which may be a non-volatile readable storage medium or a volatile readable storage medium. The readable storage medium has instructions stored therein that, when executed on a computer, cause an electronic device comprising such a readable storage medium to perform the aforementioned convolutional neural network-based breaker failure detection optimization method.
It will be appreciated that for the aforementioned convolutional neural network based breaker failure detection optimization method, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of the embodiments of the present invention. The storage medium includes a U disk, a removable hard disk, a Read-only memory (ROM), a random access memory (Randomaccessmemory, RAM), a magnetic disk or an optical disk, etc. which can store the program code.
The computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable storage medium may also be any readable medium that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out the disclosed aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Python, c++ or the like and conventional procedural programming languages, such as the C-language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
It should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present invention, and not for limiting the same, and although the present invention has been described in detail with reference to the above-mentioned embodiments, it should be understood by those skilled in the art that the technical solution described in the above-mentioned embodiments may be modified or some technical features may be equivalently replaced, and these modifications or substitutions do not make the essence of the corresponding technical solution deviate from the spirit and scope of the technical solution of the embodiments of the present invention.