US20230394316A1
2023-12-07
18/060,582
2022-12-01
US 11,853,898 B1
2023-12-26
-
-
Alex Torres-Rivera
True Shepherd LLC | Andrew C. Cheng
2042-12-01
A DC/DC converter fault diagnosis method based on an improved sparrow search algorithm, includes: establishing an simulation module of the converter, selecting a leakage inductance current of a transformer as a diagnosis signal, and collecting diagnosis signal samples under OC faults of different power switching devices of the converter as a sample set; improving a global search ability of a sparrow search algorithm by using a Levy flight strategy; dividing the sample set into a training set and a test set, preliminarily establishing an architecture of a deep belief network, and initializing network parameters; optimizing a quantity of hidden-layer units of the deep belief network by using an improved sparrow search algorithm, to obtain a best quantity of hidden-layer units of the deep belief network; and training an optimized deep belief network obtained based on the improved sparrow search algorithm, and obtaining a fault diagnosis result based on a trained network.
Get notified when new applications in this technology area are published.
H02M3/139 » CPC main
Conversion of dc power input into dc power output without intermediate conversion into ac by static converters using discharge tubes with control electrode or semiconductor devices with control electrode using devices of a thyratron or thyristor type requiring extinguishing means using semiconductor devices only with automatic control of output voltage or current, e.g. switching regulators with digital control
G06N3/08 IPC
Computing arrangements based on biological models using neural network models Learning methods
G06N3/086 » CPC main
Computing arrangements based on biological models using neural network models; Learning methods using evolutionary programming, e.g. genetic algorithms
G01R31/28 IPC
Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere Testing of electronic circuits, e.g. by signal tracer
G01R31/2848 » CPC further
Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere; Testing of electronic circuits, e.g. by signal tracer; Specific tests of electronic circuits not provided for elsewhere; Fault-finding or characterising using hard- or software simulation or using knowledge-based systems, e.g. expert systems, artificial intelligence or interactive algorithms using simulation
This application claims priority to Chinese Patent Application No. 202210639081.4 with a filing date of Jun. 7, 2022. The content of the aforementioned application, including any intervening amendments thereto, is incorporated herein by reference.
The present disclosure relates to the technical field of fault diagnosis of power electronic circuits, and in particular, to a direct current (DC)/DC converter fault diagnosis method and system based on an improved sparrow search algorithm.
A DC/DC converter has characteristics of electrical isolation and bidirectional energy flowing, and its reliable operation is crucial. At present, fault diagnosis of the DC/DC converter is mainly to diagnose an open circuit (OC) fault of a power switching transistor. Methods for diagnosing an OC fault of a power switching device are mainly classified into a model-based method and a data-driven method.
For a dual-active-bridge converter, a fault diagnosis method based on an analytical model is difficult to establish an accurate mathematical model. In the data-driven method, no mathematical model needs to be established, but a corresponding relationship between each fault state and a data sample is learned by using various machine learning algorithms. A support vector machine, an extreme learning machine, and other shallow networks are widely used in fault diagnosis. However, this kind of shallow learning cannot mine a deep feature of a fault sample, and fault diagnosis accuracy is relatively low. A deep learning model has a strong feature extraction ability, which can explore a corresponding relationship between a fault feature and a corresponding fault type layer by layer. At present, a deep belief network is widely used. Compared with a convolutional neural network, the deep belief network has fewer hyper-parameters, and can achieve higher diagnosis accuracy under an optimal network parameter setting. Performance of the deep belief network is related to a hyper-parameter setting of the network. A parameter that has greatest impact on the performance of the deep belief network is a quantity of hidden-layer units, so this parameter needs to be optimized. Most parameters are optimized by conducting many experiments, but this method is difficult to realize when there are many parameters. An optimization algorithm can realize parameter optimization, and most optimization algorithms are easy to fall into a local optimal solution when solving a parameter optimization problem. Although the optimization algorithm can optimize the parameters, there are still some problems such as long calculation time, low accuracy, and falling into the local optimal solution. Therefore, the corresponding optimization algorithm needs to be improved.
In order to overcome the defects in the prior art, the present disclosure provides a DC/DC converter fault diagnosis method and system based on an improved sparrow search algorithm, to improve a sparrow search algorithm, thereby improving a global optimization ability of the sparrow search algorithm, preventing overfitting and a local optimal value of a deep belief network, and improving fault diagnosis accuracy of the network.
The present disclosure resolves the technical problems with the following technical solution:
The present disclosure provides a DC/DC converter fault diagnosis method based on an improved sparrow search algorithm, including the following steps:
Further, step 1 in the present disclosure includes:
Further, in step 2 in the present disclosure,
xit+1=xit+α⊕Levy,
where α represents a step factor; ⊕ represents dot multiplication; xit represents a current position; xit+1 represent a position of a next state; and Ley represents a direction and step of a flight, which is randomly distributed and is calculated according to the following formula:
Levy˜|s|−λ, 1<λ≤3,
where s represents a random step, which is calculated according to the following formula:
s=μ/(|ν|1/β),
where β=1.5, μ=N(0, σμ2) and σμ2 is calculated according to the following formula:
σ μ = [ Γ ( 1 + β ) × sin ( π × β / 2 ) Γ [ ( 1 + β ) / 2 ] × β × 2 ( β - 1 ) / 2 ] 1 / β , σ v = 1.
Further, the sparrow search algorithm in step 2 in the present disclosure is:
a population of the sparrow search algorithm is expressed as X, a quantity of to-be-optimized variables is δ, and a position update formula of a population discoverer is:
X l , φ v + 1 = { X l , φ v × exp ( - l ξ × C ) , R < ST X l , φ v + Q · L , R ≥ ST
where C represents a maximum quantity of iterations, Xl,φν and Xl,φν+1 respectively represent positions of a first sparrow in a φth dimension in νth and (ν+1)th iterations, l=[1, 2, . . . , s], φ=(=[1, 2, . . . δ], s represents a quantity of sparrows, ξ and Q represent random numbers, L represents a 1× unit vector, R represents a current alarm value, ST represents a safety threshold, and there is no predator when R<ST and there is a predator when R≥ST; and a position update formula of a population follower is:
X l , φ v + 1 = { Q · exp ( X worst - X l , φ v l 2 ) , l > s 2 X p v + ❘ "\[LeftBracketingBar]" X l , φ v - X p v ❘ "\[RightBracketingBar]" · A + · L , l ≤ s 2
where Xpν represents a current best position of the discoverer, Xworst represents a global worst position. each element of A and L is randomly assigned as 1 or −1, and A+=AT(AAT)−1; and when the predator appears, behavior of an individual in the population is expressed as follows:
X l , φ v + 1 = { X best v + β × ❘ "\[LeftBracketingBar]" X l , φ v - X best v ❘ "\[RightBracketingBar]" , f v ( X l , φ v ) > f v _ best X l , φ v + ζ × ❘ "\[LeftBracketingBar]" X l , φ v - X best v ❘ "\[RightBracketingBar]" ( f v ( X l , φ v ) - f v _ worst ) + ε , f v ( X l , φ v ) = f v _ best
where Xbestν represents a current global best position; β represents a step control random number of a normal distribution, ξ∈[−1,1] represents a random number of a moving direction of the individual in the population, fν(XLν) represents a fitness value of a current sparrow individual, and fν_best and fν_worst represent current global best and worst fitness values respectively; and then a next iteration is performed based on a calculated best fitness value and global best position.
Further, a method for improving the sparrow search algorithm by using the Levy flight strategy in step 2 includes:
X l , φ v + 1 = { X best v + ❘ "\[LeftBracketingBar]" X l , φ v - X best v ❘ "\[RightBracketingBar]" × Levy , if f v ( X l , φ v ) > f v _ best X l , φ v + ζ × ❘ "\[LeftBracketingBar]" X l , φ v - X best v ❘ "\[RightBracketingBar]" ( f v ( X l , φ v ) - f v _ worst ) + ε , if f v ( X l , φ v ) = f v _ best
where Levy represents the direction and step of the flight, which is randomly distributed.
Further, step 3 in the present disclosure includes:
Further, step 4 in the present disclosure includes:
Further, a method for training the deep belief network in step 5 in the present disclosure includes:
The present disclosure provides a DC/DC converter fault diagnosis system based on an improved sparrow search algorithm, including:
The present disclosure provides a computer-readable storage medium that stores a computer program, where the computer program is executed by a processor to implement the steps of the method described above.
The present disclosure achieves the following beneficial effects: The DC/DC converter fault diagnosis method and system based on an improved sparrow search algorithm in the present disclosure improve the global search ability of the sparrow search algorithm by using the Levy flight strategy; optimize the quantity of hidden-layer units of the deep belief network by using the improved sparrow search algorithm obtained based on the Levy flight strategy, to obtain the best quantity of hidden-layer units; and training the optimized deep belief network obtained based on the improved sparrow search algorithm, and obtaining the fault diagnosis result based on the trained network. This improves diagnosis accuracy of the network.
The present disclosure is described in further detail with reference to the accompanying drawings and embodiments.
FIG. 1 is a schematic flowchart of a method according to an embodiment of the present disclosure;
FIG. 2 shows an emulation topology of a dual-active-bridge converter according to an embodiment of the present disclosure;
FIG. 3 is a schematic flowchart of improving a sparrow search algorithm according to an embodiment of the present disclosure; and
FIG. 4 is an iteration error curve of optimizing a deep belief network by using an improved sparrow search algorithm according to an embodiment of the present disclosure.
To make the objectives, technical solutions, and advantages of the present disclosure clearer, the present disclosure is further described below in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely intended to explain the present disclosure, rather than to limit the present disclosure. Further, the technical features involved in the various embodiments of the present disclosure described below may be combined with each other as long as they do not constitute a conflict with each other.
FIG. 1 is a schematic flowchart of a method according to this embodiment of the present disclosure. The method shown in FIG. 1 includes the following steps.
| TABLE 1 |
| Fault states and types |
| Fault state | Fault type | |
| Normal state | 0 | |
| OC fault on S1/S4 | 1 | |
| OC fault on S2/S3 | 2 | |
| OC fault on Q1/Q4 | 3 | |
| OC fault on Q2/Q3 | 4 | |
In this embodiment, step (2) may be implemented in the following manner:
A Levy flight algorithm has a large search range. The Levy flight algorithm records update information of all particle positions based on a flight track, and a calculation formula is:
xit+1=xit+α⊕Levy.
In the above formula, α represents a step factor; ⊕ represents dot multiplication; xit represents a current position; xit+1 represent a position of a next state; and Levy represents a direction and step of a flight, which is randomly distributed and is calculated according to the following formula:
Levy˜|s|−λ, 1<λ≤3,
where s represents a random step, which is calculated according to the following formula:
s=μ/(|ν|1/β),
where β=1.5, μ=N(0, σμ2) and σμ2 is calculated according to the following formula:
σ μ = [ Γ ( 1 + β ) × sin ( π × β / 2 ) Γ [ ( 1 + β ) / 2 ] × β × 2 ( β - 1 ) / 2 ] 1 / β , σ v = 1.
A population of the sparrow search algorithm may be expressed as X, a quantity of to-be-optimized variables is δ, and a position update formula of a population discoverer is:
X l , φ v + 1 = { X l , φ v × exp ( - l ξ × C ) , R < ST X l , φ v + Q · L , R ≥ ST .
In the above formula, C represents a maximum quantity of iterations, Xl,φν and Xl,φν+1 respectively represent positions of a first sparrow in a φth dimension in νth and (ν+1)th iterations l=[1, 2, . . . , s], φ=[1, 2, . . . δ], s represents a quantity of sparrows, ξ and Q represent random numbers, L represents a 1× unit vector, R represents a current alarm value, ST represents a safety threshold, and there is no predator when R<ST and there is a predator when R≥ST. A position update formula of a population follower is:
X l , φ v + 1 = { Q · exp ( X worst - X l , φ v l 2 ) , l > s 2 X p v + ❘ "\[LeftBracketingBar]" X l , φ v - X p v ❘ "\[RightBracketingBar]" · A + · L , l ≤ s 2 .
In the above formula, represents a current best position of the discoverer, Xworst represents a global worst position, each element of A and L is randomly assigned as 1 or −1, and A+=AT(AAT)−1. When the predator appears, behavior of an individual in the population is expressed as follows:
X l , φ v + 1 = { X best v + β × ❘ "\[LeftBracketingBar]" X l , φ v - X best v ❘ "\[RightBracketingBar]" , f v ( X l , φ v ) > f v _ best X l , φ v + ζ × ❘ "\[LeftBracketingBar]" X l , φ v - X best v ❘ "\[RightBracketingBar]" ( f v ( X l , φ v ) - f v _ worst ) + ε , f v ( X l , φ v ) = f v _ best .
In the above formula, Xbestν represents a current global best position. β represents a step control random number of a normal distribution, ξ∈[−1,1] represents a random number of a moving direction of the individual in the population, fν(XLν) represents a fitness value of a current sparrow individual, and fν_best and fν_worst represent current global best and worst fitness values respectively. Then, a next iteration is performed based on a calculated best fitness value and global best position.
When the sparrow search algorithm is improved by using the Levy flight strategy, the behavior of the individual in the population when the predator appears is improved by using the Levy flight strategy, where an improved calculation formula is:
X l , φ v + 1 = { X best v + ❘ "\[LeftBracketingBar]" X l , φ v - X best v ❘ "\[RightBracketingBar]" × Levy , if f v ( X l , φ v ) > f v _ best X l , φ v + ζ × ❘ "\[LeftBracketingBar]" X l , φ v - X best v ❘ "\[RightBracketingBar]" ( f v ( X l , φ v ) - f v _ worst ) + ε , if f v ( X l , φ v ) = f v _ best .
In the above formula, Levy represents the direction and step of the flight, which is randomly distributed. The improved sparrow search algorithm is tested by using a standard test function. A minimum value of the test function and an optimization result of the sparrow search algorithm are shown in Table 2.
| TABLE 2 |
| Test function and result |
| Result obtained | Result obtained | ||
| by using | by using the | ||
| Minimum | the sparrow | improved sparrow | |
| Test function | value | search algorithm | search algorithm |
| F 1 ( x ) = ∑ i = 1 n x i 2 | 0 | 1.76E−6 | 1.18E−15 |
| F 2 ( x ) = ∑ i = 1 n ❘ "\[LeftBracketingBar]" x i ❘ "\[RightBracketingBar]" + ∏ i = 1 n ❘ "\[LeftBracketingBar]" x i ❘ "\[RightBracketingBar]" | 0 | 3.61E−5 | 1.9E−7 |
An optimization result of the improved sparrow search algorithm for the test function is closer to 0, which indicates that the improved sparrow search algorithm obtained by using the Levy flight strategy in the present disclosure has a good global search ability.
In this embodiment, step (3) may be implemented in the following manner:
In this embodiment, step (4) may be implemented in the following manner:
In this embodiment, step (5) may be implemented in the following manner:
Specifically, step (5) may be implemented in the following manner:
| TABLE 3 |
| Comparison of fault classification results |
| of the dual-active-bridge converter |
| Feedback neural | Support vector | Optimized deep | |
| Fault type | network | machine | belief network |
| Normal state | 95% | 97% | 100% |
| OC fault on S1/S4 | 97% | 99% | 100% |
| OC fault on S2/S3 | 98% | 99% | 100% |
| OC fault on Q1/Q4 | 96% | 98% | 98% |
| OC fault on Q2/Q3 | 95% | 97% | 100% |
The DC/DC converter fault diagnosis method based on an improved sparrow search algorithm in the present disclosure improves the global search ability of sparrow search algorithm by using the Levy flight strategy, and optimizes the quantity of hidden-layer units of the deep belief network by using the improved sparrow search algorithm, so as to effectively resolve a problem that parameter optimization of the deep belief network and the optimization algorithm fall into a local optimal value, and improve fault diagnosis accuracy of the DC/DC converter.
This embodiment of the present disclosure provides a DC/DC converter fault diagnosis system based on an improved sparrow search algorithm, including:
For specific implementations of the above modules, reference may be made to the description of the above method embodiment. Details are not described again in this embodiment.
It should be pointed out that, based on needs of implementation, each step/component described in the present disclosure can be divided into more steps/components, or two or more steps/components or some operations of the steps/components can be combined into a new step/component to achieve the objective of the present disclosure.
It is easy for those skilled in the art to understand that the above-mentioned contents are merely the preferred embodiments of the present disclosure, and are not intended to limit the present disclosure. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure should fall within the protection scope of the present disclosure.
1-8. (canceled)
9: A DC/DC converter fault diagnosis system based on an improved sparrow search algorithm, comprising:
a data collection module configured to establish a simulation module of a DC/DC converter, select a leakage inductance current of a transformer as a diagnosis signal, code and classify a fault type based on OC fault states of different power switching devices of the DC/DC converter, and collect diagnosis signals of the DC/DC converter under different fault states as a sample set;
an algorithm optimization module configured to improve a global search ability of a sparrow search algorithm by using a Levy flight strategy;
a network optimization module configured to optimize a quantity of hidden-layer units of a deep belief network by using an improved sparrow search algorithm, and search for a best quantity of hidden-layer units of the network;
a network training module configured to set the quantity of hidden-layer units of the deep belief network as the best quantity of hidden-layer units, train the deep belief network by using the training set, and test a trained deep belief network by using the test set; and
a fault diagnosis module configured to input a newly obtained test sample into the trained deep belief network directly for fault diagnosis to obtain a diagnosis result.
10. (canceled)