VECTOR-VALUED REGULARIZED KERNEL FUNCTION APPROXIMATION BASED FAULT DIAGNOSIS METHOD FOR ANALOG CIRCUIT
20210293881 · 2021-09-23
Assignee
Inventors
- Yigang He (Anhui, CN)
- Wei He (Anhui, CN)
- Baiqiang Yin (Anhui, CN)
- Bing Li (Anhui, CN)
- Zhigang Li (Anhui, CN)
- Lei Zuo (Anhui, CN)
- Chaolong Zhang (Anhui, CN)
Cpc classification
G01R31/2879
PHYSICS
G06N3/006
PHYSICS
G06N10/60
PHYSICS
G01R31/2884
PHYSICS
International classification
G06F17/17
PHYSICS
Abstract
A vector-valued regularized kernel function approximation (VVRKFA) based fault diagnosis method for an analog circuit comprises the following steps: (1) obtaining fault response voltage signals of an analog circuit; (2) performing wavelet packet transform on the collected signals, and calculating wavelet packet coefficient energy values as feature parameters; (3) optimizing regularization parameters and kernel parameters of VVRKFA by using a quantum particle swarm optimization algorithm and training a fault diagnosis model; and (4) identifying a circuit fault by using the trained diagnosis model. In the invention, the classification performance of the VVRKFA method is superior to other classification algorithms, and optimization of parameters by the quantum particle swarm optimization (QPSO) algorithm is also superior to the traditional method of obtaining parameters. The fault diagnosis method provided by the invention can efficiently diagnose the component faults of the circuit, including soft faults and hard faults.
Claims
1. A vector-valued regularized kernel function approximation (VVRKFA) based fault diagnosis method for an analog circuit, comprising the following steps: (1) extracting a time domain response voltage signal of each node of a tested analog circuit, that is, collecting output signals; (2) performing wavelet packet decomposition on the collected output signals, and calculating energy of each node as original sample feature data; and averagely dividing the original sample feature data into two parts: a training sample set and a test sample set; (3) optimizing regularization parameters and kernel parameters of a VVRKFA mathematical model by using Quantum Particle Swann Optimization (QPSO) on the basis of the training sample set and constructing a VVRKFA-based fault diagnosis model; and (4) inputting the test sample set into the constructed VVRKFA-based fault diagnosis model to identify a circuit fault class.
2. The VVRKFA-based fault diagnosis method for an analog circuit according to claim 1, wherein in Step (3), the VVRKFA-based fault diagnosis model is constructed as follows: (3.a) determining a type of a kernel function: selecting a Gaussian kernel function K(x.sub.i, x.sub.j)=exp(σ∥x.sub.i−x.sub.j∥.sup.2) as the kernel function of VVRKFA to establish the VVRKFA mathematical model, wherein σ is a width factor of the Gaussian kernel function; and the VVRKFA mathematical model is as follows: .sup.N×
.sup.N×1 is a base vector; C is a regularization parameter; ξ.sub.i∈
.sup.N×1 is a slack variable; a matrix B∈
.sup.
.sup.(
.sup.m×n is a training sample data set; I is a unit matrix, and Y∈
.sup.N×m is a matrix containing a number m of class label vectors of training samples; (3.b) optimizing the VVRKFA mathematical model by using the QPSO algorithm to obtain an optimal regularization parameter and an optimal kernel parameter of the VVRKFA mathematical model; (3.c) with the training sample x.sub.i in the training sample set as input data, constructing the following vector value mapping function on the basis of the optimal regularization parameter and the optimal kernel parameter obtained in Step (3.b):
p(x.sub.i)=ΘK(x.sub.i.sup.T,B.sup.T).sup.T+b; (2) where, Θ∈.sup.N×
.sup.
.sup.N×1 is a base vector, and N is the number of fault classes; m is the dimension of a training sample in the training sample set;
Class(x)=argmin.sub.1≤j≤Nd.sub.M({circumflex over (p)}(x.sub.t),{circumflex over (p)}.sup.(j))|{circumflex over (Σ)}); (3) where, x.sub.t is a test sample in the test sample set;
3. The VVRKFA-based fault diagnosis method for an analog circuit according to claim 1, wherein in Step (3.b), the optimizing the regularization parameters and the kernel parameters of the VVRKFA mathematical model by using the QPSO algorithm to obtain an optimal regularization parameter and an optimal kernel parameter of the VVRKFA mathematical model specifically comprises: (3.b.1) initializing parameters of the QPSO algorithm, including species speed, position, population size, number of iterations, and optimization range, wherein each particle is a two-dimensional vector of which a first dimension is a regularization parameter of the VVRKFA mathematical model and of which a second dimension is a kernel parameter of the VVRKFA mathematical model; (3.b.2) calculating the fitness of each particle and obtaining a global optimal individual and a local optimal individual; (3.b.3) updating the speeds and positions of the particles; and (3.b.4) repeating steps (3.b.2) and (3.b.3) until the maximum number of iterations is reached, and then outputting optimal parameter results (i.e., the optimal regularization parameter and the optimal kernel parameter of the VVRKFA mathematical model).
4. The VVRKFA-based fault diagnosis method for an analog circuit according to claim 1, wherein in Step (4), the test sample data set is input to the fault diagnosis model to carrying out circuit fault class identification to obtain a fault class of each test sample in the test sample set and further obtain the diagnosis accuracy of each class of fault, thus completing diagnosis of the tested analog circuit.
5. The VVRKFA-based fault diagnosis method for an analog circuit according to claim 2, wherein in Step (3.b), the optimizing the regularization parameters and the kernel parameters of the VVRKFA mathematical model by using the QPSO algorithm to obtain an optimal regularization parameter and an optimal kernel parameter of the VVRKFA mathematical model specifically comprises: (3.b.1) initializing parameters of the QPSO algorithm, including species speed, position, population size, number of iterations, and optimization range, wherein each particle is a two-dimensional vector of which a first dimension is a regularization parameter of the VVRKFA mathematical model and of which a second dimension is a kernel parameter of the VVRKFA mathematical model; (3.b.2) calculating the fitness of each particle and obtaining a global optimal individual and a local optimal individual; (3.b.3) updating the speeds and positions of the particles; and (3.b.4) repeating steps (3.b.2) and (3.b.3) until the maximum number of iterations is reached, and then outputting optimal parameter results (i.e., the optimal regularization parameter and the optimal kernel parameter of the VVRKFA mathematical model).
6. The VVRKFA-based fault diagnosis method for an analog circuit according to claim 2, wherein in Step (4), the test sample data set is input to the fault diagnosis model to carrying out circuit fault class identification to obtain a fault class of each test sample in the test sample set and further obtain the diagnosis accuracy of each class of fault, thus completing diagnosis of the tested analog circuit.
Description
BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS
[0032]
[0033]
[0034]
DETAILED DESCRIPTION OF THE INVENTION
[0035] The invention will be further described in detail below with reference to the accompanying drawings and embodiments.
[0036] Referring to
[0037] In the Step 1, the time domain response signal of the tested analog circuit is obtained, and an input end is excited by a sinusoidal signal having an amplitude of 5V and a frequency of 100 Hz, and the output end samples a voltage signal.
[0038] In the Step 2, the energy of each node is calculated as follows:
[0039] In the wavelet packet analysis, the signal is projected onto the space formed by a group of mutually orthogonal wavelet basis functions; the signal is decomposed into two parts: a high frequency part and a low frequency part, and the low-frequency and high-frequency parts are simultaneously decomposed in the next layer of decomposition. The wavelet packet analysis is a more elaborate analysis method.
[0040] The wavelet packet function μ.sub.j,k(t) is defined as:
μ.sub.j,k(t)−2.sup.j/2μ(2.sup.jt−k);
where, j∈Z is the number of decomposition layers, k∈Z is the number of frequency band data points, and t is a time point.
[0041] For a group of discrete signals x(t), the wavelet packet decomposition algorithm is as follows:
where, h(k−2t) and g(k−2t) are a low-pass filter coefficient and a high-pass filter coefficient in corresponding multi-scale analysis; d.sub.j.sup.n(k) is a k-th wavelet decomposition coefficient point in a n-th frequency band of a j-th layer; d.sub.j+1.sup.2n is a wavelet decomposition sequence of a 2n-th frequency band of a (j+1)-th layer; d.sub.j+1.sup.2n+1 is a wavelet decomposition sequence of a (2n+1)-th frequency band of the (j+1)-th layer; k∈Z is the number of frequency band data points; t is a time point.
[0042] d.sub.j.sup.n+(k)=2[Σ.sub.τh(k−2τ)d.sub.j+1.sup.2n+n(k)+Σ.sub.τg(k−2τ)d.sub.j+1.sup.2n(k)] indicates a k-th coefficient corresponding to the node (j, n) after wavelet packet decomposition, the node (j, n) represents a n-th frequency band of a j-th layer, and T is a translation parameter.
[0043] Then, the energy value of the wavelet packet node is calculated as follows:
E.sub.i=Σ.sub.k=1.sup.N|d.sub.j.sup.n(k)|.sup.2; i=1,2, . . . , 2.sup.j;
where, N is the length of a i-th frequency band; j is the number of wavelet decomposition layers; k is a sequence point of each frequency band; d.sub.j.sup.n(k) is a k-th wavelet decomposition coefficient of the i-th frequency band of the j-th layer.
[0044] The VVRKFA fault diagnosis model is established as follows:
[0045] (3.a) determining the type of a kernel function:
[0046] selecting a Gaussian kernel function K(x.sub.i,x.sub.j)=exp(σ∥x.sub.i−x.sub.j∥.sup.2) as the kernel function of VVRKFA to establish the VVRKFA mathematical model, wherein σ is a width factor of the Gaussian kernel function; and
[0047] the VVRKFA mathematical model is as follows:
where, Θ∈.sup.N×
.sup.N×1 is a base vector; C is a regularization parameter; ξ.sub.i∈
.sup.N×1 is a slack variable; the value of an element x.sub.j in the VVRKFA kernel function is a matrix B, and the matrix B∈
.sup.{circumflex over (m)}×n is a dimension-reduced sample data set (
.sup.(
.sup.m×n is a training sample data set; I is a unit matrix, and Y∈
.sup.N×m is a matrix containing a number m of class label vectors of training samples;
[0048] (3.b) optimizing the VVRKFA mathematical model by using a QPSO algorithm to obtain an optimal regularization parameter and an optimal kernel parameter of the VVRKFA mathematical model;
[0049] (3.c) with the training sample x.sub.i in the training sample set as input data, constructing the following vector value mapping function on the basis of the optimal regularization parameter and the optimal kernel parameter obtained in Step (3.b):
p(x.sub.i)=ΘK(x.sub.i.sup.T,B.sup.T).sup.T+b; (2)
where, Θ∈.sup.N×{circumflex over (m)} is a regression coefficient matrix, and B∈
.sup.
.sup.N×1 is a base vector, and N is the number of fault classes; m is the dimension of a training sample in the training sample set;
[0050] (3.d) using the mapping function constructed in Step (3.c) to establish a VVRKFA decision function which is expressed as:
Class(x)=argmin.sub.1≤j≤Nd.sub.M({circumflex over (p)}(x.sub.t),{circumflex over (p)}.sup.(j))|{circumflex over (Σ)}); (3)
where, x.sub.t is a test sample in the test sample set;
[0051] The establishment of the decision function indicates the completion of the construction of the VVRKFA-based fault diagnosis model.
[0052] The optimizing the regularization parameters and the kernel parameters of the VVRKFA mathematical model by using a QPSO algorithm to obtain an optimal regularization parameter and an optimal kernel parameter of the VVRKFA mathematical model specifically comprises:
[0053] (3.b.1) initializing parameters related to the QPSO algorithm, including number of iterations, optimization range, population size, particle position and speed, wherein each particle is a two-dimensional vector, of which the first dimension is the regularization parameter of the VVRKFA mathematical model and of which the second dimension is the kernel parameter of the VVRKFA mathematical model;
[0054] (3.b.2) calculating the fitness of each particle and obtaining a global optimal individual and a local optimal individual;
[0055] (3.b.3) updating the position of each particle according to the following update expression: and
[0056] (3.b.4) repeating the steps (3.b.2) and (3.b.3) until the end of the iteration, and outputting a result.
[0057] The particle position update equation in the QPSO algorithm is:
X.sub.i(t+1)=P.sub.i′(t)±α|Mbest.sub.i(t+1)−X.sub.i(t)|×ln(1/u);
in the equation,
is a population size, Mbest is the average point of individually best itermax positions of all particles; ω.sub.max is the maximum inertia weight; ω.sub.min is the minimum inertia weight, P.sub.j and P.sub.g are the individually best position and globally best position of particle j respectively; X is the position of the particle; t is the current number of iterations, α is the compression expansion factor; u and β are uniformly distributed random numbers in the set [0, 1]; P.sub.i′ is the updated position of the particle i; and P.sub.i is the current position of the particle i.
[0058] In the Step (4), the test sample data set is input to the fault diagnosis model to carrying out circuit fault class identification to obtain a fault class of each test sample in the test sample set and further obtain the diagnosis accuracy of each class of fault, thus completing diagnosis of the tested analog circuit.
[0059] The execution process and performance of the VVRKFA-based fault diagnosis method for an analog circuit provided by the invention will be described below with an example.
[0060]
TABLE-US-00001 TABLE 1 Parameter faults of video amplifier circuit Fault Fault Fault Fault Fault Fault code class value code class value F1 R2 ↑ 15 kΩ F2 R2 ↓ 6 kΩ F3 R4 ↑ 100Ω F4 R4 ↓ 27Ω F5 R6 ↑ 150Ω F6 R6 ↓ 5Ω F7 R8 ↑ 1 kΩ F8 R8 ↓ 50Ω
TABLE-US-00002 TABLE 2 Catastrophic faults of video amplifier circuit Fault Fault code Fault value code Fault value F9 R1 is F10 R1 is open-circuited. short-circuited. F11 R3 is F12 C4 is short-circuited. open-circuited. F13 R5 is F14 The base is open-circuited. open-circuited. F15 The base-emitter is F16 The collector is short-circuited. open-circuited.
[0061] In the QPSO algorithm, the population size and the number of iterations are set to 10 and 100, respectively, the maximum inertia weight is set to 1, and the minimum inertia weight is 0.5. In the simulation, the regularization parameter and the kernel width factor obtained by the optimization are 1.0076×10.sup.−4 and 1.0095, respectively. The training process of QPSO optimizing VVRKFA is shown in
TABLE-US-00003 TABLE 3 Diagnosis results for fault classes F0 F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 F13 F14 F15 F16 F0 30 F1 30 F2 28 2 F3 30 F4 30 F5 1 29 F6 1 29 F7 30 F8 30 F9 30 F10 30 F11 30 F12 30 F13 30 F14 30 F15 30 F16 30