Hydroelectric generating set fault diagnosis method based on Gramb angle field and ICOA-PCNN-MSA-SVM

Through Gram angle field conversion and ICOA-PCNN-MSA-SVM model, the problem of poor signal processing in hydropower unit fault diagnosis is solved, high accuracy and efficient fault identification are achieved, and the stability of hydropower unit fault diagnosis is improved. and accuracy.

CN118797451APending Publication Date: 2024-10-18KUNMING UNIV OF SCI & TECH

Patent Information

Application Number
CN202410774768.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Existing fault diagnosis methods for hydropower units have problems such as poor signal processing, resulting in poor fault diagnosis accuracy, poor stability, and unsatisfactory prediction results.

Method used

Using the method based on Gram angle field and ICOA-PCNN-MSA-SVM, the one-dimensional time series signal is converted into a two-dimensional image through Gram angle field, a two-branch convolutional neural network model is constructed, and the improved coati is used Optimization algorithm and multi-head self-attention mechanism for fault diagnosis.

Benefits of technology

It improves the accuracy and efficiency of fault diagnosis, enhances the robustness and fault identification accuracy of the model, and the experimental results show that the accuracy reaches 100%, and it can effectively identify hydropower unit faults.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118797451A_ABST
    Figure CN118797451A_ABST
Patent Text Reader

Abstract

The invention discloses a fault diagnosis method for a hydroelectric generating set based on a Gramer angle field and an ICOA-PCNN-MSA-SVM, and belongs to the field of vibration signal processing. Hydroelectric generating set sound signals are collected respectively; converting the time sequence of the sound signal into a two-dimensional image by using a Grubrum angle field, and taking the two-dimensional image as a feature set of the signal; a double-branch model formed by connecting two convolutional neural networks in parallel is constructed, each convolutional neural network is composed of an input layer, a convolutional layer, a pooling layer, a full connection layer and an output layer which are connected in sequence, the output layer adopts a multi-head self-attention mechanism, a support vector machine replaces an existing Softmax layer, and the output layer adopts a multi-head self-attention mechanism. And carrying out hyper-parameter optimization on the convolutional neural network by using an improved Raccoon longnose optimization algorithm. And a multi-head self-attention mechanism and a support vector machine are introduced to carry out secondary improvement on the double-branch model. Experimental results show that the accuracy rate of the method reaches 100%, and the method can be used as a beneficial supplement for a current hydroelectric generating set fault detection technology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of vibration signal processing and discloses a hydropower unit fault diagnosis method based on Gram angle field and ICOA-PCNN-MSA-SVM. Background Art

[0002] With the vigorous development of clean energy, the installed capacity and power generation of hydropower units have also maintained rapid growth. However, during the long-term and high-load operation of hydropower units, various faults will inevitably occur, which not only affects the power generation efficiency of the units, but also poses a threat to the operation safety of the units. Therefore, it is necessary to accurately identify and warn the faults of hydropower units in a timely manner to ensure the stable operation of hydropower units, improve power generation efficiency, and extend the life of the units.

[0003] Traditional fault diagnosis methods often rely on manual inspections and empirical judgments. This method is not only inefficient, but also easily affected by human factors, resulting in the inability to ensure the accuracy and timeliness of fault diagnosis. At present, the fault diagnosis technology of hydropower units is also developing towards intelligence and automation. The specific fault diagnosis method mainly consists of three parts: signal processing, feature extraction and classification recognition. The signal processing methods mainly include variational mode decomposition (VMD), empirical mode decomposition (EMD) and its variants. Zheng Yuan et al. used EMD-ICA to reduce the noise of hidden friction signals of turbine units and achieved good results. Hu Xiao et al. performed VMD decomposition on the vibration signal of the hydropower unit and reconstructed the obtained components to construct a time graph. Fu Zhixin et al. designed a model for predicting the degradation degree of hydropower units based on EEMD and LSTM. Through EEMD, the originally non-stationary degradation degree time series was decomposed into several stationary component sequences to improve the prediction accuracy. It can be seen that these signal processing methods all decompose the original signal and then select the decomposed components. However, no matter what method is used, as long as the decomposition is used, valuable signals in the signal will be lost. Based on this, Chen Fei et al. proposed a method that does not decompose, but uses the value of time-shifted multi-scale attention entropy and improved symbolic dynamic entropy as the characteristic value, and has a good application in the field of hydropower unit fault diagnosis. This method can greatly reduce the loss of signals. However, this method is more dependent on parameters such as scale value, embedding dimension, number of categories, and time delay. The main role of hydropower generation in the power grid is peak regulation and frequency regulation, and its operating conditions change frequently, which places high demands on the parameter setting of entropy. The literature uses Markov transition field to convert one-dimensional time series signals into two-dimensional feature images. This method can achieve a diagnostic accuracy of more than 98% for various gear faults. However, the vibration signals of hydropower units are often unstable and nonlinear. The Markov transition field focuses on describing the transition probability between states in the Markov chain, which is more suitable for mining features in stable signals.

[0004] At present, domestic and foreign research results have been achieved in the field of hydropower unit fault diagnosis technology based on artificial intelligence. Among them, some commonly used methods include: fault diagnosis based on neural networks, fault diagnosis based on support vector machines, fault diagnosis based on deep learning, etc. These methods can theoretically realize the diagnosis of hydropower unit faults, but there are still some challenges and limitations in practical applications. For example, the accuracy and completeness of data collection, the generalization ability of algorithm models, and real-time requirements all need further research and optimization, and the accuracy and stability of prediction results also need to be improved.

[0005] The existing signal processing analysis and fault diagnosis technologies for hydropower units have problems such as poor accuracy, poor stability and unsatisfactory prediction results. Therefore, it is urgent to develop a more reliable fault diagnosis method for hydropower units. Summary of the invention

[0006] The purpose of the present invention is to provide a hydropower unit fault diagnosis method based on Gram angle field and ICOA-PCNN-MSA-SVM, so as to solve the problems that the existing method has poor signal processing of hydropower units, resulting in poor fault diagnosis accuracy and stability and unsatisfactory prediction results.

[0007] In order to solve the above technical problems, the present invention adopts the following technical solution: a hydropower unit fault diagnosis method based on Gram angle field and ICOA-PCNN-MSA-SVM, characterized by comprising the following steps:

[0008] (1) Collect acoustic signals of hydropower units respectively;

[0009] (2) Using the Gram angle field, the time series of the acoustic signal is converted into a two-dimensional image as a feature set of the signal;

[0010] (3) constructing a dual-branch model consisting of two convolutional neural networks in parallel, wherein the convolutional neural network consists of an input layer, a convolutional layer, a pooling layer, a fully connected layer, and an output layer connected in sequence, wherein the output layer adopts a multi-head self-attention mechanism and a support vector machine to replace the existing Softmax layer, and uses the improved coati optimization algorithm to optimize the hyperparameters of the convolutional neural network;

[0011] (4) The feature set is divided into a training set and a test set. The feature set is input into the optimized dual-branch model for training to obtain a fault diagnosis model. The test set is input into the fault diagnosis model for state recognition to complete the fault diagnosis of the hydropower unit.

[0012] A further technical solution is that the specific steps of step (2) are as follows: the acoustic signal is represented as a time series X = {x 1 ,x 2 ,…x i ,…x n}, where N is the total number of time points; i is a time point, i∈[1,N]:

[0013] 2-1. Normalize the original time series:

[0014]

[0015] 2-2. Transform the obtained data into polar coordinates to obtain the radius and angle corresponding to each data point:

[0016]

[0017] Where: G is the Gram matrix; <·> is the inner product operation;

[0018] Transform the time series:

[0019]

[0020] Where: r is the radius in polar coordinates, θ is the angle;

[0021] 2-3. Using the Gram matrix, we can get a two-dimensional image of the time series:

[0022]

[0023]

[0024] Where: GASF is the Gram angular field sum transformation, GADF is the Gram angular field difference change.

[0025] A further technical solution is that the improved coati optimization algorithm in step (3) is as follows:

[0026] 3-1. Exploration - cooperative hunting of iguanas

[0027] In this stage, half of the coatis climb a tree to approach the iguana for hunting, while the other half gather under the tree and wait for the iguana to land. When the iguana lands, the coatis will hunt it. The iguana represents the global optimal position. The mathematical model of the behavior of tree-climbing coatis is:

[0028]

[0029] The iguana lands at a random location, and the coati will move randomly accordingly. The second mathematical model is:

[0030]

[0031]

[0032] Where: I is a random integer; For iguana location; is the updated position; is the optimal position before updating; N is the population size; ub j lb j are the upper and lower boundaries respectively; r is a random number between 0 and 1; i and j represent different dimensions of different individuals; f() represents the fitness value;

[0033] 3-2. Development - Dispersion to escape predators

[0034] If a predator attacks a coati, the coati will flee from its original location and seek shelter in a nearby safe place. Mathematical model 3 is:

[0035]

[0036]

[0037] 3-3. Initialization method based on quantum superposition state

[0038] Initialize the population to a superposition state of multiple possible positions, determine the specific position through quantum measurement, and increase the diversity and coverage of the population:

[0039] The initial state of each individual is represented as a quantum superposition state:

[0040]

[0041] Among them, |ψ i > represents the quantum state of the ith individual, |x ij > represents the state of the jth dimension, and D is the dimension of the search space;

[0042] Transforming quantum states into specific locations through quantum measurements:

[0043]

[0044] in, is the initial position of the i-th individual;

[0045] In the initial population stage, the mathematical model 1 is changed to:

[0046]

[0047] Among them, r is a random number between [-1,1], lb j andub j are the lower and upper boundaries of the j-th dimension respectively;

[0048] 3-4. Adaptive cooperation mechanism based on dynamic learning factors

[0049] In the exploration phase, a dynamic learning factor is introduced to enable individuals to adaptively adjust the learning factor according to their current fitness, thereby enhancing the individual's adaptability and search ability:

[0050] The learning factor is dynamically adjusted according to the individual's fitness:

[0051]

[0052] in, is the fitness of the ith individual at time t, N is the population size, is the dynamic learning factor of the ith individual at time t;

[0053] Mathematical model 2 is rewritten as using dynamic learning factors to update individual positions

[0054]

[0055] Among them, w j is the weight of individual j, satisfying

[0056] 3-5. Dynamic escape mechanism based on fuzzy logic

[0057] In the development-dispersed escape stage, fuzzy logic control is introduced to enable individuals to dynamically adjust their escape direction and step length according to the current environment and their own status, thereby enhancing adaptability and escape effect:

[0058] Fitness difference (Δf)

[0059]

[0060]

[0061]

[0062] Among them, μ is the membership function, which represents the membership of the fuzzy variable; Δf is the fitness difference, which represents the fitness difference between the current individual and the best individual.

[0063] Crowding degree (ρ)

[0064]

[0065]

[0066]

[0067] Among them, ρ is the crowding degree, which indicates the crowding situation around the current individual;

[0068] The escape step length (Δx) and escape direction (θ) are also defined using similar membership functions:

[0069]

[0070]

[0071] Change the mathematical model 3 in the development-dispersion escape from predator to:

[0072]

[0073] The above μ(Δx i) and μ(θ i ) includes fuzzy logic results based on fitness difference Δf and crowding ρ, while (Δx) and (θ) are dynamically adjusted by fitness difference and crowding.

[0074] A further technical solution is that the dual-branch model in step (3) is composed of two convolutional neural networks in parallel, each of which is composed of an input layer, a convolutional layer, a pooling layer, a fully connected layer and an output layer connected in sequence.

[0075] Specifically, given an input image matrix X and a filter matrix F, the convolution operation consists of sliding the filter over the input image, performing matrix multiplication at each position, and the sum of the multiplications forms a new matrix, called the feature map C. This process is expressed as:

[0076] C(i,j)=(F*X)(i,j)=Σ m ∑ n F(m,n)·X(i+m,j+n)

[0077] Where: C(i,j) is the value of the feature map at position (i,j); (F*X) represents the convolution of F and X; F(m,n) represents the filter matrix with size m×n, indicating the size of the filter; X(i+m,j+n) represents the part of the input image matrix currently covered by the filter;

[0078] The output layer uses a multi-head self-attention mechanism and a support vector machine to replace the existing Softmax layer. The multi-head self-attention mechanism is expressed as:

[0079] MultiHead(Q,K,V)=Concat(head 1 ,head 2 ,…,head h )W o

[0080] Where: Each head h The calculation formula is:

[0081]

[0082] The calculation of a single attention head can be expressed as:

[0083]

[0084] Where: d K is the dimension of the key vector, and W o is a learnable parameter matrix used to transform the input into the appropriate space;

[0085] The features of the data processed by the two convolutional neural networks are enhanced through the multi-head self-attention mechanism, and then efficiently classified through the support vector machine to output the final result.

[0086] Compared with the prior art, the present invention has the following beneficial effects:

[0087] 1. Converting the one-dimensional time series signal into a two-dimensional image through the Gram Angular Field (GASF) without decomposing and reconstructing the signal helps to extract richer and more distinctive features, and also greatly improves the accuracy and efficiency of fault diagnosis.

[0088] 2. The initialization of the coati optimization algorithm (COA) is optimized using the quantum superposition state, which can represent multiple possible positions at the same time, thereby improving the diversity of the initial population. Through quantum measurement, it is ensured that the population covers the entire search space, thus avoiding the initial population from being concentrated in a local area.

[0089] 3. The dynamic learning factor can be dynamically adjusted according to the fitness of the individual, enhancing the adaptability of the search process, improving the efficiency of the individual in different search stages, avoiding premature convergence or falling into the local optimum, and further optimizing the exploration cooperation stage of the coati optimization algorithm (COA).

[0090] 4. Fuzzy logic control can handle uncertainties in complex environments and improve the adaptability of escape strategies; by dynamically adjusting the escape direction and step length, the flexibility and escape effect of individuals can be enhanced, avoiding falling into local optimality, and further optimizing the development of the coati optimization algorithm (COA) - the dispersed escape stage.

[0091] 5. The improved coati optimization algorithm (ICOA) can optimize the parameters such as learning rate and convolution kernel size in the model, making the model more reasonable and effectively improving the fault identification accuracy.

[0092] 6. The design of the dual-branch model allows the convolutional neural network CNN to learn different weight values. The high-dimensional features of the two branches complement each other, so that the deep spatial features are significantly enhanced. MAS and SVM replace the softmax layer in CNN, and the multi-head self-attention mechanism (MSA) is used to focus on strengthening the features, further improving the accuracy of fault identification. Support vector machine (SVM) is used for efficient classification, making the model more robust to outliers and improving the accuracy of fault identification.

[0093] 7. The method proposed in this paper performs well in terms of diagnostic efficiency and robustness. Experimental results show that the accuracy of this method reaches 100%, which can be used as a beneficial supplement to the current hydropower unit fault detection technology. This research provides key technical support for the fault diagnosis of hydropower units and demonstrates its high value in engineering applications. BRIEF DESCRIPTION OF THE DRAWINGS

[0094] Figure 1 It is a flow chart of the present invention.

[0095] Figure 2 1 is a diagram of the acoustic vibration measured signal and spectrum in the embodiment.

[0096] Figure 3 GASF diagram of the acoustic vibration measured signal in the embodiment.

[0097] Figure 4 It is a CNN feature map of the acoustic vibration dual-branch model in the embodiment.

[0098] Figure 5 This is the result diagram of fault classification of acoustic vibration signals during the test. DETAILED DESCRIPTION

[0099] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0100] Figure 1 A hydropower unit fault diagnosis method based on Gram angle field and ICOA-PCNN-MSA-SVM is shown, which is characterized by comprising the following steps:

[0101] (1) Collect the acoustic signals of the hydropower units separately.

[0102] A noise sensor (model CRY2301) is used for signal acquisition. The sensor is a miniaturized industrial-grade real-time spectrum analyzer equipped with an advanced digital signal processing (DSP) processor. It integrates a microphone, a preamplifier, and a data acquisition card to ensure the accuracy and efficiency of data processing while maintaining a compact design. The specific parameters of the noise sensor are listed in Table 1. The obtained acoustic signal is as follows: Figure 2 shown.

[0103] Table 1 Noise sensor CRY2301 parameters

[0104]

[0105]

[0106] (2) Use the Gram angle field to convert the time series of the acoustic signal into a two-dimensional image as the feature set of the signal.

[0107] Gramian Angular Field (GAF) is a coding method that combines coordinate transformation and Gramian matrix to transform time series into images. The Gramian matrix is ​​the inner product of two vectors. It can preserve the time dependence of the time series, but it cannot effectively distinguish between value information and Gaussian noise. Therefore, before performing Gramian matrix transformation, the time series needs to be spatially transformed. The common method is to convert the Cartesian coordinate system into the polar coordinate system (radius, angle). Specifically:

[0108] The acoustic signal is represented as a time series X = {x 1 ,x 2 ,…x i ,…x n}, where N is the total number of time points; i is a time point, i∈[1,N]:

[0109] 2-1. Normalize the original time series:

[0110]

[0111] 2-2. Transform the obtained data into polar coordinates to obtain the radius and angle corresponding to each data point:

[0112]

[0113] Where: G is the Gram matrix; <·> is the inner product operation;

[0114] Transform the time series:

[0115]

[0116] Where: r is the radius in polar coordinates, θ is the angle;

[0117] 2-3. Using the Gram matrix, we can get a two-dimensional image of the time series:

[0118]

[0119]

[0120] Where: GASF is the Gram angular field sum transformation, GADF is the Gram angular field difference change.

[0121] A total of 100 samples were measured in this experiment, which are divided into two working conditions, healthy state and sediment state, and the length of each sample is 2048. The specific waveform is as follows Figure 2 As shown. Figure 2The spectrum in the figure shows that the characteristic values ​​of the two working conditions are significantly different. The healthy state is mostly low-frequency signals, while the sediment state is mostly high-frequency signals. The original waveform is transformed by GASF, and the result is as follows: Figure 3 shown. Figure 3 The displayed two-dimensional characteristic map of sediment status is very clear, and its characteristics are well identifiable compared with the healthy state.

[0122] (3) A dual-branch model (PCNN) consisting of two convolutional neural networks in parallel was constructed. The convolutional neural network consisted of an input layer, a convolutional layer, a pooling layer, a fully connected layer, and an output layer connected in sequence. The output layer adopted a multi-head self-attention mechanism and a support vector machine to replace the existing Softmax layer. The improved coati optimization algorithm was used to optimize the hyperparameters of the convolutional neural network.

[0123] The improved coati optimization algorithm is as follows:

[0124] 3-1. Exploration - cooperative hunting of iguanas

[0125] In this stage, half of the coatis climb a tree to approach the iguana for hunting, while the other half gather under the tree and wait for the iguana to land. When the iguana lands, the coatis will hunt it. The iguana represents the global optimal position. The mathematical model of the behavior of tree-climbing coatis is:

[0126]

[0127] The iguana lands at a random location, and the coati will move randomly accordingly. The second mathematical model is:

[0128]

[0129]

[0130] Where: I is a random integer; For iguana location; is the updated position; is the optimal position before updating; N is the population size; ub j lb j are the upper and lower boundaries respectively; r is a random number between 0 and 1; i and j represent different dimensions of different individuals; f() represents the fitness value;

[0131] 3-2. Development - Dispersion to escape predators

[0132] If a predator attacks a coati, the coati will flee from its original location and seek shelter in a nearby safe place. Mathematical model 3 is:

[0133]

[0134]

[0135] 3-3. Initialization method based on quantum superposition state

[0136] Initialize the population to a superposition state of multiple possible positions, determine the specific position through quantum measurement, and increase the diversity and coverage of the population:

[0137] The initial state of each individual is represented as a quantum superposition state:

[0138]

[0139] Among them, |ψ i > represents the quantum state of the ith individual, |x ij > represents the state of the jth dimension, and D is the dimension of the search space;

[0140] Transforming quantum states into specific locations through quantum measurements:

[0141]

[0142] in, is the initial position of the i-th individual;

[0143] In the initial population stage, the mathematical model 1 is changed to:

[0144]

[0145] Among them, r is a random number between [-1,1], lb j andub j are the lower and upper boundaries of the j-th dimension respectively;

[0146] 3-4. Adaptive cooperation mechanism based on dynamic learning factors

[0147] In the exploration phase, a dynamic learning factor is introduced to enable individuals to adaptively adjust the learning factor according to their current fitness, thereby enhancing the individual's adaptability and search ability:

[0148] The learning factor is dynamically adjusted according to the individual's fitness:

[0149]

[0150] in, is the fitness of the ith individual at time t, N is the population size, is the dynamic learning factor of the ith individual at time t;

[0151] Mathematical model 2 is rewritten as using dynamic learning factors to update individual positions

[0152]

[0153] Among them, w j is the weight of individual j, satisfying

[0154] 3-5. Dynamic escape mechanism based on fuzzy logic

[0155] In the development-dispersed escape stage, fuzzy logic control is introduced to enable individuals to dynamically adjust their escape direction and step length according to the current environment and their own status, thereby enhancing adaptability and escape effect:

[0156] Fitness difference (Δf)

[0157]

[0158]

[0159]

[0160] Among them, μ is the membership function, which represents the membership of the fuzzy variable; Δf is the fitness difference, which represents the fitness difference between the current individual and the best individual.

[0161] Crowding degree (ρ)

[0162]

[0163]

[0164]

[0165] Among them, ρ is the crowding degree, which indicates the crowding situation around the current individual;

[0166] The escape step length (Δx) and escape direction (θ) are also defined using similar membership functions:

[0167]

[0168]

[0169] Change the mathematical model 3 in the development-dispersion escape from predator to:

[0170]

[0171] The above μ(Δx i ) and μ(θ i ) includes fuzzy logic results based on fitness difference Δf and crowding ρ, while (Δx) and (θ) are dynamically adjusted by fitness difference and crowding.

[0172] The dual-branch model is composed of two convolutional neural networks in parallel, each of which is composed of an input layer, a convolutional layer, a pooling layer, a fully connected layer, and an output layer connected in sequence.

[0173] Specifically, given an input image matrix X and a filter matrix F, the convolution operation consists of sliding the filter over the input image, performing matrix multiplication at each position, and the sum of the multiplications forms a new matrix, called the feature map C. This process is expressed as:

[0174] C(i,j)=(F*X)(i,j)=Σ m ∑ n F(m,n)·X(i+m,j+n)

[0175] Where: C(i,j) is the value of the feature map at position (i,j); (F*X) represents the convolution of F and X; F(m,n) represents the filter matrix with size m×n, indicating the size of the filter; X(i+m,j+n) represents the part of the input image matrix currently covered by the filter;

[0176] The output layer uses a multi-head self-attention mechanism and a support vector machine to replace the existing Softmax layer. The multi-head self-attention mechanism is expressed as:

[0177] MultiHead(Q,K,V)=Concat(head 1 ,head 2 ,…,head h )W o

[0178] Where: Each head h The calculation formula is:

[0179]

[0180] The calculation of a single attention head can be expressed as:

[0181]

[0182] Where: d K is the dimension of the key vector, and W o is a learnable parameter matrix used to transform the input into the appropriate space;

[0183] The features of the data processed by the two convolutional neural networks are enhanced through the multi-head self-attention mechanism, and then efficiently classified through the support vector machine to output the final result.

[0184] (4) The feature set is divided into a training set and a test set. The feature set is input into the optimized dual-branch model for training to obtain a fault diagnosis model. The test set is input into the fault diagnosis model for state recognition to complete the fault diagnosis of the hydropower unit.

[0185] Among the 100 groups of samples, they are divided into test set and training set in a ratio of 2:8. There are 10 groups of samples for each working condition in the test set and 40 groups of samples for each working condition in the training set. The GSAF image is sent to each branch and feature extracted by CNN. The extracted feature map is shown in Figure 4 middle.

[0186] Figure 4 The results of feature extraction using dual-model CNN are shown. Each sub-graph presents a two-dimensional heat map of different sample features. The color change represents the numerical strength of the feature. The color tends to red, indicating a higher feature strength, while blue indicates a lower feature strength. The feature map clearly shows the advantage of data feature visualization. When the test data is imported into the trained model, its accuracy reaches 100%. The specific results are as follows Figure 5 shown.

[0187] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A hydropower unit fault diagnosis method based on Gram angle field and ICOA-PCNN-MSA-SVM, Features The steps include: (1) Collect acoustic signals of hydropower units respectively; (2) Using the Gram angle field, the time series of the acoustic signal is converted into a two-dimensional image as a feature set of the signal; (3) constructing a dual-branch model consisting of two convolutional neural networks in parallel, wherein the convolutional neural network consists of an input layer, a convolutional layer, a pooling layer, a fully connected layer, and an output layer connected in sequence, wherein the output layer adopts a multi-head self-attention mechanism and a support vector machine to replace the existing Softmax layer, and uses the improved coati optimization algorithm to optimize the hyperparameters of the convolutional neural network; (4) The feature set is divided into a training set and a test set. The feature set is input into the optimized dual-branch model for training to obtain a fault diagnosis model. The test set is input into the fault diagnosis model for state recognition to complete the fault diagnosis of the hydropower unit.

2. The method according to claim 1, characterized in that: The specific steps of step (2) are as follows: the acoustic signal is represented as a time series X = {x1, x2, ... x i ,…x n }, where N is the total number of time points; i is a time point, i∈[1,N]: 2-1. Normalize the original time series: 2-2. Transform the obtained data into polar coordinates to obtain the radius and angle corresponding to each data point: Where: G is the Gram matrix; <·> is the inner product operation; Transform the time series: Where: r is the radius in polar coordinates, θ is the angle; t i is the i-th time point, e is the parameter used to represent the unit circle in polar coordinate transformation; 2-3. Using the Gram matrix, we can get a two-dimensional image of the time series: Where: GASF is the Gram angular field sum transformation, GADF is the Gram angular field difference change.

3. The method according to claim 1, characterized in that: The improved coati optimization algorithm in step (3) is as follows: 3-1. Exploration - cooperative hunting of iguanas In this stage, half of the coatis climb a tree to approach the iguana for hunting, while the other half gather under the tree and wait for the iguana to land. When the iguana lands, the coatis will hunt it. The iguana represents the global optimal position. The mathematical model of the behavior of tree-climbing coatis is: The iguana lands at a random location, and the coati will move randomly accordingly. The second mathematical model is: Where: I is a random integer; For iguana location; is the updated position; is the optimal position before updating; N is the population size; ub j lb j are the upper and lower boundaries respectively; r is a random number between 0 and 1; i and j represent different dimensions of different individuals; f() represents the fitness value; 3-2. Development - Dispersion to escape predators If a predator attacks a coati, the coati will flee from its original location and seek shelter in a nearby safe place. Mathematical model 3 is: 3-3. Initialization method based on quantum superposition state Initialize the population to a superposition state of multiple possible positions, determine the specific position through quantum measurement, and increase the diversity and coverage of the population: The initial state of each individual is represented as a quantum superposition state: Among them, |ψ i > represents the quantum state of the ith individual, |x ij > represents the state of the jth dimension, and D is the dimension of the search space; Transforming quantum states into specific locations through quantum measurements: in, is the initial position of the i-th individual; In the initial population stage, the mathematical model 1 is changed to: Among them, r is a random number between [-1,1], lb j andub j are the lower and upper boundaries of the j-th dimension respectively; 3-4. Adaptive cooperation mechanism based on dynamic learning factors In the exploration phase, a dynamic learning factor is introduced to enable individuals to adaptively adjust the learning factor according to their current fitness, thereby enhancing the individual's adaptability and search ability: The learning factor is dynamically adjusted according to the individual's fitness: in, is the fitness of the ith individual at time t, N is the population size, is the dynamic learning factor of the ith individual at time t; Mathematical model 2 is rewritten as using dynamic learning factors to update individual positions Among them, w j is the weight of individual j, satisfying 3-5. Dynamic escape mechanism based on fuzzy logic In the development-dispersed escape stage, fuzzy logic control is introduced to enable individuals to dynamically adjust their escape direction and step length according to the current environment and their own status, thereby enhancing adaptability and escape effect: Fitness difference (Δf) Among them, μ is the membership function, which represents the membership of the fuzzy variable; Δf is the fitness difference, which represents the fitness difference between the current individual and the best individual. Crowding degree (ρ) Among them, ρ is the crowding degree, which indicates the crowding situation around the current individual; The escape step length (Δx) and escape direction (θ) are also defined using similar membership functions: Change the mathematical model 3 in the development-dispersion escape from predator to: The above μ(Δx i ) and μ(θ i ) includes fuzzy logic results based on fitness difference Δf and crowding ρ, while (Δx) and (θ) are dynamically adjusted by fitness difference and crowding.

4. The method according to claim 1, characterized in that: The dual-branch model in step (3) is composed of two convolutional neural networks in parallel, each of which is composed of an input layer, a convolutional layer, a pooling layer, a fully connected layer, and an output layer connected in sequence. Specifically, given an input image matrix X and a filter matrix F, the convolution operation consists of sliding the filter over the input image, performing matrix multiplication at each position, and the sum of the multiplications forms a new matrix, called the feature map C. This process is expressed as: C(i,j)=(F*X)(i,j)=∑ m ∑ n F(m,n)·X(i+m,j+n) Where: C(i,j) is the value of the feature map at position (i,j); (F*X represents the convolution of F and X; F(m,n) represents the filter matrix with size m×n, indicating the size of the filter, and X(i+m,j+n) represents the part of the input image matrix currently covered by the filter; The output layer uses a multi-head self-attention mechanism and a support vector machine to replace the existing Softmax layer. The multi-head self-attention mechanism is expressed as: MultiHead(Q,K,V)=Concat(head1,head2,…,headh)W O Where: Q is the query matrix, K is the key matrix, and V is the value matrix; each head h The calculation formula is: The calculation of a single attention head can be expressed as: Where: d K is the dimension of the key vector, and W o is a learnable parameter matrix used to transform the input into the appropriate space; The features of the data processed by the two convolutional neural networks are enhanced through the multi-head self-attention mechanism, and then efficiently classified through the support vector machine to output the final result.

Citation Information

Patent Citations

  • Motor fault detection method based on grayscale image and lightweight CNN-SVM model

    CN114019370A

  • Mechanical equipment fault diagnosis method and device based on slow feature analysis

    CN116204775A

  • Planetary gearbox fault diagnosis method based on CNN and Transform combination

    CN117347046A

Cited By

  • Bearing fault detection method based on multi-channel deep pulse coupling neural network

    CN119043722A

  • Bearing fault diagnosis method, device and equipment and storage medium

    CN119290399A

  • A bearing fault diagnosis method, device, equipment and storage medium

    CN119290399B

  • Fault diagnosis method based on acoustic signal of carrier roller bearing of belt conveyor

    CN119574116A

  • Method for detecting acoustic anomalies of transformer

    WO2026129646A1